Don't handle ulps for integer tests in libm-test.inc.
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/libm-test.inc (check_int): Expect result to be exactly
4         equal to expected value and do not handle ulps.
5         (check_long): Likewise.
6         (check_longlong): Likewise.
7
8         * math/libm-test.inc (ceil_test_data): Test for "inexact"
9         exceptions.
10         (cimag_test_data): Likewise.
11         (conj_test_data): Likewise.
12         (copysign_test_data): Likewise.
13         (cproj_test_data): Likewise.
14         (creal_test_data): Likewise.
15         (fabs_test_data): Likewise.
16         (fdim_test_data): Likewise.
17         (finite_test_data): Likewise.
18         (floor_test_data): Likewise.
19         (fmax_test_data): Likewise.
20         (fmin_test_data): Likewise.
21         (fmod_test_data): Likewise.
22         (fpclassify_test_data): Likewise.
23         (frexp_test_data): Likewise.
24         (ilogb_test_data): Likewise.
25         (isfinite_test_data): Likewise.
26         (isgreater_test_data): Likewise.
27         (isgreaterequal_test_data): Likewise.
28         (isinf_test_data): Likewise.
29         (isless_test_data): Likewise.
30         (islessequal_test_data): Likewise.
31         (islessgreater_test_data): Likewise.
32         (isnan_test_data): Likewise.
33         (isnormal_test_data): Likewise.
34         (issignaling_test_data): Likewise.
35         (isunordered_test_data): Likewise.
36         (ldexp_test_data): Likewise.
37         (lrint_test_data): Likewise.
38         (lrint_test_data) [TEST_FLOAT]: Disable one test.
39         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
40         (lrint_tonearest_test_data): Test for "inexact" exceptions.
41         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
42         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
43         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
44         test input.
45         (lrint_towardzero_test_data): Test for "inexact" exceptions.
46         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
48         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
49         that test input.
50         (lrint_downward_test_data): Test for "inexact" exceptions.
51         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
52         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
54         test input.
55         (lrint_upward_test_data): Test for "inexact" exceptions.
56         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
57         test input.
58         (llrint_test_data): Test for "inexact" exceptions.
59         (llrint_test_data) [TEST_FLOAT]: Disable one test.
60         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
62         (llrint_towardzero_test_data): Test for "inexact" exceptions.
63         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
64         (llrint_downward_test_data): Test for "inexact" exceptions.
65         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
66         (llrint_upward_test_data): Test for "inexact" exceptions.
67         (logb_test_data): Likewise.
68         (logb_downward_test_data): Likewise.
69         (nextafter_test_data): Likewise.
70         (nexttoward_test_data): Likewise.
71         (remainder_test_data): Likewise.
72         (remquo_test_data): Likewise.
73         (scalbn_test_data): Likewise.
74         (scalbln_test_data): Likewise.
75         (signbit_test_data): Likewise.
76         (sqrt_test_data): Likewise.
77         (significand_test_data): Likewise.
78
79 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
80
81         [BZ #15424]
82         * benchtests/bench-modf.c (struct args): Mark arg0 as
83         volatile.
84         * scripts/bench.pl: Mark members of struct args as volatile.
85
86 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
87
88         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
89         negative infinity on POWER6 or lower.
90         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
91
92 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
93
94         [BZ #15442]
95         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
96         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
97         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
98         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
99         (_FP_SETQNAN): New macro.
100         (_FP_SETQNAN_SEMIRAW): Likewise.
101         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
102         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
103         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
104         (FP_EXTEND): Use _FP_FRAC_SNANP.
105         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
106         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
107         into account.
108         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
109         New macro.
110         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
111         Likewise.
112
113 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
114
115         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
116         with DIVIDE_BY_ZERO_EXCEPTION.
117         (gamma_test_data): Likewise.
118         (lgamma_test_data): Likewise.
119         (log_test_data): Likewise.
120         (log10_test_data): Likewise.
121         (log2_test_data): Likewise.
122         (tgamma_test_data): Likewise.
123
124         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
125         (acos_test_tonearest): Likewise.
126         (acos_test_towardzero): Likewise.
127         (acos_test_downward): Likewise.
128         (acos_test_upward): Likewise.
129         (acosh_test): Likewise.
130         (asin_test): Likewise.
131         (asin_test_tonearest): Likewise.
132         (asin_test_towardzero): Likewise.
133         (asin_test_downward): Likewise.
134         (asin_test_upward): Likewise.
135         (asinh_test): Likewise.
136         (atan_test): Likewise.
137         (atanh_test): Likewise.
138         (atan2_test): Likewise.
139         (cabs_test): Likewise.
140         (cacos_test): Likewise.
141         (cacosh_test): Likewise.
142         (casin_test): Likewise.
143         (casinh_test): Likewise.
144         (catan_test): Likewise.
145         (catanh_test): Likewise.
146         (cbrt_test): Likewise.
147         (ccos_test): Likewise.
148         (ccosh_test): Likewise.
149         (cexp_test): Likewise.
150         (clog_test): Likewise.
151         (clog10_test): Likewise.
152         (cos_test): Likewise.
153         (cos_test_tonearest): Likewise.
154         (cos_test_towardzero): Likewise.
155         (cos_test_downward): Likewise.
156         (cos_test_upward): Likewise.
157         (cosh_test): Likewise.
158         (cosh_test_tonearest): Likewise.
159         (cosh_test_towardzero): Likewise.
160         (cosh_test_downward): Likewise.
161         (cosh_test_upward): Likewise.
162         (cpow_test): Likewise.
163         (csin_test): Likewise.
164         (csinh_test): Likewise.
165         (csqrt_test): Likewise.
166         (ctan_test): Likewise.
167         (ctan_test_tonearest): Likewise.
168         (ctan_test_towardzero): Likewise.
169         (ctan_test_downward): Likewise.
170         (ctan_test_upward): Likewise.
171         (ctanh_test): Likewise.
172         (ctanh_test_tonearest): Likewise.
173         (ctanh_test_towardzero): Likewise.
174         (ctanh_test_downward): Likewise.
175         (ctanh_test_upward): Likewise.
176         (erf_test): Likewise.
177         (erfc_test): Likewise.
178         (exp_test): Likewise.
179         (exp_test_tonearest): Likewise.
180         (exp_test_towardzero): Likewise.
181         (exp_test_downward): Likewise.
182         (exp_test_upward): Likewise.
183         (exp10_test): Likewise.
184         (exp2_test): Likewise.
185         (expm1_test): Likewise.
186         (fmod_test): Likewise.
187         (gamma_test): Likewise.
188         (hypot_test): Likewise.
189         (j0_test): Likewise.
190         (j1_test): Likewise.
191         (jn_test): Likewise.
192         (lgamma_test): Likewise.
193         (log_test): Likewise.
194         (log10_test): Likewise.
195         (log1p_test): Likewise.
196         (log2_test): Likewise.
197         (logb_test_downward): Likewise.
198         (pow_test): Likewise.
199         (pow_test_tonearest): Likewise.
200         (pow_test_towardzero): Likewise.
201         (pow_test_downward): Likewise.
202         (pow_test_upward): Likewise.
203         (remainder_test): Likewise.
204         (remquo_test): Likewise.
205         (sin_test): Likewise.
206         (sin_test_tonearest): Likewise.
207         (sin_test_towardzero): Likewise.
208         (sin_test_downward): Likewise.
209         (sin_test_upward): Likewise.
210         (sincos_test): Likewise.
211         (sinh_test): Likewise.
212         (sinh_test_tonearest): Likewise.
213         (sinh_test_towardzero): Likewise.
214         (sinh_test_downward): Likewise.
215         (sinh_test_upward): Likewise.
216         (sqrt_test): Likewise.
217         (tan_test): Likewise.
218         (tan_test_tonearest): Likewise.
219         (tan_test_towardzero): Likewise.
220         (tan_test_downward): Likewise.
221         (tan_test_upward): Likewise.
222         (tanh_test): Likewise.
223         (tgamma_test): Likewise.
224         (y0_test): Likewise.
225         (y1_test): Likewise.
226         (yn_test): Likewise.
227
228         * math/gen-libm-test.pl (adjust_arg): Remove function.
229         (special_function): Remove argument $in_func.  Only handle
230         generating output for tables of tests, not inside functions.
231         (parse_args): Likewise.
232         (generate_testfile): Remove variable $in_func.  Update call to
233         parse_args.
234         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
235         (MINUS_ZERO_INIT): Rename macro to minus_zero.
236         (PLUS_INFTY_INIT): Rename macro to plus_infty.
237         (MINUS_INFTY_INIT): Rename macro to minus_infty.
238         (QNAN_VALUE_INIT): Rename macro to qnan_value.
239         (MAX_VALUE_INIT): Rename macro to max_value.
240         (MIN_VALUE_INIT): Rename macro to min_value.
241         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
242         (plus_zero): Remove variable.
243         (minus_zero): Likewise.
244         (plus_infty): Likewise.
245         (minus_infty): Likewise.
246         (qnan_value): Likewise.
247         (max_value): Likewise.
248         (min_value): Likewise.
249         (min_subnorm_value): Likewise.
250
251 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
252
253         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
254         uint64_t or uint32_t usage.
255         * crypt/sha256-block.c: Likewise.
256         * crypt/sha256-crypt.c: Likewise.
257         * crypt/sha256.c: Likewise.
258         * crypt/sha512-block.c: Likewise.
259         * crypt/sha512-crypt.c: Likewise.
260         * crypt/sha512.c: Likewise.
261         * debug/backtrace-tst.c: Likewise.
262         * debug/pcprofiledump.c: Likewise.
263         * elf/cache.c: Likewise.
264         * elf/dl-cache.c: Likewise.
265         * elf/dl-misc.c: Likewise.
266         * elf/dl-profile.c: Likewise.
267         * elf/dl-support.c: Likewise.
268         * elf/ldconfig.c: Likewise.
269         * elf/sprof.c: Likewise.
270         * iconv/dummy-repertoire.c: Likewise.
271         * iconv/iconv_charmap.c: Likewise.
272         * iconv/skeleton.c: Likewise.
273         * iconvdata/8bit-generic.c: Likewise.
274         * iconvdata/cp737.h: Likewise.
275         * iconvdata/cp775.h: Likewise.
276         * iconvdata/ibm1008.h: Likewise.
277         * iconvdata/ibm1025.h: Likewise.
278         * iconvdata/ibm1046.h: Likewise.
279         * iconvdata/ibm1097.h: Likewise.
280         * iconvdata/ibm1112.h: Likewise.
281         * iconvdata/ibm1122.h: Likewise.
282         * iconvdata/ibm1123.h: Likewise.
283         * iconvdata/ibm1124.h: Likewise.
284         * iconvdata/ibm1129.h: Likewise.
285         * iconvdata/ibm1130.h: Likewise.
286         * iconvdata/ibm1132.h: Likewise.
287         * iconvdata/ibm1133.h: Likewise.
288         * iconvdata/ibm1137.h: Likewise.
289         * iconvdata/ibm1140.h: Likewise.
290         * iconvdata/ibm1141.h: Likewise.
291         * iconvdata/ibm1142.h: Likewise.
292         * iconvdata/ibm1143.h: Likewise.
293         * iconvdata/ibm1144.h: Likewise.
294         * iconvdata/ibm1145.h: Likewise.
295         * iconvdata/ibm1146.h: Likewise.
296         * iconvdata/ibm1147.h: Likewise.
297         * iconvdata/ibm1148.h: Likewise.
298         * iconvdata/ibm1149.h: Likewise.
299         * iconvdata/ibm1153.h: Likewise.
300         * iconvdata/ibm1154.h: Likewise.
301         * iconvdata/ibm1155.h: Likewise.
302         * iconvdata/ibm1156.h: Likewise.
303         * iconvdata/ibm1157.h: Likewise.
304         * iconvdata/ibm1158.h: Likewise.
305         * iconvdata/ibm1160.h: Likewise.
306         * iconvdata/ibm1161.h: Likewise.
307         * iconvdata/ibm1162.h: Likewise.
308         * iconvdata/ibm1163.h: Likewise.
309         * iconvdata/ibm1164.h: Likewise.
310         * iconvdata/ibm1166.h: Likewise.
311         * iconvdata/ibm1167.h: Likewise.
312         * iconvdata/ibm12712.h: Likewise.
313         * iconvdata/ibm1390.h: Likewise.
314         * iconvdata/ibm1399.h: Likewise.
315         * iconvdata/ibm16804.h: Likewise.
316         * iconvdata/ibm4517.h: Likewise.
317         * iconvdata/ibm4899.h: Likewise.
318         * iconvdata/ibm4909.h: Likewise.
319         * iconvdata/ibm4971.h: Likewise.
320         * iconvdata/ibm5347.h: Likewise.
321         * iconvdata/ibm803.h: Likewise.
322         * iconvdata/ibm856.h: Likewise.
323         * iconvdata/ibm901.h: Likewise.
324         * iconvdata/ibm902.h: Likewise.
325         * iconvdata/ibm9030.h: Likewise.
326         * iconvdata/ibm9066.h: Likewise.
327         * iconvdata/ibm921.h: Likewise.
328         * iconvdata/ibm922.h: Likewise.
329         * iconvdata/ibm9448.h: Likewise.
330         * iconvdata/isiri-3342.h: Likewise.
331         * iconvdata/jis0201.h: Likewise.
332         * include/link.h: Likewise.
333         * include/netdb.h: Likewise.
334         * inet/check_native.c: Likewise.
335         * inet/check_pf.c: Likewise.
336         * inet/getipv4sourcefilter.c: Likewise.
337         * inet/getnameinfo.c: Likewise.
338         * inet/getsourcefilter.c: Likewise.
339         * inet/htonl.c: Likewise.
340         * inet/setipv4sourcefilter.c: Likewise.
341         * inet/setsourcefilter.c: Likewise.
342         * inet/test-inet6_opt.c: Likewise.
343         * inet/tst-network.c: Likewise.
344         * locale/C-collate.c: Likewise.
345         * locale/C-ctype.c: Likewise.
346         * locale/C-time.c: Likewise.
347         * locale/C-translit.h: Likewise.
348         * locale/loadarchive.c: Likewise.
349         * locale/programs/3level.h: Likewise.
350         * locale/programs/charmap.c: Likewise.
351         * locale/programs/charmap.h: Likewise.
352         * locale/programs/ld-address.c: Likewise.
353         * locale/programs/ld-collate.c: Likewise.
354         * locale/programs/ld-ctype.c: Likewise.
355         * locale/programs/ld-identification.c: Likewise.
356         * locale/programs/ld-measurement.c: Likewise.
357         * locale/programs/ld-messages.c: Likewise.
358         * locale/programs/ld-monetary.c: Likewise.
359         * locale/programs/ld-name.c: Likewise.
360         * locale/programs/ld-numeric.c: Likewise.
361         * locale/programs/ld-paper.c: Likewise.
362         * locale/programs/ld-telephone.c: Likewise.
363         * locale/programs/ld-time.c: Likewise.
364         * locale/programs/linereader.c: Likewise.
365         * locale/programs/locale.c: Likewise.
366         * locale/programs/locarchive.c: Likewise.
367         * locale/programs/locfile.h: Likewise.
368         * locale/programs/repertoire.c: Likewise.
369         * locale/programs/simple-hash.c: Likewise.
370         * locale/programs/simple-hash.h: Likewise.
371         * malloc/memusage.c: Likewise.
372         * malloc/memusagestat.c: Likewise.
373         * nis/nis_defaults.c: Likewise.
374         * nis/nis_hash.c: Likewise.
375         * nis/nis_print.c: Likewise.
376         * nis/nis_xdr.c: Likewise.
377         * nscd/connections.c: Likewise.
378         * nscd/hstcache.c: Likewise.
379         * nscd/nscd_gethst_r.c: Likewise.
380         * nscd/nscd_getserv_r.c: Likewise.
381         * nscd/nscd_helper.c: Likewise.
382         * nscd/servicescache.c: Likewise.
383         * nss/makedb.c: Likewise.
384         * nss/nss_db/db-XXX.c: Likewise.
385         * nss/nss_db/db-initgroups.c: Likewise.
386         * nss/nss_db/db-netgrp.c: Likewise.
387         * nss/nss_files/files-network.c: Likewise.
388         * nss/nss_files/files-parse.c: Likewise.
389         * posix/bug-regex5.c: Likewise.
390         * posix/fnmatch_loop.c: Likewise.
391         * posix/regcomp.c: Likewise.
392         * posix/regexec.c: Likewise.
393         * posix/tst-rfc3484-2.c: Likewise.
394         * posix/tst-rfc3484-3.c: Likewise.
395         * posix/tst-rfc3484.c: Likewise.
396         * resolv/nss_dns/dns-canon.c: Likewise.
397         * resolv/nss_dns/dns-network.c: Likewise.
398         * resolv/res_init.c: Likewise.
399         * resolv/res_mkquery.c: Likewise.
400         * resolv/tst-aton.c: Likewise.
401         * stdlib/cxa_atexit.c: Likewise.
402         * stdlib/cxa_finalize.c: Likewise.
403         * stdlib/gen-fpioconst.c: Likewise.
404         * stdlib/strtol_l.c: Likewise.
405         * string/tst-endian.c: Likewise.
406         * sunrpc/auth_des.c: Likewise.
407         * sunrpc/clnt_udp.c: Likewise.
408         * sunrpc/rtime.c: Likewise.
409         * sunrpc/svcauth_des.c: Likewise.
410         * sunrpc/xdr.c: Likewise.
411         * sunrpc/xdr_intXX_t.c: Likewise.
412         * sunrpc/xdr_rec.c: Likewise.
413         * sysdeps/generic/ldconfig.h: Likewise.
414         * sysdeps/generic/ldsodefs.h: Likewise.
415         * sysdeps/generic/memusage.h: Likewise.
416         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
417         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
418         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
419         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
420         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
421         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
422         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
423         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
424         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
425         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
426         * sysdeps/posix/getaddrinfo.c: Likewise.
427         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
428         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
429         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
430         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
431         * sysdeps/powerpc/test-gettimebase.c: Likewise.
432         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
433         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
434         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
435         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
436         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
437         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
438         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
439         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
440         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
441         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
442         * sysdeps/x86_64/dl-tls.h: Likewise.
443         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
444         * time/alt_digit.c: Likewise.
445         * time/era.c: Likewise.
446         * wcsmbs/tst-c16c32-1.c: Likewise.
447
448 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
449
450         * math/libm-test.inc (struct test_sincos_data): New type.
451         (RUN_TEST_LOOP_sincos): New macro.
452         (sincos_test_data): New variable.
453         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
454
455 2013-05-16  Richard Henderson  <rth@redhat.com>
456
457         * math/atest-exp2.c (LIMB64): New macro.
458         (CONSTSZ): New macro.
459         (mp_exp1, mp_exp_m1, mp_log2): New variables.
460         (hexdig): Move ...
461         (print_mpn_fp): ... to function scope.
462         (read_mpn_hex): Remove.
463         (get_log2): Remove.
464         (exp2_mpn): Use mp_log2.
465         (main): Use mp_exp1.
466
467 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
468
469         * math/libm-test.inc: Remove comment about not testing "inexact"
470         exceptions.
471         (INEXACT_EXCEPTION): New macro.
472         (NO_INEXACT_EXCEPTION): Likewise.
473         (INVALID_EXCEPTION_OK): Update value.
474         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
475         (OVERFLOW_EXCEPTION_OK): Likewise.
476         (UNDERFLOW_EXCEPTION_OK): Likewise.
477         (IGNORE_ZERO_INF_SIGN): Likewise.
478         (ERRNO_UNCHANGED): Likewise.
479         (ERRNO_EDOM): Likewise.
480         (ERRNO_ERANGE): Likewise.
481         (test_exceptions): Handle testing "inexact" exceptions.
482         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
483         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
484         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
485         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
486         INEXACT_EXCEPTION.
487         (rint_towardzero_test_data): Likewise.
488         (rint_downward_test_data): Likewise.
489         (rint_upward_test_data): Likewise.
490
491         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
492         with OVERFLOW_EXCEPTION.
493         (exp10_test_data): Likewise.
494         (exp2_test_data): Likewise.
495         (expm1_test_data): Likewise.
496         (lgamma_test_data): Likewise.
497         (pow_test_data): Likewise.
498         (tgamma_test_data): Likewise.
499         (yn_test_data): Remove duplicate test of overflow.
500
501         * math/libm-test.inc (struct test_cc_c_data): New type.
502         (RUN_TEST_LOOP_cc_c): New macro.
503         (cpow_test_data): New variable.
504         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
505
506         * math/libm-test.inc (struct test_f_L_data): New type.
507         (RUN_TEST_LOOP_f_L): New macro.
508         (llrint_test_data): New variable.
509         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
510         (llrint_tonearest_test_data): New variable.
511         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
512         (llrint_towardzero_test_data): New variable.
513         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
514         (llrint_downward_test_data): New variable.
515         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
516         (llrint_upward_test_data): New variable.
517         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
518         (llround_test_data): New variable.
519         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
520
521 2013-05-13  Peter Collingbourne  <pcc@google.com>
522
523         * math/atest-exp2.c (get_log2): Remove const attribute.
524
525 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
526
527         * math/libm-test.inc (struct test_f_l_data): New type.
528         (RUN_TEST_LOOP_f_l): New macro.
529         (lrint_test_data): New variable.
530         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
531         (lrint_tonearest_test_data): New variable.
532         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
533         (lrint_towardzero_test_data): New variable.
534         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
535         (lrint_downward_test_data): New variable.
536         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
537         (lrint_upward_test_data): New variable.
538         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
539         (lround_test_data): New variable.
540         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
541
542 2013-05-15  Peter Collingbourne  <pcc@google.com>
543
544         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
545         (EXTRACT_WORDS64) Use where appropriate.
546         (INSERT_WORDS64) Likewise.
547
548         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
549         constraints with x constraints.
550         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
551
552         * malloc/obstack.c (_obstack_compat): Add initializer.
553
554 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
555
556         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
557         si_trapno and add si_addr_lsb to _sifields.sigfault.
558         (si_trapno): Remove macro.
559         (si_addr_lsb): Define new macro.
560         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
561
562 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
563
564         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
565         instead of TEST_f_l.
566         (llrint_test_tonearest): Likewise.
567         (llrint_test_towardzero): Likewise.
568         (llrint_test_downward): Likewise.
569         (llrint_test_upward): Likewise.
570         (llround_test): Likewise.
571
572         * math/libm-test.inc (struct test_f_i_data): Add comment.
573         (RUN_TEST_LOOP_f_b): New macro.
574         (RUN_TEST_LOOP_f_b_tg): Likewise.
575         (finite_test_data): New variable.
576         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
577         (isfinite_test_data): New variable.
578         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
579         (isinf_test_data): New variable.
580         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
581         (isnan_test_data): New variable.
582         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
583         (isnormal_test_data): New variable.
584         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
585         (issignaling_test_data): New variable.
586         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
587         (signbit_test_data): New variable.
588         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
589
590         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
591         with INVALID_EXCEPTION.
592         (acosh_test_data): Likewise.
593         (asin_test_data): Likewise.
594         (atanh_test_data): Likewise.
595         (fmod_test_data): Likewise.
596         (log_test_data): Likewise.
597         (log10_test_data): Likewise.
598         (log2_test_data): Likewise.
599         (pow_test_data): Likewise.
600         (sqrt_test_data): Likewise.
601         (y0_test_data): Likewise.
602         (y1_test_data): Likewise.
603         (yn_test_data): Likewise.
604
605         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
606         function contents.
607
608         * math/libm-test.inc (struct test_ff_i_data): New type.
609         (RUN_TEST_LOOP_ff_i_tg): New macro.
610         (isgreater_test_data): New variable.
611         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
612         (isgreaterequal_test_data): New variable.
613         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
614         (isless_test_data): New variable.
615         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
616         (islessequal_test_data): New variable.
617         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
618         (islessgreater_test_data): New variable.
619         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
620         (isunordered_test_data): New variable.
621         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
622
623 2013-05-14  David S. Miller  <davem@davemloft.net>
624
625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
626
627 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
628
629         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
630
631         * math/libm-test.inc (struct test_fF_f1_data): Change type of
632         extra_test to int.
633         (struct test_f_i_data): Change type of max_ulp to int.
634
635         * math/libm-test.inc (test_ffI_f1_data): New type.
636         (RUN_TEST_LOOP_ffI_f1): New macro.
637         (remquo_test_data): New variable.
638         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
639
640         * setjmp/tst-setjmp-fp.c: New file.
641         * setjmp/Makefile (tests): Add tst-setjmp-fp.
642         (link-libm): New variable.
643         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
644
645         * math/libm-test.inc (struct test_f_i_data): New type.
646         (RUN_TEST_LOOP_f_i): New macro.
647         (RUN_TEST_LOOP_f_i_tg): Likewise.
648         (fpclassify_test_data): New variable.
649         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
650         (ilogb_test_data): New variable.
651         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
652
653         * math/libm-test.inc (scalbln_test): Correct function name in END
654         call.
655
656         * math/libm-test.inc (struct test_f_f1_data): Add comment.
657         (RUN_TEST_LOOP_fI_f1): New macro.
658         (frexp_test_data): New variable.
659         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
660
661         * math/libm-test.inc (struct test_fF_f1_data): New type.
662         (RUN_TEST_LOOP_fF_f1): New macro.
663         (modf_test_data): New variable.
664         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
665
666         * math/libm-test.inc (struct test_f_f1_data): New type.
667         (RUN_TEST_LOOP_f_f1): New macro.
668         (gamma_test_data): New variable.
669         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
670         (lgamma_test_data): New variable.
671         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
672
673 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
674
675         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
676         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
677         (main): Comment "tls" pseudo-hwcap.
678
679 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
680
681         * math/libm-test.inc (struct test_fl_f_data): New type.
682         (RUN_TEST_LOOP_fl_f): New variable.
683         (scalbln_test_data): New variable.
684         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
685
686         * math/libm-test.inc (struct test_fi_f_data): New type.
687         (RUN_TEST_LOOP_fi_f): New macro.
688         (ldexp_test_data): New variable.
689         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
690         (scalbn_test_data): New variable.
691         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
692
693         * math/libm-test.inc (struct test_c_f_data): New type.
694         (RUN_TEST_LOOP_c_f): New macro.
695         (cabs_test_data): New variable.
696         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
697         (carg_test_data): New variable.
698         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
699         (cimag_test_data): New variable.
700         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
701         (creal_test_data): New variable.
702         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
703
704         * math/libm-test.inc (struct test_if_f_data): New type.
705         (RUN_TEST_LOOP_if_f): New macro.
706         (jn_test_data): New variable.
707         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
708         (yn_test_data): New variable.
709         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
710
711         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
712
713 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
714
715         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
716         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
717
718 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
719
720         * benchtests/Makefile (CPPFLAGS-nonlib): Add
721         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
722         (bench-deps): Add bench-timing.h.
723         * benchtests-bench-skeleton.c: Include bench-timing.h.
724         (main): Use TIMING_* macros instead of clock_gettime.
725         * benchtests/bench-timing.h: New file.
726
727         [BZ #14582]
728         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
729         Renamed from _LIB_VERSION.
730         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
731
732 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
733
734         * math/libm-test.inc (struct test_fff_f_data): New type.
735         (RUN_TEST_LOOP_fff_f): New macro.
736         (fma_test_data): New variable.
737         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
738         (fma_towardzero_test_data): New variable.
739         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
740         (fma_downward_test_data): New variable.
741         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
742         (fma_upward_test_data): New variable.
743         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
744
745         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
746         (struct test_c_c_data): New type.
747         (RUN_TEST_LOOP_c_c): New macro.
748         (cacos_test_data): New variable.
749         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
750         (cacosh_test_data): New variable.
751         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
752         (casin_test_data): New variable.
753         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
754         (casinh_test_data): New variable.
755         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
756         (catan_test_data): New variable.
757         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
758         (catanh_test_data): New variable.
759         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
760         (ccos_test_data): New variable.
761         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
762         (ccosh_test_data): New variable.
763         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
764         (cexp_test_data): New variable.
765         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
766         (clog_test_data): New variable.
767         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
768         (clog10_test_data): New variable.
769         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
770         (conj_test_data): New variable.
771         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
772         (cproj_test_data): New variable.
773         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
774         (csin_test_data): New variable.
775         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
776         (csinh_test_data): New variable.
777         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
778         (csqrt_test_data): New variable.
779         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
780         (ctan_test_data): New variable.
781         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
782         (ctan_tonearest_test_data): New variable.
783         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
784         (ctan_towardzero_test_data): New variable.
785         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
786         (ctan_downward_test_data): New variable.
787         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
788         (ctan_upward_test_data): New variable.
789         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
790         (ctanh_test_data): New variable.
791         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
792         (ctanh_tonearest_test_data): New variable.
793         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
794         (ctanh_towardzero_test_data): New variable.
795         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
796         (ctanh_downward_test_data): New variable.
797         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
798         (ctanh_upward_test_data): New variable.
799         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
800         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
801         of BUILD_COMPLEX.
802
803         * math/libm-test.inc (struct test_ff_f_data): New type.
804         (struct test_ff_f_data_nexttoward): Likewise.
805         (RUN_TEST_LOOP_2_f): New macro.
806         (RUN_TEST_LOOP_ff_f): Likewise.
807         (atan2_test_data): New variable.
808         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
809         (copysign_test_data): New variable.
810         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
811         (fdim_test_data): New variable.
812         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
813         (fmax_test_data): New variable.
814         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
815         (fmin_test_data): New variable.
816         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
817         (fmod_test_data): New variable.
818         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
819         (hypot_test_data): New variable.
820         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
821         (nextafter_test_data): New variable.
822         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
823         (nexttoward_test_data): New variable.
824         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
825         (pow_test_data): New variable.
826         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
827         (pow_tonearest_test_data): New variable.
828         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
829         (pow_towardzero_test_data): New variable.
830         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
831         (pow_downward_test_data): New variable.
832         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
833         (pow_upward_test_data): New variable.
834         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
835         (remainder_test_data): New variable.
836         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
837         (scalb_test_data): New variable.
838         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
839         * sysdeps/i386/fpu/libm-test-ulps: Update.
840
841 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
842
843         * math/libm-test.inc (fma_test): Use max_value instead of local
844         variable fltmax.
845         (nextafter_test): Likewise.
846
847         * math/libm-test.inc (acos_towardzero_test_data): New variable.
848         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
849         (acos_downward_test_data): New variable.
850         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
851         (acos_upward_test_data): New variable.
852         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
853         (acosh_test_data): New variable.
854         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
855         (asin_test_data): New variable.
856         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
857         (asin_tonearest_test_data): New variable.
858         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
859         (asin_towardzero_test_data): New variable.
860         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
861         (asin_downward_test_data): New variable.
862         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
863         (asin_upward_test_data): New variable.
864         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
865         (asinh_test_data): New variable.
866         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
867         (atan_test_data): New variable.
868         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
869         (atanh_test_data): New variable.
870         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
871         (cbrt_test_data): New variable.
872         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
873         (ceil_test_data): New variable.
874         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
875         (cos_test_data): New variable.
876         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
877         (cos_tonearest_test_data): New variable.
878         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
879         (cos_towardzero_test_data): New variable.
880         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
881         (cos_downward_test_data): New variable.
882         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
883         (cos_upward_test_data): New variable.
884         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
885         (cosh_test_data): New variable.
886         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
887         (cosh_tonearest_test_data): New variable.
888         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
889         (cosh_towardzero_test_data): New variable.
890         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
891         (cosh_downward_test_data): New variable.
892         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
893         (cosh_upward_test_data): New variable.
894         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
895         (erf_test_data): New variable.
896         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
897         (erfc_test_data): New variable.
898         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
899         (exp_test_data): New variable.
900         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
901         (exp_tonearest_test_data): New variable.
902         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
903         (exp_towardzero_test_data): New variable.
904         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
905         (exp_downward_test_data): New variable.
906         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
907         (exp_upward_test_data): New variable.
908         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
909         (exp10_test_data): New variable.
910         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
911         (exp2_test_data): New variable.
912         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
913         (expm1_test_data): New variable.
914         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
915         (fabs_test_data): New variable.
916         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
917         (floor_test_data): New variable.
918         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
919         (j0_test_data): New variable.
920         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
921         (j1_test_data): New variable.
922         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
923         (log_test_data): New variable.
924         (log_test): Run tests with RUN_TEST_LOOP_f_f.
925         (log10_test_data): New variable.
926         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
927         (log1p_test_data): New variable.
928         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
929         (log2_test_data): New variable.
930         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
931         (logb_test_data): New variable.
932         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
933         (logb_downward_test_data): New variable.
934         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
935         (nearbyint_test_data): New variable.
936         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
937         (rint_test_data): New variable.
938         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
939         (rint_tonearest_test_data): New variable.
940         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
941         (rint_towardzero_test_data): New variable.
942         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
943         (rint_downward_test_data): New variable.
944         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
945         (rint_upward_test_data): New variable.
946         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
947         (round_test_data): New variable.
948         (round_test): Run tests with RUN_TEST_LOOP_f_f.
949         (sin_test_data): New variable.
950         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
951         (sin_tonearest_test_data): New variable.
952         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
953         (sin_towardzero_test_data): New variable.
954         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
955         (sin_downward_test_data): New variable.
956         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
957         (sin_upward_test_data): New variable.
958         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
959         (sinh_test_data): New variable.
960         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
961         (sinh_tonearest_test_data): New variable.
962         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
963         (sinh_towardzero_test_data): New variable.
964         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
965         (sinh_downward_test_data): New variable.
966         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
967         (sinh_upward_test_data): New variable.
968         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
969         (sqrt_test_data): New variable.
970         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
971         (tan_test_data): New variable.
972         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
973         (tan_tonearest_test_data): New variable.
974         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
975         (tan_towardzero_test_data): New variable.
976         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
977         (tan_downward_test_data): New variable.
978         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
979         (tan_upward_test_data): New variable.
980         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
981         (tanh_test_data): New variable.
982         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
983         (tgamma_test_data): New variable.
984         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
985         (trunc_test_data): New variable.
986         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
987         (y0_test_data): New variable.
988         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
989         (y1_test_data): New variable.
990         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
991         (significand_test_data): New variable.
992         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
993
994 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
995
996         [BZ #12387]
997         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
998
999 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1000
1001         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
1002
1003 2013-05-10  Andreas Jaeger  <aj@suse.de>
1004
1005         [BZ #15448]
1006         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
1007         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
1008
1009 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1010
1011         * math/gen-libm-test.pl (adjust_arg): New function.
1012         (special_functions): Handle generating output in both functions
1013         and arrays.
1014         (parse_args): Likewise.
1015         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
1016         $in_func argument to parse_args.
1017         * math/libm-test.inc (struct test_f_f_data): New type.
1018         (IF_ROUND_INIT_): New macro.
1019         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
1020         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1021         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1022         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1023         (ROUND_RESTORE_): Likewise.
1024         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
1025         (ROUND_RESTORE_FE_TONEAREST): Likewise.
1026         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
1027         (ROUND_RESTORE_FE_UPWARD): Likewise.
1028         (RUN_TEST_LOOP_f_f): New macro.
1029         (acos_test_data): New variable.
1030         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
1031         (acos_tonearest_test_data): New variable.
1032         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
1033
1034 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1035
1036         * benchtests/bench-skeleton.c (startup): Fix coding style.
1037
1038 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
1039
1040         [BZ #6809]
1041         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
1042         negative infinity argument.
1043         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
1044         negative infinity argument.
1045         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
1046         negative infinity argument.
1047         * math/libm-test.inc (tgamma_test): Expect errno to be set for
1048         domain errors.
1049
1050 2013-05-10  Florian Weimer  <fweimer@redhat.com>
1051
1052         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
1053         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
1054         * iconv/iconv_prog.c (main): Likewise.
1055         * locale/programs/charmap-dir.c (charmap_readdir)
1056         (fopen_uncompressed): Likewise.
1057         * locale/programs/locfile.c (siblings_uncached)
1058         (write_locale_data): Use lstat64 instead of lstat.
1059         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
1060         stat.
1061
1062 2013-05-10  Andreas Jaeger  <aj@suse.de>
1063
1064         [BZ #15395]
1065         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
1066         localization.
1067         Include <locale.h>.
1068
1069 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
1070
1071         * elf/dl-close.c (_dl_close_worker): Add comments.
1072
1073 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
1074
1075         [BZ #15359]
1076         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
1077         high part of pi/2.
1078         (__ieee754_rem_pio2l): Update comments.
1079
1080         [BZ #15429]
1081         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
1082         high part of pi/2.
1083         (__ieee754_rem_pio2l): Update comments.
1084
1085         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
1086         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
1087
1088         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
1089         M_PI_4l.
1090
1091         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
1092         (M_PI_34_LOG10El): Likewise.
1093         (M_PI2_LOG10El): Likewise.
1094         (M_PI4_LOG10El): Likewise.
1095         (M_PI_LOG10El): Likewise.
1096
1097 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1098
1099         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1100
1101 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
1102
1103         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
1104         (MINUS_ZERO_INIT): Likewise.
1105         (PLUS_INFTY_INIT): Likewise.
1106         (MINUS_INFTY_INIT): Likewise.
1107         (QNAN_VALUE_INIT): Likewise.
1108         (MAX_VALUE_INIT): Likewise.
1109         (MIN_VALUE_INIT): Likewise.
1110         (MIN_SUBNORM_VALUE_INIT): Likewise.
1111         (plus_zero): Initialize with PLUS_ZERO_INIT.
1112         (minus_zero): Initialize with MINUS_ZERO_INIT.
1113         (plus_infty): Initialize with PLUS_INFTY_INIT.
1114         (minus_infty): Initialize with MINUS_INFTY_INIT.
1115         (qnan_value): Initialize with QNAN_VALUE_INIT.
1116         (max_value): Initialize with MAX_VALUE_INIT.
1117         (min_value): Initialize with MIN_VALUE_INIT.
1118         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
1119
1120         * math/libm-test.inc (RUN_TEST_if_f): New macro.
1121         (jn_test): Use TEST_if_f instead of TEST_ff_f.
1122         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
1123         (yn_test): Use TEST_if_f instead of TEST_ff_f.
1124
1125         * math/libm-test.inc (RUN_TEST_f_f): New macro.
1126         (RUN_TEST_2_f): Likewise.
1127         (RUN_TEST_ff_f): Likewise.
1128         (RUN_TEST_fi_f): Likewise.
1129         (RUN_TEST_fl_f): Likewise.
1130         (RUN_TEST_fff_f): Likewise.
1131         (RUN_TEST_c_f): Likewise.
1132         (RUN_TEST_f_f1): Likewise.
1133         (RUN_TEST_fF_f1): Likewise.
1134         (RUN_TEST_fI_f1): Likewise.
1135         (RUN_TEST_ffI_f1): Likewise.
1136         (RUN_TEST_c_c): Likewise.
1137         (RUN_TEST_cc_c): Likewise.
1138         (RUN_TEST_f_i): Likewise.
1139         (RUN_TEST_f_i_tg): Likewise.
1140         (RUN_TEST_ff_i_tg): Likewise.
1141         (RUN_TEST_f_b): Likewise.
1142         (RUN_TEST_f_b_tg): Likewise.
1143         (RUN_TEST_f_l): Likewise.
1144         (RUN_TEST_f_L): Likewise.
1145         (RUN_TEST_sincos): Likewise.
1146         * math/gen-libm-test.pl (new_test): Take new argument to indicate
1147         whether to show exceptions.  Do not include ");\n" in return
1148         value.
1149         (special_functions): Output call to RUN_TEST_sincos instead of
1150         check_float calls.  Update calls to new_test.
1151         (parse_args): Output call to single RUN_TEST_* macro instead of
1152         check_* calls and other assignments.  Update calls to new_test.
1153
1154         [BZ #2546]
1155         [BZ #2560]
1156         [BZ #5159]
1157         [BZ #15426]
1158         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
1159         input to result for tgamma overflow.
1160         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
1161         (gamma_coeff): New variable.
1162         (NCOEFF): New macro.
1163         (gamma_positive): New function.
1164         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
1165         underflow here.  Use gamma_positive instead of exp (lgamma) for
1166         other arguments.
1167         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
1168         (gamma_coeff): New variable.
1169         (NCOEFF): New macro.
1170         (gammaf_positive): New function.
1171         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
1172         underflow here.  Use gamma_positive instead of exp (lgamma) for
1173         other arguments.
1174         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
1175         (gamma_coeff): New variable.
1176         (NCOEFF): New macro.
1177         (gammal_positive): New function.
1178         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
1179         underflow here.  Use gamma_positive instead of exp (lgamma) for
1180         other arguments.
1181         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
1182         (gamma_coeff): New variable.
1183         (NCOEFF): New macro.
1184         (gammal_positive): New function.
1185         (__ieee754_gammal_r): Handle positive infinity, overflow and
1186         underflow here.  Handle NaN the same as positive infinity.  Remove
1187         check x < 0xffffffff for negative integers.  Use gamma_positive
1188         instead of exp (lgamma) for other arguments.
1189         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
1190         (gamma_coeff): New variable.
1191         (NCOEFF): New macro.
1192         (gammal_positive): New function.
1193         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
1194         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
1195         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
1196         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
1197         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1198         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
1199         * sysdeps/generic/math_private.h (__gamma_productf): New
1200         prototype.
1201         (__gamma_product): Likewise.
1202         (__gamma_productl): Likewise.
1203         * math/Makefile (libm-calls): Add gamma_product.
1204         * math/libm-test.inc (tgamma_test): Add more tests.
1205         * sysdeps/i386/fpu/libm-test-ulps: Update.
1206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1207
1208 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
1209
1210         * benchtests/bench-skeleton.c (main): Preheat CPU.
1211
1212 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
1213
1214         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
1215
1216 2013-05-07  Roland McGrath  <roland@hack.frob.com>
1217
1218         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
1219         and _dl_skip_args_internal.
1220
1221 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
1222
1223         * manual/message.texi (Message Translation): Talk about users.
1224         Message to key mapping impacts design.
1225
1226 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1227
1228         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
1229
1230         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
1231
1232         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
1233         * sysdeps/wordsize-64/glob64.c: ... here.
1234
1235         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
1236         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
1237         New macros.
1238
1239         * debug/getlogin_r_chk.c: Moved to ...
1240         * login/getlogin_r_chk.c: ... here.
1241         * debug/Makefile (routines): Move getlogin_r_chk to ...
1242         * login/Makefile (routines): ... here.
1243         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
1244         * login/Versions (libc: GLIBC_2.4): ... here.
1245
1246         * io/poll.c (__poll): Renamed from poll.
1247         Add libc_hidden_def.
1248         (poll): Define as weak alias.
1249
1250         * debug/ptsname_r_chk.c: Moved to ...
1251         * login/ptsname_r_chk.c: ... here.
1252         * debug/Makefile (routines): Move ptsname_r_chk to ...
1253         * login/Makefile (routines): ... here.
1254         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
1255         * login/Versions (libc: GLIBC_2.4): ... here.
1256
1257         * posix/getlogin.c: Moved to ...
1258         * login/getlogin.c: ... here.
1259         * posix/getlogin_r.c: Moved to ...
1260         * login/getlogin_r.c: ... here.
1261         * posix/getlogin_r.c: Moved to ...
1262         * login/getlogin_r.c: ... here.
1263         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
1264         * login/Makefile (routines): ... here.
1265         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
1266         * login/Versions (libc: GLIBC_2.0): ... here.
1267
1268         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
1269         (setrlimit): Define as weak alias.
1270
1271         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
1272         Call __ names for open, ftruncate, and close.
1273         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
1274         (truncate): Define as weak alias.
1275
1276 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
1277
1278         * math/gen-libm-test.pl (parse_args): Initialize x before each
1279         test of frexp, modf and remquo.
1280
1281         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
1282         test signgam value.
1283
1284 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1285
1286         [BZ #15418]
1287         [BZ #15419]
1288         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
1289         internal tests.
1290         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1291
1292 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1293
1294         * elf/dl-writev.h: New file.
1295         * elf/dl-misc.c: Include it.
1296         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
1297         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
1298
1299 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
1300
1301         * math/libm-test.inc (noXFails): Remove variable.
1302         (noXPasses): Likewise.
1303         (BUILD_COMPLEX_INT): Remove macro.
1304         (print_screen): Remove xfail argument.
1305         (print_screen_max_error): Likewise.
1306         (update_stats): Likewise.
1307         (print_max_error): Likewise.  Update calls to other affected
1308         functions.
1309         (print_complex_max_error): Likewise.
1310         (test_single_exception): Update calls to print_screen.
1311         (test_single_errno): Likewise.
1312         (check_float_internal): Remove xfail argument.  Update calls to
1313         other affected functions.
1314         (check_float): Likewise.
1315         (check_complex): Likewise.
1316         (check_int): Likewise.
1317         (check_long): Likewise.
1318         (check_bool): Likewise.
1319         (check_longlong): Likewise.
1320         (main): Don't print noXFails and noXPasses.
1321         * math/gen-libm-test.pl (top level): Don't mention expected
1322         failure handling in comment.
1323         (new_test): Don't handle expected failures.
1324         (parse_args): Don't mention expected failure handling in comment.
1325         (generate_testfile): Don't handle expected failures.
1326         (parse_ulps): Likewise.
1327         (print_ulps_file): Likewise.
1328         (get_failure): Remove function.
1329         (output_test): Don't handle expected failures.
1330         * make/README.libm-test: Don't mention expected failure handling.
1331
1332         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
1333         (minus_zero): Likewise.
1334         (plus_infty): Likewise.
1335         (minus_infty): Likewise.
1336         (qnan_value): Likewise.
1337         (max_value): Likewise.
1338         (min_value): Likewise.
1339         (min_subnorm_value): Likewise.
1340         (initialize): Do not initialize those variables dynamically.
1341
1342 2013-05-03  Roland McGrath  <roland@hack.frob.com>
1343
1344         * io/open.c (__open_2): Moved to ...
1345         * io/open_2.c: ... this new file.
1346         * io/open64.c (__open64_2): Moved to ...
1347         * io/open64_2.c: ... this new file.
1348         * io/openat.c (__openat_2): Moved to ...
1349         * io/openat_2.c: ... this new file.
1350         * io/openat64.c (__openat64_2): Moved to ...
1351         * io/openat64_2.c: ... this new file.
1352         * io/Makefile (routines): Add them.
1353         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
1354         * sysdeps/unix/sysv/linux/open_2.c: File removed.
1355         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
1356         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
1357         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
1358         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
1359         (__openat64): Add hidden_ver.
1360         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
1361         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
1362
1363         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1364         Separately conditionalize setting of GLRO(dl_sysinfo) so
1365         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
1366         as well, but the actual setting is only under [NEED_DL_SYSINFO].
1367
1368 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1369
1370         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
1371         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
1372         definition.
1373         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
1374         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1375         (_libc_vdso_platform_setup): Add __vdso_time initialization.
1376         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
1377         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
1378
1379 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
1380
1381         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
1382         test signgam value.
1383
1384         * math/libm-test.inc (hypot_test): Do not use
1385         IGNORE_ZERO_INF_SIGN.
1386
1387 2013-05-03  Andreas Jaeger  <aj@suse.de>
1388
1389         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
1390         Linux 3.9.
1391         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
1392         (PF_MAX): Adjust for VSOCK change.
1393
1394 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1395
1396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1397
1398 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
1399
1400         [BZ #15264]
1401         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
1402         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
1403         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
1404
1405 2013-05-02  David S. Miller  <davem@davemloft.net>
1406
1407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1408
1409 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
1410
1411         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
1412
1413 2013-05-01  Roland McGrath  <roland@hack.frob.com>
1414
1415         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
1416
1417 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
1418
1419         [BZ #14952]
1420         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
1421         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1422         Use __attribute__ ((__gnu_inline__)).
1423         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1424         Don't use __attribute__ ((__gnu_inline__)).
1425
1426 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
1427
1428         [BZ #15423]
1429         * math/s_catan.c (__catan): Handle small real or imaginary part of
1430         input specially to avoid spurious underflow.
1431         * math/s_catanf.c (__catanf): Likewise.
1432         * math/s_catanh.c (__catanh): Likewise.
1433         * math/s_catanhf.c (__catanhf): Likewise.
1434         * math/s_catanhl.c (__catanhl): Likewise.
1435         * math/s_catanl.c (__catanl): Likewise.
1436         * math/libm-test.inc (catan_test): Add more tests.
1437         (catanh_test): Likewise.
1438         * sysdeps/i386/fpu/libm-test-ulps: Update.
1439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1440
1441 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1442
1443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1444
1445 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
1446
1447         [BZ #15416]
1448         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
1449         accurately for denominator in atan2.
1450         * math/s_catanf.c (__catanf): Likewise.
1451         * math/s_catanh.c (__catanh): Likewise.
1452         * math/s_catanhf.c (__catanhf): Likewise.
1453         * math/s_catanhl.c (__catanhl): Likewise.
1454         * math/s_catanl.c (__catanl): Likewise.
1455         * math/libm-test.inc (catan_test): Add more tests.
1456         (catanh_test): Likewise.
1457         * sysdeps/i386/fpu/libm-test-ulps: Update.
1458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1459
1460 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1461
1462         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
1463
1464         * benchtests/Makefile (bench): Remove slow benchmarks.
1465         * benchtests/atan-inputs: Add slow benchmark inputs.
1466         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
1467         (BENCH_FUNC): Accept variant offset.
1468         (VARIANT): Define.
1469         * benchtests/bench-skeleton.c (main): Run benchmark for each
1470         variant.
1471         * benchtests/cos-inputs: Add slow benchmark inputs.
1472         * benchtests/exp-inputs: Likewise.
1473         * benchtests/pow-inputs: Likewise.
1474         * benchtests/sin-inputs: Likewise.
1475         * benchtests/slowatan-inputs: Remove.
1476         * benchtests/slowatan.c: Remove.
1477         * benchtests/slowcos-inputs: Remove.
1478         * benchtests/slowcos.c: Remove.
1479         * benchtests/slowexp-inputs: Remove.
1480         * benchtests/slowexp.c: Remove.
1481         * benchtests/slowpow-inputs: Remove.
1482         * benchtests/slowpow.c: Remove.
1483         * benchtests/slowsin-inputs: Remove.
1484         * benchtests/slowsin.c: Remove.
1485         * benchtests/slowtan-inputs: Remove.
1486         * benchtests/slowtan.c: Remove.
1487         * benchtests/tan-inputs: Add slow benchmark inputs.
1488         * scripts/bench.pl: Parse comments and directives.
1489
1490         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
1491         in CPPFLAGS.
1492         ($(objpfx)bench-%.c): Remove *-ITER.
1493         * benchtests/bench-modf.c: Remove definition of ITER.
1494         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
1495         (main): Loop for DURATION seconds instead of fixed number of
1496         iterations.
1497         * scripts/bench.pl: Don't expect iterations in parameters.
1498
1499 2013-04-29  Roland McGrath  <roland@hack.frob.com>
1500
1501         * io/fchdir.c (__fchdir): Renamed from fchdir.
1502         (fchdir): Define as weak alias.
1503
1504 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1505
1506         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
1507         (ERRNO_EDOM): Likewise.
1508         (ERRNO_ERANGE): Likewise.
1509         (noErrnoTests): New variable.
1510         (init_max_error): Set errno to 0.
1511         (test_single_errno): New function.
1512         (test_errno): Likewise.
1513         (check_float_internal): Call test_errno.  Set errno to 0.
1514         (check_complex): Refer to errno tests in comment.
1515         (check_int): Call test_errno.  Set errno to 0.
1516         (check_long): Likewise.
1517         (check_bool): Likewise.
1518         (check_longlong): Likewise.
1519         (cos_test): Use ERRNO_* flags for errno tests instead of
1520         check_int.
1521         (expm1_test): Likewise.
1522         (fmod_test): Likewise.
1523         (ilogb_test): Likewise.
1524         (lgamma_test): Likewise.
1525         (pow_test): Likewise.
1526         (remainder_test): Likewise.
1527         (sin_test): Likewise.
1528         (tan_test): Likewise.
1529         (yn_test): Likewise.
1530         (initialize): Set errno to 0.
1531         (main): Print number of errno tests.
1532         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
1533
1534 2013-04-29  Andreas Jaeger  <aj@suse.de>
1535
1536         [BZ #15084]
1537         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
1538         and RES_USEVC.
1539
1540         [BZ #15085]
1541         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
1542         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
1543         unimplemented.
1544
1545         [BZ #15380]
1546         * stdlib/random.c (__initstate): Return NULL if
1547         __initstate fails.
1548
1549         [BZ #15086]
1550         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
1551         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
1552         RES_SNGLKUPREOP.
1553
1554 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1555
1556         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1557
1558 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1559
1560         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
1561         of individual tests.
1562         (casin_test): Likewise.
1563         (casinh_test): Likewise.
1564
1565 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
1566
1567         [BZ #15409]
1568         * math/s_catan.c (__catan): Handle arguments with large real or
1569         imaginary part separately without squaring.
1570         * math/s_catanf.c (__catanf): Likewise.
1571         * math/s_catanh.c (__catanh): Likewise.
1572         * math/s_catanhf.c (__catanhf): Likewise.
1573         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1574         and redefine.
1575         (__catanhl): Handle arguments with large real or imaginary part
1576         separately without squaring.
1577         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1578         and redefine.
1579         (__catanl): Handle arguments with large real or imaginary part
1580         separately without squaring.
1581         * math/libm-test.inc (catan_test): Add more tests.
1582         (catanh_test): Likewise.
1583         * sysdeps/i386/fpu/libm-test-ulps: Update.
1584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1585
1586 2013-04-27  Andreas Jaeger  <aj@suse.de>
1587
1588         [BZ #15007]
1589         * stdlib/stdlib.h: Update guards for qecvt.
1590         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
1591         <stdlib.h>.
1592
1593 2013-04-27  Allan McRae  <allan@archlinux.org>
1594
1595         * sysdeps/i386/fpu/libm-test-ulps: Update.
1596
1597 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
1598
1599         [BZ #15406]
1600         * math/s_catan.c: Include <float.h>.
1601         (__catan): Ensure underflow exception occurs for underflowed
1602         result.
1603         * math/s_catanf.c: Include <float.h>.
1604         (__catanf): Ensure underflow exception occurs for underflowed
1605         result.
1606         * math/s_catanh.c: Include <float.h>.
1607         (__catanh): Ensure underflow exception occurs for underflowed
1608         result.
1609         * math/s_catanhf.c: Include <float.h>.
1610         (__catanhf): Ensure underflow exception occurs for underflowed
1611         result.
1612         * math/s_catanhl.c: Include <float.h>.
1613         (__catanhl): Ensure underflow exception occurs for underflowed
1614         result.
1615         * math/s_catanl.c: Include <float.h>.
1616         (__catanl): Ensure underflow exception occurs for underflowed
1617         result.
1618         * math/libm-test.inc (catan_test): Add more tests.
1619         (catanh_test): Likewise.
1620
1621         [BZ #15405]
1622         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
1623         underflowed result.
1624         * math/s_ccoshf.c (__ccoshf): Likewise.
1625         * math/s_ccoshl.c (__ccoshl): Likewise.
1626         * math/s_csin.c (__csin): Likewise.
1627         * math/s_csinf.c (__csinf): Likewise.
1628         * math/s_csinh.c (__csinh): Likewise.
1629         * math/s_csinhf.c (__csinhf): Likewise.
1630         * math/s_csinhl.c (__csinhl): Likewise.
1631         * math/s_csinl.c (__csinl): Likewise.
1632         * math/libm-test.inc (ccos_test): Add more tests.
1633         (ccosh_test): Likewise.
1634         (csin_test): Likewise.
1635         (csinh_test): Likewise.
1636
1637 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1638
1639         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1640         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1641         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1642         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1643         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1644         powerpc/power5+/fpu folders.
1645         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1646
1647
1648 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1649
1650         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1651
1652 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1653
1654         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1655         additions to variable.
1656         [$(config-machine) = x86_64] (modules-names): Likewise.
1657         ($(objpfx)tst-audit3): Remove dependency.
1658         ($(objpfx)tst-audit3.out): Likewise.
1659         ($(objpfx)tst-audit4): Likewise.
1660         ($(objpfx)tst-audit4.out): Likewise.
1661         ($(objpfx)tst-audit5): Likewise.
1662         ($(objpfx)tst-audit5.out): Likewise.
1663         ($(objpfx)tst-audit6): Likewise.
1664         ($(objpfx)tst-audit6.out): Likewise.
1665         ($(objpfx)tst-audit7): Likewise.
1666         ($(objpfx)tst-audit7.out): Likewise.
1667         (tst-audit3-ENV): Remove variable.
1668         (tst-audit4-ENV): Likewise.
1669         (tst-audit5-ENV): Likewise.
1670         (tst-audit6-ENV): Likewise.
1671         (tst-audit7-ENV): Likewise.
1672         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1673         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1674         addition to variable.
1675         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1676         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1677         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1678         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1679         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1680         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1681         tst-audit3, tst-audit4 and tst-audit5.
1682         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1683         tst-audit6 and tst-audit7.
1684         [$(subdir) = elf] (modules-names): Add audit modules for those
1685         tests.
1686         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1687         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1688         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1689         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1690         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1691         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1692         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1693         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1694         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1695         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1696         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1697         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1698         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1699         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1700         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1701         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1702         Likewise.
1703         [$(subdir) = elf && $(config-cflags-avx) = yes]
1704         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1705         [$(subdir) = elf && $(config-cflags-avx) = yes]
1706         (CFLAGS-tst-auditmod4a.c): Likewise.
1707         [$(subdir) = elf && $(config-cflags-avx) = yes]
1708         (CFLAGS-tst-auditmod4b.c): Likewise.
1709         [$(subdir) = elf && $(config-cflags-avx) = yes]
1710         (CFLAGS-tst-auditmod6b.c): Likewise.
1711         [$(subdir) = elf && $(config-cflags-avx) = yes]
1712         (CFLAGS-tst-auditmod6c.c): Likewise.
1713         [$(subdir) = elf && $(config-cflags-avx) = yes]
1714         (CFLAGS-tst-auditmod7b.c): Likewise.
1715         * elf/tst-audit3.c: Move to ...
1716         * sysdeps/x86_64/tst-audit3.c: ... here.
1717         * elf/tst-audit4.c: Move to ...
1718         * sysdeps/x86_64/tst-audit4.c: ... here.
1719         * elf/tst-audit5.c: Move to ...
1720         * sysdeps/x86_64/tst-audit5.c: ... here.
1721         * elf/tst-audit6.c: Move to ...
1722         * sysdeps/x86_64/tst-audit6.c: ... here.
1723         * elf/tst-audit7.c: Move to ...
1724         * sysdeps/x86_64/tst-audit7.c: ... here.
1725         * elf/tst-auditmod3a.c: Move to ...
1726         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1727         * elf/tst-auditmod3b.c: Move to ...
1728         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1729         * elf/tst-auditmod4a.c: Move to ...
1730         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1731         * elf/tst-auditmod4b.c: Move to ...
1732         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1733         * elf/tst-auditmod5a.c: Move to ...
1734         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1735         * elf/tst-auditmod5b.c: Move to ...
1736         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1737         * elf/tst-auditmod6a.c: Move to ...
1738         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1739         * elf/tst-auditmod6b.c: Move to ...
1740         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1741         * elf/tst-auditmod6c.c: Move to ...
1742         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1743         * elf/tst-auditmod7a.c: Move to ...
1744         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1745         * elf/tst-auditmod7b.c: Move to ...
1746         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1747
1748 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1749
1750         [BZ #15366]
1751         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1752         define unconditionally.
1753         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1754         define unconditionally.
1755         (INT8_C, INT16_C, etc.): Likewise.
1756
1757 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1758
1759         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1760         __ehdr_start with hidden visibility.
1761
1762         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1763
1764 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1765
1766         * math/libm-test.inc (cos_test): Use accurate hex constants.
1767         (sincost_test): Likewise.
1768
1769 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1770
1771         * math/libm-test.inc (catan_test): Add more tests.
1772         (catanh_test): Likewise.
1773
1774         * math/s_catanf.c (__catanf): Use suffixed floating-point
1775         constants.
1776         * math/s_catanhf.c (__catanhf): Likewise.
1777         * math/s_catanhl.c (__catanhl): Likewise.
1778         * math/s_catanl.c (__catanl): Likewise.
1779
1780         [BZ #15394]
1781         * math/s_catan.c (__catan): Calculate imaginary part of result
1782         with log1p not log unless computing log of number close to 0.
1783         * math/s_catanf.c (__catanf): Likewise.
1784         * math/s_catanl.c (__catanl): Likewise.
1785         * math/s_catanh.c (__catanh): Calculate real part of result with
1786         log1p not log unless computing log of number close to 0.
1787         * math/s_catanhf.c (__catanhf): Likewise.
1788         * math/s_catanhl.c (__catanhl): Likewise.
1789         * math/libm-test.inc (catan_test): Add more tests.
1790         (catanh_test): Likewise.
1791         * sysdeps/i386/fpu/libm-test-ulps: Update.
1792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1793
1794 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1795
1796         * benchtests/Makefile: Mention files in which fast and slow
1797         paths of math functions are implemented.
1798
1799 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1800
1801         * sysdeps/posix/timespec_get.c: New file.
1802
1803 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1804
1805         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1806         POWER.
1807         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1808         for POWER.
1809         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1810         powerpc/power5/fpu folders.
1811         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1812         * benchtests/Makefile: Add modf testcase.
1813         * benchtests/bench-modf.c: New file: Benchmark test for mo
1814
1815 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1816
1817         [BZ #14888]
1818         * time/Makefile (tests): Add tst-strptime-whitespace.
1819         * time/strptime_l.c (get_number): Use ISSPACE.
1820         (__strptime_internal): Likewise.
1821         * time/tst-strptime-whitespace.c: New test case.
1822
1823 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1824
1825         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1826         member.
1827         (_nss_files_init): Set it here.
1828
1829 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1830
1831         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1832         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1833         unsigned.
1834
1835 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1836
1837         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1838
1839 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1840
1841         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1842         size just once.
1843
1844 2013-04-21  David S. Miller  <davem@davemloft.net>
1845
1846         * po/ru.po: Update Russion translation from translation project.
1847
1848 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1849
1850         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1851         and setfsgid.
1852
1853 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1854
1855         * configure.in: Remove i386 configure warning. Remove i386 case.
1856         * configure: Regenerate.
1857         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1858         Add example to error message.
1859         * sysdeps/i386/configure: Regenerate.
1860
1861 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1862
1863         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1864         slowtan.
1865         * benchtests/cos-inputs: New file.
1866         * benchtests/slowcos-inputs: New file.
1867         * benchtests/slowcos.c: New file.
1868         * benchtests/slowtan-inputs: New file.
1869         * benchtests/slowtan.c: New file.
1870         * benchtests/tan-inputs: New file.
1871
1872 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1873
1874         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1875         considered kosher.
1876
1877 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1878
1879         * benchtests/Makefile: Include cppflags-iterator.mk to add
1880         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1881
1882         * Makefile.in (bench-clean): New target.
1883         * benchtests/Makefile (bench-clean): Likewise.
1884
1885 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1886
1887         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1888
1889 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1890
1891         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1892
1893 2013-04-15  Andreas Schwab  <schwab@suse.de>
1894
1895         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1896         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1897         * nscd/pwdcache.c (cache_addpw): Likewise.
1898         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1899         more than recsize.
1900
1901 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1902
1903         * benchtests/Makefile (bench): Write all output to
1904         bench-out.tmp together.
1905
1906 2013-04-15  Andreas Schwab  <schwab@suse.de>
1907
1908         * nscd/nscd.c (main): Don't fork again after closing files.
1909
1910 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1911
1912         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1913
1914         * benchtests/Rules (bench-deps): Collect dependencies into a
1915         single variable.  Add Makefile to dependencies.
1916         ($(objpfx)bench-%.c): Depend on bench-deps.
1917
1918 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1919             Xavier Roche  <roche+kml2@exalead.com>
1920
1921         [BZ #15361]
1922         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1923         just that it's a file descriptor.
1924         * manual/llio.texi (Synchronizing AIO Operations): Update description
1925         for EBADF error from aio_fsync.
1926
1927 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1928
1929         * Rules (bench): Move target definition...
1930         * benchtests/Makefile: ... here.
1931
1932 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1933
1934         * math/libm-test.inc (cos_test): Fix PI/2 test.
1935         (sincos_test): Likewise.
1936         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1937         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1938
1939 2013-04-11  Andreas Schwab  <schwab@suse.de>
1940
1941         [BZ #13988]
1942         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1943         accept exponent character only when digits were seen.
1944         * stdio-common/Makefile (tests): Add bug26.
1945         * stdio-common/bug26.c: New file.
1946
1947         [BZ #14293]
1948         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1949         non-freeable.
1950
1951 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1952
1953         * Makeconfig (rtld-prefix): Define built linker prefix.
1954         * Rules (run-bench): Use it.
1955         * math/Makefile (run-regen-ulps): Likewise.
1956
1957         * Rules (bench): Remove eval.
1958
1959 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1960             Roland McGrath  <roland@hack.frob.com>
1961             Ondrej Bilka  <neleai@seznam.cz>
1962
1963         [BZ #15346]
1964         * time/getdate.c: Include ctype.h and alloca.h.
1965         (__getdate_r): Trim leading and trailing spaces of input.
1966         * time/tst-getdate.c (tests): Add tests with leading and
1967         trailing spaces.
1968
1969 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1970
1971         [BZ #14280]
1972         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1973         when computing value.
1974
1975 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1976
1977         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1978         Use testrun.sh to run libm tests.
1979
1980         [BZ #15309]
1981         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1982
1983 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1984
1985         [BZ #15264]
1986         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1987
1988 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1989
1990         * Makefile.in (regen-ulps): New target.
1991         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1992         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1993         [ifneq (no,$(PERL)] (regen-ulps): New target.
1994         [ifeq (no,$(PERL)] (regen-ulps): New target.
1995         * math/libm-test.inc (ulps_file_name): Define.
1996         (output_dir): New variable.
1997         (options): Add "output-dir" option.
1998         (parse_opt): Handle 'o' case.
1999         (main): If output_dir is non-NULL use it as a prefix
2000         otherwise use "".
2001         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
2002
2003 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2004
2005         [BZ #10060, #10062]
2006         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
2007         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
2008         fail configure if __sync_val_compare_and_swap is not inlined.
2009         * sysdeps/i386/configure: Regenerate.
2010         * configure.in: Build for i686 when configured for i386.
2011         * configure: Regenerate.
2012         * README: Remove i386 reference.
2013
2014 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
2015
2016         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
2017         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2018
2019 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
2020
2021         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
2022         (lmsnanval): New variables.
2023         (F): Add conversion tests.
2024         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
2025         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
2026
2027         * stdio-common/tstdiomisc.c (F): Properly collect individual
2028         tests' results.
2029
2030         [BZ #14686, #15336]
2031         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
2032         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
2033         Instead, use input NaN values or generate a qNaN by arithmetic
2034         operation.  Also fix bugs to comply with the standard.
2035         * math/libm-test.inc (remainder_test): Add more tests.
2036
2037         [BZ #15335, #15342]
2038         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
2039         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
2040         input NaN values or generate a qNaN by arithmetic operation.
2041
2042         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
2043         unreachable code.
2044
2045         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
2046         definitions.
2047
2048 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
2049
2050         [BZ #14478]
2051         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
2052         underflowed result.
2053         * math/s_cexpf.c (__cexpf): Likewise.
2054         * math/s_cexpl.c (__cexpl): Likewise.
2055         * math/libm-test.inc (cexp_test): Add more tests.
2056
2057 2013-04-03  Andreas Schwab  <schwab@suse.de>
2058
2059         [BZ #15330]
2060         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
2061         order arrays from heap if bigger than alloca cutoff.
2062
2063 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2064
2065         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
2066         (SNAN_TESTS_double): Refer to GCC PR56831.
2067         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
2068         GCC PR56828.
2069
2070 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2071
2072         * Rules (bench): Move bench.out after the run is complete.
2073
2074         * Rules (bench): Echo currently running benchmark.
2075
2076         * benchtests/Makefile (bench): Add atan and slowatan.
2077         * benchtests/atan-inputs: New file.
2078         * benchtests/slowatan-inputs: New file.
2079         * benchtests/slowatan.c: New file.
2080
2081         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
2082         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
2083         its value.
2084
2085         [BZ #15305]
2086         * sysdeps/unix/sysv/linux/kernel-features.h
2087         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
2088         __ASSUME_XFS_RESTRICTED_CHOWN.
2089         * sysdeps/unix/sysv/linux/pathconf.c
2090         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
2091         Save and restore errno.
2092
2093 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
2094
2095         [BZ #15327]
2096         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
2097         arguments using __kernel_casinh.
2098         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
2099         arguments using __kernel_casinhf.
2100         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
2101         arguments using __kernel_casinhl.
2102         * math/libm-test.inc (cacosh_test): Add more tests.
2103         * sysdeps/i386/fpu/libm-test-ulps: Update.
2104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2105
2106 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2107
2108         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
2109         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
2110
2111         * bench/Makefile (bench): Add sin and slowsin.
2112         * benchtests/sin-inputs: New file.
2113         * benchtests/slowsin-inputs: New file.
2114         * benchtests/slowsin.c: New file.
2115
2116         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
2117         (bench): Add slowexp and slowpow.
2118         (exp-ITER): Increase iterations.
2119         (pow-ITER): Likewise.
2120         * benchtests/exp-inputs: Change input.
2121         * benchtests/pow-inputs: Likewise.
2122         * benchtests/slowexp-inputs: New file.
2123         * benchtests/slowexp.c: New file.
2124         * benchtests/slowpow-inputs: New file.
2125         * benchtests/slowpow.c: New file.
2126
2127 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2128
2129         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
2130         instructions.
2131         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2132         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2133         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2134         * benchtests/Makefile: Add rint benchtest.
2135         * benchtests/rint-inputs: Input for rint benchtest.
2136
2137 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
2138
2139         * Versions.def (libm): Add GLIBC_2.18.
2140         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
2141         hidden libm prototypes.
2142         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
2143         * math/Makefile (libm-calls): Add s_issignaling.
2144         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
2145         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
2146         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
2147         declaration.
2148         * math/math.h [__USE_GNU] (issignaling): New macro.
2149         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
2150         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
2151         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
2152         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
2153         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
2154         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
2155         * manual/arith.texi (issignaling): New section.
2156         * manual/libm-err-tab.pl (@all_functions): Update comment.
2157         * math/gen-libm-test.pl (parse_args): Apply special handling for
2158         issignaling.
2159         * math/libm-test.inc (print_float, issignaling_test): New
2160         functions.
2161         (check_float_internal): Add issignaling checks.
2162         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
2163         default definition.
2164         * sysdeps/powerpc/math-tests.h: New file.
2165         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
2166         tests.
2167         * math/test-snan.c (TEST_FUNC): Likewise.
2168
2169 2013-03-30  David S. Miller  <davem@davemloft.net>
2170
2171         * po/de.po: Update from translation team.
2172
2173 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
2174
2175         [BZ #10357]
2176         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2177         imaginary part less than 1.0 and real part less than 0.5
2178         specially.
2179         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2180         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2181         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
2182         (cacos_test): Add more tests.
2183         (casin_test): Likewise.
2184         (casinh_test): Likewise.
2185         * sysdeps/i386/fpu/libm-test-ulps: Update.
2186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2187
2188 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2189
2190         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
2191         ONE with its value.
2192
2193         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
2194         (__pow_mp): Replace ONE and MONE with their values.
2195         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2196         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
2197         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2198         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
2199         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2200         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2201
2202         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
2203
2204         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
2205         (__pow_mp): Replace ZERO and MZERO with their values.
2206         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2207         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2208         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
2209         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
2210         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2211         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
2212         (__sqr): Likewise.
2213
2214         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
2215
2216         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
2217
2218 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2219
2220         * include/stdlib.h [!SHARED] (__call_tls_dtors):
2221         Declare with __attribute__ ((weak)).
2222         * stdlib/exit.c (__libc_atexit) [!SHARED]:
2223         Call __call_tls_dtors only if it's not NULL.
2224
2225 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2226
2227         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
2228         didn't do it already, then set _dl_phdr and _dl_phnum based on the
2229         magic __ehdr_start linker symbol if it's defined.
2230         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
2231         them up here if it was already done.
2232
2233         * elf/dl-support.c (_dl_phdr): Make pointer to const.
2234         (_dl_aux_init): Use const in cast when setting it.
2235         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
2236         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
2237         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
2238
2239         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
2240         Declare them here.
2241         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
2242         * csu/libc-tls.c: Nor here.
2243         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
2244
2245         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
2246         (__libc_message): Never call vsyslog.
2247
2248 2013-03-28  Alan Modra  <amodra@gmail.com>
2249
2250         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
2251         Define as empty.
2252         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
2253         Likewise.
2254
2255 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2256
2257         [BZ #15214]
2258         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
2259         underflow.
2260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2261
2262 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2263
2264         [BZ #15304]
2265         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
2266         Don't add gid passed as argument.
2267
2268         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
2269
2270 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
2271
2272         [BZ #15307]
2273         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2274         imaginary part between 1.0 and 1.5 and real part less than 0.5
2275         specially.
2276         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2277         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2278         * math/libm-test.inc (cacos_test): Add more tests.
2279         (casin_test): Likewise.
2280         (casinh_test): Likewise.
2281         * sysdeps/i386/fpu/libm-test-ulps: Update.
2282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2283
2284 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2285
2286         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
2287         constants.
2288         (norm): Likewise.
2289         (denorm): Likewise.
2290         (__dbl_mp): Likewise.
2291         (add_magnitudes): Likewise.
2292         (sub_magnitudes): Likewise.
2293         (__add): Likewise.
2294         (__sub): Likewise.
2295         (__mul): Likewise.
2296         (__sqr): Likewise.
2297         (__inv): Likewise.
2298         (__dvd): Likewise.
2299
2300         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
2301         commented code.
2302         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
2303         (__dubcos): Likewise.
2304         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
2305         (__ieee754_acos): Likewise.
2306         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2307         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
2308         (__exp1): Likewise.
2309         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2310         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2311         (log1): Likewise.
2312         (my_log2): Likewise.
2313         (checkint): Likewise.
2314         * sysdeps/ieee754/dbl-64/e_remainder.c
2315         (__ieee754_remainder): Likewise.
2316         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2317         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
2318         (bsloww): Likewise.
2319         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2320
2321         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2322         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
2323         MANTISSA_STORE_T to store computations on mantissa.  Use
2324         macros for rounding and division.
2325         (denorm): Likewise.
2326         (__dbl_mp): Likewise.
2327         (add_magnitudes): Likewise.
2328         (sub_magnitudes): Likewise.
2329         (__mul): Likewise.
2330         (__sqr): Likewise.
2331         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2332         powers of two in terms of TWOPOW macro.
2333         (mp_no): Make type of mantissa as MANTISSA_T.
2334         [!RADIXI]: Define RADIXI.
2335         [!TWO52]: Define TWO52.
2336         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2337
2338 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2339
2340         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
2341         llroundl symbol when building for PPC32.
2342
2343 2013-03-24  Mark H Weaver  <mhw@netris.org>
2344
2345         * manual/arith.texi (Normalization Functions): Fix prototypes for
2346         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
2347
2348 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2349
2350         [BZ #13889]
2351         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
2352         high value to check if expl overflow.
2353         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
2354         to check for underflow and overflow.
2355         * math/libm-test.inc: Add exp test.
2356
2357 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
2358
2359         [BZ #11120]
2360         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
2361         with NOT_IN_libc.
2362
2363 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2364
2365         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
2366         symbol.
2367
2368 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2369
2370         * math/gen-libm-test.pl (parse_args, special_functions): Properly
2371         wrap blocks consisting of several statements.
2372
2373         * sysdeps/generic/math-tests.h: New file.
2374         * sysdeps/i386/fpu/math-tests.h: Likewise.
2375         * math/test-snan.c: Include it.
2376         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
2377
2378 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2379
2380         [BZ #15285]
2381         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
2382         (__ieee754_j0l): Do not improve calculations using cos of twice
2383         input for inputs above LDBL_MAX / 2.0L.
2384         (__ieee754_y0l): Likewise.
2385         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
2386         (__ieee754_j1l): Do not improve calculations using cos of twice
2387         input for inputs above LDBL_MAX / 2.0L.
2388         (__ieee754_y1l): Likewise.
2389         * math/libm-test.inc (j0_test): Add another test.
2390         (j1_test): Likewise.
2391         (y0_test): Likewise.
2392         (y1_test): Likewise.
2393         * sysdeps/i386/fpu/libm-test-ulps: Update.
2394
2395 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2396
2397         * Rules ($(objpfx)bench-%.c): Include code from a C source
2398         file.
2399
2400 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2401
2402         [BZ #15287]
2403         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2404         imaginary part 1.0 and real part less than 0.5 specially.
2405         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2406         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2407         * math/libm-test.inc (cacos_test): Add more tests.
2408         (casin_test): Likewise.
2409         (casinh_test): Likewise.
2410         * sysdeps/i386/fpu/libm-test-ulps: Update.
2411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2412
2413 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2414
2415         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
2416         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
2417
2418 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
2419
2420         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
2421         * config.make.in (config-cflags-sse4): Remove variable.
2422         (config-cflags-avx): Likewise.
2423         (config-cflags-sse2avx): Likewise.
2424         (config-cflags-novzeroupper): Likewise.
2425         (config-asflags-i686): Likewise.
2426         (have-mfma4): Likewise.
2427         (have-as-vis3): Likewise.
2428         (MIG): Likewise.
2429         * configure.in (MIG): Do not AC_SUBST.
2430         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
2431         (libc_cv_cc_sse4): Do not AC_SUBST.
2432         (libc_cv_cc_avx): Likewise.
2433         (libc_cv_cc_sse2avx): Likewise.
2434         (libc_cv_cc_novzeroupper): Likewise.
2435         (libc_cv_cc_fma4): Likewise.
2436         (libc_cv_as_i686): Likewise.
2437         (libc_cv_sparc_as_vis3): Likewise.
2438         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
2439         LIBC_CONFIG_VAR.
2440         (config-asflags-i686): Likewise.
2441         (config-cflags-avx): Likewise.
2442         (config-cflags-sse2avx): Likewise.
2443         (have-mfma4): Likewise.
2444         (config-cflags-novzeroupper): Likewise.
2445         * sysdeps/mach/configure.in (MIG): Likewise.
2446         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
2447         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
2448         LIBC_CONFIG_VAR.
2449         (config-cflags-avx): Likewise.
2450         (config-cflags-sse2avx): Likewise.
2451         (have-mfma4): Likewise.
2452         (config-cflags-novzeroupper): Likewise.
2453         * configure: Regenerated.
2454         * sysdeps/i386/configure: Likewise.
2455         * sysdeps/mach/configure: Likewise.
2456         * sysdeps/sparc/configure: Likewise.
2457         * sysdeps/x86_64/configure: Likewise.
2458
2459 2013-03-20  Roland McGrath  <roland@hack.frob.com>
2460
2461         [BZ #14812]
2462         * locale/programs/localedef.c (options): Put N_ translation marker
2463         on argument names, not just descriptions.
2464
2465 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2466
2467         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
2468
2469 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
2470
2471         [BZ #14176]
2472         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
2473
2474 2013-03-19  Roland McGrath  <roland@hack.frob.com>
2475
2476         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
2477         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
2478         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
2479         [!BEFORE_ABORT] (before_abort): New function.
2480         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
2481         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
2482         (writev_for_fatal): New function.
2483         (WRITEV_FOR_FATAL): New macro; call that.
2484         (backtrace_and_maps): New function.
2485         (BEFORE_ABORT): New macro; call that.
2486         (struct str_list): Type removed.
2487         (__libc_message, __libc_fatal): Functions removed.
2488         Include <sysdeps/posix/libc_fatal.c> instead.
2489
2490 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
2491
2492         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
2493         constants.
2494         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
2495         double constants.
2496
2497 2013-03-19  Andreas Schwab  <schwab@suse.de>
2498
2499         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
2500         * sysdeps/gnu/configure: Regenerate.
2501
2502         * configure.in: Substitute libc_cv_rtlddir.
2503         * configure: Regenerate.
2504         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
2505         * Makeconfig (rtlddir, inst_rtlddir): New variables.
2506         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
2507         * elf/Makefile (install-others, CFLAGS-interp.c)
2508         (ldso_install, common-ldd-rewrite): Likewise.
2509         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
2510         $(inst_slibdir)/$(rtld-installed-name).
2511         * scripts/rellns-sh: Add -p option.
2512         * Makerules (make-shlib-link): Use rellns-sh to get relative name
2513         for source.
2514
2515 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2516
2517         * manual/nptl.texi: Renamed to ...
2518         * manual/threads.texi: ... this.
2519         * manual/Makefile (chapters): Update.
2520
2521 2013-03-18  Roland McGrath  <roland@hack.frob.com>
2522
2523         [BZ #14812]
2524         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
2525         on argument names, not just descriptions.
2526         * malloc/memusagestat.c (options): Likewise.
2527         * nss/getent.c (options): Likewise.
2528
2529 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
2530
2531         [BZ #14812]
2532         * iconv/iconv_prog.c (options): Put N_ translation marker
2533         on argument names, not just descriptions.
2534         * iconv/iconvconfig.c (options): Likewise.
2535
2536 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
2537
2538         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
2539         implementation which is faster on all x86_64 architectures.
2540         Tested on AMD, Intel Nehalem, SNB, IVB.
2541         * sysdeps/x86_64/strnlen.S: Likewise.
2542
2543         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2544         Remove all multiarch strlen and strnlen versions.
2545         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
2546         Remove strlen and strnlen related parts.
2547
2548         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
2549         Inline strlen part.
2550         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
2551
2552         * sysdeps/x86_64/multiarch/strlen.S: Remove.
2553         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
2554         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
2555         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
2556         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2557         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
2558
2559 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
2560
2561         * manual/memory.texi (Malloc Tunable Parameters):
2562         Sort parameters alphabetically. Add comments for missing entries.
2563
2564 2013-03-17  David S. Miller  <davem@davemloft.net>
2565
2566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2567
2568 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
2569
2570         [BZ #15283]
2571         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
2572         for arguments at most half maximum finite value.
2573         * math/libm-test.inc (j0_test): Add more tests.
2574         (j1_test): Likewise.
2575         (y0_test): Likewise.
2576         (y1_test): Likewise.
2577         * sysdeps/i386/fpu/libm-test-ulps: Update.
2578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2579
2580         [BZ #14155]
2581         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
2582         1 / x and functions P and Q for arguments above 0x1p256L.
2583         (__ieee754_y0l): Likewise.
2584         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2585         (__ieee754_y1l): Likewise.
2586         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
2587         (j1_test): Likewise.
2588         (y0_test): Likewise.
2589         (y1_test): Likewise.
2590
2591 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2592
2593         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
2594         variable.
2595
2596 2013-03-15  Roland McGrath  <roland@hack.frob.com>
2597
2598         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
2599         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
2600         zero since it's initialized to EXEC_PAGESIZE.
2601
2602         * sysdeps/unix/sysv/linux/ldsodefs.h
2603         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
2604         * sysdeps/generic/ldsodefs.h: ... here.
2605
2606 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2607
2608         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
2609
2610         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
2611         math/test-snan.c.
2612         * math/test-snan.c: Renamed from
2613         sysdeps/powerpc/fpu/test-powerpc-snan.c.
2614         * math/Makefile (tests): Add test-snan.
2615         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
2616         test-powerpc-snan.
2617
2618         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
2619         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
2620         functions.
2621         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
2622         __builtin_nan family of functions.
2623         * math/libm-test.inc (initialize): Initialize qnan_value with
2624         __builtin_nan family of functions.
2625         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2626         Remove variables.
2627         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2628         Remove functions.
2629         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2630         storage class.  Initialize qNaN_var and sNaN_var with
2631         __builtin_nan and __builtin_nans families of functions,
2632         respectively.
2633
2634         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2635         (sqrt_test): Remove duplicate test with qNaN input.
2636         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2637         (round_test, signbit_test, significand_test): Note missing +/-Inf
2638         as well as qNaN tests.
2639
2640         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2641         qNaN_var.  Fix a few strings, too.
2642         * math/libm-test.inc (nan_value): Rename to qnan_value.
2643         * math/gen-libm-test.pl (%beautify): Adjust to that.
2644         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2645         * math/test-misc.c (main): Likewise.
2646         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2647         to __qnan_bytes, and __qnan_union, respectively.
2648         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2649         Likewise.
2650         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2651         and lqnanval, respectively.
2652         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2653         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2654         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2655         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2656
2657         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2658         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2659         doubles.
2660
2661         * math/test-misc.c (main): Fix copy'n'pastos.
2662         * misc/tst-efgcvt.c (special): Likewise.
2663
2664         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2665         Remove declarations.
2666
2667 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2668
2669         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2670         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2671         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2672         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2673
2674 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2675
2676         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2677         macro to return vdso values correctly in IFUNC implementations.
2678         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2679         Optimization by using IFUNC.
2680
2681 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2682             Richard Henderson  <rth@redhat.com>
2683             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2684
2685         * Makefile.in (bench): New target.
2686         * NEWS: Mention the benchmark framework.
2687         * Rules (bench): Likewise.
2688         (binaries-bench): Generate binaries for functions to
2689         benchmark.
2690         * benchtests/Makefile: New makefile for benchmark tests.
2691         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2692         programs.
2693         * benchtests/exp-inputs: New input file for EXP function.
2694         * benchtests/pow-inputs: New input file for POW function.
2695         * scripts/bench.pl: New script to generate source files for
2696         benchmark programs.
2697
2698 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2699
2700         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2701         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2702         computations on mantissa.  Use macros for rounding and
2703         division.
2704         (denorm): Likewise.
2705         (__dbl_mp): Likewise.
2706         (add_magnitudes): Likewise.
2707         (sub_magnitudes): Likewise.
2708         (__mul): Likewise.
2709         (__sqr): Likewise.
2710         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2711         powers of two in terms of TWOPOW macro.
2712         (mp_no): Make type of mantissa as MANTISSA_T.
2713         [!RADIXI]: Define RADIXI.
2714         [!TWO52]: Define TWO52.
2715         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2716
2717         * manual/nptl.texi (cindex): Modify threads to pthreads.
2718
2719 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2720
2721         * sysdeps/x86_64/preconfigure: Regenerated.
2722
2723 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2724
2725         [BZ #14155]
2726         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2727         0x1p28 and above.
2728         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2729         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2730         0x1p28 and above.
2731         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2732         * math/libm-test.inc (j0_test): Do not allow one spurious
2733         underflow exception.
2734         (y1_test): Likewise.
2735
2736 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2737
2738         * manual/Makefile (chapters): Add nptl.
2739         * manual/debug.texi (Debugging Support): Add link to Threads
2740         chapter.
2741         * manual/nptl.texi: New file.
2742
2743         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2744
2745 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2746
2747         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2748         for non-NULL pointer before the memory validity test. Pointed
2749         out by Holger Brunck <holger.brunck@keymile.com>.
2750
2751 2013-03-13  Andreas Schwab  <schwab@suse.de>
2752
2753         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2754         instead of .os.
2755
2756 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2757
2758         * timezone/zic.c: Update from tzcode 2013b.
2759
2760 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2761
2762         * manual/install.texi (Configuring and compiling):
2763         Mention i686 and i586.
2764         * INSTALL: Regenerate.
2765
2766 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2767
2768         * sysdeps/init_array/elf-init.c: New file.
2769         * csu/elf-init.c
2770         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2771         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2772
2773         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2774         __gmon_start__ as global, but as static with a .preinit_array pointer.
2775         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2776         * sysdeps/init_array/crti.S: New file, empty except for comments.
2777         * sysdeps/init_array/crtn.S: Likewise.
2778
2779 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2780
2781         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2782         definining bcopy.
2783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2784         Remove Prefer_SSE_for_memop.
2785         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2786         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2787         HAS_PREFER_SSE_FOR_MEMOP.
2788         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2789         memset-x86-64.
2790         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2791         Remove bzero, memset ifunc support.
2792         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2793         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2794         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2795         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2796
2797 2013-03-11  Andreas Schwab  <schwab@suse.de>
2798
2799         [BZ #15234]
2800         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2801         by SHLIB_COMPAT.
2802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2803         (GLIBC_2.16): Remove pthread_atfork.
2804
2805 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2806
2807         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2808         (ptestcases.h): Likewise.
2809
2810 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2811
2812         * Makeconfig ($(common-objpfx)config.status): Depend on
2813         sysdeps/*/preconfigure{,.in} too.
2814
2815 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2816
2817         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2818         (__free_hook): Use void * instead of __malloc_ptr_t.
2819         (__malloc_hook): Likewise.
2820         (__realloc_hook): Likewise.
2821         (__memalign_hook): Likewise.
2822         (__after_morecore_hook): Likewise.
2823         * malloc/arena.c (save_malloc_hook): Likewise.
2824         (save_free_hook): Likewise.
2825         * malloc/hooks.c (malloc_hook_ini): Likewise.
2826         (realloc_hook_ini): Likewise.
2827         (memalign_hook_ini): Likewise.
2828         * malloc/malloc.c (malloc_hook_ini): Likewise.
2829         (realloc_hook_ini): Likewise.
2830         (memalign_hook_ini): Likewise.
2831         (__free_hook): Likewise.
2832         (__malloc_hook): Likewise.
2833         (__realloc_hook): Likewise.
2834         (__memalign_hook): Likewise.
2835         (__libc_malloc): Likewise.
2836         (__libc_free): Likewise.
2837         (__libc_realloc): Likewise.
2838         (__libc_memalign): Likewise.
2839         (__libc_valloc): Likewise.
2840         (__libc_pvalloc): Likewise.
2841         (__libc_calloc): Likewise.
2842         (__posix_memalign): Likewise.
2843         * malloc/morecore.c (__sbrk): Likewise.
2844         (__default_morecore): Likewise.
2845
2846         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2847
2848         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2849         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2850         __malloc_ptrdiff_t.
2851
2852         * malloc/malloc.h (__malloc_size_t): Remove macro.
2853         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2854         __malloc_size_t.
2855         (old_memalign_hook): Likewise.
2856         (old_realloc_hook): Likewise.
2857         (struct hdr): Likewise.
2858         (flood): Likewise.
2859         (mallochook): Likewise.
2860         (memalignhook): Likewise.
2861         (reallochook): Likewise.
2862         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2863         (tr_old_realloc_hook): Likewise.
2864         (tr_old_memalign_hook): Likewise.
2865         (tr_mallochook): Likewise.
2866         (tr_reallochook): Likewise.
2867         (tr_memalignhook): Likewise.
2868
2869 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2870
2871         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2872         default_ldbl_pack and using as default implementation.
2873         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2874         implementation.
2875         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2876         redundant definition.
2877         (ldbl_insert_mantissa): Likewise.
2878         (ldbl_canonicalize): Likewise.
2879         (ldbl_nearbyint): Likewise.
2880         (ldbl_pack): Rename to ldbl_pack_ppc.
2881         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2882         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2883         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2884
2885 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2886
2887         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2888         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2889         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2890         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2891         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2892         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2893         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2894         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2895
2896 2013-03-07  Andreas Jaeger  <aj@suse.de>
2897
2898         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2899         bits/mman-linux.h.
2900
2901 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2902
2903         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2904         Include mpa.h and declare __MPEXP.
2905         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2906         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2907         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2908         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2909         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2910         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2911         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2912
2913         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2914         (__slowpow): Use long double EXPL and LOGL functions to
2915         compute POW.
2916         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2917         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2918         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2919         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2920         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2921         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2922
2923         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2924         intermediate variable to calculate exponent.
2925         (__sqr): Likewise.
2926         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2927         Likewise.
2928         (__sqr): Likewise.
2929
2930         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2931         [!NO__SQR]: Define __sqr.
2932         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2933         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2934         sysdeps/ieee754/dbl-64/mpa.c.
2935         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2936
2937         [BZ #12723]
2938         * posix/Makefile (tests): Add tst-pathconf.
2939         * posix/tst-pathconf.c: New test case.
2940         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2941         _PC_PIPE_BUF.
2942         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2943
2944 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2945
2946         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2947
2948 2013-03-06  Andreas Jaeger  <aj@suse.de>
2949
2950         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2951         definition via __MAP_ANONYMOUS.
2952
2953         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2954         it's not part of Linux headers.
2955
2956         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2957         (MAP_HUGE_MASK): Define.
2958
2959         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2960         Define.
2961         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2962         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2963         Define.
2964         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2965         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2966         Define.
2967         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2968         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2969         Define.
2970         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2971
2972         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2973         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2974         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2975         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2976         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2977         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2978
2979         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2980         Handle f2fs.
2981
2982         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2983         Handle f2fs and efivarfs.
2984
2985         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2986         f2fs.
2987
2988         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2989         (EFIVARFS_MAGIC): Add.
2990         (F2FS_LINK_MAX): Add.
2991
2992 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2993
2994         * stdio-common/vfprintf.c: Replace __builtin_expect with
2995         __glibc_unlikely.
2996
2997 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2998
2999         [BZ #13550]
3000         * sysdeps/generic/bp-sym.h: Remove file.
3001         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
3002         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
3003         <bp-sym.h> and <bp-asm.h>.
3004         (__longjmp): Don't use BP_SYM.
3005         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
3006         and <bp-asm.h>.
3007         (memcpy): Don't use BP_SYM.
3008         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
3009         <bp-sym.h> and <bp-asm.h>.
3010         (memcpy): Don't use BP_SYM.
3011         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
3012         <bp-asm.h>.
3013         (memcpy): Don't use BP_SYM.
3014         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
3015         <bp-asm.h>.
3016         (memset): Don't use BP_SYM.
3017         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3018         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3019         (__bzero): Don't use BP_SYM.
3020         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3021         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3022         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
3023         <bp-sym.h> and <bp-asm.h>.
3024         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3025         pointers.
3026         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
3027         <bp-sym.h> and <bp-asm.h>.
3028         (memcpy): Don't use BP_SYM.
3029         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
3030         <bp-sym.h> and <bp-asm.h>.
3031         (memset): Don't use BP_SYM.
3032         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3033         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3034         (__bzero): Don't use BP_SYM.
3035         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3036         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3037         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
3038         <bp-sym.h> and <bp-asm.h>.
3039         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3040         pointers.
3041         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
3042         <bp-sym.h> and <bp-asm.h>.
3043         (memcpy): Don't use BP_SYM.
3044         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
3045         <bp-sym.h> and <bp-asm.h>.
3046         (memset): Don't use BP_SYM.
3047         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3048         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3049         (__bzero): Don't use BP_SYM.
3050         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3051         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3052         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
3053         <bp-sym.h> and <bp-asm.h>.
3054         (__memchr): Don't use BP_SYM.
3055         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
3056         <bp-sym.h> and <bp-asm.h>.
3057         (memcmp): Don't use BP_SYM.  Remove comment about bounded
3058         pointers.
3059         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
3060         <bp-sym.h> and <bp-asm.h>.
3061         (memcpy): Don't use BP_SYM.
3062         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
3063         <bp-sym.h> and <bp-asm.h>.
3064         (__mempcpy): Don't use BP_SYM.
3065         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
3066         <bp-sym.h> and <bp-asm.h>.
3067         (__memrchr): Don't use BP_SYM.
3068         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
3069         <bp-sym.h> and <bp-asm.h>.
3070         (memset): Don't use BP_SYM.
3071         (__bzero): Likewise.
3072         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
3073         <bp-sym.h> and <bp-asm.h>.
3074         (__rawmemchr): Don't use BP_SYM.
3075         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
3076         <bp-sym.h> and <bp-asm.h>.
3077         (__STRCMP): Don't use BP_SYM.
3078         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
3079         <bp-sym.h> and <bp-asm.h>.
3080         (strchr): Don't use BP_SYM.
3081         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
3082         <bp-sym.h> and <bp-asm.h>.
3083         (__strchrnul): Don't use BP_SYM.
3084         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
3085         <bp-sym.h> and <bp-asm.h>.
3086         (strlen): Don't use BP_SYM.
3087         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
3088         <bp-sym.h> and <bp-asm.h>.
3089         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3090         pointers.
3091         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
3092         <bp-sym.h> and <bp-asm.h>.
3093         (__strnlen): Don't use BP_SYM.
3094         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
3095         <bp-sym.h> and <bp-asm.h>.
3096         (__GI__setjmp): Don't use BP_SYM.
3097         (_setjmp): Likewise.
3098         (__sigsetjmp): Likewise.
3099         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
3100         (L(start_addresses)): Don't use BP_SYM.
3101         (_start): Likewise.
3102         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
3103         <bp-asm.h>.
3104         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
3105         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
3106         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3107         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3108         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
3109         <bp-asm.h>.
3110         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
3111         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
3112         about bounded pointers.
3113         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3114         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3115         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
3116         <bp-asm.h>.
3117         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3118         about bounded pointers.  Remove GKM FIXME comments.
3119         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3120         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
3121         <bp-asm.h>.
3122         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
3123         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
3124         Remove GKM FIXME comments.
3125         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3126         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3127         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
3128         <bp-asm.h>.
3129         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
3130         about bounded pointers.  Remove GKM FIXME comment.
3131         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
3132         and <bp-asm.h>.
3133         (strncmp): Don't use BP_SYM.  Remove comment about bounded
3134         pointers.
3135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
3136         <bp-sym.h> and <bp-asm.h>.
3137         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
3139         <bp-sym.h> and <bp-asm.h>.
3140         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3141         comment.
3142
3143 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3144
3145         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
3146         call free(NULL).
3147
3148 2013-03-05  David S. Miller  <davem@davemloft.net>
3149
3150         * po/es.po: Update from translation team.
3151
3152 2013-03-05  Andreas Jaeger  <aj@suse.de>
3153
3154         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
3155         <bits/mman-linux.h>.
3156         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3157         is fine.
3158         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
3159         <bits/mman-linux.h> to end of file.
3160         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3161         is fine.
3162         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
3163         <bits/mman-linux.h> to end of file.
3164         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
3165         is fine.
3166         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
3167         <bits/mman-linux.h> to end of file.
3168
3169         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
3170         (MCL_CURRENT, MCL_FUTURE): Define here.
3171
3172 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3173
3174         [BZ #15232]
3175         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
3176         attribute_hidden.
3177         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3178
3179 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3180
3181         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
3182         fourth parameter needed for rt_sigprocmask syscall.
3183         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
3184         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3185         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
3186         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3187         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3188         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
3189
3190 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
3191
3192         [BZ #13550]
3193         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
3194         comment about bounded pointers.
3195         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
3196         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
3197
3198 2013-03-04  Andreas Jaeger  <aj@suse.de>
3199
3200         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
3201         common definitions.
3202
3203         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
3204         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
3205         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
3206         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3207         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3208         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3209
3210 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3211
3212         [BZ #15055]
3213         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
3214         __ieee754_sqrl instead of __sqrl.
3215
3216 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
3217
3218         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
3219         * sysdeps/powerpc/fpu_control.h: ... here.
3220         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
3221         * sysdeps/powerpc/bits/fenvinline.h: ... here.
3222         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
3223         * sysdeps/powerpc/bits/mathinline.h: ... here.
3224
3225 2013-03-01  Roland McGrath  <roland@hack.frob.com>
3226
3227         * elf/dl-hwcaps.c (_dl_important_hwcaps):
3228         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
3229         to just [NEED_DL_SYSINFO_DSO].
3230         * elf/dl-support.c: Likewise.
3231         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
3232         * elf/rtld.c (dl_main): Likewise.
3233         * elf/setup-vdso.h (setup_vdso): Likewise.
3234         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
3235         * sysdeps/unix/sysv/linux/dl-sysdep.c
3236         (_dl_discover_osversion): Likewise.
3237
3238 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
3239
3240         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
3241         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3242
3243 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
3244
3245         * NEWS: Mention libm performance improvements and non-x86 PI
3246         futex support.
3247
3248         * csu/libc-start.c (__pthread_initialize_minimal): Change
3249         function arguments.
3250         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3251
3252 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
3253
3254         [BZ #13550]
3255         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
3256         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
3257         <bp-sym.h> and <bp-asm.h>.
3258         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3259         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
3260         and <bp-asm.h>.
3261         (memcpy): Don't use BP_SYM.
3262         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
3263         <bp-asm.h>.
3264         (__mpn_add_n): Don't use BP_SYM.
3265         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
3266         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
3267         and <bp-asm.h>.
3268         (__mpn_addmul_1): Don't use BP_SYM.
3269         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3270         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
3271         <bp-sym.h>.
3272         (_setjmp): Don't use BP_SYM.
3273         (__novmx_setjmp): Likewise.
3274         (__GI__setjmp): Likewise.
3275         (__vmx_setjmp): Likewise.
3276         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
3277         <bp-sym.h>.
3278         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
3279         (__bzero): Don't use BP_SYM.
3280         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3281         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3282         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
3283         <bp-sym.h> and <bp-asm.h>.
3284         (memcpy): Don't use BP_SYM.
3285         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
3286         <bp-sym.h> and <bp-asm.h>.
3287         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3288         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
3289         <bp-sym.h> and <bp-asm.h>.
3290         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3291         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
3292         <bp-asm.h>.
3293         (__mpn_lshift): Don't use BP_SYM.
3294         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3295         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
3296         <bp-asm.h>.
3297         (memset): Don't use BP_SYM.
3298         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3299         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3300         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
3301         <bp-asm.h>.
3302         (__mpn_mul_1): Don't use BP_SYM.
3303         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3304         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
3305         <bp-sym.h> and <bp-asm.h>.
3306         (memcmp): Don't use BP_SYM.
3307         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
3308         <bp-sym.h> and <bp-asm.h>.
3309         (memcpy): Don't use BP_SYM.
3310         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
3311         <bp-sym.h> and <bp-asm.h>.
3312         (memset): Don't use BP_SYM.
3313         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
3314         <bp-sym.h> and <bp-asm.h>.
3315         (strncmp): Don't use BP_SYM.
3316         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
3317         <bp-sym.h> and <bp-asm.h>.
3318         (memcpy): Don't use BP_SYM.
3319         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
3320         <bp-sym.h> and <bp-asm.h>.
3321         (memset): Don't use BP_SYM.
3322         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
3323         <bp-sym.h> and <bp-asm.h>.
3324         (__memchr): Don't use BP_SYM.
3325         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
3326         <bp-sym.h> and <bp-asm.h>.
3327         (memcmp): Don't use BP_SYM.
3328         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
3329         <bp-sym.h> and <bp-asm.h>.
3330         (memcpy): Don't use BP_SYM.
3331         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
3332         <bp-sym.h> and <bp-asm.h>.
3333         (__mempcpy): Don't use BP_SYM.
3334         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
3335         <bp-sym.h> and <bp-asm.h>.
3336         (__memrchr): Don't use BP_SYM.
3337         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
3338         <bp-sym.h> and <bp-asm.h>.
3339         (memset): Don't use BP_SYM.
3340         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
3341         <bp-sym.h> and <bp-asm.h>.
3342         (__rawmemchr): Don't use BP_SYM.
3343         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
3344         <bp-sym.h> and <bp-asm.h>.
3345         (__STRCMP): Don't use BP_SYM.
3346         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
3347         <bp-sym.h> and <bp-asm.h>.
3348         (strchr): Don't use BP_SYM.
3349         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
3350         <bp-sym.h> and <bp-asm.h>.
3351         (__strchrnul): Don't use BP_SYM.
3352         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
3353         <bp-sym.h> and <bp-asm.h>.
3354         (strlen): Don't use BP_SYM.
3355         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
3356         <bp-sym.h> and <bp-asm.h>.
3357         (strncmp): Don't use BP_SYM.
3358         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
3359         <bp-sym.h> and <bp-asm.h>.
3360         (__strnlen): Don't use BP_SYM.
3361         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
3362         <bp-asm.h>.
3363         (__mpn_rshift): Don't use BP_SYM.
3364         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3365         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
3366         <bp-sym.h> and <bp-asm.h>.
3367         (__sigsetjmp): Don't use BP_SYM.
3368         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
3369         (L(start_addresses)): Don't use BP_SYM.
3370         (_start): Likewise.
3371         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
3372         <bp-asm.h>.
3373         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
3374         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3375         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3376         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
3377         <bp-asm.h>.
3378         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
3379         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3380         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3381         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
3382         <bp-asm.h>.
3383         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3384         comments.
3385         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3386         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
3387         <bp-asm.h>.
3388         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
3389         FIXME comments.
3390         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3391         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3392         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
3393         <bp-asm.h>.
3394         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3395         comment.
3396         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
3397         and <bp-asm.h>.
3398         (strncmp): Don't use BP_SYM,
3399         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
3400         <bp-asm.h>.
3401         (__mpn_sub_n): Don't use BP_SYM.
3402         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3403         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
3404         and <bp-asm.h>.
3405         (__mpn_submul_1): Don't use BP_SYM.
3406         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
3408         <bp-sym.h> and <bp-asm.h>.
3409         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
3411         <bp-sym.h> and <bp-asm.h>.
3412         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3413         comment.
3414
3415 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3416
3417         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
3418         Use ZK to minimize writes to Z.
3419         (sub_magnitudes): Simplify code a bit.
3420         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
3421         Use ZK to minimize writes to Z.
3422         (sub_magnitudes): Simplify code a bit.
3423
3424 2013-02-27  Roland McGrath  <roland@hack.frob.com>
3425
3426         * csu/gmon-start.c: Add special exception to license text.
3427
3428 2013-02-27  Richard Henderson  <rth@redhat.com>
3429
3430         * scripts/config.guess: Update from config.git.
3431         * scripts/config.sub: Likewise.
3432
3433 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3434
3435         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
3436
3437         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
3438
3439         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
3440
3441         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
3442
3443         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
3444
3445 2013-02-26  Roland McGrath  <roland@hack.frob.com>
3446
3447         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
3448         [$(build-shared = yes].
3449
3450 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3451
3452         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
3453         (__mul): Reduce iterations for calculating mantissa.
3454
3455         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
3456         MPTWO.
3457         (__mpranred): Likewise.
3458
3459         [BZ #15160]
3460         * malloc/memusagestat.c (main): Draw graphs for heap and stack
3461         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
3462
3463 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
3466         Define __attribute__.
3467
3468 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3469
3470         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
3471         unused.
3472         * posix/regex_internal.h (__attribute): Remove.
3473         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
3474         (re_string_context_at): Likewise.
3475         (bitset_not): Use __attribute__ and mark function as possibly
3476         unused.
3477         (bitset_merge): Likewise.
3478         (bitset_mask): Likewise.
3479         (re_string_char_size_at): Likewise.
3480         (re_string_wchar_at): Likewise.
3481         (re_string_elem_size_at): Likewise.
3482
3483 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3484
3485         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
3486         code.
3487         (cc32): Likewise.
3488
3489         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
3490         (__acr): Likewise.
3491         (__cpy): Likewise.
3492         (norm): Likewise.
3493         (denorm): Likewise.
3494         (__dbl_mp): Likewise.
3495         (add_magnitudes): Likewise.
3496         (sub_magnitudes): Likewise.
3497         (__mul): Likewise.
3498         (__inv): Likewise.
3499
3500         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
3501         style.
3502
3503         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
3504         style.
3505
3506         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
3507         code.
3508
3509         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
3510         up changes with default code.
3511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
3512         Likewise.
3513
3514 2013-02-24  Allan McRae  <allan@archlinux.org>
3515
3516         * manual/socket.texi (The Internet Namespace): Order menu items
3517         to match that in the file.
3518
3519         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
3520         node listing of the info page menu.
3521
3522 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
3523
3524         [BZ #13550]
3525         * sysdeps/i386/bp-asm.h: Remove file.
3526         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3527         (PARMS): Do not use macros from bp-asm.h.
3528         (S1): Likewise.
3529         (S2): Likewise.
3530         (SIZE): Likewise.
3531         (__mpn_add_n): Do not use BP_SYM
3532         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
3533         "bp-asm.h".
3534         (PARMS): Do not use macros from bp-asm.h.
3535         (S1): Likewise.
3536         (SIZE): Likewise.
3537         (__mpn_addmul_1): Do not use BP_SYM
3538         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
3539         "bp-asm.h".
3540         (PARMS): Do not use macros from bp-asm.h.
3541         (SIGMSK): Likewise.
3542         (_setjmp): Likewise.  Do not use BP_SYM.
3543         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
3544         "bp-asm.h".
3545         (PARMS): Do not use macros from bp-asm.h.
3546         (SIGMSK): Likewise.
3547         (setjmp): Likewise.  Do not use BP_SYM.
3548         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
3549         "bp-asm.h".
3550         (PARMS): Do not use macros from bp-asm.h.
3551         (__frexp): Do not use BP_SYM.
3552         (frexp): Likewise.
3553         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
3554         "bp-asm.h".
3555         (PARMS): Do not use macros from bp-asm.h.
3556         (__frexpf): Do not use BP_SYM.
3557         (frexpf): Likewise.
3558         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
3559         "bp-asm.h".
3560         (PARMS): Do not use macros from bp-asm.h.
3561         (__frexpl): Do not use BP_SYM.
3562         (frexpl): Likewise.
3563         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
3564         "bp-asm.h".
3565         (PARMS): Do not use macros from bp-asm.h.
3566         (__remquo): Do not use BP_SYM.
3567         (remquo): Likewise.
3568         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
3569         "bp-asm.h".
3570         (PARMS): Do not use macros from bp-asm.h.
3571         (__remquof): Do not use BP_SYM.
3572         (remquof): Likewise.
3573         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
3574         "bp-asm.h".
3575         (PARMS): Do not use macros from bp-asm.h.
3576         (__remquol): Do not use BP_SYM.
3577         (remquol): Likewise.
3578         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
3579         "bp-asm.h".
3580         (PARMS): Do not use macros from bp-asm.h.
3581         (DEST): Likewise.
3582         (SRC): Likewise.
3583         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
3584         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
3585         "bp-asm.h".
3586         (PARMS): Do not use macros from bp-asm.h.
3587         (strlen): Do not use BP_SYM.
3588         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
3589         "bp-asm.h".
3590         (PARMS): Do not use macros from bp-asm.h.
3591         (S1): Likewise.
3592         (S2): Likewise.
3593         (SIZE): Likewise.
3594         (__mpn_add_n): Do not use BP_SYM.
3595         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
3596         "bp-asm.h".
3597         (PARMS): Do not use macros from bp-asm.h.
3598         (S1): Likewise.
3599         (SIZE): Likewise.
3600         (__mpn_addmul_1): Do not use BP_SYM.
3601         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
3602         weak_alias.
3603         (bzero): Likewise.
3604         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
3605         "bp-asm.h".
3606         (PARMS): Do not use macros from bp-asm.h.
3607         (S): Likewise.
3608         (SIZE): Likewise.
3609         (__mpn_lshift): Do not use BP_SYM.
3610         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
3611         "bp-asm.h".
3612         (PARMS): Do not use macros from bp-asm.h.
3613         (DEST): Likewise.
3614         (SRC): Likewise.
3615         (LEN): Likewise.
3616         (memcpy): Likewise.  Do not use BP_SYM.
3617         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
3618         libc_hidden_def and weak_alias.
3619         (mempcpy): Do not use BP_SYM in weak_alias.
3620         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
3621         "bp-asm.h".
3622         (PARMS): Do not use macros from bp-asm.h.
3623         (DEST): Likewise.
3624         (LEN): Likewise.
3625         [!BZERO_P] (CHR): Likewise.
3626         (memset): Likewise.  Do not use BP_SYM.
3627         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3628         "bp-asm.h".
3629         (PARMS): Do not use macros from bp-asm.h.
3630         (S1): Likewise.
3631         (SIZE): Likewise.
3632         (__mpn_mul_1): Do not use BP_SYM.
3633         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3634         "bp-asm.h".
3635         (PARMS): Do not use macros from bp-asm.h.
3636         (S): Likewise.
3637         (SIZE): Likewise.
3638         (__mpn_rshift): Do not use BP_SYM.
3639         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3640         "bp-asm.h".
3641         (PARMS): Do not use macros from bp-asm.h.
3642         (STR): Likewise.
3643         (CHR): Likewise.
3644         (strchr): Likewise.  Do not use BP_SYM.
3645         (index): Do not use BP_SYM in weak_alias.
3646         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3647         "bp-asm.h".
3648         (PARMS): Do not use macros from bp-asm.h.
3649         (DEST): Likewise.
3650         (SRC): Likewise.
3651         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3652         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3653         "bp-asm.h".
3654         (PARMS): Do not use macros from bp-asm.h.
3655         (strlen): Do not use BP_SYM.
3656         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3657         "bp-asm.h".
3658         (PARMS): Do not use macros from bp-asm.h.
3659         (S1): Likewise.
3660         (S2): Likewise.
3661         (SIZE): Likewise.
3662         (__mpn_sub_n): Do not use BP_SYM.
3663         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3664         "bp-asm.h".
3665         (PARMS): Do not use macros from bp-asm.h.
3666         (S1): Likewise.
3667         (SIZE): Likewise.
3668         (__mpn_submul_1): Do not use BP_SYM.
3669         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3670         "bp-asm.h".
3671         (PARMS): Do not use macros from bp-asm.h.
3672         (S1): Likewise.
3673         (S2): Likewise.
3674         (SIZE): Likewise.
3675         (__mpn_add_n): Do not use BP_SYM.
3676         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3677         weak_alias.
3678         (bzero): Likewise.
3679         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3680         "bp-asm.h".
3681         (PARMS): Do not use macros from bp-asm.h.
3682         (BLK2): Likewise.
3683         (LEN): Likewise.
3684         (memcmp): Do not use BP_SYM.
3685         (bcmp): Do not use BP_SYM in weak_alias.
3686         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3687         "bp-asm.h".
3688         (PARMS): Do not use macros from bp-asm.h.
3689         (DEST): Likewise.
3690         (SRC): Likewise.
3691         (LEN): Likewise.
3692         (memcpy): Likewise.  Do not use BP_SYM.
3693         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3694         "bp-asm.h".
3695         (PARMS): Do not use macros from bp-asm.h.
3696         (DEST): Likewise.
3697         (SRC): Likewise.
3698         (LEN): Likewise.
3699         (memmove): Likewise.  Do not use BP_SYM.
3700         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3701         "bp-asm.h".
3702         (PARMS): Do not use macros from bp-asm.h.
3703         (DEST): Likewise.
3704         (SRC): Likewise.
3705         (LEN): Likewise.
3706         (__mempcpy): Likewise.  Do not use BP_SYM.
3707         (mempcpy): Do not use BP_SYM in weak_alias.
3708         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3709         "bp-asm.h".
3710         (PARMS): Do not use macros from bp-asm.h.
3711         (DEST): Likewise.
3712         (LEN): Likewise.
3713         [!BZERO_P] (CHR): Likewise.
3714         (memset): Likewise.  Do not use BP_SYM.
3715         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3716         "bp-asm.h".
3717         (PARMS): Do not use macros from bp-asm.h.
3718         (STR2): Likewise.
3719         (strcmp): Do not use BP_SYM.
3720         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3721         "bp-asm.h".
3722         (PARMS): Do not use macros from bp-asm.h.
3723         (STR): Likewise.
3724         (DELIM): Likewise.
3725         [USE_AS_STRTOK_R] (SAVE): Likewise.
3726         (FUNCTION): Likewise.  Do not use BP_SYM.
3727         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3728         aliases.
3729         (strtok_r): Likewise.
3730         (__GI___strtok_r): Likewise.
3731         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3732         (PARMS): Do not use macros from bp-asm.h.
3733         (S): Likewise.
3734         (SIZE): Likewise.
3735         (__mpn_lshift): Do not use BP_SYM.
3736         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3737         (PARMS): Do not use macros from bp-asm.h.
3738         (STR): Likewise.
3739         (CHR): Likewise.
3740         (__memchr): Do not use BP_SYM.
3741         (memchr): Do not use BP_SYM in weak_alias.
3742         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3743         (PARMS): Do not use macros from bp-asm.h.
3744         (BLK2): Likewise.
3745         (LEN): Likewise.
3746         (memcmp): Do not use BP_SYM.
3747         (bcmp): Do not use BP_SYM in weak_alias.
3748         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3749         (PARMS): Do not use macros from bp-asm.h.
3750         (S1): Likewise.
3751         (SIZE): Likewise.
3752         (__mpn_mul_1): Do not use BP_SYM.
3753         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3754         "bp-asm.h".
3755         (PARMS): Do not use macros from bp-asm.h.
3756         (STR): Likewise.
3757         (CHR): Likewise.
3758         (__rawmemchr): Do not use BP_SYM.
3759         (rawmemchr): Do not use BP_SYM in weak_alias.
3760         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3761         (PARMS): Do not use macros from bp-asm.h.
3762         (S): Likewise.
3763         (SIZE): Likewise.
3764         (__mpn_rshift): Do not use BP_SYM.
3765         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3766         (PARMS): Do not use macros from bp-asm.h.
3767         (SIGMSK): Likewise.
3768         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3769         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3770         (_start): Do not use BP_SYM.
3771         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3772         (PARMS): Do not use macros from bp-asm.h.
3773         (DEST): Likewise.
3774         (SRC): Likewise.
3775         (__stpcpy): Likewise.  Do not use BP_SYM.
3776         (stpcpy): Do not use BP_SYM in weak_alias.
3777         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3778         "bp-asm.h".
3779         (PARMS): Do not use macros from bp-asm.h.
3780         (DEST): Likewise.
3781         (SRC): Likewise.
3782         (LEN): Likewise.
3783         (__stpncpy): Likewise.  Do not use BP_SYM.
3784         (stpncpy): Do not use BP_SYM in weak_alias.
3785         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3786         (PARMS): Do not use macros from bp-asm.h.
3787         (STR): Likewise.
3788         (CHR): Likewise.
3789         (strchr): Likewise.  Do not use BP_SYM.
3790         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3791         "bp-asm.h".
3792         (PARMS): Do not use macros from bp-asm.h.
3793         (STR): Likewise.
3794         (CHR): Likewise.
3795         (__strchrnul): Likewise.  Do not use BP_SYM.
3796         (strchrnul): Do not use BP_SYM in weak_alias.
3797         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3798         "bp-asm.h".
3799         (PARMS): Do not use macros from bp-asm.h.
3800         (STOP): Likewise.
3801         (strcspn): Do not use BP_SYM.
3802         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3803         "bp-asm.h".
3804         (PARMS): Do not use macros from bp-asm.h.
3805         (STR): Likewise.
3806         (STOP): Likewise.
3807         (strpbrk): Likewise.  Do not use BP_SYM.
3808         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3809         "bp-asm.h".
3810         (PARMS): Do not use macros from bp-asm.h.
3811         (STR): Likewise.
3812         (CHR): Likewise.
3813         (strrchr): Likewise.  Do not use BP_SYM.
3814         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3815         (PARMS): Do not use macros from bp-asm.h.
3816         (SKIP): Likewise.
3817         (strspn): Do not use BP_SYM.
3818         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3819         (PARMS): Do not use macros from bp-asm.h.
3820         (STR): Likewise.
3821         (DELIM): Likewise.
3822         (SAVE): Likewise.
3823         (FUNCTION): Likewise.  Do not use BP_SYM.
3824         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3825         aliases.
3826         (strtok_r): Likewise.
3827         (__GI___strtok_r): Likewise.
3828         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3829         (PARMS): Do not use macros from bp-asm.h.
3830         (S1): Likewise.
3831         (S2): Likewise.
3832         (SIZE): Likewise.
3833         (__mpn_sub_n): Do not use BP_SYM.
3834         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3835         "bp-asm.h".
3836         (PARMS): Do not use macros from bp-asm.h.
3837         (S1): Likewise.
3838         (SIZE): Likewise.
3839         (__mpn_submul_1): Do not use BP_SYM.
3840         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3841         <bp-sym.h>.
3842         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3843         and <bp-asm.h>.
3844         (PARMS): Do not use macros from bp-asm.h.
3845         (FLAGS): Likewise.
3846         (PTID): Likewise.
3847         (TLS): Likewise.
3848         (CTID): Likewise.
3849         (__clone): Do not use BP_SYM.
3850         (clone): Do not use BP_SYM in weak_alias.
3851         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3852         and <bp-asm.h>.
3853         (PARMS): Do not use macros from bp-asm.h.
3854         (LEN): Likewise.
3855         (__mmap64): Do not use BP_SYM.
3856         (mmap64): Do not use BP_SYM in weak_alias.
3857         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3858         <bp-sym.h> and <bp-asm.h>.
3859         (PARMS): Do not use macros from bp-asm.h.
3860         (__posix_fadvise64_l64): Do not use BP_SYM.
3861         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3862         (PARMS): Do not use macros from bp-asm.h.
3863         (NSOPS): Likewise.
3864         (semtimedop): Do not use BP_SYM.
3865         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3866         and <bp-asm.h>.
3867
3868 2013-02-21  Allan McRae  <allan@archlinux.org>
3869
3870         * manual/message.texi (Charset conversion in gettext):
3871         Move @end statement to beginning of line.
3872
3873 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3874
3875         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3876         static.
3877         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3878         Likewise.
3879
3880         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3881         (denorm): Likewise.
3882         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3883         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3884
3885 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3886
3887         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3888         tail-call to the resolved function if pltexit isn't needed.
3889
3890 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3891
3892         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3893         or Y being zero as being unlikely.
3894         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3895         Likewise.
3896
3897 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3898
3899         * manual/nss.texi (System Databases and Name Service Switch):
3900         Remove frobnicate @pxref.
3901
3902 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3903
3904         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3905         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3906
3907 2013-02-20  Petr Machata  <pmachata@redhat.com>
3908
3909         * elf/elf.h (R_ARM_TARGET1): New macro.
3910         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3911         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3912         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3913         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3914         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3915         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3916         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3917         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3918         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3919         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3920         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3921         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3922         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3923         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3924         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3925         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3926         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3927         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3928         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3929         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3930         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3931         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3932         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3933         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3934         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3935         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3936         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3937         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3938         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3939         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3940         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3941         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3942         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3943         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3944         (R_ARM_THM_GOT_BREL12): Likewise.
3945         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3946         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3947         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3948         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3949         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3950         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3951         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3952         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3953         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3954
3955 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3956
3957         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3958         __attribute_used__ to __attribute__ ((unused)).
3959
3960 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3961
3962         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3963         powerpc mpa.c.
3964         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3965         comment formatting.
3966         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3967
3968 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3969
3970         [BZ #13550]
3971         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3972         Remove macro.
3973         (ENTER): Remove both macro definitions.
3974         (LEAVE): Likewise.
3975         (CHECK_BOUNDS_LOW): Likewise.
3976         (CHECK_BOUNDS_HIGH): Likewise.
3977         (CHECK_BOUNDS_BOTH): Likewise.
3978         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3979         (RETURN_BOUNDED_POINTER): Likewise.
3980         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3981         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3982         (POP_ERRNO_LOCATION_RETURN): Likewise.
3983         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3984         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3985         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3986         macros.
3987         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3988         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3989         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3990         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3991         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3992         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3993         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3994         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3995         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3996         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3997         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3998         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3999         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4000         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
4001         removed macros.
4002         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4003         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
4004         macros.
4005         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4006         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
4007         * sysdeps/i386/i586/memset.S (memset): Likewise.
4008         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
4009         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4010         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
4011         macros.
4012         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4013         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
4014         Change uses of L(2) to L(out).
4015         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
4016         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
4017         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
4018         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4019         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
4020         removed macros.
4021         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4022         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
4023         macros.
4024         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4025         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
4026         (RETURN): Do not use macro LEAVE.
4027         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
4028         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
4029         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
4030         * sysdeps/i386/i686/memset.S (memset): Likewise.
4031         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
4032         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
4033         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
4034         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
4035         Likewise.
4036         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4037         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
4038         L(1_2) and L(1_3) into L(1).
4039         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4040         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
4041         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4042         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
4043         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
4044         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
4045         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
4046         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4047         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
4048         macros.
4049         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
4050         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
4051         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
4052         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
4053         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
4054         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
4055         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
4056         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
4057         * sysdeps/i386/strcspn.S (strcspn): Likewise.
4058         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
4059         * sysdeps/i386/strrchr.S (strrchr): Likewise.
4060         * sysdeps/i386/strspn.S (strspn): Likewise.
4061         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
4062         conditional code.
4063         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
4064         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
4065         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
4066         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
4067         L(1_3) into L(1_1).
4068         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
4069         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
4070         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
4071         macros.
4072         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
4073
4074 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4075
4076         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
4077         macro.
4078
4079 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4080
4081         * math/atest-exp.c (exp_mpn): Remove ROUND.
4082         * math/atest-exp2.c (exp_mpn): Likewise.
4083         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
4084
4085         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
4086         * stdlib/tst-tls-atexit-lib.c: Likewise.
4087         * stdlib/tst-tls-atexit.c: Likewise.
4088
4089 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4090
4091         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
4092         and __attribute_alloc_size__.
4093
4094 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4095
4096         * include/programs/xmalloc.h: Change __attribute_alloc_size to
4097         __attribute_alloc_size__.
4098         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
4099         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
4100
4101 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
4102
4103         * include/programs/xmalloc.h: New file.
4104         * catgets/gencat.c: Include it.
4105         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
4106         * elf/pldd.c: Likewise.
4107         * iconv/iconv_charmap.c: Likewise.
4108         * iconv/iconvconfig.c: Likewise.
4109         * iconv/strtab.c: Likewise.
4110         * locale/programs/locale.c: Likewise.
4111         * locale/programs/localedef.h: Likewise.
4112         * locale/programs/simple-hash.c: Likewise.
4113         * nscd/nscd.h: Likewise.
4114         * nss/makedb.c: Likewise.
4115         * sysdeps/generic/ldconfig.h: Likewise.
4116
4117 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4118
4119         * Versions.def: Add GLIBC_2.18.
4120         * include/link.h (struct link_map): New member l_tls_dtor_count.
4121         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
4122         (__call_tls_dtors): Likewise.
4123         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
4124         __cxa_thread_atexit_impl.
4125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4126         Likewise.
4127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4128         Likewise.
4129         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
4130         Likewise.
4131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
4132         Likewise.
4133         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
4135         Likewise.
4136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
4137         Likewise.
4138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4139         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4140         Likewise.
4141         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
4142         (tests): Add test case tst-tls-atexit.
4143         (modules-names): Add shared library for tst-tls-atexit.
4144         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
4145         (GLIBC_PRIVATE): Add __call_tls_dtors.
4146         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
4147         for libstdc++.
4148         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
4149         * stdlib/tst-tls-atexit.c: New test case.
4150         * stdlib/tst-tls-atexit-lib.c: New test case.
4151
4152         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
4153
4154         * elf/Versions (ld): Add _dl_find_dso_for_object.
4155         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
4156         * elf/dl-open.c (_dl_find_dso_for_object): New function.
4157         (dl_open_worker): Use _dl_find_dso_for_object.
4158         * elf/dl-sym.c (do_sym): Likewise.
4159         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
4160
4161 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4162
4163         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
4164         Syntactic changes only.
4165         (_dl_runtime_profile): Do a tail-call to the resolved function.
4166
4167 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
4168
4169         [BZ #13550]
4170         * sysdeps/x86_64/bp-asm.h: Remove file.
4171         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
4172         <bp-sym.h> and <bp-asm.h>.
4173         (__clone): Do not use BP_SYM.
4174         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
4175         <bp-sym.h> and <bp-asm.h>.
4176         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4177         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
4178         "bp-asm.h".
4179         (_setjmp): Do not use BP_SYM.
4180         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
4181         "bp-asm.h".
4182         (setjmp): Do not use BP_SYM.
4183         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
4184         libc_hidden_def.
4185         (mempcpy): Do not use BP_SYM in weak_alias.
4186         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
4187         "bp-asm.h".
4188         (strchr): Do not use BP_SYM.
4189         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
4190         "bp-asm.h".
4191         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
4192         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
4193         (_start): Do not use BP_SYM.
4194         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
4195         "bp-asm.h".
4196         (strcat): Do not use BP_SYM.
4197         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
4198         "bp-asm.h".
4199         (STRCMP): Do not use BP_SYM.
4200         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
4201         "bp-asm.h".
4202         (STRCPY): Do not use BP_SYM.
4203         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
4204         "bp-asm.h".
4205         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
4206         "bp-asm.h".
4207         (FUNCTION): Do not use BP_SYM.
4208         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
4209         weak_alias.
4210         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
4211
4212 2013-02-17  Andreas Jaeger  <aj@suse.de>
4213
4214         * time/Versions: Sort entries.
4215         * string/Versions: Likewise.
4216         * resolv/Versions: Likewise.
4217         * posix/Versions: Likewise.
4218         * iconv/Versions: Likewise.
4219         * elf/Versions: Likewise.
4220         * wcsmbs/Versions: Likewise.
4221
4222 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4223
4224         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
4225         loop termination condition.
4226
4227         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
4228         variable to calculate EZ.
4229         (__sqr): Likewise.
4230
4231         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
4232         the lower precision input.
4233
4234 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
4235
4236         [BZ #13550]
4237         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
4238         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
4239         (run-via-rtld-prefix): Do not handle %-bp tests.
4240         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
4241         (all-object-suffixes): Remove .ob.
4242         (bppfx): Remove variable.
4243         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
4244         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
4245         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
4246         [$(build-bounded) = yes] (libtype.ob): Likewise.
4247         * Makerules (elide-routines.ob): Remove variable.
4248         (do-tests-clean): Do not handle *-bp.out.
4249         (common-mostlyclean): Do not handle *-bp and *-bp.out.
4250         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
4251         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
4252         (tests): Do not include $(tests-bp.out).
4253         (xtests): Do not include $(xtests-bp.out).
4254         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
4255         [$(build-bounded) = yes] ($(addprefix
4256         $(objpfx),$(binaries-bounded))): Remove rule.
4257         ($(objpfx)%-bp.out): Remove rule.
4258         * config.make.in (build-bounded): Remove variable.
4259         * crypt/Makefile [$(build-bounded) = yes]
4260         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
4261         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
4262         append to variable.
4263         [$(build-bounded) = yes] (install-lib): Likewise.
4264         [$(build-bounded) = yes] (generated): Likewise.
4265         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
4266         Remove rule.
4267         * intl/Makefile [$(build-bounded) = yes]
4268         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
4269         * math/Makefile [$(build-bounded) = yes]
4270         ($(tests:%=$(objpfx)%-bp): Likewise.
4271         * misc/Makefile [$(build-bounded) = yes]
4272         ($(objpfx)tst-tsearch-bp): Likewise.
4273         * nptl/Makeconfig (bounded-thread-library): Remove variable.
4274         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
4275         Remove dependency.
4276         * string/Makefile (o-objects.ob): Remove variable.
4277         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
4278         (CFLAGS-.ob): Remove variable.
4279         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
4280         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
4281         both definitions of variable.
4282         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
4283         (ASFLAGS-.ob): Remove variable.
4284
4285 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
4286
4287         [BZ #13550]
4288         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
4289         Remove __BOUNDED_POINTERS__ from condition.
4290         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
4291         * string/bits/string2.h [!__NO_STRING_INLINES &&
4292         !__BOUNDED_POINTERS__]: Likewise.
4293         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
4294         Likewise.
4295         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
4296         Remove conditional code.
4297         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
4298         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
4299         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
4300         condition.
4301
4302         [BZ #13550]
4303         * csu/libc-start.c: Do not include <bp-sym.h>.
4304         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
4305         * elf/dl-open.c: Do not include <bp-sym.h>.
4306         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
4307         * math/fegetenv.c: Do not include <bp-sym.h>.
4308         (fegetenv): Do not use BP_SYM in versioned symbols.
4309         * nptl/sysdeps/pthread/bits/libc-lockP.h
4310         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
4311         <bp-sym.h>.
4312         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4313         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
4314         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4315         (__pthread_mutex_destroy): Likewise.
4316         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4317         (__pthread_mutex_lock): Likewise.
4318         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4319         (__pthread_mutex_trylock): Likewise.
4320         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4321         (__pthread_mutex_unlock): Likewise.
4322         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4323         (__pthread_mutexattr_init): Likewise.
4324         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4325         (__pthread_mutexattr_destroy): Likewise.
4326         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4327         (__pthread_mutexattr_settype): Likewise.
4328         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4329         (__pthread_rwlock_init): Likewise.
4330         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4331         (__pthread_rwlock_destroy): Likewise.
4332         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4333         (__pthread_rwlock_rdlock): Likewise.
4334         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4335         (__pthread_rwlock_tryrdlock): Likewise.
4336         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4337         (__pthread_rwlock_wrlock): Likewise.
4338         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4339         (__pthread_rwlock_trywrlock): Likewise.
4340         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4341         (__pthread_rwlock_unlock): Likewise.
4342         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4343         (__pthread_key_create): Likewise.
4344         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4345         (__pthread_setspecific): Likewise.
4346         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4347         (__pthread_getspecific): Likewise.
4348         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
4349         Likewise.
4350         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4351         (_pthread_cleanup_push_defer): Likewise.
4352         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4353         (_pthread_cleanup_pop_restore): Likewise.
4354         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4355         (pthread_setcancelstate): Likewise.
4356         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
4357         <bp-sym.h>.
4358         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
4359         (memchr): Do not use BP_SYM in weak_alias.
4360         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
4361         (fegetenv): Do not use BP_SYM in versioned symbols.
4362         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
4363         (fesetenv): Do not use BP_SYM in versioned symbols.
4364         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4365         (feupdateenv): Do not use BP_SYM in versioned symbols.
4366         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4367         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4368         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
4369         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
4370         (open64): Do not use BP_SYM in weak_alias.
4371         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
4372         (fegetenv): Do not use BP_SYM in versioned symbols.
4373         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
4374         (fesetenv): Do not use BP_SYM in versioned symbols.
4375         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4376         (feupdateenv): Do not use BP_SYM in versioned symbols.
4377         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
4378         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
4379         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
4380         (feraiseexcept): Do not use BP_SYM in versioned symbols.
4381         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4382         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4383         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
4384         <bp-sym.h>.
4385         (__libc_start_main): Do not use BP_SYM.
4386
4387 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4388
4389         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
4390         redundant return line.
4391         (norm): Likewise.
4392         (denorm): Likewise.
4393         (dbl_mp): Likewise.
4394         (sub_magnitudes): Likewise.
4395         (__add): Likewise.
4396         (__sub): Likewise.
4397         (__mul): Likewise.
4398         (__inv): Likewise.
4399         (__dvd): Likewise.
4400         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
4401         (norm): Likewise.
4402         (denorm): Likewise.
4403         (dbl_mp): Likewise.
4404         (sub_magnitudes): Likewise.
4405         (__add): Likewise.
4406         (__sub): Likewise.
4407         (__mul): Likewise.
4408         (__inv): Likewise.
4409         (__dvd): Likewise.
4410
4411         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
4412         instead of __mul.
4413         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
4414         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
4415         (cc32): Likewise.
4416
4417         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
4418         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
4419         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
4420         of __mul for squares.
4421         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
4422         function
4423         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
4424         Likewise.
4425         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
4426         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4427
4428 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
4429
4430         [BZ #13550]
4431         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
4432         code.
4433         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
4434         prototype or function definition.  Rename ubp_* variables and
4435         parameters.  Remove argv definitions conditional on
4436         [__BOUNDED_POINTERS__].
4437         * debug/backtrace.c (__backtrace): Do not use __unbounded.
4438         * elf/dl-runtime.c (_dl_fixup): Likewise.
4439         * include/set-hooks.h (RUN_HOOK): Likewise.
4440         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
4441         definition.
4442         * string/strcpy.c (strcpy): Do not use __unbounded.
4443         * sysdeps/generic/frame.h (struct layout): Likewise.
4444         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
4445         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
4446         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
4447         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
4448         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
4449         (__backtrace): Likewise.
4450         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
4451         use __ptrvalue.
4452         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
4453         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
4454         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4455         Likewise.
4456         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4457         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
4458         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
4459         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4460         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
4461         Do not use __unbounded.
4462         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
4463         Rename __unboundedrlimits parameter to rlimits in prototype.
4464         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
4465         Do not use __unbounded.
4466         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
4467         not use __ptrvalue.
4468         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4469         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
4470         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4471         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
4472         __ptrvalue or __unbounded.
4473         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
4474         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
4475         use __unbounded.
4476         (__new_msgctl): Do not use __ptrvalue.
4477         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
4478         __unbounded.
4479         (__libc_msgrcv): Do not use __ptrvalue.
4480         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
4481         startup_info): Do not use __unbounded.
4482         (__libc_start_main): Likewise.  Rename ubp_* variables and
4483         parameters.  Remove argv definitions conditional on
4484         [__BOUNDED_POINTERS__].
4485         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
4486         __ptrvalue.
4487         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
4488         use __unbounded.
4489         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
4490         or __ptrvalue.
4491         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
4492         use __unbounded.
4493         (__new_shmctl): Do not use __ptrvalue.
4494         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
4495         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
4496         Likewise.
4497         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
4498         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
4499         (__libc_sigaction): Likewise.
4500         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4501         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
4502         Likewise.
4503         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4504
4505 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
4506
4507         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
4508
4509         * string/mempcpy.c: Implement by calling memcpy.
4510
4511 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4512
4513         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
4514
4515         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
4516         evaluation.
4517
4518         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
4519         values in the mantissa.
4520
4521         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
4522         minimize writes to Z.
4523         (sub_magnitudes): Simplify code a bit.
4524
4525 2013-02-12  Roland McGrath  <roland@hack.frob.com>
4526
4527         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
4528         from the message.  The linker prefixes all warnings with that already.
4529
4530 2013-02-12  Andreas Schwab  <schwab@suse.de>
4531
4532         [BZ #15078]
4533         * posix/regexec.c (extend_buffers): Add parameter min_len.
4534         (check_matching): Pass minimum needed length.
4535         (clean_state_log_if_needed): Likewise.
4536         (get_subexp): Likewise.
4537         * posix/Makefile (tests): Add bug-regex34.
4538         (bug-regex34-ENV): Define.
4539         * posix/bug-regex34.c: New file.
4540
4541         [BZ #11561]
4542         * posix/regcomp.c (parse_bracket_exp): When looking up collating
4543         elements compare against the byte sequence of it, not its name.
4544         * posix/Makefile (tests): Add bug-regex35.
4545         (bug-regex35-ENV): Define.
4546         * posix/bug-regex35.c: New file.
4547
4548 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4549
4550         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
4551         comment.
4552         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
4553         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
4554         (CHECK_EOL): Add undef.
4555
4556 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
4557
4558         * bits/stdlib-bsearch.h: New file.
4559         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
4560         * stdlib/stdlib.h: Likewise.
4561
4562 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4563
4564         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
4565         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
4566         declaration.
4567         * manual/search.texi (Array Search Function): Add missing const in
4568         lfind prototype.
4569         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
4570         declaration to use rlim_t.
4571         (Basic Scheduling Functions): Remove erroneous const from
4572         sched_getparam prototype.  Remove erroneous * from
4573         sched_get_priority_max and sched_get_priority_min prototypes.
4574         (Resource Usage): Fix summary @comment on vtimes to refer to
4575         sys/vtimes.h rather than vtimes.h.
4576         Add missing *s in vtimes prototype.
4577         (Limits on Resources): Fix ulimit prototype to return long int.
4578         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
4579         prototypes to use long int rather than double.
4580         (BSD Random): Fix initstate and setstate to use char *, not void *.
4581         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
4582         prototype to make second argument 'struct aiocb64 *const[]'.
4583         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
4584         (Status of AIO Operations): Remove erroneous const in aio_return and
4585         aio_return64 prototypes.
4586         (Synchronizing I/O): Fix sync prototype to return void.
4587         * manual/startup.texi (Suboptions): Remove an erroneous const in
4588         getsubopt prototype.
4589         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
4590         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
4591         use size_t rather than int.
4592         (Scanning All Users): Likewise for getpwent_r.
4593         (Setting Groups): Add missing const to setgroups prototype.
4594         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
4595         * manual/socket.texi (Host Names): Fix gethostbyaddr and
4596         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
4597         'const void *' rather than 'const char *'.
4598         (Host Address Functions): Likewise for inet_ntop.
4599         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
4600         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
4601         ssize_t for return value.
4602         (Sending Data): Likewise for send, sendto, sendmsg.
4603         (Socket Option Functions): Add a missing const in setsockopt prototype.
4604         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
4605         use wchar_t for the argument.
4606         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
4607         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
4608         take no arguments.
4609         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
4610         double/float/long double for second argument.
4611         Fix return types of significand, significandf, significandl.
4612         * manual/filesys.texi (Setting Permissions): Use mode_t for second
4613         argument in fchmod prototype.
4614         (File Owner): Use uid_t and gid_t in fchown prototype.
4615         (File Times): Add const to utimes, futimes, and lutimes prototypes.
4616         (Making Special Files): Use mode_t and dev_t in mknod prototype.
4617         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
4618         use 'const struct dirent **' as argument types to CMP function pointer
4619         argument.
4620         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
4621         (File Times): Fix summary magic @comment for struct utimbuf and utime
4622         to refer to utime.h, not time.h.
4623         * manual/string.texi (Argz Functions): Add missing const in
4624         argz_extract and argz_next prototypes.
4625         (Finding Tokens in a String): Likewise for basename.
4626         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4627         (Copying and Concatenation): Fix typo in wmemmove prototype.
4628         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4629         (Signal Stack): Remove erroneous const in sigstack prototype.
4630         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4631         prototype.
4632         (Simple Calendar Time): Likewise for stime.
4633         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4634         prototype.
4635         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4636         say sys/sysctl.h instead.
4637         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4638         and vsyslog prototypes.
4639
4640 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4641
4642         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4643         Remove.
4644
4645 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4646
4647         * misc/sys/mman.h: Fix typo in mremap comment.
4648
4649 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4650
4651         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4652         the '\0' terminator.
4653
4654 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4655
4656         [BZ #13550]
4657         * debug/segfault.c: Don't include <bp-checks.h>.
4658         * sysdeps/generic/bp-checks.h: Remove file.
4659         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4660         (__GETDENTS): Don't use CHECK_N.
4661         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4662         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4663         (__getgroups): Don't use CHECK_N.
4664         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4665         (setgroups): Don't use CHECK_N.
4666         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4667         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4668         (__libc_msgrcv): Don't use CHECK_N.
4669         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4670         (__libc_msgsnd): Don't use CHECK_N.
4671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4672         <bp-checks.h>.
4673         (__libc_pread): Don't use CHECK_N.
4674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4675         include <bp-checks.h>.
4676         (__libc_pread64): Don't use CHECK_N.
4677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4678         include <bp-checks.h>.
4679         (__libc_pwrite): Don't use CHECK_N.
4680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4681         include <bp-checks.h>.
4682         (__libc_pwrite64): Don't use CHECK_N.
4683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4684         <bp-checks.h>.
4685         (__libc_pread): Don't use CHECK_N.
4686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4687         include <bp-checks.h>.
4688         (__libc_pread64): Don't use CHECK_N.
4689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4690         include <bp-checks.h>.
4691         (__libc_pwrite): Don't use CHECK_N.
4692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4693         include <bp-checks.h>.
4694         (__libc_pwrite64): Don't use CHECK_N.
4695         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4696         (do_pread): Don't use CHECK_N.
4697         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4698         (do_pread64): Don't use CHECK_N.
4699         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4700         (do_pwrite): Don't use CHECK_N.
4701         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4702         (do_pwrite64): Don't use CHECK_N.
4703         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4704         (__libc_readv): Don't use CHECK_N.
4705         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4706         (semop): Don't use CHECK_N.
4707         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4708         <bp-checks.h>.
4709         (semtimedop): Don't use CHECK_N.
4710         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4711         (__libc_pread): Don't use CHECK_N.
4712         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4713         <bp-checks.h>.
4714         (__libc_pread64): Don't use CHECK_N.
4715         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4716         <bp-checks.h>.
4717         (__libc_pwrite): Don't use CHECK_N.
4718         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4719         <bp-checks.h>.
4720         (__libc_pwrite64): Don't use CHECK_N.
4721         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4722         <bp-checks.h>.
4723         (__libc_msgrcv): Don't use CHECK_N.
4724         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4725         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4726         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4727         (__libc_writev): Don't use CHECK_N.
4728
4729 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4730
4731         * string/strcpy.c: Removed unused variable.
4732
4733         * Makeconfig (+sysdep-includes): Define with := rather than =.
4734         Use an existing include/ subdir of each sysdeps dir before it.
4735
4736 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4737
4738         * nscd/connection.c (register_traced_file): Comment function.
4739         [HAVE_INOTIFY] (union __inev): Define.
4740         [HAVE_INOTIFY] (inotify_check_files): New function.
4741         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4742         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4743         clear_db_cache.
4744         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4745
4746 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4747
4748         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4749         loaded if not already and that a failure is permanent.
4750
4751 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4752
4753         [BZ #15006]
4754         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4755         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4756
4757 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4758
4759         [BZ #13550]
4760         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4761         (CHECK_1_NULL_OK): Likewise.
4762         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4763         (__fxstat): Do not use CHECK_1.
4764         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4765         <bp-checks.h>.
4766         (___fxstat64): Do not use CHECK_1.
4767         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4768         <bp-checks.h>.
4769         (__fxstatat): Do not use CHECK_1.
4770         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4771         <bp-checks.h>.
4772         (__fxstatat64): Do not use CHECK_1.
4773         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4774         <bp-checks.h>.
4775         (__fxstat): Do not use CHECK_1.
4776         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4777         <bp-checks.h>.
4778         (__fxstatat): Do not use CHECK_1.
4779         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4780         <bp-checks.h>.
4781         (__getresgid): Do not use CHECK_1.
4782         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4783         <bp-checks.h>.
4784         (__getresuid): Do not use CHECK_1.
4785         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4786         <bp-checks.h>.
4787         (__lxstat): Do not use CHECK_1.
4788         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4789         <bp-checks.h>.
4790         (__old_msgctl): Do not use CHECK_1.
4791         (__new_msgctl): Likewise.
4792         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4793         <bp-checks.h>.
4794         (__new_setrlimit): Do not use CHECK_1.
4795         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4796         <bp-checks.h>.
4797         (__old_shmctl): Do not use CHECK_1.
4798         (__new_shmctl): Likewise.
4799         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4800         <bp-checks.h>.
4801         (__xstat): Do not use CHECK_1.
4802         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4803         (__lxstat): Do not use CHECK_1.
4804         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4805         <bp-checks.h>.
4806         (___lxstat64): Do not use CHECK_1.
4807         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4808         (__old_msgctl): Do not use CHECK_1.
4809         (__new_msgctl): Likewise.
4810         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4811         <bp-checks.h>.
4812         (__gettimeofday): Do not use CHECK_1.
4813         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4814         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4815         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4816         <bp-checks.h>.
4817         (__gettimeofday): Do not use CHECK_1.
4818         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4819         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4820         (__new_shmctl): Do not use CHECK_1.
4821         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4822         <bp-checks.h>.
4823         (do_sigtimedwait): Do not use CHECK_1.
4824         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4825         <bp-checks.h>.
4826         (do_sigwaitinfo): Do not use CHECK_1.
4827         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4828         <bp-checks.h>.
4829         (msgctl): Do not use CHECK_1.
4830         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4831         <bp-checks.h>.
4832         (shmctl): Do not use CHECK_1.
4833         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4834         (ustat): Do not use CHECK_1.
4835         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4836         <bp-checks.h>.
4837         (__fxstat): Do not use CHECK_1.
4838         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4839         <bp-checks.h>.
4840         (__fxstatat): Do not use CHECK_1.
4841         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4842         <bp-checks.h>.
4843         (__lxstat): Do not use CHECK_1.
4844         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4845         <bp-checks.h>.
4846         (__xstat): Do not use CHECK_1.
4847         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4848         (__xstat): Do not use CHECK_1.
4849         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4850         (___xstat64): Do not use CHECK_1.
4851
4852         [BZ #13550]
4853         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4854         definitions.
4855         (CHECK_BOUNDS_HIGH): Likewise.
4856         * string/strcpy.c: Do not include <bp-checks.h>.
4857         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4858
4859 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4860
4861         * nscd/nscd-client.h (__nscd_drop_map_ref):
4862         Add __attribute__ ((unused)).
4863         * nis/nss-nisplus.h (niserr2nss): Likewise.
4864
4865         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4866         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4867
4868         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4869         Remove inline keyword.
4870         * include/rounding-mode.h (round_away): Likewise.
4871         * libio/wfileops.c (adjust_wide_data): Likewise.
4872         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4873         (__m128i_strloadu_tolower): Likewise.
4874         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4875         (__m128i_strloadu_tolower): Likewise.
4876         * time/mktime.c (ydhms_diff): Likewise.
4877         * locale/elem-hash.h (elem_hash): Likewise.
4878         * locale/setlocale.c (setdata): Likewise.
4879         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4880         (re_string_wchar_at): Likewise.
4881         (bitset_not, bitset_merge, bitset_mask): Likewise.
4882         [!(__GNUC__ > 3)] (inline): Remove macro.
4883         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4884         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4885         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4886         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4887         * string/memcmp.c (memcmp_bytes): Likewise.
4888         * locale/programs/locarchive.c (compute_hashval): Likewise.
4889         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4890         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4891         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4892         * nss/getent.c (print_rpc, print_protocols): Likewise.
4893         (print_passwd, print_group, print_aliases): Likewise.
4894         * nis/nss-nisplus.h (niserr2nss): Likewise.
4895         * nscd/connections.c (restart_p): Likewise.
4896         Change return type to bool.
4897
4898 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4899
4900         * Makeconfig (all-Depend-files): Add existing
4901         $(sorted-subdirs:=/Depend) files.
4902         (all-subdirs): Remove nss.
4903         * sysdeps/unix/inet/Subdirs: Add it here instead.
4904         * hesiod/Depend: New file.
4905
4906         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4907         instead of calling alloca.
4908
4909         * io/lseek.c (__lseek): Rename to __libc_lseek.
4910         Define __lseek as an alias.
4911
4912         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4913
4914 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4915
4916         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4917         else clause and remove check for non-standard endianness.
4918
4919 2013-02-04  David S. Miller  <davem@davemloft.net>
4920
4921         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4922
4923 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4924
4925         [BZ #13550]
4926         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4927         (__ubp_memchr): Remove prototype.
4928         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4929         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4930         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4931         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4932         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4933         Remove alias.
4934         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4935         (__ubp_memchr): Likewise.
4936         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4937         (__ubp_memchr): Likewise.
4938         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4939         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4940         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4941         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4942         CHECK_STRING.
4943         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4944         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4945         (__getcwd): Do not use CHECK_STRING.
4946         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4947         <bp-checks.h>.
4948         (__real_chown): Do not use CHECK_STRING.
4949         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4950         <bp-checks.h>.
4951         (fchownat): Do not use CHECK_STRING.
4952         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4953         CHECK_STRING.
4954         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4955         <bp-checks.h>.
4956         (__lchown): Do not use CHECK_STRING.
4957         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4958         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4959         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4960         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4962         include <bp-checks.h>.
4963         (truncate64): Do not use CHECK_STRING.
4964         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4965         <bp-checks.h>.
4966         (__real_chown): Do not use CHECK_STRING.
4967         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4968         <bp-checks.h>.
4969         (__lchown): Do not use CHECK_STRING.
4970         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4971         <bp-checks.h>.
4972         (__chown): Do not use CHECK_STRING.
4973         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4974         <bp-checks.h>.
4975         (truncate64): Do not use CHECK_STRING.
4976         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4977         Likewise.
4978         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4979         (__xmknod): Do not use CHECK_STRING.
4980         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4981         <bp-checks.h>.
4982         (__xmknodat): Do not use CHECK_STRING.
4983         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4984         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4985
4986 2013-02-04  Andreas Schwab  <schwab@suse.de>
4987
4988         [BZ #14142]
4989         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4990         * include/netdb.h: Likewise for h_errno.
4991         * elf/tst-stackguard1.c: Include <tls.h>.
4992
4993 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4994
4995         * elf/link.h (struct link_map): Extend the l_addr comment.
4996         * include/link.h (struct link_map): Likewise.
4997
4998 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4999
5000         [BZ #13550]
5001         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
5002         (BOUNDED_1): Remove macro.
5003         * debug/backtrace.c: Don't include <bp-checks.h>.
5004         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
5005         (__backtrace): Likewise.
5006         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
5007         <bp-checks.h>.
5008         (__backtrace): Don't use BOUNDED_1.
5009         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
5010         <bp-checks.h>.
5011         (__backtrace): Don't use BOUNDED_1.
5012         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
5013         (__backtrace): Don't use BOUNDED_1.
5014         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
5015         (shmat): Don't use BOUNDED_N.
5016
5017 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
5018
5019         [BZ #13550]
5020         * sysdeps/generic/bp-start.h: Remove file.
5021         * csu/libc-start.c: Don't include <bp-start.h>.
5022         (LIBC_START_MAIN): Set up __environ directly instead of using
5023         INIT_ARGV_and_ENVIRON.
5024         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
5025         <bp-start.h>.
5026
5027         [BZ #13550]
5028         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
5029         definitions.
5030         (CHECK_FCNTL): Likewise.
5031         (CHECK_N_PAGES): Likewise.
5032
5033         [BZ #13550]
5034         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
5035         definitions.
5036         (CHECK_SIGSET_NULL_OK): Likewise.
5037         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
5038         <bp-checks.h>.
5039         (sigpending): Don't use CHECK_SIGSET.
5040         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
5041         <bp-checks.h>.
5042         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5043         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
5044         <bp-checks.h>.
5045         (do_sigsuspend): Don't use CHECK_SIGSET.
5046         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
5047         use CHECK_SIGSET.
5048         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
5049         (do_sigwait): Don't use CHECK_SIGSET.
5050         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
5051         use CHECK_SIGSET.
5052         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
5053         include <bp-checks.h>.
5054         (sigpending): Don't use CHECK_SIGSET.
5055         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
5056         include <bp-checks.h>.
5057         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5058         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
5059         <bp-checks.h>.
5060         (sigpending): Don't use CHECK_SIGSET.
5061         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
5062         <bp-checks.h>.
5063         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
5064
5065         [BZ #13550]
5066         * sysdeps/generic/bp-semctl.h: Remove file.
5067         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
5068         <bp-checks.h> and <bp-semctl.h>.
5069         (__old_semctl): Don't use CHECK_SEMCTL.
5070         (__new_semctl): Likewise.
5071         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
5072         and <bp-semctl.h>.
5073         (__old_semctl): Don't use CHECK_SEMCTL.
5074         (__new_semctl): Likewise.
5075         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
5076         <bp-checks.h> and <bp-semctl.h>.
5077         (__old_semctl): Don't use CHECK_SEMCTL.
5078         (__new_semctl): Likewise.
5079         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
5080         <bp-checks.h> and <bp-semctl.h>.
5081         (semctl): Don't use CHECK_SEMCTL.
5082
5083         [BZ #13550]
5084         * Makerules (elide-bp-thunks): Remove variable.
5085         (elide-routines.oS): Don't use $(elide-bp-thunks).
5086         (elide-routines.os): Likewise.
5087         (elide-routines.o): Likewise.
5088         (elide-routines.op): Likewise.
5089         (elide-routines.og): Likewise.
5090         (objects): Don't use $(bp-thunks).
5091         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
5092         include.
5093         (common-generated): Do not add s-proto-bp.d.
5094         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
5095         (int): Likewise.
5096         (typ): Likewise.
5097         Do not generate makefile rules for bounded-pointer thunks.
5098         * sysdeps/generic/bp-thunks.h: Remove file.
5099         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
5100         * sysdeps/unix/s-proto-bp.S: Likewise.
5101
5102         [BZ #15062]
5103         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
5104         parts of result separately when argument is not close to line from
5105         -i to i and one part of argument is small.
5106         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5107         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5108         * math/libm-test.inc (cacos_test): Add more tests.
5109         (casin_test): Likewise.
5110         (casinh_test): Likewise.
5111         * sysdeps/i386/fpu/libm-test-ulps: Update.
5112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5113
5114 2013-01-31  David S. Miller  <davem@davemloft.net>
5115
5116         * po/de.po: Update from translation team.
5117
5118 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
5119
5120         * time/tzfile.c: Include stdint.h for SIZE_MAX.
5121
5122 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
5123
5124         * configure.in (_AC_PROG_CC_C89): New definition.
5125         * configure: Regenerate.
5126
5127         * configure.in (AC_PROG_CPP): New definition.
5128         * configure: Regenerate.
5129
5130 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5131
5132         * debug/tst-backtrace.h: New file.
5133         * debug/tst-backtrace2.c: Include tst-backtrace.h.
5134         (ret): Remove variable.
5135         (x): Likewise.
5136         (FAIL): Remove macro.
5137         (NO_INLINE): Likewise.
5138         (fn1): Use match function instead of strstr.
5139         * debug/tst-backtrace3.c: Include tst-backtrace.h.
5140         (ret): Remove variable.
5141         (x): Likewise.
5142         (FAIL): Remove macro.
5143         (NO_INLINE): Likewise.
5144         (fn): Use match function instead of strstr.
5145         * debug/tst-backtrace4.c: Include tst-backtrace.h.
5146         (ret): Remove variable.
5147         (x): Likewise.
5148         (FAIL): Remove macro.
5149         (NO_INLINE): Likewise.
5150         (handle_signal): Use match function instead of strstr.
5151         * debug/tst-backtrace5.c: Include tst-backtrace.h.
5152         (ret): Remove variable.
5153         (x): Likewise.
5154         (FAIL): Remove macro.
5155         (NO_INLINE): Likewise.
5156         (handle_signal): Use match function instead of strstr.
5157
5158 2013-01-23  Roland McGrath  <roland@hack.frob.com>
5159
5160         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
5161
5162 2013-01-23  David S. Miller  <davem@davemloft.net>
5163
5164         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5165         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
5166         argument of CAS if possible.
5167         * sysdeps/sparc/sparc64/bits/atomic.h
5168         (__arch_compare_and_exchange_val_32_acq): Likewise.
5169         (__arch_compare_and_exchange_val_64_acq): Likewise.
5170
5171 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
5172
5173         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
5174         * sysdeps/posix/ulimit.c: ... this.
5175         Include <limits.h>.
5176         * sysdeps/unix/bsd/ulimit.c: Remove file.
5177
5178 2013-01-23  Adam Conrad  <adconrad@0c3.net>
5179
5180         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
5181         (LDFLAGS-tst-array5): Likewise.
5182
5183 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
5184
5185         [BZ #15036]
5186         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
5187         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
5188         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
5189         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
5190
5191 2013-01-21  David S. Miller  <davem@davemloft.net>
5192
5193         * sysdeps/sparc/backtrace.c: New file.
5194         * sysdeps/sparc/sparc32/backtrace.h: New file.
5195         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
5196         * sysdeps/sparc/sparc64/backtrace.h: New file.
5197         * sysdeps/sparc/sparc64/backtrace.c: Delete.
5198         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
5199         -funwind-tables.
5200
5201 2013-01-21  Andreas Schwab  <schwab@suse.de>
5202
5203         [BZ #15020]
5204         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
5205         closed its stdout.
5206
5207 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
5208
5209         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
5210         "mpa2.h".
5211         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5212
5213 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
5214             Mark Mitchell  <mark@codesourcery.com>
5215             Tom de Vries  <tom@codesourcery.com>
5216             Paul Pluzhnikov  <ppluzhnikov@google.com>
5217
5218         * debug/tst-backtrace2.c: New file.
5219         * debug/tst-backtrace3.c: Likewise.
5220         * debug/tst-backtrace4.c: Likewise.
5221         * debug/tst-backtrace5.c: Likewise.
5222         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
5223         (CFLAGS-tst-backtrace3.c): Likewise.
5224         (CFLAGS-tst-backtrace4.c): Likewise.
5225         (CFLAGS-tst-backtrace5.c): Likewise.
5226         (LDFLAGS-tst-backtrace2): Likewise.
5227         (LDFLAGS-tst-backtrace3): Likewise.
5228         (LDFLAGS-tst-backtrace4): Likewise.
5229         (LDFLAGS-tst-backtrace5): Likewise.
5230         (tests): Add new tests tst-backtrace2, tst-backtrace3,
5231         tst-backtrace4 and tst-backtrace5.
5232
5233 2013-01-18  Anton Blanchard  <anton@samba.org>
5234             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5235
5236         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
5237         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
5238         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
5239         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
5240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5241         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
5242         "+r" and remove output regs list as redundant.  Add explicit inline
5243         asm to specify register of return val to work around compiler codegen
5244         bug.  Remove (int) cast on return value.  Add return type parameter to
5245         use in macro so that this macro does not truncate return value for
5246         64-bit values.
5247         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
5248         pass to INTERNAL_VSYSCALL_NCS.
5249         (INLINE_VSYSCALL): Add 'long int' as return type to
5250         INTERNAL_VSYSCALL_NCS macro invocation.
5251         (INTERNAL_VSYSCALL): Add 'long int' as return type to
5252         INTERNAL_VSYSCALL_NCS macro invocation.
5253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5254
5255 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5256
5257         [BZ #14496]
5258         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
5259         Fix application of SIMD FP exception mask.
5260
5261         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
5262         mp_no from a power of two.
5263         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
5264         __mpexp_twomm1.  Use __pow_mp.
5265
5266         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
5267         multiplication.
5268
5269 2013-01-17  David S. Miller  <davem@davemloft.net>
5270
5271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5272
5273 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5274
5275         [BZ #15023]
5276         * include/complex.h: Condition contents on [!_COMPLEX_H].
5277         (__kernel_casinhf): New prototype.
5278         (__kernel_casinh): Likewise.
5279         (__kernel_casinhl): Likewise.
5280         * math/Makefile (libm_calls): Add k_casinh.
5281         * math/k_casinh.c: New file.
5282         * math/k_casinhf.c: Likewise.
5283         * math/k_casinhl.c: Likewise.
5284         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
5285         finite nonzero arguments.
5286         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
5287         finite nonzero arguments.
5288         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
5289         finite nonzero arguments.
5290         * math/s_casinh.c: Do not include <float.h>.
5291         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
5292         * math/s_casinhf.c: Do not include <float.h>.
5293         (__casinhf): Move code for finite nonzero arguments to
5294         k_casinhf.c.
5295         * math/s_casinhl.c: Do not include <float.h>.
5296         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
5297         redefine.
5298         (__casinhl): Move code for finite nonzero arguments to
5299         k_casinhl.c.
5300         * math/libm-test.inc (cacos_test): Add more tests.
5301         * sysdeps/i386/fpu/libm-test-ulps: Update.
5302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5303
5304 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
5305
5306         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
5307         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
5308         [!HAVE_MREMAP]: Remove [defined linux] case.
5309         * malloc/arena.c: Do not include <malloc-sysdep.h>.
5310
5311 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5312
5313         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
5314
5315 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
5316
5317         * elf/elf.h (R_386_SIZE32): New relocation.
5318         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
5319         R_386_SIZE32.
5320         (elf_machine_rela): Likewise.
5321         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5322         R_X86_64_SIZE64 and R_X86_64_SIZE32.
5323
5324 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5325
5326         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
5327         (FP_FAST_FMA): Do not define.
5328         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
5329         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
5330         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
5331         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
5332         !_SOFT_FLOAT]: Likewise.
5333         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
5334         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
5335         value.
5336         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
5337         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
5338         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
5339         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
5340         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
5341         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
5342         file.
5343
5344 2013-01-16  Andreas Schwab  <schwab@suse.de>
5345
5346         [BZ #14327]
5347         * include/stdlib.h (__mktemp): Add declaration.
5348         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
5349         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
5350
5351 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5352
5353         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
5354         definitions.
5355         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5356         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
5357         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
5358         definitions here.
5359         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
5360         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
5361         definitions.
5362         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
5363         and ONE.
5364         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
5365         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
5366         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
5367         definitions.
5368         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
5369         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
5370         definitions.
5371         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5372
5373         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
5374
5375 2013-01-15  David S. Miller  <davem@davemloft.net>
5376
5377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5378         trunc{,f} to libm-sysdep_routes.
5379         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
5381         file.
5382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
5383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
5384         file.
5385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
5386         file.
5387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
5388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
5389         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
5390         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
5391         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
5392         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
5393         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
5394         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
5395
5396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5397         nearbyint{,f} to libm-sysdep_routes.
5398         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
5400         New file.
5401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
5402         file.
5403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
5404         New file.
5405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
5406         file.
5407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
5408         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
5409         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
5410         file.
5411         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
5412         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
5413         file.
5414         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
5415         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
5416         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
5417
5418         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5419         libc_feholdexcept and libc_fesetenv.
5420
5421 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
5422
5423         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
5424
5425 2013-01-14  David S. Miller  <davem@davemloft.net>
5426
5427         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
5428         (SPARC_ASM_VIS2_IFUNC): Likewise.
5429         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
5430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
5431         use of 'siam' instruction.
5432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
5433         Likewise.
5434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
5435         Likewise.
5436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
5437         Likewise.
5438         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5439         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5440         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5441         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
5443         file.
5444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
5445         file.
5446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
5447         file.
5448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
5449         file.
5450         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
5451         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
5452         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
5453         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
5454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
5455         new VIS2 routines.
5456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5459         Likewise.
5460         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5461         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5462         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5463         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
5465         routines to libm-sysdep_routines.
5466         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5467
5468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5469         fdim/fdimf to libm-sysdep_routines.
5470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
5471         file.
5472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
5473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
5474         file.
5475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
5476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
5477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
5478         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
5479         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
5480         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
5481         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
5482
5483 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5484
5485         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
5486         to optimize copies.
5487
5488         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
5489         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5490         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5491
5492         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
5493         local variable MPTWO.
5494         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
5495         Likewise.
5496
5497 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5498
5499         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
5500         GLOB_NOESCAPE.
5501
5502 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5503
5504         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
5505
5506 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5507
5508         * manual/pattern.texi (glob_t): Document gl_flags.
5509         (glob64_t): Likewise.
5510
5511 2013-01-11  David S. Miller  <davem@davemloft.net>
5512
5513         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
5514         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
5515         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
5516         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
5517         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
5518         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
5519         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
5520         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
5521         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
5522         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
5523         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
5524         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
5525         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
5526
5527         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5528         sparc V9 rather than using V8 code.
5529         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5530         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5531
5532         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5533         Move to...
5534         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
5535         Here.
5536
5537 2013-01-11  Roland McGrath  <roland@hack.frob.com>
5538
5539         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
5540         not in the main loop.
5541         * configure: Regenerated.
5542
5543 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
5544
5545         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
5546         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
5547         to just #else.
5548         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
5549         [!__GLIBC_HAVE_LONG_LONG] case.
5550         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
5551         condition to just #else.
5552         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
5553         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
5554         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
5555         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
5556         unconditional.
5557         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
5558         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5559         #elif condition to just #else.
5560         * sysdeps/unix/sysv/linux/sys/sysmacros.h
5561         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
5562         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5563         #elif condition to just #else.
5564
5565 2013-01-11  Steve Ellcey  <sellcey@mips.com>
5566
5567         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
5568         (EF_MIPS_ARCH_64): Fix value.
5569         (EF_MIPS_ARCH_32R2): New.
5570         (EF_MIPS_ARCH_64R2): New.
5571
5572 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5573
5574         * Makeconfig (+link-pie-before-libc): New.
5575         (+link-pie-after-libc): Likewise.
5576         (+link-pie-tests): Likewise.
5577         (+link-pie): Rewritten.
5578         (link-before-libc): Remove $(config-LDFLAGS).
5579         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
5580         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
5581         (config-LDFLAGS): Renamed to ...
5582         (rtld-LDFLAGS): This.
5583         (rtld-tests-LDFLAGS): New macro.
5584         (link-libc-rpath-link): Likewise.
5585         (link-libc-tests-rpath-link): Likewise.
5586         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
5587         (link-libc): Prepand $(link-libc-rpath-link).
5588         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
5589         (test-program-prefix): New macro.
5590         (test-via-rtld-prefix): Likewise.
5591         (test-program-cmd): Likewise.
5592         (host-test-program-cmd): Likewise.
5593         * Makefile ($(common-objpfx)testrun.sh): Replace
5594         $(run-program-prefix) with $(test-program-prefix).
5595         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
5596         $(rtld-LDFLAGS).
5597         ($(common-objpfx)shlib.lds): Likewise.
5598         (build-module-helper): Likewise.
5599         ($(common-objpfx)format.lds): Likewise.
5600         * Rules (binaries-pie-tests): New.
5601         (binaries-pie-notests): Likewise.
5602         (binaries-pie): Rewritten.
5603         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
5604         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
5605         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
5606         (make-test-out): Replace $(host-built-program-cmd) with
5607         $(host-test-program-cmd).
5608         * config.make.in (build-hardcoded-path-in-tests): New variable.
5609         * configure.in (--enable-hardcoded-path-in-tests): New configure
5610         option.
5611         (hardcoded_path_in_tests): New AC_SUBST.
5612         * configure: Regenerated.
5613         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
5614         $(built-program-cmd) with $(test-program-cmd).
5615         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
5616         (test_program_cmd): This.
5617         * elf/Makefile ($(objpfx)order.out): Run test with
5618         $(test-program-prefix).
5619         ($(objpfx)order2.out): Likewise.
5620         ($(objpfx)tst-initorder.out): Likewise.
5621         ($(objpfx)tst-initorder2.out): Likewise.
5622         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
5623         $(test-program-cmd).
5624         ($(objpfx)tst-array1-static.out): Likewise.
5625         ($(objpfx)tst-array2.out): Likewise.
5626         ($(objpfx)tst-array3.out): Likewise.
5627         ($(objpfx)tst-array4.out): Likewise.
5628         ($(objpfx)tst-array5.out): Likewise.
5629         ($(objpfx)tst-array5-static.out): Likewise.
5630         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5631         $(test-program-cmd).
5632         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5633         $(run-program-prefix) with $(test-program-prefix).
5634         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5635         (test_program_prefix): This.
5636         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5637         $(run-program-prefix) with $(test-program-prefix).
5638         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5639         (test_program_prefix): This.
5640         * iconvdata/tst-tables.sh: Likewise.
5641         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5642         $(run-program-prefix) with $(test-program-prefix).
5643         ($(objpfx)tst-translit.out): Likewise.
5644         ($(objpfx)tst-gettext2.out): Likewise.
5645         ($(objpfx)tst-gettext4.out): Likewise.
5646         ($(objpfx)tst-gettext6.out): Likewise.
5647         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5648         (test_program_prefix): This.
5649         * intl/tst-gettext2.sh: Likewise.
5650         * intl/tst-gettext4.sh  Likewise.
5651         * intl/tst-gettext6.sh: Likewise.
5652         * intl/tst-translit.sh: Likewise.
5653         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5654         with $(test-program-cmd).
5655         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5656         $(run-program-prefix) with $(test-program-prefix).
5657         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5658         (test_program_prefix): This.
5659         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5660         $(run-program-prefix) with $(test-program-prefix).
5661         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5662         (test_program_prefix): This.
5663         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5664         * posix/Makefile ($(objpfx)globtest.out): Replace
5665         $(run-via-rtld-prefix) and $(test-wrapper) with
5666         $(test-program-prefix) and $(test-via-rtld-prefix).
5667         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5668         $(test-program-prefix).
5669         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5670         $(host-test-program-cmd).
5671         (tst-spawn-ARGS): Likewise.
5672         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5673         $(test-program-prefix).
5674         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5675         (test_via_rtld_prefix): This.
5676         (test_wrapper): Renamed to ...
5677         (test_program_prefix): This.
5678         (run_program_prefix): Replaced by test_program_prefix.
5679         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5680         (test_program_prefix): This.
5681         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5682         with $(host-test-program-cmd).
5683         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5684         $(run-program-prefix) with $(test-program-prefix).
5685         ($(objpfx)tst-printf.out): Likewise.
5686         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5687         $(test-program-cmd).
5688         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5689         (test_program_prefix): This.
5690         * stdio-common/tst-unbputc.sh: Likewise.
5691         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5692         $(run-program-prefix) with $(test-program-prefix).
5693         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5694         (test_program_prefix): This.
5695         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5696         $(built-program-cmd) with $(test-program-cmd).
5697
5698 2013-01-11  Andreas Jaeger  <aj@suse.de>
5699
5700         [BZ #15003]
5701         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5702         value. Sync with Linux 3.7.
5703
5704 2013-01-10  David S. Miller  <davem@davemloft.net>
5705
5706         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5707         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5708         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5709
5710 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5711
5712         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5713         never set.
5714         * configure: Regenerated.
5715
5716 2013-01-10  David S. Miller  <davem@davemloft.net>
5717
5718         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5719         sparc V9 rather than using V8 code.
5720         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5721         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5722
5723 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5724
5725         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5726         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5727         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5728         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5729         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5730         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5731         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5732         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5733         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5734         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5735         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5736         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5737         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5738         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5739         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5740         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5741         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5742         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5743         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5744         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5745         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5746         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5747         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5748         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5749         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5750         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5751         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5752
5753 2013-01-10  David S. Miller  <davem@davemloft.net>
5754
5755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5756
5757 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5758
5759         * posix/Makefile (tests-static): New variable.
5760         (tests): Add $(tests-static).
5761         (tst-exec-static-ARGS): New variable.
5762         (tst-spawn-static-ARGS): Likewise.
5763         * posix/tst-exec-static.c: New file.
5764         * posix/tst-spawn-static.c: Likewise.
5765         * posix/tst-exec.c: Support run directly.
5766         * posix/tst-spawn.c: Likewise.
5767
5768 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5769
5770         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5771         long.
5772         * math/bits/mathcalls.h (llrint): Likewise.
5773         (llround): Likewise.
5774         * stdlib/stdlib.h (struct drand48_data): Likewise.
5775         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5776         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5777         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5778         Likewise.
5779         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5780         Likewise.
5781         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5782         (elf_greg_t): Likewise.
5783         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5784         (__jmp_buf): Likewise.
5785         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5786         definitions.
5787         (llrint): Likewise, for all definitions.
5788         (llrintl): Likewise.
5789
5790         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5791         Remove [__GNUC__] condition.
5792         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5793         condition to just [__USE_ISOC99].
5794         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5795
5796 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5797
5798         [BZ #14200]
5799         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5800         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5801         defined.
5802         (_POSIX_V6_ILP32_OFF32): Likewise.
5803         (_XBS5_ILP32_OFF32): Likewise.
5804         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5805         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5806
5807 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5808
5809         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5810
5811         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5812         doubles __mpexp_twomm1.  Adjust usage.
5813         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5814         Remove.
5815
5816 2013-01-10  Andreas Schwab  <schwab@suse.de>
5817
5818         [BZ #14964]
5819         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5820         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5821
5822 2013-01-09  David S. Miller  <davem@davemloft.net>
5823
5824         [BZ #15003]
5825         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5826         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5827         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5828         TCP_FASTOPEN): Define.
5829         (tcp_repair_opt): New structure.
5830         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5831         enum values.
5832         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5833         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5834         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5835         (tcp_cookie_transactions): New structure.
5836
5837 2013-01-09  Anton Blanchard  <anton@samba.org>
5838
5839         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5840         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5841         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5842         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5843
5844 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5845
5846         * include/features.h (__USE_ANSI): Remove.
5847
5848 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5849
5850         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5851
5852         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5853
5854 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5855
5856         * sysdeps/s390/fpu/libm-test-ulps: Update.
5857
5858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5859
5860         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5861         (__acr): Likewise.
5862         (__cpy): Likewise.
5863         (norm): Likewise.
5864         (denorm): Likewise.
5865         (__mp_dbl): Likewise.
5866         (__dbl_mp): Likewise.
5867         (add_magnitudes): Likewise.
5868         (sub_magnitudes): Likewise.
5869         (__add): Likewise.
5870         (__sub): Likewise.
5871         (__mul): Likewise.
5872         (__inv): Likewise.
5873         (__dvd): Likewise.
5874         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5875         (__acr): Likewise.
5876         (__cpy): Likewise.
5877         (norm): Likewise.
5878         (denorm): Likewise.
5879         (__mp_dbl): Likewise.
5880         (__dbl_mp): Likewise.
5881         (add_magnitudes): Likewise.
5882         (sub_magnitudes): Likewise.
5883         (__add): Likewise.
5884         (__sub): Likewise.
5885         (__mul): Likewise.
5886         (__inv): Likewise.
5887         (__dvd): Likewise.
5888         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5889         (__acr): Likewise.
5890         (__cpy): Likewise.
5891         (norm): Likewise.
5892         (denorm): Likewise.
5893         (__mp_dbl): Likewise.
5894         (__dbl_mp): Likewise.
5895         (add_magnitudes): Likewise.
5896         (sub_magnitudes): Likewise.
5897         (__add): Likewise.
5898         (__sub): Likewise.
5899         (__mul): Likewise.
5900         (__inv): Likewise.
5901         (__dvd): Likewise.
5902
5903 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5904
5905         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5906         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5907         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5908         2 && __USE_EXTERN_INLINES]: Likewise.
5909
5910 2013-01-08  Andreas Jaeger  <aj@suse.de>
5911
5912         [BZ# 14985]
5913         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5914         Remove.
5915         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5916         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5917
5918 2013-01-07  Anton Blanchard  <anton@samba.org>
5919
5920         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5921         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5922         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5923         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5924         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5925         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5926         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5927         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5928         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5929         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5930         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5931         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5932         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5933         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5934         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5935         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5936         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5937         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5938         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5939         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5940         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5941         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5942         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5943         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5944         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5945         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5946         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5947         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5948         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5949         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5950         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5951         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5952         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5953         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5954         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5955         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5956         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5957         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5958         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5959         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5960         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5961         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5962         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5963
5964 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5965
5966         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5967         (__MALLOC_PMT): Likewise.
5968         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5969         [__GNUC__], only on [_LIBC].
5970         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5971         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5972         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5973         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5974         forward declaration.
5975         (realloc_hook_ini): Likewise.
5976         (memalign_hook_ini): Likewise.
5977         (__libc_memalign): Do not use __MALLOC_PMT in variable
5978         declaration.
5979         (__libc_valloc): Likewise.
5980         (__libc_pvalloc): Likewise.
5981         (__libc_calloc): Likewise.
5982         (__posix_memalign): Likewise.
5983
5984         [BZ #14996]
5985         * math/s_casinh.c: Include <float.h>.
5986         (__casinh): Do not do computation with squaring and square root
5987         for large arguments.
5988         * math/s_casinhf.c: Include <float.h>.
5989         (__casinhf): Do not do computation with squaring and square root
5990         for large arguments.
5991         * math/s_casinhl.c: Include <float.h>.
5992         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5993         (__casinhl): Do not do computation with squaring and square root
5994         for large arguments.
5995         * math/libm-test.inc (casin_test): Add more tests.
5996         (casinh_test): Likewise.
5997         * sysdeps/i386/fpu/libm-test-ulps: Update.
5998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5999
6000 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6001
6002         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
6003         (__x86_64_raw_data_cache_size): Likewise.
6004         (__x86_64_data_cache_size_half): Likewise.
6005         (__x86_64_raw_data_cache_size_half): Likewise.
6006         (__x86_64_shared_cache_size): Likewise.
6007         (__x86_64_raw_shared_cache_size): Likewise.
6008         (__x86_64_shared_cache_size_half): Likewise.
6009         (__x86_64_raw_shared_cache_size_half): Likewise.
6010         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
6011         to ...
6012         (__x86_data_cache_size): This.
6013         (__x86_64_raw_data_cache_size): Renamed to ...
6014         (__x86_raw_data_cache_size): This.
6015         (__x86_64_data_cache_size_half): Renamed to ...
6016         (__x86_data_cache_size_half): This.
6017         (__x86_64_raw_data_cache_size_half): Renamed to ...
6018         (__x86_raw_data_cache_size_half): This.
6019         (__x86_64_shared_cache_size): Renamed to ...
6020         (__x86_shared_cache_size): This.
6021         (__x86_64_raw_shared_cache_size): Renamed to ...
6022         (__x86_raw_shared_cache_size): This.
6023         (__x86_64_shared_cache_size_half): Renamed to ...
6024         (__x86_shared_cache_size_half): This.
6025         (__x86_64_raw_shared_cache_size_half): Renamed to ...
6026         (__x86_raw_shared_cache_size_half): This.
6027         * sysdeps/x86_64/memcpy.S: Updated.
6028         * sysdeps/x86_64/memset.S: Likewise.
6029         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6030         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
6031         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6032
6033 2013-01-04  David S. Miller  <davem@davemloft.net>
6034
6035         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6036
6037 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
6038
6039         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
6040         1 to avoid redefinition warning.
6041         (__USE_GNU): Don't define.
6042         (init_signaling_nan): Protoize.
6043
6044         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6045
6046 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6047
6048         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
6049         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
6050         (__cpymn): Likewise.
6051         (norm): Remove commented code.
6052         (denorm): Likewise.
6053         (__mp_dbl): Likewise.
6054         (__inv): Likewise.
6055         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
6056         (__cpymn): Likewise.
6057         (norm): Remove commented code.
6058         (denorm): Likewise.
6059         (__mp_dbl): Likewise.
6060         (__inv): Likewise.
6061
6062         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
6063         mp_no value for 1.0 and 2.0.
6064         (norm): Use RADIXI instead of radixi.d.
6065         (denorm): Likewise.
6066         (__mul): Use 0.0 instead of zero.d.
6067         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
6068         mp_no value for 1.0 and 2.0.
6069         (norm): Use RADIXI instead of radixi.d.
6070         (denorm): Likewise.
6071         (__mul): Use 0.0 instead of zero.d.
6072
6073 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
6074
6075         [BZ #14994]
6076         * math/s_casinh.c (__casinh): Reduce finite argument to first
6077         quadrant then set signs of results at the end.
6078         * math/s_casinhf.c (__casinhf): Likewise.
6079         * math/s_casinhl.c (__casinhl): Likewise.
6080         * math/libm-test.inc (casin_test): Add more tests.
6081         (casinh_test): Likewise.
6082         * sysdeps/i386/fpu/libm-test-ulps: Update.
6083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6084
6085 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6086
6087         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
6088
6089         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
6090
6091         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
6092         declarations.
6093         (denorm): Likewise.
6094         (__mp_dbl): Likewise.
6095         (__inv): Likewise.
6096
6097         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
6098         and adjust the header comment.
6099
6100         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
6101         variable name from declaration.
6102
6103 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6104
6105         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6106         Initialize COMMON_CPUID_INDEX_7 element.
6107         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
6108         (CPUID_RTM): Likewise.
6109         (HAS_RTM): Likewise.
6110         (COMMON_CPUID_INDEX_7): New enum.
6111
6112 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
6113
6114         [BZ #14981]
6115         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
6116         size is zero, record memory as freed.
6117
6118 2013-01-03  Andreas Jaeger  <aj@suse.de>
6119
6120         * po/ia.po: Add new Interlingua translation.
6121
6122 2012-01-03  Allan McRae  <allan@archlinux.org>
6123
6124         * locale/programs/localedef.c: Fix description of '--posix' flag.
6125
6126 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
6127
6128         * NEWS: Update dates in second copyright notice.
6129         * README: Update copyright dates in example.
6130         * manual/libc.texinfo: Update copyright dates.
6131         * scripts/test-installation.pl: Update copyright date in --version
6132         output.
6133
6134         * hurd/ctty-input.c: Fix copyright notice formatting.
6135         * hurd/ctty-output.c: Likewise.
6136         * hurd/dtable.c: Likewise.
6137         * hurd/hurd-raise.c: Likewise.
6138         * hurd/hurdprio.c: Likewise.
6139         * hurd/msgportdemux.c: Likewise.
6140         * misc/sys/file.h: Likewise.
6141         * misc/sys/ioctl.h: Likewise.
6142         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
6143         * sysdeps/mach/hurd/chdir.c: Likewise.
6144         * sysdeps/mach/hurd/fchdir.c: Likewise.
6145         * sysdeps/mach/hurd/rename.c: Likewise.
6146         * sysdeps/mach/hurd/rmdir.c: Likewise.
6147         * sysdeps/mach/hurd/seekdir.c: Likewise.
6148         * sysdeps/mach/hurd/setsid.c: Likewise.
6149         * sysdeps/posix/wait3.c: Likewise.
6150
6151         * All files with FSF copyright notices: Update copyright dates
6152         using scripts/update-copyrights.
6153         * intl/plural.c: Regenerated.
6154         * locale/programs/charmap-kw.h: Likewise.
6155         * locale/programs/locfile-kw.h: Likewise.
6156
6157 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6158
6159         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
6160         four values.
6161
6162         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
6163         calculation loop and add branch prediction.
6164
6165         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
6166         check access beyond bounds of m1np.
6167
6168         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6169         MPTWO.
6170         (__inv): Remove local variable MPTWO to use the global
6171         constant.
6172         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
6173         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6174         variable MPTWO.
6175         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
6176         MP3HALFS static const.
6177
6178 2013-01-01  David S. Miller  <davem@davemloft.net>
6179
6180         * po/ca.po: Update from translation team.
6181
6182 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
6183
6184         * scripts/update-copyrights: New file.
6185         * Makeconfig: Reformat copyright notice.
6186         * ctype/ctype.h: Likewise.
6187         * debug/swprintf_chk.c: Likewise.
6188         * elf/dl-cache.c: Likewise.
6189         * elf/dl-debug.c: Likewise.
6190         * elf/dl-object.c: Likewise.
6191         * grp/initgroups.c: Likewise.
6192         * hurd/Makefile: Likewise.
6193         * hurd/hurd/signal.h: Likewise.
6194         * hurd/hurdfault.c: Likewise.
6195         * hurd/hurdioctl.c: Likewise.
6196         * hurd/hurdlookup.c: Likewise.
6197         * hurd/intr-msg.c: Likewise.
6198         * iconv/gconv_open.c: Likewise.
6199         * libio/swprintf.c: Likewise.
6200         * locale/lc-ctype.c: Likewise.
6201         * locale/nl_langinfo.c: Likewise.
6202         * mach/Machrules: Likewise.
6203         * mach/Makefile: Likewise.
6204         * malloc/obstack.h: Likewise.
6205         * manual/Makefile: Likewise.
6206         * manual/tsort.awk: Likewise.
6207         * misc/bits/stab.def: Likewise.
6208         * nis/nis_print_group_entry.c: Likewise.
6209         * nis/nis_table.c: Likewise.
6210         * nis/nss_compat/compat-pwd.c: Likewise.
6211         * nis/nss_compat/compat-spwd.c: Likewise.
6212         * po/Makefile: Likewise.
6213         * posix/fnmatch.c: Likewise.
6214         * posix/regex.h: Likewise.
6215         * resolv/Makefile: Likewise.
6216         * resolv/nss_dns/dns-network.c: Likewise.
6217         * resolv/res_hconf.c: Likewise.
6218         * scripts/gen-sorted.awk: Likewise.
6219         * soft-fp/soft-fp.h: Likewise.
6220         * stdio-common/printf.h: Likewise.
6221         * stdlib/monetary.h: Likewise.
6222         * stdlib/random.c: Likewise.
6223         * stdlib/random_r.c: Likewise.
6224         * sysdeps/generic/Makefile: Likewise.
6225         * sysdeps/gnu/Makefile: Likewise.
6226         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6227         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6228         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6229         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6230         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6231         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6232         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6233         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6234         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6235         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6236         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6237         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6238         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6239         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6240         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
6241         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6242         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6243         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6244         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6245         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6246         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6247         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6248         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6249         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6250         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
6251         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6252         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
6253         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
6254         * sysdeps/mach/hurd/errnos.awk: Likewise.
6255         * sysdeps/mach/hurd/fork.c: Likewise.
6256         * sysdeps/mach/hurd/getcwd.c: Likewise.
6257         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
6258         * sysdeps/mach/hurd/mmap.c: Likewise.
6259         * sysdeps/mach/hurd/utimes.c: Likewise.
6260         * sysdeps/mach/hurd/xmknod.c: Likewise.
6261         * sysdeps/posix/profil.c: Likewise.
6262         * sysdeps/posix/readdir_r.c: Likewise.
6263         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6264         * sysdeps/powerpc/bits/setjmp.h: Likewise.
6265         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
6266         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6267         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6268         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6269         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6270         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6271         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6272         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6273         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6274         * sysdeps/pthread/lio_listio.c: Likewise.
6275         * sysdeps/sparc/dl-procinfo.h: Likewise.
6276         * sysdeps/unix/i386/sysdep.S: Likewise.
6277         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
6278         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
6279         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
6280         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
6281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6282         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6283         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6284         * sysdeps/unix/sysv/linux/speed.c: Likewise.
6285         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
6286         * sysdeps/wordsize-32/divdi3.c: Likewise.
6287         * time/sys/time.h: Likewise.
6288         * wcsmbs/Makefile: Likewise.
6289
6290 2013-01-01  David S. Miller  <davem@davemloft.net>
6291
6292         * po/fr.po: Update from translation team.
6293
6294         * catgets/gencat.c: Update copyright year.
6295         * csu/version.c: Likewise.
6296         * debug/catchsegv.sh: Likewise.
6297         * debug/pcprofiledump.c: Likewise.
6298         * debug/xtrace.sh: Likewise.
6299         * elf/ldconfig.c: Likewise.
6300         * elf/ldd.bash.in: Likewise.
6301         * elf/pldd.c: Likewise.
6302         * elf/sotruss.ksh: Likewise.
6303         * elf/sprof.c: Likewise.
6304         * iconv/iconv_prog.c: Likewise.
6305         * iconv/iconvconfig.c: Likewise.
6306         * locale/programs/locale.c: Likewise.
6307         * locale/programs/localedef.c: Likewise.
6308         * login/programs/pt_chown.c: Likewise.
6309         * malloc/memusage.sh: Likewise.
6310         * malloc/memusagestat.c: Likewise.
6311         * malloc/mtrace.pl: Likewise.
6312         * nscd/nscd.c: Likewise.
6313         * nss/getent.c: Likewise.
6314         * nss/makedb.c: Likewise.
6315         * posix/getconf.c: Likewise.
6316
6317 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6318
6319         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
6320         numbers.
6321
6322 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
6323
6324         * math/bits/mathcalls.h (modf): Use __nonnull.
6325
6326 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6327
6328         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
6329         (split): Use macro CN instead of the bare value.
6330         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
6331         could be used.
6332         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
6333         instead of the bare value.
6334         (power1): Likewise.
6335
6336 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6337
6338         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
6339         __ATAN_TWOM.
6340         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6341
6342         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
6343         their values.
6344         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
6345         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6346         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
6347         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
6348
6349 2012-12-28  Andreas Jaeger  <aj@suse.de>
6350
6351         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
6352         values are from Linux 3.7.
6353
6354         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
6355         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
6356
6357 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6358
6359         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
6360         TRUE case.
6361
6362         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
6363         (norm): Likewise.
6364         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
6365         variables with preprocessor constants.
6366         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6367         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6368         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6369
6370 2012-12-27  Bruno Haible  <bruno@clisp.org>
6371
6372         [BZ #14317]
6373         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
6374         only if needed.
6375
6376 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6377
6378         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
6379         and use variable directly.
6380         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
6381
6382         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6383         MPONE.
6384         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
6385         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6386         variable MPONE.
6387         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6388         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6389         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
6390         include directive.  Remove local variable MPONE.
6391         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
6392         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
6393         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6394
6395 2012-12-25  David S. Miller  <davem@davemloft.net>
6396
6397         * version.h (RELEASE): Set to "development".
6398         (VERSION): Set to "2.17.90".
6399         * NEWS: Add 2.18 section.
6400
6401 2012-12-21  David S. Miller  <davem@davemloft.net>
6402
6403         * po/hr.po: Update from translation team.
6404
6405 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6406
6407         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
6408
6409 2012-12-19  Steve Ellcey  <sellcey@mips.com>
6410
6411         * NEWS:  Mention new memcpy for MIPS.
6412
6413 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6414
6415         * manual/contrib.texi (Contributors): Spelling correction.
6416
6417 2012-12-15  David S. Miller  <davem@davemloft.net>
6418
6419         * po/ru.po: Update from translation team.
6420
6421 2012-12-13  David S. Miller  <davem@davemloft.net>
6422
6423         * NEWS: Mention IFUNC testsuite enhancements.
6424
6425         * po/pl.po: Update from translation team.
6426         * po/bg.po: Likewise.
6427
6428         * manual/contrib.texi (Contributors): Update entries for Hongjiu
6429         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
6430
6431 2012-12-11  David S. Miller  <davem@davemloft.net>
6432
6433         * po/sv.po: Update from translation team.
6434
6435         * po/vi.po: Update from translation team.
6436
6437         * po/cs.po: Update from translation team.
6438
6439         * po/de.po: Update from translation team.
6440         * po/eo.po: Likewise.
6441         * po/nl.po: Likewise.
6442
6443 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6444
6445         [BZ #14246]
6446         * manual/argp.texi (Argp Helper Functions): Move node to follow
6447         Argp Parsing State.
6448
6449         [BZ #14872]
6450         * manual/conf.texi (Limits on File System Capacity): Mention if
6451         terminating null is included in the max size.
6452
6453 2012-12-10  Andreas Jaeger  <aj@suse.de>
6454
6455         * po/cs.po: Update from translation team.
6456
6457 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
6458
6459         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
6460         void pointer and cast to uintptr_t.
6461         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
6462         path.
6463         * sysdeps/s390/s390-64/memcpy.S: Likewise.
6464         * sysdeps/s390/s390-64/memset.S: Likewise.
6465
6466 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
6467
6468         [BZ #14833]
6469         * menual/message.texi (Message Translation): Fix typos.
6470         (Helper programs for gettext): Likewise.
6471
6472 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
6473
6474         [BZ #14898]
6475         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
6476         Change to -1.
6477
6478 2012-12-07  David S. Miller  <davem@davemloft.net>
6479
6480         * po/libc.pot: Update.
6481
6482 2012-12-07  Richard Henderson  <rth@redhat.com>
6483
6484         [BZ #10114]
6485         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
6486         normal/normal case to before the switch.
6487         (_FP_DIV): Likewise.
6488
6489 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
6490             Mike Frysinger  <vapier@gentoo.org>
6491
6492         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
6493         check for __NR_fadvise64_64.
6494
6495 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
6496
6497         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
6498         0, not just to plain "0" as a statement.
6499         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
6500         with cw.
6501
6502 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
6503
6504         * NEWS: Use sourceware.org in Bugzilla URL.
6505
6506 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6507
6508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6509         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6510
6511         * stdio-common/tst-put-error.c (do_test): Add newline to the
6512         padded test to ensure flush.
6513
6514 2012-12-05  Jeff Law  <law@redhat.com>
6515
6516         * sunrpc/etc.rpc (fedfs_admin): Add entry.
6517
6518 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
6519
6520         * README: Don't refer to ports add-on as distributed separately.
6521         Mention AArch64 in list of systems supported in the ports add-on.
6522
6523         * LICENSES: Add more non-FSF copyright and license notices.
6524
6525         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
6526         ((unused)).
6527
6528         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
6529
6530         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
6531         10000 as width of padded output.
6532
6533 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6534
6535         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
6536
6537         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
6538         variable LX with __attribute__ ((unused)).
6539         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6540         Likewise.
6541         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
6542         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6543         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
6544         with __attribute__ ((unused)).
6545
6546 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
6547
6548         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
6549
6550 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6551
6552         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
6553         (CFLAGS-nldbl-acos.c): New variable.
6554         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
6555         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
6556         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
6557         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
6558         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
6559         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
6560         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
6561         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
6562         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
6563         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
6564         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
6565         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
6566         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
6567         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
6568         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
6569         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
6570         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
6571         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
6572         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
6573         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
6574         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
6575         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
6576         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
6577         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
6578         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
6579         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
6580         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
6581         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
6582         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
6583         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
6584         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
6585         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
6586         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
6587         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
6588         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
6589         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
6590         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
6591         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
6592         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
6593         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
6594         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
6595         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
6596         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
6597         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
6598         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
6599         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
6600         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
6601         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
6602         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
6603         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
6604         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
6605         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
6606         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
6607         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
6608         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
6609         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
6610         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
6611         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
6612         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
6613         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
6614         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
6615         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
6616         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
6617         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
6618         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
6619         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
6620         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
6621         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
6622         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
6623         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
6624         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
6625         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6626         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6627         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6628         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6629         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6630         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6631         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6632         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6633         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6634         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6635         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6636         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6637         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6638         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6639         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6640         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6641         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6642         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6643         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6644         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6645         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6646         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6647         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6648         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6649         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6650         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6651
6652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6653         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6654
6655         [BZ #14914]
6656         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6657         whole low double instead of just low 47 bits when splitting values
6658         into two parts.
6659
6660 2012-12-03  Allan McRae  <allan@archlinux.org>
6661
6662         * manual/stdio.texi (Predefined Printf Handlers): Remove
6663         @hsep and @vsep usage.
6664
6665 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6666
6667         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6668         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6669
6670 2012-12-03  Jeff Law  <law@redhat.com>
6671
6672         * time/sys/time.h (settimeofday): Do not mark TV argument
6673         as __nonnull.
6674
6675 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6676
6677         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6678         when currently writing and seek to current position when not.
6679         * libio/Makefile (tests): Remove bug-fclose1.
6680         * libio/bug-fclose1.c: Delete.
6681
6682 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6683
6684         * manual/arith.texi (feenableexcept): Fix typo.
6685         (fedisableexcept): Likewise.
6686
6687 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6688
6689         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6690         second, differently-typed declaration, rather than a cast.
6691
6692 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6693
6694         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6695         * include/rpc/svc.h: ... here.
6696
6697 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6698
6699         [BZ #13013]
6700         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6701         depending n and resplen2 to catch cases where answer
6702         equals answerp2.
6703
6704 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6705
6706         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6707         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6708
6709 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6710
6711         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6712
6713 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6714
6715         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6716
6717 2012-11-28  Jeff Law  <law@redhat.com>
6718
6719         [BZ #13761]
6720         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6721         dataset_temporary.  Track alloca usage into alloca_used.
6722         If dataset is large allocate and release it via malloc/free.
6723
6724 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6725
6726         [BZ #14197]
6727         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6728
6729 2012-11-28  David S. Miller  <davem@davemloft.net>
6730
6731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6732
6733 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6734
6735         [BZ #14803]
6736         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6737         of pi/2 rounded to nearest to 64 bits.
6738         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6739         nearest to 64 bits.
6740         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6741         bits.
6742
6743 2012-11-28  Jeff Law <law@redhat.com>
6744             Martin Osvald <mosvald@redhat.com>
6745
6746         [BZ #14889]
6747         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6748         * sunrpc/svc.c: Include time.h.
6749         (__svc_accept_failed): New function.
6750         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6751         any reason other than EINTR, call __svc_accept_failed.
6752         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6753         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6754
6755 2012-11-28  Andreas Schwab  <schwab@suse.de>
6756
6757         * scripts/abilist.awk: Also handle indirect functions in .opd
6758         section.
6759
6760 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6761
6762         [BZ #13881]
6763         * sysdeps/x86/fpu/powl_helper.c: New file.
6764         * sysdeps/x86/fpu/Makefile: Likewise.
6765         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6766         (p3): New object.
6767         (__ieee754_powl): Use __powl_helper for finite arguments except
6768         integer exponents below 8.
6769         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6770         (p3): New object.
6771         (__ieee754_powl): Use __powl_helper for finite arguments except
6772         integer exponents below 8.
6773         * math/libm-test.inc (pow_test): Add more tests and enable some
6774         previously disabled tests.
6775         * sysdeps/i386/fpu/libm-test-ulps: Update.
6776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6777
6778 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6779             Carlos O'Donell  <carlos_odonell@mentor.com>
6780
6781         * nss/makedb.c (is_prime): Assert that input is odd and greater
6782         than 4.  Note that fact in a comment too.
6783         (next_prime): Add 4 to input.
6784
6785 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6786
6787         [BZ #11741]
6788         * libio/Makefile (tests): Add test case tst-fwrite-error.
6789         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6790         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6791         * libio/tst-fwrite-error.c: New test case.
6792
6793 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6794
6795         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6796         before casting to void *.
6797         * include/libc-internal.h (__pointer_type): New macro.
6798         (__integer_if_pointer_type_sub): Likewise.
6799         (__integer_if_pointer_type): Likewise.
6800         (cast_to_integer): Likewise.
6801         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6802         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6803         before casting to atomic64_t.
6804         (atomic_exchange_acq): Likewise.
6805         (__arch_exchange_and_add_body): Likewise.
6806         (__arch_add_body): Likewise.
6807         (atomic_add_negative): Likewise.
6808         (atomic_add_zero): Likewise.
6809
6810 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6811
6812         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6813         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6814         (add_fdes): Likewise.
6815         (linear_search_fdes): Likewise.
6816         (binary_search_unencoded_fdes): Likewise.
6817
6818 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6819
6820         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6821
6822 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6823
6824         * configure.in: Autodetect C++ header directories.
6825         * configure: Regenerated.
6826
6827 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6828
6829         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6830
6831 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6832
6833         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6834
6835 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6836
6837         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6838         LDBL_MANT_DIG == 106]: Disable some tests.
6839         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6840         Likewise.
6841         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6842         Likewise.
6843
6844         [BZ #14871]
6845         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6846         input for small inputs.  Return +/- pi/2 for large inputs.
6847         * math/libm-test.inc (atan_test): Add more tests.
6848
6849         * sysdeps/generic/unwind-dw2-fde-glibc.c
6850         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6851         __attribute__ ((unused)).
6852
6853         [BZ #14645]
6854         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6855         x * y if x and y are nonzero and z is zero.
6856
6857         [BZ #14811]
6858         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6859         nonzero exponents with absolute value below 0x1p-117 to +/-
6860         0x1p-117.
6861
6862         [BZ #14869]
6863         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6864         up arguments below 2**-450, not just those below 2**-500.
6865         * math/libm-test.inc (hypot_test): Add another test.
6866
6867         [BZ #14868]
6868         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6869         Return a+b for ratio over 2**120, not 2**60.
6870         * math/libm-test.inc (hypot_test): Add another test.
6871
6872         * math/libm-test.inc (clog_test): Use
6873         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6874         (clog10_test): Likewise.
6875
6876         [BZ #6778]
6877         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6878
6879 2012-11-22  Andreas Schwab  <schwab@suse.de>
6880
6881         * sysdeps/i386/fpu/libm-test-ulps: Update.
6882
6883 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6884
6885         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6886         printf output with newline.
6887
6888 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6889
6890         [BZ #14865]
6891         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6892         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6893         -z nodlopen, -z initfirst and -z execstack support.
6894         * configure: Regenerated.
6895
6896         * elf/elf.h (DF_1_NODIRECT): New macro.
6897         (DF_1_IGNMULDEF): Likewise.
6898         (DF_1_NOKSYMS): Likewise.
6899         (DF_1_NOHDR): Likewise.
6900         (DF_1_EDITED): Likewise.
6901         (DF_1_NORELOC): Likewise.
6902         (DF_1_SYMINTPOSE): Likewise.
6903         (DF_1_GLOBAUDIT): Likewise.
6904         (DF_1_SINGLETON): Likewise.
6905         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6906         DT_1_SUPPORTED_MASK bits.
6907         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6908
6909 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6910
6911         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6912
6913 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6914
6915         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6916         macro.
6917
6918         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6919         (sendmmsg): Move declarations...
6920         * socket/sys/socket.h: ... here.
6921         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6922         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6923         include it from...
6924         * socket/recvmmsg.c: ... this new file.
6925         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6926         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6927         definition of __sendmmsg hidden.
6928         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6929         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6930         Move ENOSYS stub into and include it from...
6931         * socket/sendmmsg.c: ... this new file.
6932         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6933         (sysdep_routines): Move recvmmsg and sendmmsg...
6934         * socket/Makefile (routines): ... here.
6935         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6936         (GLIBC_PRIVATE): Add __sendmmsg.
6937         * include/sys/socket.h (__sendmmsg): Add declarations.
6938         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6939         sendmmsg.
6940
6941 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6942
6943         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6944         variable I1 with __attribute__ ((unused)).
6945         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6946
6947 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6948
6949         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6950         DUMMY variables with __attribute__ ((unused)).
6951
6952         * bits/byteswap.h: Include <bits/types.h>.
6953         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6954
6955 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6956
6957         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6958         string_t.  Do not manually set errno.
6959         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6960         length with __strnlen.  Make sure to both set errno and return it on
6961         failure.
6962
6963 2012-11-19  David S. Miller  <davem@davemloft.net>
6964
6965         With help from Joseph Myers.
6966         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6967         very large arguments properly.
6968         * math/libm-test.inc (atan_test): New tests.
6969         (atan2_test): New tests.
6970         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6971         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6972
6973 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6974
6975         [BZ #14856]
6976         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6977         Define to 3.
6978
6979         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6980         [POSIX] (EADDRNOTAVAIL): Likewise.
6981         [POSIX] (EAFNOSUPPORT): Likewise.
6982         [POSIX] (EALREADY): Likewise.
6983         [POSIX] (ECONNABORTED): Likewise.
6984         [POSIX] (ECONNREFUSED): Likewise.
6985         [POSIX] (ECONNRESET): Likewise.
6986         [POSIX] (EDESTADDRREQ): Likewise.
6987         [POSIX] (EDQUOT): Likewise.
6988         [POSIX] (EHOSTUNREACH): Likewise.
6989         [POSIX] (EIDRM): Likewise.
6990         [POSIX] (EISCONN): Likewise.
6991         [POSIX] (ELOOP): Likewise.
6992         [POSIX] (EMULTIHOP): Likewise.
6993         [POSIX] (ENETDOWN): Likewise.
6994         [POSIX] (ENETUNREACH): Likewise.
6995         [POSIX] (ENOBUFS): Likewise.
6996         [POSIX] (ENODATA): Likewise.
6997         [POSIX] (ENOLINK): Likewise.
6998         [POSIX] (ENOMSG): Likewise.
6999         [POSIX] (ENOPROTOOPT): Likewise.
7000         [POSIX] (ENOSR): Likewise.
7001         [POSIX] (ENOSTR): Likewise.
7002         [POSIX] (ENOTCONN): Likewise.
7003         [POSIX] (ENOTSOCK): Likewise.
7004         [POSIX] (EOPNOTSUPP): Likewise.
7005         [POSIX] (EOVERFLOW): Likewise.
7006         [POSIX] (EPROTO): Likewise.
7007         [POSIX] (EPROTONOSUPPORT): Likewise.
7008         [POSIX] (EPROTOTYPE): Likewise.
7009         [POSIX] (ESTALE): Likewise.
7010         [POSIX] (ETIME): Likewise.
7011         [POSIX] (ETXTBSY): Likewise.
7012         [POSIX] (EWOULDBLOCK): Likewise.
7013         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
7014         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
7015         [POSIX] (SEEK_CUR): Likewise.
7016         [POSIX] (SEEK_END): Likewise.
7017         [POSIX || UNIX98] (mode_t): Do not require.
7018         [POSIX] (off_t): Likewise.
7019         [POSIX] (pid_t): Likewise.
7020         [POSIX] (sys/stat.h): Do not allow header.
7021         [POSIX] (unistd.h): Likewise.
7022         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
7023         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
7024         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
7025         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
7026         require.
7027         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
7028         sigevent): Specify elements.
7029         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
7030         entry.
7031         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
7032         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
7033
7034         * conform/data/cpio.h-data [POSIX]: Disable whole file.
7035         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
7036         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
7037         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
7038         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
7039         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
7040         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
7041         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
7042         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
7043         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
7044         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
7045         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
7046         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
7047         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
7048         Likewise.
7049         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
7050         Likewise.
7051         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
7052         Likewise.
7053         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
7054         Likewise.
7055         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
7056         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
7057         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
7058         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
7059         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
7060         Specify lower bound on value.
7061         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
7062         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
7063         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
7064         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
7065         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
7066         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
7067         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
7068         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
7069         value.
7070         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
7071         as optional.
7072         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
7086         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
7088         entry.
7089         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
7090         optional.
7091         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
7092         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
7093         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
7094         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
7095         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
7096         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
7097         Likewise.
7098         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
7099         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
7100         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
7101         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
7102         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
7103         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
7104         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
7105         as optional.
7106         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
7107         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
7108         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
7109         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
7110         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
7111         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
7112         specify as optional.
7113         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
7114         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
7115         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
7116         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
7117         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
7118         [XPG3] (NL_LANGMAX): Likewise.
7119         [POSIX || XPG3] (NL_MSGMAX): Likewise.
7120         [POSIX || XPG3] (NL_NMAX): Likewise.
7121         [POSIX || XPG3] (NL_SETMAX): Likewise.
7122         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
7123         [XPG3] (NZERO): Likewise.
7124         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
7125         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
7126         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
7127         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
7128         (REG_ERANGE): Expect.
7129         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
7130         optional-constant.
7131         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
7132         Use (void) in prototype.
7133         [POSIX] (*_t): Allow.
7134         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
7135         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
7136         (WRDE_BADVAL): Expect.
7137
7138         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
7139         expect.
7140         [XPG3 || XPG4] (O_RSYNC): Likewise.
7141         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
7142         Likewise.
7143         [XPG3 || XPG4] (pthread_sigmask): Likewise.
7144         [XPG3 || XPG4] (sigqueue): Likewise.
7145         [XPG3 || XPG4] (sigtimedwait): Likewise.
7146         [XPG3 || XPG4] (sigwaitinfo): Likewise.
7147         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
7148         [XPG3 || XPG4] (vsnprintf): Likewise.
7149         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
7150         Likewise.
7151         [XPG3 || XPG4] (blksize_t): Likewise.
7152         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
7153         Likewise.
7154         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
7155         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
7156         [XPG3 || XPG4] (struct itimerspec): Likewise.
7157         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
7158         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
7159         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
7160         [XPG3 || XPG4] (clockid_t): Likewise.
7161         [XPG3 || XPG4] (timer_t): Likewise.
7162         [XPG3 || XPG4] (clock_getres): Likewise.
7163         [XPG3 || XPG4] (clock_gettime): Likewise.
7164         [XPG3 || XPG4] (clock_settime): Likewise.
7165         [XPG3 || XPG4] (nanosleep): Likewise.
7166         [XPG3 || XPG4] (timer_create): Likewise.
7167         [XPG3 || XPG4] (timer_delete): Likewise.
7168         [XPG3 || XPG4] (timer_gettime): Likewise.
7169         [XPG3 || XPG4] (timer_getoverrun): Likewise.
7170         [XPG3 || XPG4] (timer_settime): Likewise.
7171         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
7172         [XPG3 || XPG4] (getlogin_r): Likewise.
7173         [XPG3 || XPG4] (pread): Likewise.
7174         [XPG3 || XPG4] (pthread_atfork): Likewise.
7175         [XPG3 || XPG4] (pwrite): Likewise.
7176
7177         [BZ #14835]
7178         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
7179         <bits/siginfo.h>.
7180
7181 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
7182
7183         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
7184         finalizing MALLSTREAM.
7185
7186         * sysdeps/mach/hurd/syncfs.c: New file.
7187
7188 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7189
7190         [BZ #14719]
7191         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
7192         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
7193         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
7194         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
7195         (_nss_dns_gethostbyname4_r): Likewise.
7196         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
7197         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
7198
7199 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
7200
7201         [BZ #13763]
7202         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
7203
7204 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
7205
7206         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
7207         * elf/cache.c (print_entry): Print ",AArch64" for
7208         FLAG_AARCH64_LIB64
7209
7210         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
7211         * elf/cache.c (print_entry): Print ",hard-float" for
7212         FLAG_ARM_LIBHF.
7213
7214 2012-11-18  David S. Miller  <davem@davemloft.net>
7215
7216         With help from Joseph Myers.
7217         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
7218         cutoff to 2**-13.
7219         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
7220         cutoff to 2**-25.
7221         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
7222         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
7223         small.
7224         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
7225         * math/libm-test.inc (y0_test): New tests.
7226         (y1_test): New tests.
7227         * sysdeps/i386/fpu/libm-test-ulps: Update.
7228         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7229         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7230
7231 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
7232
7233         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
7234         64-bit targets.
7235         * configure: Regenerated.
7236
7237 2012-11-17  David S. Miller  <davem@davemloft.net>
7238
7239         [BZ #14811]
7240         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
7241         nonzero exponents with absolute value below 0x1p-128 to +/-
7242         0x1p-128.
7243
7244 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
7245
7246         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
7247
7248         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
7249
7250         * posix/getconf-speclist.c: New file.
7251         * posix/posix-envs.def: Likewise.
7252         * posix/confstr.c (START_ENV_GROUP): New macro.
7253         (END_ENV_GROUP): Likewise.
7254         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7255         (KNOWN_PRESENT_ENV_STRING): Likewise.
7256         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7257         (UNKNOWN_ENVIRONMENT): Likewise.
7258         (confstr): Include posix-envs.def instead of handling
7259         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
7260         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
7261         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
7262         (END_ENV_GROUP): Likewise.
7263         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7264         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7265         (UNKNOWN_ENVIRONMENT): Likewise.
7266         (__sysconf): Include posix-envs.def instead of handling associated
7267         cases directly here.
7268         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
7269         preprocessing getconf-speclist.c rather than running getconf or
7270         generating empty file.
7271
7272 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
7273
7274         * scripts/check-local-headers.sh: Ignore 'mach' headers.
7275
7276 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
7277
7278         [BZ #14672]
7279         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
7280
7281 2012-11-16  David S. Miller  <davem@davemloft.net>
7282
7283         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
7284         smaller than LDBL_EPSILON/2.0L, just return xm1.
7285
7286 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * elf/tst-array1.c (init): Set constructor priority to 1000.
7289         (fini): Set destructor priority to 1000.
7290         * elf/tst-array2dep.c: Likewise.
7291
7292 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7293
7294         [BZ #11741]
7295         * libio/fileops.c (_IO_new_file_write): Correctly return error.
7296         (_IO_new_file_xsputn): Also return EOF if none of the input
7297         data was written when overflow failed.
7298         * libio/iopadn.c (_IO_padn): Likewise.
7299         * libio/iowpadn.c (_IO_wpadn): Likewise.
7300         * stdio-common/tst-put-error.c: Add copyright notice.
7301         (do_test): Add case for printing padded string.
7302         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
7303         _IO_padn returned error.
7304         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
7305         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
7306         return EOF.
7307
7308 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7309
7310         * libio/libioP.h: Add comment note that the references to C++
7311         bits are now obsolete.
7312
7313 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7314
7315         * math/libm-test.inc (check_complex): Use asprintf.
7316
7317 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
7318
7319         * debug/pcprofiledump.c (print_version): Update copyright year.
7320         * malloc/memusagestat.c (print_version): Likewise.
7321
7322 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7323
7324         [BZ #14831]
7325         * elf/Makefile (tests): Add tst-audit8.
7326         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
7327         ($(objpfx)tst-audit8.out): New target.
7328         (tst-audit8-ENV): New variable.
7329         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
7330         audit if l_reloc_result is NULL.
7331         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
7332         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
7333         * elf/tst-audit8.c: New file.
7334
7335 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7336
7337         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
7338         * misc/Makefile (CFLAGS-select.c): Define.
7339         * posix/Makefile (CFLAGS-pause.c): Define.
7340
7341 2012-11-13  David S. Miller  <davem@davemloft.net>
7342
7343         * crypt/Makefile: Move test targets after toplevel Rules
7344         inclusion.  Grab any necessary sysdep routines when linking.
7345         * crypt/md5.c (md5_process_block): Remove define, we will always
7346         name it __md5_process_block.
7347         (md5_finish_ctx): Update md5_process_block call.
7348         (md5_stream): Likewise.
7349         (md5_process_bytes): Likewise.
7350         (md5_process_block): Rename to __md5_process_block and move to ...
7351         * crypt/md5-block.c: ... here.
7352         * crypt/sha256.c (sha256_process_block): Move to ...
7353         * crypt/sha256-block.c: ... here.
7354         * crypt/sha512.c (sha512_process_block): Move to ...
7355         * crypt/sha512-block.c: ... here.
7356         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
7357         path.
7358         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
7359         * sysdeps/sparc/sparc64/multiarch/Makefile
7360         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
7361         crypt subdir.
7362         (localedef-aux): Add md5 crypto assembler when in locale subdir.
7363         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
7364         multiarch changes.
7365         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
7366         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
7367         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
7368         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
7369         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
7370         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
7371         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
7372         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
7373         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
7374         file.
7375         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
7376         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
7377         file.
7378         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
7379
7380 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
7381
7382         * timezone/tzselect.ksh: Update from tzcode git revision
7383         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
7384         * timezone/zdump.c: Likewise.
7385         * timezone/zic.c: Likewise.
7386         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
7387         in TZVERSION setting, not $(PKGVERSION).
7388         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
7389         REPORT_BUGS_TO settings.
7390
7391         [BZ #14838]
7392         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
7393         macro.
7394
7395 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7396
7397         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
7398         detection to immediately after _FP_ROUND().
7399         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
7400         bits are 0.
7401
7402 2012-11-11  David S. Miller  <davem@davemloft.net>
7403
7404         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
7405         inttypes.h
7406         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
7407         __close rather than their public counterparts.
7408
7409 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
7410
7411         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
7412         file.
7413         [UNIX98] (sem_timedwait): Do not expect.
7414         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
7415         [XPG4 || UNIX98] (sockatmark): Do not expect.
7416         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
7417         (clock_getcpuclockid): Do not expect.
7418         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
7419         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
7420         Do not expect.
7421         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
7422         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
7423         [UNIX98] (vwscanf): Likewise.
7424         [UNIX98] (vswscanf): Likewise.
7425
7426 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
7427
7428         * timezone/version.h: Remove file.
7429         * timezone/README: Do not refer to version.h.
7430         * timezone/Makefile ($(objpfx)zic.o): New dependency on
7431         $(objpfx)version.h.
7432         ($(objpfx)zdump.o): Likewise.
7433         ($(objpfx)version.h): New target.
7434
7435         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
7436         2012i.
7437         * timezone/README: Don't mention modification to tzselect.ksh.
7438         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
7439         work on unmodified tzselect.ksh.  Substitute version numbers in
7440         tzselect.ksh.
7441
7442         * Makefile (format-me): Remove.
7443         (INSTALL): Adjust indentation.  Use commands directly instead of
7444         using $(format-me).
7445
7446         * aclocal.m4 (ACX_PKGVERSION): New macro.
7447         (ACX_BUGURL): Likewise.
7448         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
7449         (PKGVERSION): New AC_DEFINE_UNQUOTED.
7450         (REPORT_BUGS_TO): Likewise.
7451         * configure: Regenerated.
7452         * config.h.in (PKGVERSION): New macro.
7453         (REPORT_BUGS_TO): Likewise.
7454         * config.make.in (PKGVERSION): New variable.
7455         (PKGVERSION_TEXI): Likewise.
7456         (REPORT_BUGS_TO): Likewise.
7457         (REPORT_BUGS_TEXI): Likewise.
7458         * Makefile (format-me): Use -I$(common-objpfx)manual.
7459         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
7460         ($(common-objpfx)manual/%): New target.
7461         (manual/%): Remove target.
7462         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
7463         (print_version): Use PKGVERSION.
7464         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
7465         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
7466         and REPORT_BUGS_TO.
7467         ($(objpfx)xtrace): Likewise.
7468         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
7469         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
7470         (print_version): Use PKGVERSION.
7471         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
7472         (do_version): Use PKGVERSION.
7473         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
7474         REPORT_BUGS_TO.
7475         (common-ldd-rewrite): Likewise.
7476         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
7477         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
7478         (print_version): Use PKGVERSION.
7479         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
7480         * elf/pldd.c (argp_program_bug_address): Remove variable.
7481         (more_help): New function.
7482         (argp): Use more_help.
7483         (print_version): Use PKGVERSION.
7484         * elf/sln.c (main): Use PKGVERSION.
7485         (usage): Use REPORT_BUGS_TO.
7486         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
7487         (top level): Use PKGVERSION.
7488         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
7489         (print_version): Use PKGVERSION.
7490         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
7491         (print_version): Use PKGVERSION.
7492         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
7493         (print_version): Use PKGVERSION.
7494         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
7495         (print_version): Use PKGVERSION.
7496         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
7497         (print_version): Use PKGVERSION.
7498         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
7499         (print_version): Use PKGVERSION.
7500         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
7501         and BUGURL.
7502         ($(objpfx)memusage): Likewise.
7503         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
7504         (do_version): Use PKGVERSION.
7505         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
7506         (print_version): Use PKGVERSION.
7507         * malloc/mtrace.pl ($PACKAGE): Remove variable.
7508         ($PKGVERSION): New variable.
7509         ($REPORT_BUGS_TO): Likewise.
7510         (usage): Use $REPORT_BUGS_TO.
7511         (top level): Use $PKGVERSION.
7512         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
7513         ($(objpfx)pkgvers.texi): New rule.
7514         ($(objpfx)stamp-pkgvers): Likewise.
7515         * manual/install.texi: Include pkgvers.texi.
7516         (--with-pkgversion): Document new configure option.
7517         (--with-bugurl): Likewise.
7518         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
7519         than necessarily for this particular distribution.  Use
7520         REPORT_BUGS_TO for where to report bugs.
7521         * INSTALL: Regenerated.
7522         * manual/libc.texinfo: Include pkgvers.texi.
7523         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
7524         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
7525         (print_version): Use PKGVERSION.
7526         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
7527         (print_version): Use PKGVERSION.
7528         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
7529         (print_version): Use PKGVERSION.
7530         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
7531         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
7532         macro.
7533         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
7534         (print_version): Use PKGVERSION.
7535         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
7536         (print_version): Use PKGVERSION.
7537         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
7538         and PKGVERSION.
7539
7540         * timezone/checktab.awk: Update from tzcode 2012i.
7541         * timezone/ialloc.c: Likewise.
7542         * timezone/private.h: Likewise.
7543         * timezone/scheck.c: Likewise.
7544         * timezone/tzfile.h: Likewise.
7545         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
7546         (TZVERSION): Hardcode tzcode version number.
7547         * timezone/zdump.c: Update from tzcode 2012i.
7548         * timezone/zic.c: Likewise.
7549         * timezone/version.h: New file.
7550         * timezone/README: Describe version.h.  Update upstream location.
7551
7552         [BZ #14824]
7553         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
7554         (mktemp): Enable declaration.
7555         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7556         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
7557         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
7558         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
7559         Likewise.
7560         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
7561         Likewise.
7562         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
7563         Likewise.
7564         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
7565         Likewise.
7566         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
7567         Likewise.
7568         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
7569         Likewise.
7570
7571         [BZ #14821]
7572         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
7573         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
7574         for copies of such integer values.
7575         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7576         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7577
7578 2012-11-09  Andreas Jaeger  <aj@suse.de>
7579
7580         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
7581         definitions and declarations that are provided by
7582         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7583
7584 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7585
7586         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
7587         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
7588         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
7589         definition.
7590
7591 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7592
7593         * elf/elf.h: Update comment before AArch64 relocations.
7594
7595 2012-11-07  David S. Miller  <davem@davemloft.net>
7596
7597         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
7598         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7599         (__start_context): Declare.
7600         (__makecontext_ret): Delete.
7601         (__makecontext): Hook up __start_context instead of
7602         __makecontext_ret.
7603         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7604         (sysdep_routines): Add __start_context when in stdlib.
7605
7606 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7607
7608         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
7609         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
7610         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
7611         hardcoded "nm".
7612         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
7613         (READELF): New variable.  Use it instead of hardcoded "readelf".
7614
7615 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7616
7617         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
7618         * sysdeps/x86/Makefile: Here.
7619         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
7620         * sysdeps/x86/tst-xmmymm.sh: This.
7621
7622 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7623
7624         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
7625         expectations.
7626         [UNIX98] (pthread_barrier_t): Do not expect.
7627         [UNIX98] (pthread_barrierattr_t): Likewise.
7628         [UNIX98] (pthread_spinlock_t): Likewise.
7629         [UNIX98] (pthread_barrier_destroy): Likewise.
7630         [UNIX98] (pthread_barrier_init): Likewise.
7631         [UNIX98] (pthread_barrier_wait): Likewise.
7632         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7633         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7634         [UNIX98] (pthread_barrierattr_init): Likewise.
7635         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7636         [UNIX98] (pthread_getcpuclockid): Likewise.
7637         [UNIX98] (pthread_mutex_timedlock): Likewise.
7638         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7639         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7640         [UNIX98] (pthread_sigmask): Likewise.
7641         [UNIX98] (pthread_spin_destroy): Likewise.
7642         [UNIX98] (pthread_spin_init): Likewise.
7643         [UNIX98] (pthread_spin_lock): Likewise.
7644         [UNIX98] (pthread_spin_trylock): Likewise.
7645         [UNIX98] (pthread_spin_unlock): Likewise.
7646         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7647         Do not expect.
7648         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7649         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7650         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7651         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7652         [XPG3 || XPG4] (pthread_key_t): Likewise.
7653         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7654         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7655         [XPG3 || XPG4] (pthread_once_t): Likewise.
7656         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7657         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7658         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7659         [XPG3 || XPG4] (pthread_t): Likewise.
7660
7661         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7662         not expect.
7663         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7664
7665         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7666         Change function return type to int.
7667
7668         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7669         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7670         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7671         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7672         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7673         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7674         [!POSIX] (posix_madvise): Likewise.
7675         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7676         && !UNIX98].
7677         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7678         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7679         (mode_t): Likewise.
7680         (posix_mem_offset): Likewise.
7681         (posix_typed_mem_get_info): Likewise.
7682         (posix_typed_mem_open): Likewise.
7683
7684         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7685         Change condition to [XOPEN2K8].
7686
7687         * conform/conformtest.pl: Preprocess allow-header data with -x c
7688         instead of from stdin.
7689         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7690         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7691         [C99-based standards] (cerfc): Likewise.
7692         [C99-based standards] (cexp2): Likewise.
7693         [C99-based standards] (cexpm1): Likewise.
7694         [C99-based standards] (clog10): Likewise.
7695         [C99-based standards] (clog1p): Likewise.
7696         [C99-based standards] (clog2): Likewise.
7697         [C99-based standards] (clgamma): Likewise.
7698         [C99-based standards] (ctgamma): Likewise.
7699         [C99-based standards] (cerff): Likewise.
7700         [C99-based standards] (cerfcf): Likewise.
7701         [C99-based standards] (cexp2f): Likewise.
7702         [C99-based standards] (cexpm1f): Likewise.
7703         [C99-based standards] (clog10f): Likewise.
7704         [C99-based standards] (clog1pf): Likewise.
7705         [C99-based standards] (clog2f): Likewise.
7706         [C99-based standards] (clgammaf): Likewise.
7707         [C99-based standards] (ctgammaf): Likewise.
7708         [C99-based standards] (cerfl): Likewise.
7709         [C99-based standards] (cerfcl): Likewise.
7710         [C99-based standards] (cexp2l): Likewise.
7711         [C99-based standards] (cexpm1l): Likewise.
7712         [C99-based standards] (clog10l): Likewise.
7713         [C99-based standards] (clog1pl): Likewise.
7714         [C99-based standards] (clog2l): Likewise.
7715         [C99-based standards] (clgammal): Likewise.
7716         [C99-based standards] (ctgammal): Likewise.
7717         * conform/data/inttypes.h-data [C99-based standards]: Include
7718         stdint.h-data.  Remove all expectations for stdint.h contents.
7719         [C99-based standards] (PRI*): Do not allow.
7720         [C99-based standards] (SCN*): Likewise.
7721         [C99-based standards] (*_t): Likewise.
7722         [C99-based-standards] (PRId8): Expect macro.
7723         [C99-based-standards] (PRIi8): Likewise.
7724         [C99-based-standards] (PRIo8): Likewise.
7725         [C99-based-standards] (PRIu8): Likewise.
7726         [C99-based-standards] (PRIx8): Likewise.
7727         [C99-based-standards] (PRIX8): Likewise.
7728         [C99-based-standards] (SCNd8): Likewise.
7729         [C99-based-standards] (SCNi8): Likewise.
7730         [C99-based-standards] (SCNo8): Likewise.
7731         [C99-based-standards] (SCNu8): Likewise.
7732         [C99-based-standards] (SCNx8): Likewise.
7733         [C99-based-standards] (PRIdLEAST8): Likewise.
7734         [C99-based-standards] (PRIiLEAST8): Likewise.
7735         [C99-based-standards] (PRIoLEAST8): Likewise.
7736         [C99-based-standards] (PRIuLEAST8): Likewise.
7737         [C99-based-standards] (PRIxLEAST8): Likewise.
7738         [C99-based-standards] (PRIXLEAST8): Likewise.
7739         [C99-based-standards] (SCNdLEAST8): Likewise.
7740         [C99-based-standards] (SCNiLEAST8): Likewise.
7741         [C99-based-standards] (SCNoLEAST8): Likewise.
7742         [C99-based-standards] (SCNuLEAST8): Likewise.
7743         [C99-based-standards] (SCNxLEAST8): Likewise.
7744         [C99-based-standards] (PRIdFAST8): Likewise.
7745         [C99-based-standards] (PRIiFAST8): Likewise.
7746         [C99-based-standards] (PRIoFAST8): Likewise.
7747         [C99-based-standards] (PRIuFAST8): Likewise.
7748         [C99-based-standards] (PRIxFAST8): Likewise.
7749         [C99-based-standards] (PRIXFAST8): Likewise.
7750         [C99-based-standards] (SCNdFAST8): Likewise.
7751         [C99-based-standards] (SCNiFAST8): Likewise.
7752         [C99-based-standards] (SCNoFAST8): Likewise.
7753         [C99-based-standards] (SCNuFAST8): Likewise.
7754         [C99-based-standards] (SCNxFAST8): Likewise.
7755         [C99-based-standards] (PRId16): Likewise.
7756         [C99-based-standards] (PRIi16): Likewise.
7757         [C99-based-standards] (PRIo16): Likewise.
7758         [C99-based-standards] (PRIu16): Likewise.
7759         [C99-based-standards] (PRIx16): Likewise.
7760         [C99-based-standards] (PRIX16): Likewise.
7761         [C99-based-standards] (SCNd16): Likewise.
7762         [C99-based-standards] (SCNi16): Likewise.
7763         [C99-based-standards] (SCNo16): Likewise.
7764         [C99-based-standards] (SCNu16): Likewise.
7765         [C99-based-standards] (SCNx16): Likewise.
7766         [C99-based-standards] (PRIdLEAST16): Likewise.
7767         [C99-based-standards] (PRIiLEAST16): Likewise.
7768         [C99-based-standards] (PRIoLEAST16): Likewise.
7769         [C99-based-standards] (PRIuLEAST16): Likewise.
7770         [C99-based-standards] (PRIxLEAST16): Likewise.
7771         [C99-based-standards] (PRIXLEAST16): Likewise.
7772         [C99-based-standards] (SCNdLEAST16): Likewise.
7773         [C99-based-standards] (SCNiLEAST16): Likewise.
7774         [C99-based-standards] (SCNoLEAST16): Likewise.
7775         [C99-based-standards] (SCNuLEAST16): Likewise.
7776         [C99-based-standards] (SCNxLEAST16): Likewise.
7777         [C99-based-standards] (PRIdFAST16): Likewise.
7778         [C99-based-standards] (PRIiFAST16): Likewise.
7779         [C99-based-standards] (PRIoFAST16): Likewise.
7780         [C99-based-standards] (PRIuFAST16): Likewise.
7781         [C99-based-standards] (PRIxFAST16): Likewise.
7782         [C99-based-standards] (PRIXFAST16): Likewise.
7783         [C99-based-standards] (SCNdFAST16): Likewise.
7784         [C99-based-standards] (SCNiFAST16): Likewise.
7785         [C99-based-standards] (SCNoFAST16): Likewise.
7786         [C99-based-standards] (SCNuFAST16): Likewise.
7787         [C99-based-standards] (SCNxFAST16): Likewise.
7788         [C99-based-standards] (PRId32): Likewise.
7789         [C99-based-standards] (PRIi32): Likewise.
7790         [C99-based-standards] (PRIo32): Likewise.
7791         [C99-based-standards] (PRIu32): Likewise.
7792         [C99-based-standards] (PRIx32): Likewise.
7793         [C99-based-standards] (PRIX32): Likewise.
7794         [C99-based-standards] (SCNd32): Likewise.
7795         [C99-based-standards] (SCNi32): Likewise.
7796         [C99-based-standards] (SCNo32): Likewise.
7797         [C99-based-standards] (SCNu32): Likewise.
7798         [C99-based-standards] (SCNx32): Likewise.
7799         [C99-based-standards] (PRIdLEAST32): Likewise.
7800         [C99-based-standards] (PRIiLEAST32): Likewise.
7801         [C99-based-standards] (PRIoLEAST32): Likewise.
7802         [C99-based-standards] (PRIuLEAST32): Likewise.
7803         [C99-based-standards] (PRIxLEAST32): Likewise.
7804         [C99-based-standards] (PRIXLEAST32): Likewise.
7805         [C99-based-standards] (SCNdLEAST32): Likewise.
7806         [C99-based-standards] (SCNiLEAST32): Likewise.
7807         [C99-based-standards] (SCNoLEAST32): Likewise.
7808         [C99-based-standards] (SCNuLEAST32): Likewise.
7809         [C99-based-standards] (SCNxLEAST32): Likewise.
7810         [C99-based-standards] (PRIdFAST32): Likewise.
7811         [C99-based-standards] (PRIiFAST32): Likewise.
7812         [C99-based-standards] (PRIoFAST32): Likewise.
7813         [C99-based-standards] (PRIuFAST32): Likewise.
7814         [C99-based-standards] (PRIxFAST32): Likewise.
7815         [C99-based-standards] (PRIXFAST32): Likewise.
7816         [C99-based-standards] (SCNdFAST32): Likewise.
7817         [C99-based-standards] (SCNiFAST32): Likewise.
7818         [C99-based-standards] (SCNoFAST32): Likewise.
7819         [C99-based-standards] (SCNuFAST32): Likewise.
7820         [C99-based-standards] (SCNxFAST32): Likewise.
7821         [C99-based-standards] (PRId64): Likewise.
7822         [C99-based-standards] (PRIi64): Likewise.
7823         [C99-based-standards] (PRIo64): Likewise.
7824         [C99-based-standards] (PRIu64): Likewise.
7825         [C99-based-standards] (PRIx64): Likewise.
7826         [C99-based-standards] (PRIX64): Likewise.
7827         [C99-based-standards] (SCNd64): Likewise.
7828         [C99-based-standards] (SCNi64): Likewise.
7829         [C99-based-standards] (SCNo64): Likewise.
7830         [C99-based-standards] (SCNu64): Likewise.
7831         [C99-based-standards] (SCNx64): Likewise.
7832         [C99-based-standards] (PRIdLEAST64): Likewise.
7833         [C99-based-standards] (PRIiLEAST64): Likewise.
7834         [C99-based-standards] (PRIoLEAST64): Likewise.
7835         [C99-based-standards] (PRIuLEAST64): Likewise.
7836         [C99-based-standards] (PRIxLEAST64): Likewise.
7837         [C99-based-standards] (PRIXLEAST64): Likewise.
7838         [C99-based-standards] (SCNdLEAST64): Likewise.
7839         [C99-based-standards] (SCNiLEAST64): Likewise.
7840         [C99-based-standards] (SCNoLEAST64): Likewise.
7841         [C99-based-standards] (SCNuLEAST64): Likewise.
7842         [C99-based-standards] (SCNxLEAST64): Likewise.
7843         [C99-based-standards] (PRIdFAST64): Likewise.
7844         [C99-based-standards] (PRIiFAST64): Likewise.
7845         [C99-based-standards] (PRIoFAST64): Likewise.
7846         [C99-based-standards] (PRIuFAST64): Likewise.
7847         [C99-based-standards] (PRIxFAST64): Likewise.
7848         [C99-based-standards] (PRIXFAST64): Likewise.
7849         [C99-based-standards] (SCNdFAST64): Likewise.
7850         [C99-based-standards] (SCNiFAST64): Likewise.
7851         [C99-based-standards] (SCNoFAST64): Likewise.
7852         [C99-based-standards] (SCNuFAST64): Likewise.
7853         [C99-based-standards] (SCNxFAST64): Likewise.
7854         [C99-based-standards] (PRIdMAX): Likewise.
7855         [C99-based-standards] (PRIiMAX): Likewise.
7856         [C99-based-standards] (PRIoMAX): Likewise.
7857         [C99-based-standards] (PRIuMAX): Likewise.
7858         [C99-based-standards] (PRIxMAX): Likewise.
7859         [C99-based-standards] (PRIXMAX): Likewise.
7860         [C99-based-standards] (SCNdMAX): Likewise.
7861         [C99-based-standards] (SCNiMAX): Likewise.
7862         [C99-based-standards] (SCNoMAX): Likewise.
7863         [C99-based-standards] (SCNuMAX): Likewise.
7864         [C99-based-standards] (SCNxMAX): Likewise.
7865         [C99-based-standards] (PRIdPTR): Likewise.
7866         [C99-based-standards] (PRIiPTR): Likewise.
7867         [C99-based-standards] (PRIoPTR): Likewise.
7868         [C99-based-standards] (PRIuPTR): Likewise.
7869         [C99-based-standards] (PRIxPTR): Likewise.
7870         [C99-based-standards] (PRIXPTR): Likewise.
7871         [C99-based-standards] (SCNdPTR): Likewise.
7872         [C99-based-standards] (SCNiPTR): Likewise.
7873         [C99-based-standards] (SCNoPTR): Likewise.
7874         [C99-based-standards] (SCNuPTR): Likewise.
7875         [C99-based-standards] (SCNxPTR): Likewise.
7876         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7877         allow.
7878         * conform/data/stdint.h-data: Update comments to clarify
7879         requirements.
7880         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7881         type.
7882         [C99-based standards] (INT8_MAX): Likewise.
7883         [C99-based standards] (INT16_MIN): Likewise.
7884         [C99-based standards] (INT16_MAX): Likewise.
7885         [C99-based standards] (INT32_MIN): Likewise.
7886         [C99-based standards] (INT32_MAX): Likewise.
7887         [C99-based standards] (INT64_MIN): Likewise.
7888         [C99-based standards] (INT64_MAX): Likewise.
7889         [C99-based standards] (UINT8_MAX): Likewise.
7890         [C99-based standards] (UINT16_MAX): Likewise.
7891         [C99-based standards] (UINT32_MAX): Likewise.
7892         [C99-based standards] (UINT64_MAX): Likewise.
7893         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7894         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7895         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7896         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7897         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7898         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7899         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7900         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7901         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7902         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7903         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7904         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7905         [C99-based standards] (INT_FAST8_MIN): Likewise.
7906         [C99-based standards] (INT_FAST8_MAX): Likewise.
7907         [C99-based standards] (INT_FAST16_MIN): Likewise.
7908         [C99-based standards] (INT_FAST16_MAX): Likewise.
7909         [C99-based standards] (INT_FAST32_MIN): Likewise.
7910         [C99-based standards] (INT_FAST32_MAX): Likewise.
7911         [C99-based standards] (INT_FAST64_MIN): Likewise.
7912         [C99-based standards] (INT_FAST64_MAX): Likewise.
7913         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7914         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7915         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7916         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7917         [C99-based standards] (INTPTR_MIN): Likewise.
7918         [C99-based standards] (INTPTR_MAX): Likewise.
7919         [C99-based standards] (UINTPTR_MAX): Likewise.
7920         [C99-based standards] (INTMAX_MIN): Likewise.
7921         [C99-based standards] (INTMAX_MAX): Likewise.
7922         [C99-based standards] (UINTMAX_MAX): Likewise.
7923         [C99-based standards] (PTRDIFF_MIN): Likewise.
7924         [C99-based standards] (PTRDIFF_MAX): Likewise.
7925         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7926         [C99-based standards] (SIZE_MAX): Likewise.
7927         [C99-based standards] (WCHAR_MAX): Likewise.
7928         [C99-based standards] (WINT_MAX): Likewise.
7929         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7930         constraint on value.
7931         [C99-based standards] (WCHAR_MIN): Likewise.
7932         [C99-based standards] (WINT_MIN): Likewise.
7933         [C99-based standards] (*_t): Allow.
7934         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7935         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7936         Include math.h-data and complex.h-data.  Remove all expectations
7937         of math.h and complex.h contents.
7938         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7939         at end of line.
7940         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7941         (struct tm): Expect tag.
7942         [C99-based-standards] (wcstof): Expect function.
7943         [C99-based-standards] (wcstold): Likewise.
7944         [C99-based-standards] (wcstoll): Likewise.
7945         [C99-based-standards] (wcstoull): Likewise.
7946         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7947         macro-int-constant.  Specify type.
7948         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7949         constraint on value.
7950         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7951         Specify type.
7952         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7953         Specify value.
7954         [ISO C standards]: Do not allow headers.
7955         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7956         wcs[abcdefghijklmnopqrstuvwxyz]*.
7957         [ISO C standards] (*_t): Do not allow.
7958         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7959         Expect function.
7960         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7961         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7962         Specify type.
7963         [ISO C standards]: Do not allow headers.
7964         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7965         is[abcdefghijklmnopqrstuvwxyz]*.
7966         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7967         to[abcdefghijklmnopqrstuvwxyz]*.
7968         [ISO C standards] (*_t): Do not allow.
7969         * conform/data/stdalign.h-data: New file.
7970         * conform/data/stdbool.h-data: Likewise.
7971         * conform/data/stdnoreturn.h-data: Likewise.
7972
7973 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7974
7975         [BZ #14815]
7976         * manual/filesys.texi (Directory Entries): Typo fix.
7977         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7978
7979 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7980
7981         * elf/elf.h (EM_AARCH64): New macro.
7982         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7983         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7984         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7985         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7986         (R_AARCH64_TLSDESC): Likewise.
7987         (NT_ARM_TLS): Likewise.
7988         (NT_ARM_HW_BREAK): Likewise.
7989         (NT_ARM_HW_WATCH): Likewise.
7990
7991 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7992
7993         [BZ #14811]
7994         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7995         (__ieee754_powl): Saturate nonzero exponents with absolute value
7996         below 0x1p-79 to +/- 0x1p-79.
7997         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7998         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7999         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
8000         nonzero exponents with absolute value below 0x1p-32 to +/-
8001         0x1p-32.
8002         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
8003         (__ieee754_powl): Saturate nonzero exponents with absolute value
8004         below 0x1p-79 to +/- 0x1p-79.
8005         * math/libm-test.inc (pow_test): Add more tests.
8006
8007 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8008
8009         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
8010         _dl_s390_cap_flags with kernel. Increase string length.
8011         (_dl_s390_platforms): Add z196 and zEC12.
8012
8013 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
8016         Change XOPEN21K to XOPEN2K.
8017
8018 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8019
8020         * string/memmove.c: Use memcpy when possible.
8021
8022 2012-11-06  Andreas Jaeger  <aj@suse.de>
8023
8024         * po/eo.po: Update from translation team.
8025
8026 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
8027
8028         [BZ #14793]
8029         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
8030         exponent and small x and y exponents, scale x or y up.  Increase
8031         by 2 the exponent used in scaling up.
8032         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8033         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8034         * math/libm-test.inc (fma_test): Add more tests.
8035         (fma_test_towardzero): Likewise.
8036         (fma_test_downward): Likewise.
8037         (fma_test_upward): Likewise.
8038
8039 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
8040
8041         [BZ #14805]
8042         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
8043         fenv_t *.
8044
8045         [BZ #14801]
8046         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
8047         namespace for names of struct fields.
8048         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
8049         fenv_t fields.
8050         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
8051         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
8052
8053 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8054
8055         [BZ #3665]
8056         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
8057
8058 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8059
8060         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
8061         PTR_DEMANGLE.
8062
8063         [BZ #5246]
8064         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
8065         PTR_DEMANGLE.
8066
8067 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
8068
8069         [BZ #14797]
8070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
8071         definitely overflow as x * y not x * y + z.
8072         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8073         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8074         * math/libm-test.inc (fma_test): Add more tests.
8075         (fma_test_towardzero): Likewise.
8076         (fma_test_downward): Likewise.
8077         (fma_test_upward): Likewise.
8078
8079 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
8080
8081         [BZ #157]
8082
8083         * include/stub-tag.h: Remove file.
8084         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
8085         '#include' of it.
8086         * manual/maint.texi (Porting): Don't reference it.
8087         * Makerules ($(objpfx)stubs): Likewise.
8088         * dirent/closedir.c: Don't include <stub-tag.h>.
8089         * dirent/dirfd.c: Likewise.
8090         * dirent/fdopendir.c: Likewise.
8091         * dirent/getdents.c: Likewise.
8092         * dirent/getdents64.c: Likewise.
8093         * dirent/opendir.c: Likewise.
8094         * dirent/readdir.c: Likewise.
8095         * dirent/readdir64.c: Likewise.
8096         * dirent/readdir64_r.c: Likewise.
8097         * dirent/readdir_r.c: Likewise.
8098         * dirent/rewinddir.c: Likewise.
8099         * dirent/seekdir.c: Likewise.
8100         * dirent/telldir.c: Likewise.
8101         * gmon/profil.c: Likewise.
8102         * grp/setgroups.c: Likewise.
8103         * inet/if_index.c: Likewise.
8104         * io/access.c: Likewise.
8105         * io/chdir.c: Likewise.
8106         * io/chmod.c: Likewise.
8107         * io/chown.c: Likewise.
8108         * io/close.c: Likewise.
8109         * io/dup.c: Likewise.
8110         * io/dup2.c: Likewise.
8111         * io/dup3.c: Likewise.
8112         * io/euidaccess.c: Likewise.
8113         * io/faccessat.c: Likewise.
8114         * io/fchdir.c: Likewise.
8115         * io/fchmod.c: Likewise.
8116         * io/fchmodat.c: Likewise.
8117         * io/fchown.c: Likewise.
8118         * io/fchownat.c: Likewise.
8119         * io/fcntl.c: Likewise.
8120         * io/flock.c: Likewise.
8121         * io/fstatfs.c: Likewise.
8122         * io/fstatfs64.c: Likewise.
8123         * io/fstatvfs.c: Likewise.
8124         * io/fstatvfs64.c: Likewise.
8125         * io/futimens.c: Likewise.
8126         * io/fxstat.c: Likewise.
8127         * io/fxstat64.c: Likewise.
8128         * io/fxstatat.c: Likewise.
8129         * io/fxstatat64.c: Likewise.
8130         * io/getcwd.c: Likewise.
8131         * io/isatty.c: Likewise.
8132         * io/lchmod.c: Likewise.
8133         * io/lchown.c: Likewise.
8134         * io/link.c: Likewise.
8135         * io/linkat.c: Likewise.
8136         * io/lseek.c: Likewise.
8137         * io/lseek64.c: Likewise.
8138         * io/lxstat64.c: Likewise.
8139         * io/mkdir.c: Likewise.
8140         * io/mkdirat.c: Likewise.
8141         * io/mkfifo.c: Likewise.
8142         * io/mkfifoat.c: Likewise.
8143         * io/open.c: Likewise.
8144         * io/open64.c: Likewise.
8145         * io/openat.c: Likewise.
8146         * io/openat64.c: Likewise.
8147         * io/pipe.c: Likewise.
8148         * io/pipe2.c: Likewise.
8149         * io/poll.c: Likewise.
8150         * io/posix_fadvise.c: Likewise.
8151         * io/posix_fadvise64.c: Likewise.
8152         * io/posix_fallocate.c: Likewise.
8153         * io/posix_fallocate64.c: Likewise.
8154         * io/read.c: Likewise.
8155         * io/readlink.c: Likewise.
8156         * io/readlinkat.c: Likewise.
8157         * io/rmdir.c: Likewise.
8158         * io/sendfile.c: Likewise.
8159         * io/sendfile64.c: Likewise.
8160         * io/statfs.c: Likewise.
8161         * io/statfs64.c: Likewise.
8162         * io/statvfs.c: Likewise.
8163         * io/statvfs64.c: Likewise.
8164         * io/symlink.c: Likewise.
8165         * io/symlinkat.c: Likewise.
8166         * io/ttyname.c: Likewise.
8167         * io/ttyname_r.c: Likewise.
8168         * io/umask.c: Likewise.
8169         * io/unlink.c: Likewise.
8170         * io/unlinkat.c: Likewise.
8171         * io/utime.c: Likewise.
8172         * io/utimensat.c: Likewise.
8173         * io/write.c: Likewise.
8174         * io/xmknod.c: Likewise.
8175         * io/xmknodat.c: Likewise.
8176         * io/xstat.c: Likewise.
8177         * io/xstat64.c: Likewise.
8178         * login/getpt.c: Likewise.
8179         * login/grantpt.c: Likewise.
8180         * login/unlockpt.c: Likewise.
8181         * math/e_acoshl.c: Likewise.
8182         * math/e_acosl.c: Likewise.
8183         * math/e_asinl.c: Likewise.
8184         * math/e_atan2l.c: Likewise.
8185         * math/e_atanhl.c: Likewise.
8186         * math/e_coshl.c: Likewise.
8187         * math/e_expl.c: Likewise.
8188         * math/e_fmodl.c: Likewise.
8189         * math/e_gammal_r.c: Likewise.
8190         * math/e_hypotl.c: Likewise.
8191         * math/e_j0l.c: Likewise.
8192         * math/e_j1l.c: Likewise.
8193         * math/e_jnl.c: Likewise.
8194         * math/e_lgammal_r.c: Likewise.
8195         * math/e_log10l.c: Likewise.
8196         * math/e_log2l.c: Likewise.
8197         * math/e_logl.c: Likewise.
8198         * math/e_powl.c: Likewise.
8199         * math/e_rem_pio2l.c: Likewise.
8200         * math/e_sinhl.c: Likewise.
8201         * math/e_sqrtl.c: Likewise.
8202         * math/fclrexcpt.c: Likewise.
8203         * math/fedisblxcpt.c: Likewise.
8204         * math/feenablxcpt.c: Likewise.
8205         * math/fegetenv.c: Likewise.
8206         * math/fegetexcept.c: Likewise.
8207         * math/fegetround.c: Likewise.
8208         * math/feholdexcpt.c: Likewise.
8209         * math/fesetenv.c: Likewise.
8210         * math/fesetround.c: Likewise.
8211         * math/feupdateenv.c: Likewise.
8212         * math/fgetexcptflg.c: Likewise.
8213         * math/fraiseexcpt.c: Likewise.
8214         * math/fsetexcptflg.c: Likewise.
8215         * math/ftestexcept.c: Likewise.
8216         * math/k_cosl.c: Likewise.
8217         * math/k_rem_pio2l.c: Likewise.
8218         * math/k_sinl.c: Likewise.
8219         * math/k_tanl.c: Likewise.
8220         * math/s_asinhl.c: Likewise.
8221         * math/s_atanl.c: Likewise.
8222         * math/s_cbrtl.c: Likewise.
8223         * math/s_erfl.c: Likewise.
8224         * math/s_expm1l.c: Likewise.
8225         * math/s_log1pl.c: Likewise.
8226         * math/s_tanhl.c: Likewise.
8227         * misc/acct.c: Likewise.
8228         * misc/brk.c: Likewise.
8229         * misc/chflags.c: Likewise.
8230         * misc/chroot.c: Likewise.
8231         * misc/fchflags.c: Likewise.
8232         * misc/fgetxattr.c: Likewise.
8233         * misc/flistxattr.c: Likewise.
8234         * misc/fremovexattr.c: Likewise.
8235         * misc/fsetxattr.c: Likewise.
8236         * misc/fsync.c: Likewise.
8237         * misc/ftruncate.c: Likewise.
8238         * misc/futimes.c: Likewise.
8239         * misc/futimesat.c: Likewise.
8240         * misc/getdomain.c: Likewise.
8241         * misc/getdtsz.c: Likewise.
8242         * misc/gethostid.c: Likewise.
8243         * misc/gethostname.c: Likewise.
8244         * misc/getloadavg.c: Likewise.
8245         * misc/getpagesize.c: Likewise.
8246         * misc/getsysstats.c: Likewise.
8247         * misc/getxattr.c: Likewise.
8248         * misc/gtty.c: Likewise.
8249         * misc/ioctl.c: Likewise.
8250         * misc/lgetxattr.c: Likewise.
8251         * misc/listxattr.c: Likewise.
8252         * misc/llistxattr.c: Likewise.
8253         * misc/lremovexattr.c: Likewise.
8254         * misc/lsetxattr.c: Likewise.
8255         * misc/lutimes.c: Likewise.
8256         * misc/madvise.c: Likewise.
8257         * misc/mincore.c: Likewise.
8258         * misc/mlock.c: Likewise.
8259         * misc/mlockall.c: Likewise.
8260         * misc/mmap.c: Likewise.
8261         * misc/mprotect.c: Likewise.
8262         * misc/msync.c: Likewise.
8263         * misc/munlock.c: Likewise.
8264         * misc/munlockall.c: Likewise.
8265         * misc/munmap.c: Likewise.
8266         * misc/preadv.c: Likewise.
8267         * misc/preadv64.c: Likewise.
8268         * misc/ptrace.c: Likewise.
8269         * misc/pwritev.c: Likewise.
8270         * misc/pwritev64.c: Likewise.
8271         * misc/readv.c: Likewise.
8272         * misc/reboot.c: Likewise.
8273         * misc/remap_file_pages.c: Likewise.
8274         * misc/removexattr.c: Likewise.
8275         * misc/revoke.c: Likewise.
8276         * misc/select.c: Likewise.
8277         * misc/setdomain.c: Likewise.
8278         * misc/setegid.c: Likewise.
8279         * misc/seteuid.c: Likewise.
8280         * misc/sethostid.c: Likewise.
8281         * misc/sethostname.c: Likewise.
8282         * misc/setregid.c: Likewise.
8283         * misc/setreuid.c: Likewise.
8284         * misc/setxattr.c: Likewise.
8285         * misc/sstk.c: Likewise.
8286         * misc/stty.c: Likewise.
8287         * misc/swapoff.c: Likewise.
8288         * misc/swapon.c: Likewise.
8289         * misc/sync.c: Likewise.
8290         * misc/syncfs.c: Likewise.
8291         * misc/syscall.c: Likewise.
8292         * misc/truncate.c: Likewise.
8293         * misc/ualarm.c: Likewise.
8294         * misc/usleep.c: Likewise.
8295         * misc/ustat.c: Likewise.
8296         * misc/utimes.c: Likewise.
8297         * misc/vhangup.c: Likewise.
8298         * misc/writev.c: Likewise.
8299         * posix/_exit.c: Likewise.
8300         * posix/alarm.c: Likewise.
8301         * posix/execve.c: Likewise.
8302         * posix/fexecve.c: Likewise.
8303         * posix/fork.c: Likewise.
8304         * posix/fpathconf.c: Likewise.
8305         * posix/getaddrinfo.c: Likewise.
8306         * posix/getegid.c: Likewise.
8307         * posix/geteuid.c: Likewise.
8308         * posix/getgid.c: Likewise.
8309         * posix/getgroups.c: Likewise.
8310         * posix/getlogin.c: Likewise.
8311         * posix/getlogin_r.c: Likewise.
8312         * posix/getpgid.c: Likewise.
8313         * posix/getpid.c: Likewise.
8314         * posix/getppid.c: Likewise.
8315         * posix/getresgid.c: Likewise.
8316         * posix/getresuid.c: Likewise.
8317         * posix/getsid.c: Likewise.
8318         * posix/getuid.c: Likewise.
8319         * posix/glob64.c: Likewise.
8320         * posix/nanosleep.c: Likewise.
8321         * posix/pathconf.c: Likewise.
8322         * posix/pause.c: Likewise.
8323         * posix/posix_madvise.c: Likewise.
8324         * posix/pread.c: Likewise.
8325         * posix/pread64.c: Likewise.
8326         * posix/pwrite.c: Likewise.
8327         * posix/pwrite64.c: Likewise.
8328         * posix/sched_getaffinity.c: Likewise.
8329         * posix/sched_getp.c: Likewise.
8330         * posix/sched_gets.c: Likewise.
8331         * posix/sched_primax.c: Likewise.
8332         * posix/sched_primin.c: Likewise.
8333         * posix/sched_rr_gi.c: Likewise.
8334         * posix/sched_setaffinity.c: Likewise.
8335         * posix/sched_setp.c: Likewise.
8336         * posix/sched_sets.c: Likewise.
8337         * posix/sched_yield.c: Likewise.
8338         * posix/setgid.c: Likewise.
8339         * posix/setlogin.c: Likewise.
8340         * posix/setpgid.c: Likewise.
8341         * posix/setresgid.c: Likewise.
8342         * posix/setresuid.c: Likewise.
8343         * posix/setsid.c: Likewise.
8344         * posix/setuid.c: Likewise.
8345         * posix/sleep.c: Likewise.
8346         * posix/spawni.c: Likewise.
8347         * posix/sysconf.c: Likewise.
8348         * posix/times.c: Likewise.
8349         * posix/wait.c: Likewise.
8350         * posix/wait3.c: Likewise.
8351         * posix/wait4.c: Likewise.
8352         * posix/waitpid.c: Likewise.
8353         * resolv/gai_sigqueue.c: Likewise.
8354         * resource/getpriority.c: Likewise.
8355         * resource/getrlimit.c: Likewise.
8356         * resource/getrusage.c: Likewise.
8357         * resource/nice.c: Likewise.
8358         * resource/setpriority.c: Likewise.
8359         * resource/setrlimit.c: Likewise.
8360         * resource/ulimit.c: Likewise.
8361         * rt/aio_cancel.c: Likewise.
8362         * rt/aio_fsync.c: Likewise.
8363         * rt/aio_read.c: Likewise.
8364         * rt/aio_sigqueue.c: Likewise.
8365         * rt/aio_suspend.c: Likewise.
8366         * rt/aio_write.c: Likewise.
8367         * rt/clock_getres.c: Likewise.
8368         * rt/clock_gettime.c: Likewise.
8369         * rt/clock_nanosleep.c: Likewise.
8370         * rt/clock_settime.c: Likewise.
8371         * rt/lio_listio.c: Likewise.
8372         * rt/mq_close.c: Likewise.
8373         * rt/mq_getattr.c: Likewise.
8374         * rt/mq_notify.c: Likewise.
8375         * rt/mq_open.c: Likewise.
8376         * rt/mq_receive.c: Likewise.
8377         * rt/mq_send.c: Likewise.
8378         * rt/mq_setattr.c: Likewise.
8379         * rt/mq_timedreceive.c: Likewise.
8380         * rt/mq_timedsend.c: Likewise.
8381         * rt/mq_unlink.c: Likewise.
8382         * rt/shm_open.c: Likewise.
8383         * rt/shm_unlink.c: Likewise.
8384         * rt/timer_create.c: Likewise.
8385         * rt/timer_delete.c: Likewise.
8386         * rt/timer_getoverr.c: Likewise.
8387         * rt/timer_gettime.c: Likewise.
8388         * rt/timer_settime.c: Likewise.
8389         * setjmp/__longjmp.c: Likewise.
8390         * setjmp/setjmp.c: Likewise.
8391         * signal/kill.c: Likewise.
8392         * signal/killpg.c: Likewise.
8393         * signal/raise.c: Likewise.
8394         * signal/sigaction.c: Likewise.
8395         * signal/sigaltstack.c: Likewise.
8396         * signal/sigblock.c: Likewise.
8397         * signal/sigignore.c: Likewise.
8398         * signal/sigintr.c: Likewise.
8399         * signal/signal.c: Likewise.
8400         * signal/sigpause.c: Likewise.
8401         * signal/sigpending.c: Likewise.
8402         * signal/sigqueue.c: Likewise.
8403         * signal/sigreturn.c: Likewise.
8404         * signal/sigset.c: Likewise.
8405         * signal/sigsetmask.c: Likewise.
8406         * signal/sigstack.c: Likewise.
8407         * signal/sigsuspend.c: Likewise.
8408         * signal/sigtimedwait.c: Likewise.
8409         * signal/sigvec.c: Likewise.
8410         * signal/sigwait.c: Likewise.
8411         * signal/sigwaitinfo.c: Likewise.
8412         * signal/sysv_signal.c: Likewise.
8413         * socket/accept.c: Likewise.
8414         * socket/accept4.c: Likewise.
8415         * socket/bind.c: Likewise.
8416         * socket/connect.c: Likewise.
8417         * socket/getpeername.c: Likewise.
8418         * socket/getsockname.c: Likewise.
8419         * socket/getsockopt.c: Likewise.
8420         * socket/isfdtype.c: Likewise.
8421         * socket/listen.c: Likewise.
8422         * socket/recv.c: Likewise.
8423         * socket/recvfrom.c: Likewise.
8424         * socket/recvmsg.c: Likewise.
8425         * socket/send.c: Likewise.
8426         * socket/sendmsg.c: Likewise.
8427         * socket/sendto.c: Likewise.
8428         * socket/setsockopt.c: Likewise.
8429         * socket/shutdown.c: Likewise.
8430         * socket/sockatmark.c: Likewise.
8431         * socket/socket.c: Likewise.
8432         * socket/socketpair.c: Likewise.
8433         * stdio-common/ctermid.c: Likewise.
8434         * stdio-common/cuserid.c: Likewise.
8435         * stdio-common/remove.c: Likewise.
8436         * stdio-common/rename.c: Likewise.
8437         * stdio-common/renameat.c: Likewise.
8438         * stdio-common/tempname.c: Likewise.
8439         * stdlib/getcontext.c: Likewise.
8440         * stdlib/makecontext.c: Likewise.
8441         * stdlib/setcontext.c: Likewise.
8442         * stdlib/swapcontext.c: Likewise.
8443         * stdlib/system.c: Likewise.
8444         * streams/fattach.c: Likewise.
8445         * streams/fdetach.c: Likewise.
8446         * streams/getmsg.c: Likewise.
8447         * streams/getpmsg.c: Likewise.
8448         * streams/putmsg.c: Likewise.
8449         * streams/putpmsg.c: Likewise.
8450         * sysdeps/unix/bsd/getpt.c: Likewise.
8451         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
8452         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
8453         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
8455         Likewise.
8456         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
8457         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
8458         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
8459         * sysvipc/msgctl.c: Likewise.
8460         * sysvipc/msgget.c: Likewise.
8461         * sysvipc/msgrcv.c: Likewise.
8462         * sysvipc/msgsnd.c: Likewise.
8463         * sysvipc/semctl.c: Likewise.
8464         * sysvipc/semget.c: Likewise.
8465         * sysvipc/semop.c: Likewise.
8466         * sysvipc/semtimedop.c: Likewise.
8467         * sysvipc/shmat.c: Likewise.
8468         * sysvipc/shmctl.c: Likewise.
8469         * sysvipc/shmdt.c: Likewise.
8470         * sysvipc/shmget.c: Likewise.
8471         * termios/tcdrain.c: Likewise.
8472         * termios/tcflow.c: Likewise.
8473         * termios/tcflush.c: Likewise.
8474         * termios/tcgetattr.c: Likewise.
8475         * termios/tcgetpgrp.c: Likewise.
8476         * termios/tcsendbrk.c: Likewise.
8477         * termios/tcsetattr.c: Likewise.
8478         * termios/tcsetpgrp.c: Likewise.
8479         * time/adjtime.c: Likewise.
8480         * time/clock.c: Likewise.
8481         * time/getitimer.c: Likewise.
8482         * time/gettimeofday.c: Likewise.
8483         * time/setitimer.c: Likewise.
8484         * time/settimeofday.c: Likewise.
8485         * time/stime.c: Likewise.
8486         * time/time.c: Likewise.
8487
8488 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
8489
8490         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
8491         /usr/old/bin.
8492
8493         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
8494         instead of spaces.
8495         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
8496
8497 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
8498
8499         [BZ #14796]
8500         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
8501         FE_TONEAREST before applying Dekker multiplication and Knuth
8502         addition.  Clear inexact exceptions and check for exact zero
8503         results afterwards.
8504         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8505         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8506         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8507         * math/libm-test.inc (fma_test): Add more tests.
8508         (fma_test_towardzero): Likewise.
8509         (fma_test_downward): Likewise.
8510         (fma_test_upward): Likewise.
8511         * sysdeps/generic/math_private.h (default_libc_fesetround): New
8512         function.
8513         (libc_fesetround): New macro.
8514         (libc_fesetroundf): Likewise.
8515         (libc_fesetroundl): Likewise.
8516         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
8517         function.
8518         (libc_fesetround_387): Likewise.
8519         (libc_fesetroundf): New macro.
8520         (libc_fesetround): Likewise.
8521         (libc_fesetroundl): Likewise.
8522         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
8523         function.
8524         (libc_fesetroundf): New macro.
8525         (libc_fesetround): Likewise.
8526         (libc_fesetroundl): Likewise.
8527         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
8528         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
8529         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
8530         libm_hidden_ver.
8531         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
8532         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
8533         libm_hidden_def.
8534         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
8535         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
8536         libm_hidden_ver.
8537         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
8538         libm_hidden_def.
8539
8540         [BZ #3439]
8541         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
8542         integer constant usable in #if and use that to give value to enum
8543         constant.
8544         (FE_DIVBYZERO): Likewise.
8545         (FE_UNDERFLOW): Likewise.
8546         (FE_OVERFLOW): Likewise.
8547         (FE_INVALID): Likewise.
8548         (FE_INVALID_SNAN): Likewise.
8549         (FE_INVALID_ISI): Likewise.
8550         (FE_INVALID_IDI): Likewise.
8551         (FE_INVALID_ZDZ): Likewise.
8552         (FE_INVALID_IMZ): Likewise.
8553         (FE_INVALID_COMPARE): Likewise.
8554         (FE_INVALID_SOFTWARE): Likewise.
8555         (FE_INVALID_SQRT): Likewise.
8556         (FE_INVALID_INTEGER_CONVERSION): Likewise.
8557         (FE_TONEAREST): Likewise.
8558         (FE_TOWARDZERO): Likewise.
8559         (FE_UPWARD): Likewise.
8560         (FE_DOWNWARD): Likewise.
8561         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
8562         (FE_DIVBYZERO): Likewise.
8563         (FE_OVERFLOW): Likewise.
8564         (FE_UNDERFLOW): Likewise.
8565         (FE_INEXACT): Likewise.
8566         (FE_TONEAREST): Likewise.
8567         (FE_DOWNWARD): Likewise.
8568         (FE_UPWARD): Likewise.
8569         (FE_TOWARDZERO): Likewise.
8570         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
8571         (FE_UNDERFLOW): Likewise.
8572         (FE_OVERFLOW): Likewise.
8573         (FE_DIVBYZERO): Likewise.
8574         (FE_INVALID): Likewise.
8575         (FE_TONEAREST): Likewise.
8576         (FE_TOWARDZERO): Likewise.
8577         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
8578         (FE_OVERFLOW): Likewise.
8579         (FE_UNDERFLOW): Likewise.
8580         (FE_DIVBYZERO): Likewise.
8581         (FE_INEXACT): Likewise.
8582         (FE_TONEAREST): Likewise.
8583         (FE_TOWARDZERO): Likewise.
8584         (FE_UPWARD): Likewise.
8585         (FE_DOWNWARD): Likewise.
8586         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
8587         (FE_DIVBYZERO): Likewise.
8588         (FE_OVERFLOW): Likewise.
8589         (FE_UNDERFLOW): Likewise.
8590         (FE_INEXACT): Likewise.
8591         (FE_TONEAREST): Likewise.
8592         (FE_DOWNWARD): Likewise.
8593         (FE_UPWARD): Likewise.
8594         (FE_TOWARDZERO): Likewise.
8595
8596 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
8597
8598         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
8599
8600 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
8601
8602         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8603         commands.  Quote $PWD.
8604         (blacklist_exports): Don't use remove_newlines.  Replace "declare
8605         -x" by "export".
8606         (remove_newlines): Remove.
8607
8608 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
8609
8610         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
8611         * stdlib/stdlib.h (atof): Moved to ...
8612         * include/bits/stdlib-float.h: Here.  New file.
8613         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
8614         * stdlib/bits/stdlib-float.h: New file.
8615         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
8616         -mno-sse -mno-mmx.
8617         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
8618         <xmmintrin.h>.
8619
8620 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8621
8622         * conform/conformtest.pl (@headers): Add fenv.h.
8623         * conform/data/fenv.h-data: New file.
8624         * include/fenv.h [_ISOMAC]: Disable all contents of file except
8625         include of <math/fenv.h>.
8626
8627         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8628         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8629         && !UNIX98].  Enables tests for XOPEN2K8.
8630         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8631         POSIX2008]: Likewise.
8632
8633         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8634         (struct rusage): Do not expect type or its members.
8635
8636         [BZ #3439]
8637         * math/math.h (FP_NAN): Define macro to integer constant usable in
8638         #if and use that to give value to enum constant.
8639         (FP_INFINITE): Likewise.
8640         (FP_ZERO): Likewise.
8641         (FP_SUBNORMAL): Likewise.
8642         (FP_NORMAL): Likewise.
8643
8644 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8645
8646         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8647         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8648         arguments.
8649
8650 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8651
8652         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8653         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8654         autoconf-time if not.
8655         * configure.in: Remove AC_PREREQ.
8656
8657 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8658
8659         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8660         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8661         of the internal implementation.
8662
8663 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8664
8665         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8666         except include of <misc/sys/syslog.h>.
8667
8668 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8669
8670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8671         function returns with a NULL context exit with zero.
8672
8673 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8674
8675         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8676
8677 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8678
8679         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8680         (run_program_cmd): This.
8681         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8682         (tst_langinfo): New variable.  Use it.
8683
8684 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8685
8686         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8687         floating point opcodes.
8688
8689 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8690
8691         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8692         variable.
8693
8694         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8695
8696         * sysdeps/mach/hurd/powerpc: Remove directory.
8697         * sysdeps/mach/powerpc: Likewise.
8698
8699 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8700
8701         * scripts/check-local-headers.sh: Ignore c++ headers.
8702
8703 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8704
8705         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8706         __libc_cleanup_region_start argument.
8707
8708 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8709
8710         [BZ #14784]
8711         [BZ #14785]
8712         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8713         x * y using scaling, not as x * y + z.
8714         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8715         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8716         * math/libm-test.inc (fma_test): Add more tests.
8717         (fma_test_towardzero): Likewise.
8718         (fma_test_downward): Likewise.
8719         (fma_test_upward): Likewise.
8720
8721 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8722
8723         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8724
8725 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8726
8727         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8728         New variable.
8729
8730 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8731
8732         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8733
8734 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8735
8736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8737         Fix sort order.
8738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8739         Likewise.
8740
8741 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8742
8743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8744         Fix the order of the list for glibc 2.17.
8745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8746         Likewise.
8747
8748 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8749
8750         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8751
8752 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8753
8754         [BZ #14610]
8755         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8756         for low part of x being zero before using __atanl (y).
8757         * math/libm-test.inc (atan2_test): Add another test.
8758
8759         * manual/install.texi (Configuring and compiling): Document
8760         general use of test-wrapper and test-wrapper-env.
8761         * INSTALL: Regenerated.
8762
8763         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8764         (__fma): Do not extract and scale down low bits on after-rounding
8765         systems when result rounded to normal precision would have normal
8766         exponent.
8767         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8768         (__fmal): Do not extract and scale down low bits on after-rounding
8769         systems when result rounded to normal precision would have normal
8770         exponent.
8771         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8772         (__fmal): Do not extract and scale down low bits on after-rounding
8773         systems when result rounded to normal precision would have normal
8774         exponent.
8775         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8776         macro.
8777         (fma_test): Add more tests.
8778         (fma_test_towardzero): Likewise.
8779         (fma_test_downward): Likewise.
8780         (fma_test_upward): Likewise.
8781
8782 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8783
8784         * sysdeps/i386/tininess.h: Renamed to ...
8785         * sysdeps/x86/tininess.h: This.
8786         * sysdeps/x86_64/tininess.h: Removed.
8787
8788 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8789
8790         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8791         input.  Use $(build-program-cmd).
8792         ($(objpfx)tst-array1-static.out): Likewise.
8793         ($(objpfx)tst-array2.out): Likewise.
8794         ($(objpfx)tst-array3.out): Likewise.
8795         ($(objpfx)tst-array4.out): Likewise.
8796         ($(objpfx)tst-array5.out): Likewise.
8797         ($(objpfx)tst-array5-static.out): Likewise.
8798
8799 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8800
8801         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8802         if defined.
8803
8804         * nss/nsswitch.h (nss_interface_function): Provide new
8805         macro for use with NSS functions.
8806         * grp/initgroups.c: Use new macro.
8807         * nss/getXXbyYY.c: Likewise.
8808         * nss/getXXbyYY_r.c: Likewise.
8809         * nss/getXXent.c: Likewise.
8810         * nss/getXXent_r.c: Likewise.
8811         * sysdeps/posix/getaddrinfo.c: Likewise.
8812
8813 2012-10-30  Andreas Jaeger  <aj@suse.de>
8814
8815         * po/ru.po: Update Russion translation from translation project.
8816
8817 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8818
8819         [BZ #14152]
8820         [BZ #14783]
8821         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8822         result and shift together with sticky bit instead of replicating
8823         round-to-nearest rounding.
8824         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8825         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8826         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8827         missing underflow exceptions.
8828         (fma_test_towardzero): Add more tests.
8829         (fma_test_downward): Likewise.
8830         (fma_test_upward): Likewise.
8831
8832         [BZ #14047]
8833         * sysdeps/generic/tininess.h: New file.
8834         * sysdeps/i386/tininess.h: Likewise.
8835         * sysdeps/sh/tininess.h: Likewise.
8836         * sysdeps/x86_64/tininess.h: Likewise.
8837         * stdlib/tst-strtod-underflow.c: Likewise.
8838         * stdlib/tst-tininess.c: Likewise.
8839         * stdlib/strtod_l.c: Include <tininess.h>.
8840         (round_and_return): Do not set errno for exact underflow cases.
8841         Force an underflow exception when setting errno for underflow.
8842         Determine underflow based on rounding to normal precision if
8843         TININESS_AFTER_ROUNDING.
8844         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8845         ERANGE for exact underflow cases.
8846         * stdlib/Makefile (tests): Add tst-tininess and
8847         tst-strtod-underflow.
8848         ($(objpfx)tst-tininess): Use $(link-libm).
8849         ($(objpfx)tst-strtod-underflow): Likewise.
8850
8851 2012-10-30  Andreas Jaeger  <aj@suse.de>
8852
8853         [BZ#14767]
8854         * elf/Makefile (tests): Remove conditional for have-initfini-array
8855         since this is now always required and the variable does not exist
8856         anymore.
8857         (tests-static): Likewise.
8858         (modules-names): Likewise.
8859
8860         * po/eo.po: Add Esperanto translation from translation project.
8861
8862         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8863         merged with constructor/destructor.
8864         (init_array): Likewise.
8865         * elf/tst-array2dep.c (fini_array): Likewise.
8866         (init_array): Likewise.
8867
8868 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8869
8870         * manual/message.texi: Delete @cartouche tags.
8871
8872 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8873
8874         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8875         EOPNOTSUPP.
8876         * sysdeps/mach/hurd/fsync.c: Likewise.
8877
8878         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8879         [_POSIX_REALTIME_SIGNALS]: Change condition to
8880         [_POSIX_REALTIME_SIGNALS > 0].
8881
8882 2012-10-27  Andreas Jaeger  <aj@suse.de>
8883
8884         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8885         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8886         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8887         [__WORDSIZE != 64]: Likewise.
8888
8889 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8890
8891         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8892         *  iconvdata/tst-tables.sh: Likewise.
8893
8894 2012-10-25  David S. Miller  <davem@davemloft.net>
8895
8896         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8897         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8898         of strtoull.
8899
8900         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8901         ifunc-impl-list.c
8902         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8903         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8904         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8905         file.
8906
8907 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8908
8909         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8910         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8911         __getdirentries.
8912
8913 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8914             Jim Blandy  <jimb@codesourcery.com>
8915
8916         * scripts/cross-test-ssh.sh: New file.
8917         * manual/install.texi (Configuring and compiling): Document use of
8918         cross-test-ssh.sh.
8919         * INSTALL: Regenerated.
8920
8921 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8922
8923         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8924         EOPNOTSUPP.
8925
8926 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8927
8928         * Makeconfig (run-program-prefix): Fix comment.
8929
8930 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8931             Jim Blandy  <jimb@codesourcery.com>
8932
8933         * Makeconfig (test-wrapper): New variable,
8934         (test-wrapper-env): Likewise.
8935         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8936         (run-built-tests): Define to yes.
8937         (run-program-prefix): Use $(test-wrapper).
8938         (built-program-cmd): Likewise.
8939         * Rules (make-test-out): Use $(test-wrapper-env) and
8940         $(host-built-program-cmd).
8941         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8942         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8943         tst-pathopt.sh.
8944         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8945         $(test-wrapper-env) to tst-rtld-load-self.sh.
8946         ($(objpfx)order2.out): Use $(test-wrapper).
8947         ($(objpfx)tst-initorder.out): Likewise.
8948         ($(objpfx)tst-initorder2.out): Likewise.
8949         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8950         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8951         (test_wrapper_env): New variable.  Use it to run ld.so.
8952         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8953         Use it to run ld.so.
8954         (test_wrapper_env): Likewise.
8955         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8956         $(test-wrapper) to run-iconv-test.sh.
8957         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8958         (ICONV): Use $test_wrapper.
8959         * posix/Makefile ($(objpfx)globtest.out): Pass
8960         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8961         globtest.sh, not $(run-program-prefix).
8962         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8963         (test_wrapper): Likewise.
8964         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8965         set together with run_via_rtld_prefix.
8966         (run_program_prefix): Define in terms of test_wrapper and
8967         run_via_rtld_prefix.
8968
8969 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8970
8971         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8972         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8973         Targets removed.
8974
8975         [BZ #14743]
8976         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8977         Declare __clock_getres, __clock_gettime, __clock_settime,
8978         __clock_nanosleep, and __clock_getcpuclockid.
8979         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8980         Remove librt_hidden_def (clock_gettime).
8981         * sysdeps/unix/clock_gettime.c: Likewise.
8982         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8983         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8984         * rt/clock_getres.c: Define __clock_getres as an alias.
8985         * sysdeps/posix/clock_getres.c: Likewise.
8986         * rt/clock_settime.c: Define __clock_settime as an alias.
8987         * sysdeps/unix/clock_settime.c: Likewise.
8988         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8989         * sysdeps/unix/clock_nanosleep.c: Likewise.
8990         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8991         * rt/clock-compat.c: New file.
8992         * rt/Makefile (librt-routines): Add clock-compat and move
8993         $(clock-routines) to ...
8994         (routines): ... here, new variable.
8995         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8996         Don't add get_clockfreq here.
8997         * rt/Versions (libc: GLIBC_2.17): New version set.
8998         Add clock_* symbols here.
8999         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
9000         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
9001         (GLIBC_2.17): Add clock_* symbols.
9002         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9003         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9004         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9006         Likewise.
9007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9008         Likewise.
9009         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9010         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9011         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9012         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9013         * NEWS: Mention the move.
9014
9015         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9016         Use __open, __read, __close rather than their public counterparts.
9017         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9018         (__get_clockfreq_via_cpuinfo): Likewise.
9019         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
9020         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
9021
9022         * config.h.in (HAVE_IFUNC): New #undef.
9023         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
9024         was successful.
9025         * configure: Regenerated.
9026
9027 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9028
9029         * configure.in: Move READELF check to start of file.
9030         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
9031         libc_cv_asm_gnu_indirect_function in the process.
9032         * configure: Regenerated.
9033
9034 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
9035
9036         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
9037         send the output to /dev/null.
9038         (libc_cv_cc_with_libunwind): Likewise.
9039         (libc_cv_as_noexecstack): Likewise.
9040         * configure: Regenerate.
9041
9042 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
9043
9044         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
9045
9046         * posix/globtest.sh (TMPDIR): Do not set.
9047         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
9048         (testout): Likewise.
9049
9050 2012-10-24  Andreas Jaeger  <aj@suse.de>
9051
9052         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
9053         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
9054         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
9055         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
9056         posix_fadvise64, posix_fallocate64.
9057
9058         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
9059         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
9060         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
9061         Likewise.
9062         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
9063         Likewise.
9064         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
9065
9066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
9067         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
9068         <bits/fcntl-linux.h>.
9069         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
9070
9071         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
9072         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
9073         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
9074         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
9075         [__WORDSIZE != 64]: Likewise.
9076
9077 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * Makeconfig (run-built-tests): New variable.
9080         * Rules [$(cross-compiling) = yes]: Change condition to
9081         [$(run-built-tests) = no].
9082         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
9083         to [$(run-built-tests) = yes].
9084         * elf/Makefile [$(cross-compiling) = no]: Likewise
9085         * grp/Makefile [$(cross-compiling) = no]: Likewise.
9086         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
9087         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
9088         * intl/Makefile [$(cross-compiling) = no]: Likewise.
9089         * io/Makefile [$(cross-compiling) = no]: Likewise.
9090         * libio/Makefile [$(cross-compiling) = no]: Likewise.
9091         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
9092         * misc/Makefile [$(cross-compiling) = no]: Likewise.
9093         * posix/Makefile [$(cross-compiling) = no]: Likewise.
9094         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
9095         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
9096         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
9097         * string/Makefile [$(cross-compiling) = no]: Likewise.
9098
9099         * posix/Makefile ($(objpfx)globtest.out): Pass
9100         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
9101         $(rtld-installed-name).
9102         * posix/globtest.sh (elf_objpfx): Remove variable.
9103         (rtld_installed_name): Likewise.
9104         (library_path): Likewise.
9105         (run_program_prefix): New variable.  Use for running globtest
9106         binary.
9107
9108 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
9109             Joseph Myers  <joseph@codesourcery.com>
9110
9111         * Makeconfig (host-built-program-cmd): New variable.
9112         * elf/Makefile (tst-stackguard1-ARGS): Use
9113         $(host-built-program-cmd).
9114         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
9115         (tst-spawn-ARGS): Likewise.
9116         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
9117
9118 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
9119             Jim Blandy  <jimb@codesourcery.com>
9120
9121         * Makeconfig (run-via-rtld-prefix): New variable.
9122         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
9123         (built-program-cmd): Likewise.
9124
9125 2012-10-22  Andreas Jaeger  <aj@suse.de>
9126
9127         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
9128         __O_RSYNC if it exists, otherwise to O_SYNC.
9129
9130 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
9131             Joseph Myers  <joseph@codesourcery.com>
9132
9133         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
9134         /dev/null.
9135         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
9136         from /dev/null
9137         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
9138         /dev/null.
9139
9140 2012-10-22  Andreas Jaeger  <aj@suse.de>
9141
9142         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
9143         Define always.
9144         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
9145
9146         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9147         bits/fcntl-linux.h.
9148
9149         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
9150         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
9151
9152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
9153         to __O_LARGEFILE.
9154         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
9155         to __O_LARGEFILE.
9156
9157 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
9158             Joseph Myers  <joseph@codesourcery.com>
9159
9160         * config.make.in (NM): New variable.
9161
9162 2012-10-21  Andreas Jaeger  <aj@suse.de>
9163
9164         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
9165         definitions and declarations that are provided by
9166         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
9167
9168 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9169
9170         [BZ #14683]
9171         * elf/Makefile (tests-static): Add tst-leaks1-static.
9172         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
9173         ($(objpfx)tst-leaks1-static): New rule.
9174         ($(objpfx)tst-leaks1-static-mem): Likewise.
9175         (tst-leaks1-static-ENV): New macro.
9176         * elf/dl-open.c (dl_open_worker): Check the main application
9177         only if SHARED is defined.
9178         * elf/tst-leaks1-static.c: New file.
9179
9180 2012-10-20  Andreas Jaeger  <aj@suse.de>
9181
9182         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
9183         generic values for Linux.
9184         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
9185         and declarations that are provided by <bits/fcntl-linux.h> and
9186         include <bits/fcntl-linux.h>.
9187         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9188         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9189
9190 2012-10-20  Roland McGrath  <roland@hack.frob.com>
9191
9192         * io/fcntl.h: Move include of <bits/types.h> to the top and
9193         include it unconditionally.
9194
9195 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9196
9197         * wcsmbs/Makefile (tests-ifunc): New variable.
9198         (tests): Add $(tests-ifunc).
9199         * wcsmbs/test-wcschr-ifunc.c: New file.
9200         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
9201         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
9202         * wcsmbs/test-wcslen-ifunc.c: Likewise.
9203         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
9204         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
9205
9206         * string/Makefile (tests-ifunc): New variable.
9207         (tests): Add $(tests-ifunc).
9208         * string/test-memccpy.c (TEST_NAME): New macro.
9209         * string/test-memchr.c (TEST_NAME): Likewise.
9210         * string/test-memcmp.c (TEST_NAME): Likewise.
9211         * string/test-memcpy.c (TEST_NAME): Likewise.
9212         * string/test-memmem.c (TEST_NAME): Likewise.
9213         * string/test-memmove.c (TEST_NAME): Likewise.
9214         * string/test-memset.c (TEST_NAME): Likewise.
9215         * string/test-rawmemchr.c (TEST_NAME): Likewise.
9216         * string/test-stpcpy.c (TEST_NAME): Likewise.
9217         * string/test-stpncpy.c (TEST_NAME): Likewise.
9218         * string/test-strcasecmp.c (TEST_NAME): Likewise.
9219         * string/test-strcasestr.c (TEST_NAME): Likewise.
9220         * string/test-strcat.c (TEST_NAME): Likewise.
9221         * string/test-strchr.c (TEST_NAME): Likewise.
9222         * string/test-strcmp.c(TEST_NAME): Likewise.
9223         * string/test-strcpy.c (TEST_NAME): Likewise.
9224         * string/test-strcspn.c (TEST_NAME): Likewise.
9225         * string/test-strlen.c (TEST_NAME): Likewise.
9226         * string/test-strncasecmp.c (TEST_NAME): Likewise.
9227         * string/test-strncmp.c (TEST_NAME): Likewise.
9228         * string/test-strncpy.c (TEST_NAME): Likewise.
9229         * string/test-strnlen.c (TEST_NAME): Likewise.
9230         * string/test-strpbrk.c (TEST_NAME): Likewise.
9231         * string/test-strrchr.c (TEST_NAME): Likewise.
9232         * string/test-strspn.c (TEST_NAME): Likewise.
9233         * string/test-strstr.c (TEST_NAME): Likewise.
9234         * string/test-bcopy-ifunc.c: New file.
9235         * string/test-bzero-ifunc.c: Likewise.
9236         * string/test-memccpy-ifunc.c: Likewise.
9237         * string/test-memchr-ifunc.c: Likewise.
9238         * string/test-memcmp-ifunc.c: Likewise.
9239         * string/test-memcpy-ifunc.c: Likewise.
9240         * string/test-memmem-ifunc.c: Likewise.
9241         * string/test-memmove-ifunc.c: Likewise.
9242         * string/test-mempcpy-ifunc.c: Likewise.
9243         * string/test-memset-ifunc.c: Likewise.
9244         * string/test-rawmemchr-ifunc.c: Likewise.
9245         * string/test-stpcpy-ifunc.c: Likewise.
9246         * string/test-stpncpy-ifunc.c: Likewise.
9247         * string/test-strcasecmp-ifunc.c: Likewise.
9248         * string/test-strcasestr-ifunc.c: Likewise.
9249         * string/test-strcat-ifunc.c: Likewise.
9250         * string/test-strchr-ifunc.c: Likewise.
9251         * string/test-strchrnul-ifunc.c: Likewise.
9252         * string/test-strcmp-ifunc.c: Likewise.
9253         * string/test-strcpy-ifunc.c: Likewise.
9254         * string/test-strcspn-ifunc.c: Likewise.
9255         * string/test-strlen-ifunc.c: Likewise.
9256         * string/test-strncasecmp-ifunc.c: Likewise.
9257         * string/test-strncat-ifunc.c: Likewise.
9258         * string/test-strncmp-ifunc.c: Likewise.
9259         * string/test-strncpy-ifunc.c: Likewise.
9260         * string/test-strnlen-ifunc.c: Likewise.
9261         * string/test-strpbrk-ifunc.c: Likewise.
9262         * string/test-strrchr-ifunc.c: Likewise.
9263         * string/test-strspn-ifunc.c: Likewise.
9264         * string/test-strstr-ifunc.c: Likewise.
9265
9266         * debug/Makefile (tests-ifunc): New variable.
9267         (tests): Add $(tests-ifunc).
9268         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
9269         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
9270         * debug/test-stpcpy_chk-ifunc.c: New file.
9271         * debug/test-strcpy_chk-ifunc.c: Likewise.
9272
9273 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9274
9275         [BZ #13601]
9276         * elf/dl-load.c (open_verify): Retry read if the entire ELF
9277         header is not read in.
9278
9279 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
9280
9281         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
9282         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
9283         directly.  Pass built executable to script as
9284         $(built-program-cmd).
9285         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
9286         $testprogram without using LD_LIBRARY_PATH and $ldso.
9287
9288         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
9289         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
9290         $(rtld-installed-name).
9291         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
9292         (rtld_installed_name): Likewise.
9293         (library_path): Likewise.
9294         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
9295         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
9296         $(run-program-prefix) to tst-tables.sh.
9297         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
9298         it to run tst-table-from and tst-table-to.
9299         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
9300         Pass it to tst-table.sh.
9301         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
9302         $(run-program-prefix) to tst-gettext.sh.
9303         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
9304         tst-translit.sh.
9305         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
9306         tst-gettext2.sh.
9307         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
9308         to run tst-gettext.
9309         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
9310         to run tst-gettext2.
9311         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
9312         to run tst-translit.
9313         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
9314         $(run-program-prefix) to tst-mtrace.sh.
9315         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
9316         to run tst-mtrace.
9317         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
9318         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
9319         $(rtld-installed-name).
9320         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
9321         (rtld_installed_name): Likewise.
9322         (run_program_prefix): New variable.  Use it to run wordexp-test.
9323
9324         * Makeconfig (ARCH): Remove all definitions.
9325         (machine): Likewise.
9326         [ARCH]: Remove conditional code.
9327         [!objdir]: Give error.
9328         [!objdir] (objpfx): Remove.
9329         [!objdir] (common-objpfx): Likewise.
9330         [!objdir] (common-objdir): Likewise.
9331         * configure.in (config_makefile): Remove.  Hardcode Makefile in
9332         AC_CONFIG_FILES call.
9333         * configure: Regenerated.
9334
9335         [BZ #13888]
9336         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
9337         or TMPDIR.
9338         (testout): Likewise.
9339
9340         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
9341         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
9342         $(rtld-installed-name).
9343         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
9344         (rtld_installed_name): Likwise.
9345         (runit): Remove function.
9346         (run_getconf): New variable,  Use it for running getconf binary.
9347
9348 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
9349
9350         [BZ #14716]
9351         * string/test-memmem.c (check_result): New function.
9352         (do_one_test): Use it.
9353         (check1): New function.
9354         (test_main): Use it.
9355
9356 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9357
9358         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
9359
9360 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
9361
9362         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
9363         (_G_LSEEK64): Likewise.
9364         (_G_MMAP64): Likewise.
9365         (_G_FSTAT64): Likewise.
9366         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
9367         (_G_LSEEK64): Likewise.
9368         (_G_MMAP64): Likewise.
9369         (_G_FSTAT64): Likewise.
9370         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
9371         unconditional.  Call __mmap64 directly.
9372         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
9373         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
9374         __lseek64 directly.
9375         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
9376         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
9377         __mmap64 directly.
9378         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
9379         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9380         __lseek64 directly.
9381         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
9382         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9383         __lseek64 directly.
9384         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
9385         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
9386         __lseek64 directly.
9387         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
9388         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
9389         __fxstat64 directly.
9390         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
9391         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
9392         unconditional.
9393         (freopen64) [!_G_OPEN64]: Remove conditional code.
9394         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
9395         unconditional.
9396         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
9397         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
9398         unconditional.
9399         (ftello64) [!_G_LSEEK64]: Remove conditional code.
9400         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
9401         unconditional.
9402         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9403         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
9404         unconditional.
9405         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
9406         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
9407         unconditional.
9408         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9409         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
9410         unconditional.
9411         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9412         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
9413         unconditional.
9414         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9415
9416 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9417
9418         [BZ #12140]
9419         * manual/memory.texi (Malloc Tunable Parameters): Add note
9420         about free list pointers overwriting some perturb bytes.
9421         Wording suggested by Roland McGrath.
9422
9423 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
9424
9425         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
9426         (lgamma_test): Likewise.
9427         (tgamma_test): Likewise.
9428
9429 2012-10-16  Florian Weimer  <fweimer@redhat.com>
9430
9431         [BZ #14700]
9432         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
9433         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
9434
9435 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9436
9437         * NEWS: Mention BZ #14716.
9438         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
9439         when removing AVAILABLE1_USES_J macro.
9440
9441 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9442
9443         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
9444         (__bswap_64): __uint64_t for unsigned 64-bit int.
9445
9446 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
9447
9448         * include/string.h (memmem): Declare libc hidden alias.
9449         * string/memmem.c (memmem): Define libc hidden alias.
9450         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
9451         __read, __close instead of open, read, close.
9452
9453 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
9454
9455         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
9456         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
9457         global and hidden.
9458         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
9459         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
9460         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
9461         Likewise.
9462         (__rawmemchr_sse2): Likewise.
9463         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
9464         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
9465         (__strchr_sse2): Likewise.
9466         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
9467         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
9468         (__strcasecmp_sse2): Likewise.
9469         (__strncasecmp_sse2): Likewise.
9470         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
9471         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
9472         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
9473         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
9474         (__strrchr_sse2): Likewise.
9475         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
9476         ifunc-impl-list.c.
9477         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
9478         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
9479         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
9480         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
9481         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
9482         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
9483         * sysdeps/x86_64/multiarch/memset.S: Likewise.
9484         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9485         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
9486         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
9487         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
9488         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
9489         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
9490         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
9491         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
9492         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
9493         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
9494         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
9495         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
9496         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
9497         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
9498         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
9499         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
9500         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
9501         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
9502         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9503         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
9504         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9505         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
9506         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
9507
9508         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
9509         global and hidden.
9510         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
9511         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
9512         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
9513         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
9514         Likewise.
9515         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
9516         Likewise.
9517         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
9518         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
9519         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
9520         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
9521         ifunc-impl-list.c.
9522         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9523         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9524         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9525         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9526         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9527         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9528         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9529         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9530         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9531         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9532         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9533         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9534         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9535         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9536         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9537         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9538         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9539         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
9540         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9541         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9542         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9543         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9544         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9545         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9546         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9547         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9548         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9549         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9550         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9551         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9552         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9553         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9554         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9555         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
9556         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9557         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9558         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9559         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9560         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9561         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9562         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
9563
9564         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
9565         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
9566         * include/ifunc-impl-list.h: New file.
9567         * misc/ifunc-impl-list.c: Likewise.
9568         * misc/Makefile (routines): Add ifunc-impl-list.
9569         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
9570         * string/test-string.h: Include <ifunc-impl-list.h>.
9571         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
9572         impl_array): New variables.
9573         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
9574         are defined.
9575         (test_init): Call __libc_ifunc_impl_list to initialize
9576         func_list if TEST_IFUNC and TEST_NAME are defined.
9577
9578         * string/Makefile (strop-tests): Add bcopy and bzero.
9579         * string/test-bcopy.c: New file.
9580         * string/test-bzero.c: Likewise.
9581         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
9582         defined.
9583         * string/test-memset.c: Support bzero test if TEST_BZERO is
9584         defined.
9585         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
9586         __libc_memmove.
9587         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
9588         __libc_memset.
9589         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
9590         of memset.
9591
9592 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
9593
9594         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
9595         * configure: Regenerated.
9596
9597         * Makeconfig (+link-static-before-libc): Don't include
9598         $(link-static-libc).
9599
9600         * libio/libio.h (_IO_pos_t): Remove.
9601
9602 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9603
9604         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
9605         McGrath.
9606
9607 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9608
9609         * crypt/crypt-entry.c: Include fips-private.h.
9610         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
9611         * crypt/md5c-test.c (main): Tolerate disabled MD5.
9612         * sysdeps/unix/sysv/linux/fips-private.h: New file.
9613         * sysdeps/generic/fips-private.h: New file, dummy fallback.
9614
9615 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9616
9617         * crypt/crypt-private.h: Include stdbool.h.
9618         (_ufc_setup_salt_r): Return bool.
9619         * crypt/crypt-entry.c: Include errno.h.
9620         (__crypt_r): Return NULL with EINVAL for bad salt.
9621         * crypt/crypt_util.c (bad_for_salt): New.
9622         (_ufc_setup_salt_r): Check that salt is long enough and within
9623         the specified alphabet.
9624         * crypt/badsalttest.c: New file.
9625         * crypt/Makefile (tests): Add it.
9626         ($(objpfx)badsalttest): New.
9627
9628 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9629
9630         * NEWS: Add entry for BZ #14602.
9631
9632 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9635         type-generic.
9636         * math/libm-test.inc: Update comment listing what functions and
9637         macros are tested.
9638         (isgreater_test): New function.
9639         (isgreaterequal_test): Likewise.
9640         (isless_test): Likewise.
9641         (islessequal_test): Likewise.
9642         (islessgreater_test): Likewise.
9643         (isunordered_test): Likewise.
9644         (main): Call the new functions.
9645
9646 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9647
9648         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9649         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9650         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9651         * sysdeps/i386/configure: Regenerated.
9652         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9653         * sysdeps/mach/configure: Regenerated.
9654         * sysdeps/mach/hurd/configure: Regenerated.
9655         * sysdeps/powerpc/configure: Regenerated.
9656         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9657         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9658         * sysdeps/s390/s390-32/configure: Regenerated.
9659         * sysdeps/s390/s390-64/configure: Regenerated.
9660         * sysdeps/sh/configure: Regenerated.
9661         * sysdeps/sparc/configure: Regenerated.
9662         * sysdeps/unix/sysv/linux/configure: Regenerated.
9663         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9664         * sysdeps/x86_64/configure: Regenerated.
9665
9666         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9667         defined.  Don't check if MAP is NULL.
9668
9669 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9670
9671         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9672         (_G_stat64): Likewise.
9673         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9674         (_G_stat64): Likewise.
9675         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9676         instead of struct _G_stat64.
9677         * libio/fileops.c (mmap_remap_check): Likewise.
9678         (decide_maybe_mmap): Likewise.
9679         (_IO_new_file_seekoff): Likewise.
9680         (_IO_file_stat): Likewise.
9681         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9682         _G_off64_t.
9683         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9684         instead of struct _G_stat64.
9685         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9686
9687 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9688
9689         [BZ #14602]
9690         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9691         Replace with ...
9692         (CHECK_EOL): New macro.
9693         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9694         CHECK_EOL.
9695         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9696         Replace with CHECK_EOL.
9697         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9698         Replace with CHECK_EOL.
9699
9700 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9701
9702         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9703         type-generic.
9704         * math/libm-test.inc: Update comment listing what functions and
9705         macros are tested.
9706         (finite_test): New function.
9707         (isinf_test): Likewise.
9708         (isnan_test): Likewise.
9709         (fpclassify_test): Test subnormal input.
9710         (isfinite_test): Likewise.
9711         (isnormal_test): Likewise.
9712         (main): Call the new functions.
9713
9714 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9715
9716         [BZ #14660]
9717         * Makerules (%.dynsym): Force C locale when running
9718         $(OBJDUMP) --dynamic-syms.
9719
9720 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9721
9722         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9723         <stdint.h>.
9724
9725 2012-10-06  David S. Miller  <davem@davemloft.net>
9726
9727         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9728         upper 32-bits of the length value in %o2 since we use branch-on-register
9729         tests which consider the entire 64-bit register.
9730
9731 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9732
9733         * string/test-strstr.c (check2): Add a test for page boundary.
9734
9735 2012-10-05  David S. Miller  <davem@davemloft.net>
9736
9737         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9738         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9739         file.
9740         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9741         sysdep_routines.
9742         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9743         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9744         and bzero when HWCAP_SPARC_CRYPTO is present.
9745
9746 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9747
9748         [BZ #14602]
9749         * string/test-strstr.c (check2): New function.
9750         (test_main): Call check2.
9751
9752         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9753         and bug-strchr1.
9754         * string/bug-strcasestr1.c (do_test): Moved to ...
9755         * string/test-strcasestr.c (check1): Here.  New function.
9756         (do_one_test): Break out result checking code into ...
9757         (check_result): This.  New function.
9758         (do_one_test): Call check_result.
9759         (test_main): Call check1.
9760         * string/bug-strchr1.c (do_test): Moved to ...
9761         * string/test-strchr.c (check1): Here.  New function.
9762         (do_one_test): Break out result checking code into ...
9763         (check_result): This.  New function.
9764         (do_one_test): Call check_result.
9765         (test_main): Call check1.
9766         * string/bug-strstr1.c (main): Moved to ...
9767         * string/test-strstr.c (check1): Here.  New function.
9768         (do_one_test): Break out result checking code into ...
9769         (check_result): This.  New function.
9770         (do_one_test): Call check_result.
9771         (test_main): Call check1.
9772         * string/bug-strcasestr1.c: Removed.
9773         * string/bug-strchr1.c: Likewise.
9774         * string/bug-strstr1.c: Likewise.
9775
9776         * elf/Makefile (dl-routines): Add hwcaps.
9777         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9778         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9779         (_dl_important_hwcaps): Moved to ...
9780         * elf/dl-hwcaps.c: Here.  New file.
9781         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9782
9783         [BZ #14557]
9784         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9785         if IS_IN_rtld isn't defined.
9786
9787         * elf/dl-support.c (_dl_sysinfo_map): New.
9788         Include "get-dynamic-info.h" and "setup-vdso.h".
9789         (_dl_non_dynamic_init): Call setup_vdso.
9790         * elf/dynamic-link.h: Don't include <assert.h>.
9791         (elf_get_dynamic_info): Moved to ...
9792         * elf/get-dynamic-info.h: Here.  New file.
9793         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9794         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9795         * elf/setup-vdso.h: Here.  New file.
9796         * elf/rtld.c: Include "setup-vdso.h".
9797         (dl_main): Call setup_vdso.
9798
9799 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9800
9801         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9802         creal in comment listing functions tested.  List finite, isinf,
9803         isnan, isless, islessequal, isgreater, isgreaterequal,
9804         islessgreater, isunordered, lgamma_r and pow10 as functions and
9805         macros not tested.  Mention which functions not tested are aliases
9806         for other functions.  Fix typo.  Note that signs of NaNs are not
9807         tested.
9808
9809         * scripts/config.guess: Update from config.git.
9810         * scripts/config.sub: Likewise.
9811
9812 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9813
9814         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9815         * misc/madvise.c (madvise): Renamed to __madvise.
9816         Make madvise a weak alias.
9817         * include/sys/mman.h: Declare __madvise.
9818         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9819         * sysdeps/unix/syscalls.list
9820         (madvise): Make __madvise the strong name, and madvise a weak alias.
9821         * sysdeps/unix/sysv/linux/syscalls.list
9822         (madvise, mmap): Remove redundant entries.
9823         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9824         * malloc/malloc.c (mtrim): Likewise.
9825         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9826
9827 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9828
9829         * sysdeps/mach/hurd/dl-cache.c: File removed.
9830         * config.h.in (USE_LDCONFIG): New #undef.
9831         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9832         * configure: Regenerated.
9833         * elf/Makefile (dl-routines): Add dl-cache only under
9834         [$(use-ldconfig) = yes].
9835         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9836         cache on [USE_LDCONFIG].
9837         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9838         [USE_LDCONFIG].
9839         * elf/rtld.c (dl_main): Likewise.
9840
9841 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9842
9843         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9844         _SC_LEVEL4_CACHE_LINESIZE.
9845
9846 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9847
9848         * sysdeps/unix/bsd/confstr.h: File removed.
9849
9850 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9851
9852         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9853         sys/sdt-config.h.
9854
9855 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9856
9857         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9858         Make 'mapoff' field ElfW(Off) rather than off_t.
9859
9860 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9861
9862         * nscd/Makefile: Remove nscd-cflags and all its users.
9863         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9864         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9865
9866         [BZ #10631]
9867         * malloc.c (malloc_printerr): Clarify error message.
9868
9869 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9870
9871         [BZ #14648]
9872         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9873         Set bit_FMA_Usable if FMA is supported.
9874         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9875         macro.
9876         (bit_FMA4_Usable): Updated.
9877         (index_FMA_Usable): New macro.
9878         (CPUID_FMA): Likewise
9879         (HAS_FMA): Defined with bit_FMA_Usable.
9880
9881 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9882
9883         * bits/types.h (__swblk_t): Type removed.
9884         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9885         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9886         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9887         (__SWBLK_T_TYPE): Likewise.
9888         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9889         (__SWBLK_T_TYPE): Likewise.
9890         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9891         (__SWBLK_T_TYPE): Likewise.
9892         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9893         (__SWBLK_T_TYPE): Likewise.
9894
9895 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9896             Honza Horak <hhorak@redhat.com>
9897
9898         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9899         (xdr_mapname): Use YPMAXMAP as maxsize.
9900         (xdr_peername): Use YPMAXPEER as maxsize.
9901         (xdr_keydat): Use YPAXRECORD as maxsize.
9902         (xdr_valdat): Use YPMAXRECORD as maxsize.
9903
9904 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9905
9906         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9907
9908         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9909         * csu/init-first.c: ... here.
9910         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9911         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9912         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9913         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9914         * sysdeps/i386/init-first.c: File removed.
9915         * sysdeps/sh/init-first.c: File removed.
9916
9917 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9918
9919         [BZ #14645]
9920         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9921         if x * y might underflow to zero and z is zero.
9922         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9923         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9924         * math/libm-test.inc (min_subnorm_value): New variable.
9925         (fma_test): Add more tests.
9926         (fma_test_towardzero): Likewise.
9927         (fma_test_downward): Likewise
9928         (fma_test_upward): Likewise.
9929         (initialize): Set min_subnorm_value.
9930
9931 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9932
9933         [BZ #14638]
9934         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9935         0 + 0.
9936         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9937         mode for addition resulting in exact zero.
9938         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9939         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9940         exact 0 + 0.
9941         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9942         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9943         * math/libm-test.inc (fma_test): Add more tests.
9944         (fma_test_towardzero): New function.
9945         (fma_test_downward): Likewise.
9946         (fma_test_upward): Likewise.
9947         (main): Call the new functions.
9948
9949 2012-09-28  David S. Miller  <davem@davemloft.net>
9950
9951         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9952
9953 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9954
9955         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9956         instead of SIGALRM.
9957
9958         * sysdeps/gnu/_G_config.h: Moved to ...
9959         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9960         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9961         * sysdeps/generic/_G_config.h: ... here.
9962
9963         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9964
9965         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9966
9967         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9968         Conditionalize target on [libnss_test1.so-version].
9969
9970         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9971
9972         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9973         (elfobjdir): Move out of conditionals.
9974
9975         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9976         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9977         (__nss_lookup_function): Conditionalize label remove_from_tree on
9978         [!DO_STATIC_NSS || SHARED], matching its only use.
9979
9980 2012-09-28  David S. Miller  <davem@davemloft.net>
9981
9982         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9983         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9984         file.
9985         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9986         sysdep_routines.
9987         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9988         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9989         when HWCAP_SPARC_CRYPTO is present.
9990
9991 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9992
9993         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9994
9995 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9996
9997         [BZ #6530]
9998         * stdio-common/vfprintf.c (process_string_arg): Revert
9999         2000-07-22 change.
10000
10001 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
10002
10003         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
10004         for testcase.
10005         * stdio-common/tst-sprintf.c: Include <locale.h>
10006         (main): Test sprintf's handling of incomplete multibyte
10007         characters.
10008
10009 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10010
10011         * elf/dl-runtime.c (VERSYMIDX): Removed.
10012         * elf/dl-version.c (VERSYMIDX): Likewise.
10013         * elf/do-rel.h (VERSYMIDX): Likewise.
10014         (VALIDX): Likewise.
10015         * elf/dynamic-link.h (VERSYMIDX): Likewise.
10016         * elf/rtld.c (VALIDX): Likewise.
10017         (ADDRIDX): Likewise.
10018         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
10019         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
10020         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
10021         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
10022         (VALIDX): Likewise.
10023         (ADDRIDX): Likewise.
10024
10025 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10026
10027         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
10028
10029 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
10030
10031         [BZ #11438]
10032         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
10033         to global scope.
10034         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
10035         addresses are in the same scope as 192.0.2/24.
10036         * posix/gai.conf: Document new scope table defaults.
10037
10038 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10039
10040         [BZ #5298]
10041         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
10042         for ftell.  Compute offsets from write pointers instead.
10043         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
10044
10045 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10046
10047         [BZ #14543]
10048         * libio/Makefile (tests): New test case tst-fseek.
10049         * libio/tst-fseek.c: New test case to verify that fseek/ftell
10050         combination works in wide mode.
10051         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
10052         state when the external buffer state changes.
10053
10054 2012-09-27  David S. Miller  <davem@davemloft.net>
10055
10056         [BZ #14376]
10057         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
10058         pass reloc->r_addend in as the 'high' argument to
10059         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
10060
10061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10062
10063 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
10064
10065         * rt/tst-aio2.c: Include <pthread.h>.
10066         * rt/tst-aio3.c: Likewise.
10067
10068 2012-09-27  Steve Ellcey  <sellcey@mips.com>
10069
10070         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
10071
10072 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
10075         contents on [SHARED].
10076
10077 2012-09-26  Marek Polacek  <polacek@redhat.com>
10078
10079         [BZ #14530]
10080         [BZ #13741]
10081         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
10082         for C++ and GCC <4.3 as well as for non GCC compilers.
10083
10084 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10085
10086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10087
10088 2012-09-25  Roland McGrath  <roland@hack.frob.com>
10089
10090         * Makefile.in (all, install): Declare with .PHONY.
10091         Reported by Michael Hope <michael.hope@linaro.org>.
10092
10093 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10094
10095         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
10096         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
10097         system header.
10098         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
10099         Likewise.
10100         (sydep_routines): Add the new and the internal functions.
10101         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
10102         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
10103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
10104         (GLIBC_2.17): Add the new function.
10105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10106         (GLIBC_2.17): Likewise.
10107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
10108         (GLIBC_2.17): Likewise.
10109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
10110         (GLIBC_2.17): Likewise.
10111         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
10112
10113 2012-09-25  Alan Modra  <amodra@gmail.com>
10114
10115         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
10116         Add release barrier before setting once_control to say
10117         initialisation is done.  Add hints on lwarx.  Use macro in
10118         place of isync.
10119         (clear_once_control): Add release barrier.
10120
10121 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10122
10123         [BZ #13629]
10124         * math/s_clog.c (__clog): Handle more values close to |z| = 1
10125         specially.
10126         * math/s_clog10.c (__clog10): Likewise.
10127         * math/s_clog10f.c (__clog10f): Likewise.
10128         * math/s_clog10l.c (__clog10l): Likewise.
10129         * math/s_clogf.c (__clogf): Likewise.
10130         * math/s_clogl.c (__clogl): Likewise.
10131         * math/Makefile (libm-calls): Add x2y2m1.
10132         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
10133         (__x2y2m1): Likewise.
10134         (__x2y2m1l): Likewise.
10135         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
10136         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
10137         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10138         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10139         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
10140         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10141         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
10142         * sysdeps/i386/fpu/libm-test-ulps: Update.
10143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10144
10145         [BZ #14621]
10146         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
10147         int as type of variable DEPTH.
10148         (glob): Use size_t instead of int as type of variables NEWCOUNT
10149         and OLD_PATHC.
10150
10151 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10152
10153         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10154         Add s_sincosf-sse2.
10155         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
10156         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
10157         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
10158         macros for using routine as __sincosf_ia32.
10159         Use macro for function declaration and weak_alias.
10160         * sysdeps/i386/fpu/libm-test-ulps: Update.
10161
10162         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
10163         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10164
10165         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
10166         subnormal argument.
10167         * math/s_cexpf.c (__cexpf): Likewise.
10168         * math/s_csinf.c (__csinf): Likewise.
10169         * math/s_csinhf.c (__csinhf): Likewise.
10170         * math/s_ctanf.c (__ctanf): Likewise.
10171         * math/s_ctanhf.c (__ctanhf): Likewise.
10172         * math/s_ccosh.c (__ccoshf): Likewise.
10173         * math/s_cexp.c (__cexpl): Likewise.
10174         * math/s_csin.c (__csin): Likewise.
10175         * math/s_csinh.c (__csinh): Likewise.
10176         * math/s_ctan.c (__ctan): Likewise.
10177         * math/s_ctanh.c (ctanh): Likewise.
10178         * math/s_ccoshl.c (__ccoshl): Likewise.
10179         * math/s_cexpl.c (__cexpl): Likewise.
10180         * math/s_csinl.c (__csinl): Likewise.
10181         * math/s_csinhl.c (__csinhl): Likewise.
10182         * math/s_ctanl.c (__ctanl): Likewise.
10183         * math/s_ctanhl.c (__ctanhl): Likewise.
10184
10185 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
10186
10187         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
10188         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
10189         (_IO_off_t): Define to __off_t, not _G_off_t.
10190         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
10191         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
10192         (_IO_wint_t): Define to wint_t, not _G_wint_t.
10193         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
10194         type of __dummy and __dummy2 fields.
10195         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
10196         (_G_ssize_t): Likewise.
10197         (_G_off_t): Likewise.
10198         (_G_pid_t): Likewise.
10199         (_G_uid_t): Likewise.
10200         (_G_wchar_t): Likewise.
10201         (_G_wint_t): Likewise.
10202         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
10203         (_G_ssize_t): Likewise.
10204         (_G_off_t): Likewise.
10205         (_G_pid_t): Likewise.
10206         (_G_uid_t): Likewise.
10207         (_G_wchar_t): Likewise.
10208         (_G_wint_t): Likewise.
10209         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
10210         (_G_ssize_t): Likewise.
10211         (_G_off_t): Likewise.
10212         (_G_pid_t): Likewise.
10213         (_G_uid_t): Likewise.
10214         (_G_wchar_t): Likewise.
10215         (_G_wint_t): Likewise.
10216
10217 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10218
10219         * malloc/arena.c: Include malloc-sysdep.h.
10220         (shrink_heap): Use check_may_shrink_heap to decide if madvise
10221         is sufficient to shrink the heap or an unmap is needed.
10222         * sysdeps/generic/malloc-sysdep.h: New file.  Define
10223         new function check_may_shrink_heap.
10224         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
10225         new function check_may_shrink_heap.
10226
10227 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10228
10229         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
10230         comments.
10231
10232 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
10233
10234         * catgets/test-gencat.sh: Add "set -e".
10235         * elf/tst-pathopt.sh: Likewise.
10236         * grp/tst_fgetgrent.sh: Likewise.
10237         * iconvdata/run-iconv-test.sh: Likewise.
10238         * intl/tst-gettext.sh: Likewise.
10239         * intl/tst-gettext2.sh: Likewise.
10240         * intl/tst-gettext4.sh: Likewise.
10241         * intl/tst-gettext6.sh: Likewise.
10242         * intl/tst-translit.sh: Likewise.
10243         * io/ftwtest-sh: Likewise.
10244         * libio/test-freopen.sh: Likewise.
10245         * malloc/tst-mtrace.sh: Likewise.
10246         * posix/globtest.sh: Likewise.
10247         * posix/tst-getconf.sh: Likewise.
10248         * posix/wordexp-tst.sh: Likewise.
10249         * stdio-common/tst-printf.sh: Likewise.
10250         * stdio-common/tst-unbputc.sh: Likewise.
10251         * stdlib/tst-fmtmsg.sh: Likewise.
10252         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10253         * catgets/Makefile: Do not specify -e option when running
10254         testsuite shell scripts.
10255         * elf/Makefile: Likewise.
10256         * grp/Makefile: Likewise.
10257         * iconvdata/Makefile: Likewise.
10258         * intl/Makefile: Likewise.
10259         * io/Makefile: Likewise.
10260         * libio/Makefile: Likewise.
10261         * malloc/Makefile: Likewise.
10262         * posix/Makefile: Likewise.
10263         * stdio-common/Makefile: Likewise.
10264         * stdlib/Makefile: Likewise.
10265         * sysdeps/x86_64/Makefile: Likewise.
10266
10267         * io/ftwtest-sh: Add copyright header.
10268         * posix/globtest.sh: Likewise.
10269         * posix/tst-getconf.sh: Likewise.
10270         * posix/wordexp-tst.sh: Likewise.
10271         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10272
10273 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10274
10275         [BZ #13679]
10276         * Makeconfig (+link): Defined as $(+link-static) if
10277         $(build-shared) isn't yes.
10278         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
10279         isn't yes.
10280         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
10281
10282         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
10283
10284         [BZ #14562]
10285         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
10286         new chunk size with MALLOC_ALIGN_MASK.
10287
10288 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
10289
10290         [BZ #5044]
10291         * stdio-common/printf_fphex.c: Include <stdbool.h> and
10292         <rounding-mode.h>.
10293         (__printf_fphex): Determine rounding using get_rounding_mode and
10294         round_away.
10295         * stdio-common/tst-printf-round.c (struct hex_test): New
10296         structure.
10297         (hex_tests): New variable.
10298         (test_hex_in_one_mode): New function.
10299         (do_test): Also run tests for hex float output.
10300
10301 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
10302
10303         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10304         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10305         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
10306         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10307         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10308         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
10309         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10310         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10311
10312 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
10313
10314         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
10315         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
10316         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
10317         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
10318
10319 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
10320
10321         [BZ #14579]
10322         * elf/rtld.c (dl_main): Limit the check for self loading to normal
10323         mode only.
10324         * elf/tst-rtld-load-self.sh: New test.
10325         * elf/Makefile: Run it.
10326
10327 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
10328
10329         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
10330         (tst-writev-ENV): Remove.
10331         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
10332
10333 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
10334
10335         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
10336
10337 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
10338
10339         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
10340         unconditional.
10341         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
10342         Likewise.
10343         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
10344         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
10345         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
10346         Likewise.
10347
10348 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10349
10350         [BZ #14587]
10351         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
10352         * config.make.in (have-cpp-asm-debuginfo): Removed.
10353         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
10354         * configure: Regenerated.
10355
10356 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
10357
10358         [BZ #5044]
10359         * stdio-common/printf_fp.c: Include <stdbool.h> and
10360         <rounding-mode.h>.
10361         (___printf_fp): Determine rounding using get_rounding_mode and
10362         round_away.
10363         * stdio-common/tst-printf-round.c: New file.
10364         * stdio-common/Makefile (tests): Add tst-printf-round.
10365         (link-libm): New variable.
10366         ($(objpfx)tst-printf-round): Depend in $(link-libm).
10367
10368 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
10369
10370         [BZ #14576]
10371         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
10372         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
10373         Likewise.
10374         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
10375         Likewise.
10376
10377 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
10378
10379         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
10380         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10381         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10382         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10383
10384 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
10385
10386         [BZ #14518]
10387         * include/rounding-mode.h: New file.
10388         * sysdeps/generic/get-rounding-mode.h: Likewise.
10389         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
10390         * stdlib/strtod_l.c: Include <rounding-mode.h>.
10391         (MAX_VALUE): New macro.
10392         (MIN_VALUE): Likewise.
10393         (overflow_value): New function.
10394         (underflow_value): Likewise.
10395         (round_and_return): Use overflow_value and underflow_value to
10396         determine return values in overflow and underflow cases.  Use
10397         round_away to determine rounding depending on rounding mode.
10398         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
10399         determine return values in overflow and underflow cases.
10400         * stdlib/tst-strtod-round.c: Include <fenv.h>.
10401         (struct test_results): New structure.
10402         (struct test): Use struct test_results to store expected results
10403         for all rounding modes.
10404         (TEST): Include expected results for all rounding modes.
10405         (test_in_one_mode): New function.
10406         (do_test): Use test_in_one_mode to compute and check results.
10407         Check results for all rounding modes.
10408         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
10409         $(link-libm).
10410
10411 2012-12-09  Allan McRae  <allan@archlinux.org>
10412
10413         * sysdeps/i386/fpu/libm-test-ulps: Update
10414
10415 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
10416
10417         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
10418         (_G_int32_t): Likewise.
10419         (_G_uint16_t): Likewise.
10420         (_G_uint32_t): Likewise.
10421         (_G_HAVE_BOOL): Likewise.
10422         (_G_HAVE_ATEXIT): Likewise.
10423         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10424         (_G_HAVE_IO_FILE_OPEN): Likewise.
10425         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
10426         (_G_int32_t): Likewise.
10427         (_G_uint16_t): Likewise.
10428         (_G_uint32_t): Likewise.
10429         (_G_HAVE_BOOL): Likewise.
10430         (_G_HAVE_ATEXIT): Likewise.
10431         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10432         (_G_HAVE_IO_FILE_OPEN): Likewise.
10433         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
10434         (_G_int32_t): Likewise.
10435         (_G_uint16_t): Likewise.
10436         (_G_uint32_t): Likewise.
10437         (_G_HAVE_BOOL): Likewise.
10438         (_G_HAVE_ATEXIT): Likewise.
10439         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10440         (_G_HAVE_IO_FILE_OPEN): Likewise.
10441
10442 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
10443
10444         * csu/libc-tls.c: Update copyright years.
10445
10446 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
10449         [!_G_USING_THUNKS]: Remove conditional code.
10450         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
10451         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
10452
10453         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
10454         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
10455         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10456         (_G_VTABLE_LABEL_PREFIX): Likewise.
10457         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10458         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10459         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10460         (_G_VTABLE_LABEL_PREFIX): Likewise.
10461         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10462         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10463         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10464         (_G_VTABLE_LABEL_PREFIX): Likewise.
10465         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10466
10467 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10468
10469         * libio/Makefile: Include ../Makeconfig before tests.
10470         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
10471         only if $(build-shared) is yes.
10472
10473         * iconv/gconv_db.c: Update copyright years.
10474
10475 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10476
10477         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
10478         unwind info if defined PIC. Fix special cases description.
10479         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
10480
10481         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
10482         DP_HI_MASK entry.
10483         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
10484
10485 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10486
10487         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
10488
10489         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
10490         is NULL.
10491
10492         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
10493         (LDLIBS-tst-chk4): This.
10494         (LDFLAGS-tst-chk5): Renamed to ...
10495         (LDLIBS-tst-chk5): This.
10496         (LDFLAGS-tst-chk6): Renamed to ...
10497         (LDLIBS-tst-chk6): This.
10498         (LDFLAGS-tst-lfschk4): Renamed to ...
10499         (LDLIBS-tst-lfschk4): This.
10500         (LDFLAGS-tst-lfschk5): Renamed to ...
10501         (LDLIBS-tst-lfschk5): This.
10502         (LDFLAGS-tst-lfschk6): Renamed to ...
10503         (LDLIBS-tst-lfschk6): This.
10504
10505         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
10506         on $(common-objpfx)soversions.mk.
10507
10508 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
10509
10510         [BZ #10014]
10511         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
10512         example host name.
10513
10514 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10515
10516         * malloc/arena.c (arena_get_retry): New function that gets
10517         another arena for the caller to try its request on.
10518         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
10519         current arena cannot fulfill the request.
10520         (__libc_memalign): Likewise.
10521         (__libc_memalign): Likewise.
10522         (__libc_pvalloc): Likewise.
10523         (__libc_calloc): Likewise.
10524
10525 2012-09-05  John Tobey  <john.tobey@gmail.com>
10526
10527         [BZ #13542]
10528         * manual/arith.texi (Operations on Complex): Fix description
10529         of carg branch cut.
10530
10531 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10532
10533         [BZ #10014]
10534         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
10535         host name.
10536
10537         [BZ #10038]
10538         * manual/memory.texi (Memory): Make order of menu items match
10539         order of sections.
10540
10541 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10542
10543         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
10544         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
10545         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
10546
10547 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10548
10549         * csu/libc-tls.c (static_dtv): Renamed to ...
10550         (_dl_static_dtv): This.  Make it global.
10551         (_dl_initial_dtv): Removed.
10552         (__libc_setup_tls): Updated.
10553         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
10554         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
10555         DL_INITIAL_DTV.
10556
10557 2012-09-06  Petr Machata  <pmachata@redhat.com>
10558
10559         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
10560         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
10561         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
10562         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
10563
10564 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10565
10566         [BZ #14545]
10567         * csu/libc-tls.c (_dl_initial_dtv): New variable.
10568         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
10569         freeing dtv[-1].
10570
10571 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10572
10573         [BZ #14544]
10574         * Makeconfig (link-static-before-libc): Replace $(+prector)
10575         with $(+prectorT).
10576         (link-static-after-libc): Replace $(+postctor) with
10577         $(+postctorT).
10578         (link-bounded): Replace $(+prector)/$(+postctor) with
10579         $(+prectorT)/$(+postctorT).
10580         (+prectorT): New macro.
10581         (+postctorT): Likewise.
10582
10583 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10584
10585         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
10586         (round_str): Handle values above the maximum for IBM long double
10587         as inexact.
10588         * stdlib/tst-strtod-round.c (tests): Regenerated.
10589
10590 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10591
10592         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
10593         assembler flag.
10594         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
10595         zarch_nohighgprs around the zarch optimized routines.
10596         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
10597         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
10598         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10599         for zarch.
10600
10601 2012-09-05  David S. Miller  <davem@davemloft.net>
10602
10603         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10604
10605         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
10606         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
10607         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
10608         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10609         entries.
10610
10611 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10612
10613         * malloc/arena.c: Fold copyright years.
10614         * malloc/mcheck.c, malloc/memusage.c: Likewise.
10615
10616 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10617
10618         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
10619
10620 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10621
10622         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
10623
10624 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10625
10626         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10627         change internal state upon failure.
10628
10629 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10630
10631         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10632         * malloc/memusage.c (mmap): Likewise.
10633         (mmap64, mremap): Likewise.  Adjust name in comment.
10634
10635 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10636
10637         * libio/fileops.c: Fix typos in comments.
10638         * libio/oldfileops.c: Likewise.
10639         * libio/wfileops.c: Likewise.
10640
10641 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10642
10643         [BZ #1349]
10644         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10645         (tst-malloc-usable-ENV): Set environment for test case.
10646         * malloc/hooks.c (malloc_check_get_size): New function to get
10647         requested size.
10648         * malloc/malloc.c (musable): Use malloc_check_get_size.
10649         * malloc/tst-malloc-usable.c: New test case.
10650
10651 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10652
10653         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10654
10655 2012-09-05  Allan McRae  <allan@archlinux.org>
10656
10657         [BZ #13966]
10658         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10659         determine header location.
10660         * configure: Regenerated.
10661
10662 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10663
10664         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10665         float format.
10666         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10667         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10668         format.
10669         (test): Regenerate.
10670
10671 2012-09-04  David S. Miller  <davem@davemloft.net>
10672
10673         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10674         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10675         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10676
10677 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10678
10679         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10680         failures.
10681
10682         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10683
10684 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10685
10686         [BZ #9914]
10687         * libio/iogetdelim.c: Include <limits.h>.
10688         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10689         + len + 1 would overflow.
10690
10691 2012-09-03  Andreas Jaeger  <aj@suse.de>
10692
10693         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10694         * sysdeps/i386/fpu/libm-test-ulps: Update.
10695
10696 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10697
10698         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10699         Add s_sinf-sse2, s_conf-sse2.
10700
10701         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10702         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10703         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10704         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10705
10706         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10707         for using routine as __sinf_ia32.
10708         Use macro for function declaration and weak_alias.
10709         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10710         for using routine as __cosf_ia32.
10711         Use macro for function declaration and weak_alias.
10712
10713         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10714         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10715
10716         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10717         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10718         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10719
10720         * math/libm-test.inc (cos_test): Add more test cases.
10721         (sin_test): Likewise.
10722         (sincos_test): Likewise.
10723
10724 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10725
10726         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10727         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10728         hidden.
10729         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10730
10731 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10732
10733         [BZ #14538]
10734         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10735         first element of the GOT.
10736         (elf_machine_load_address): Return the difference between
10737         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10738
10739 2012-09-01  Allan McRae  <allan@archlinux.org>
10740
10741         [BZ #13412]
10742         * configure.in (AWK): Require gawk version 3.0 or later.
10743         * configure: Regenerated.
10744
10745 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10746
10747         * sysdeps/unix/sysv/linux/kernel-features.h
10748         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10749         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10750         [__NR_clock_getres]: Make code unconditional.
10751         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10752         (clock_getcpuclockid): Remove code left unreachable by removal of
10753         conditionals.
10754         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10755         code unconditional.
10756         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10757         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10758         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10759         Make code unconditional.
10760         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10761         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10762         * sysdeps/unix/sysv/linux/clock_settime.c
10763         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10764         conditional code.
10765         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10766         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10767
10768 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10769
10770         [BZ #14476]
10771         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10772         scripts/test-installation.pl.
10773
10774         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10775         and $ld_so_version if it is set.
10776
10777 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10778
10779         [BZ #14516]
10780         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10781         failure if reading from procfs failed.
10782         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10783
10784 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10785
10786         * sysdeps/unix/sysv/linux/kernel-features.h
10787         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10788         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10789         Remove conditional code.
10790         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10791         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10792         Remove conditional code.
10793         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10794         * sysdeps/unix/sysv/linux/i386/fxstat.c
10795         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10796         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10797         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10798         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10799         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10800         * sysdeps/unix/sysv/linux/i386/lxstat.c
10801         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10802         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10803         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10804         Remove conditional code.
10805         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10806         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10807         Remove conditional code.
10808         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10809         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10810         <kernel-features.h>.
10811         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10812         Remove.
10813         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10814         Remove conditional code.
10815         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10816         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10817         Remove conditional.
10818
10819 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10820
10821         [BZ #5400]
10822         * NEWS: Add fixed bug number.
10823
10824 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10825
10826         [BZ #14519]
10827         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10828         underflowing exponent in case of negative sign.
10829         * stdlib/tst-strtod-round-data: Add more tests.
10830         * stdlib/tst-strtod-round.c (tests): Regenerated.
10831
10832         [BZ #3479]
10833         * stdlib/strtod_l.c (NDIG): Remove.
10834         (HEXNDIG): Likewise.
10835         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10836         smallest representable value.
10837         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10838         lie within an exact representation of 1/2 ulp of the result.
10839         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10840         unconditionally.
10841         (TENS_P9_IDX): Define unconditionally.
10842         (TENS_P9_SIZE): Likewise.
10843         (TENS_P10_IDX): Likewise.
10844         (TENS_P10_SIZE): Likewise.
10845         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10846         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10847         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10848         entries for 10^2^13 and 10^2^14.
10849         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10850         (TENS_P13_IDX): Define.
10851         (TENS_P13_SIZE): Likewise.
10852         (TENS_P14_IDX): Likewise.
10853         (TENS_P14_SIZE): Likewise.
10854         (_fpioconst_pow10): Change array size to
10855         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10856         unconditional.
10857         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10858         1024]: Add entries for 10^2^13 and 10^2^14.
10859         [LAST_POW10 > _LAST_POW10]: Remove #error.
10860         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10861         (_fpioconst_pow10): Change array size to
10862         FPIOCONST_POW10_ARRAY_SIZE.
10863         * stdlib/gen-fpioconst.c: New file.
10864         * stdlib/gen-tst-strtod-round.c: Likewise.
10865         * stdlib/tst-strtod-round-data: Likewise.
10866         * stdlib/tst-strtod-round.c: Likewise.
10867         * stdlib/Makefile (tests): Add tst-strtod-round.
10868
10869         [BZ #14459]
10870         * stdlib/strtod_l.c: Include <stdint.h>.
10871         (NDEBUG): Do not define.
10872         (round_and_return): Change EXPONENT parameter to type intmax_t.
10873         Rearrange calculations to avoid internal overflow possibilities.
10874         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10875         Rearrange calculations to avoid internal overflow possibilities.
10876         Assert that number fits inside MPNSIZE limbs.
10877         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10878         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10879         calculations and add assertions to avoid internal overflow
10880         possibilities.  Add casts to avoid signed/unsigned operations.
10881         * stdlib/tst-strtod-overflow.c: New file.
10882         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10883
10884 2012-08-25  Marek Polacek  <polacek@redhat.com>
10885
10886         * time/time.h: Fix some typos in comments.
10887
10888 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10889
10890         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10891         * posix/tst-rfc3484-2.c: Likewise.
10892         * posix/tst-rfc3484-3.c: Likewise.
10893
10894 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10895
10896         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10897         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10898
10899 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10900
10901         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10902         #include of fxstatat64.c.
10903
10904 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10905
10906         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10907         * shadow/getspent_r.c: Likewise.
10908         * shadow/getspnam.c: Likewise.
10909         * shadow/getspnam_r.c: Likewise.
10910         * gshadow/getsgent.c: Likewise.
10911         * gshadow/getsgent_r.c: Likewise.
10912         * gshadow/getsgnam.c: Likewise.
10913         * gshadow/getsgnam_r.c: Likewise.
10914         * inet/getnetbyad.c: Likewise.
10915         * inet/getnetbyad_r.c: Likewise.
10916         * inet/getnetbynm.c: Likewise.
10917         * inet/getnetbynm_r.c: Likewise.
10918         * inet/getnetent.c: Likewise.
10919         * inet/getnetent_r.c: Likewise.
10920         * inet/getproto.c: Likewise.
10921         * inet/getproto_r.c: Likewise.
10922         * inet/getprtent.c: Likewise.
10923         * inet/getprtent_r.c: Likewise.
10924         * inet/getprtname.c: Likewise.
10925         * inet/getprtname_r.c: Likewise.
10926         * inet/getrpcbyname.c: Likewise.
10927         * inet/getrpcbyname_r.c: Likewise.
10928         * inet/getrpcbynumber.c: Likewise.
10929         * inet/getrpcbynumber_r.c: Likewise.
10930         * inet/getrpcent.c: Likewise.
10931         * inet/getrpcent_r.c: Likewise.
10932         * inet/getaliasent.c: Likewise.
10933         * inet/getaliasent_r.c: Likewise.
10934         * inet/getaliasname.c: Likewise.
10935         * inet/getaliasname_r.c: Likewise.
10936         * nscd/getgrgid_r.c: Likewise.
10937         * nscd/getgrnam_r.c: Likewise.
10938         * nscd/gethstbyad_r.c: Likewise.
10939         * nscd/gethstbynm3_r.c: Likewise.
10940         * nscd/getpwnam_r.c: Likewise.
10941         * nscd/getpwuid_r.c: Likewise.
10942         * nscd/getsrvbynm_r.c: Likewise.
10943         * nscd/getsrvbypt_r.c: Likewise.
10944         * nscd/gai.c: Likewise.
10945
10946         * configure.in (build_nscd): New substituted variable, set
10947         by --disable-build-nscd and defaults to $use_nscd.
10948         * configure: Regenerated.
10949         * config.make.in (build-nscd): New substituted variable.
10950         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10951         Change conditional to require [$(build-nscd) = yes] as well.
10952         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10953
10954         [BZ# 13696]
10955         * configure.in (use_nscd): New substituted variable, set by
10956         --disable-nscd.  If enabled, define USE_NSCD.
10957         * configure: Regenerated.
10958         * config.h.in: Add USE_NSCD.
10959         * config.make.in (use-nscd): New substituted variable.
10960         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10961         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10962         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10963         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10964         (CFLAGS-getgrnam_r.c): Likewise.
10965         (CFLAGS-initgroups.c): Likewise.
10966         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10967         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10968         Variables removed.
10969         * inet/getnetgrent_r.c
10970         (nscd_setnetgrent): New function, broken out of ...
10971         (setnetgrent): ... here.  Call it.
10972         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10973         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10974         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10975         * nscd/Makefile (routines, aux): Move definitions after include of
10976         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10977         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10978         Conditionalize on [USE_NSCD].
10979         (is_nscd, nscd_init_cb): Likewise.
10980         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10981         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10982         * nss/nss_db/db-init.c: Likewise.
10983         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10984         [USE_NSCD].
10985         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10986         (make_request): Use it.
10987         (cache_valid_p): New function.
10988         (__check_pf): Use it.
10989         * NEWS: Add item for --disable-nscd.
10990
10991 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10992
10993         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10994         to support sed >= 4.2.1-20-ga9bf076.
10995         * configure: Regenerated.
10996
10997 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10998
10999         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
11000         Conditionalize whole body on [IREL].
11001
11002 2012-08-22  Jeff Law <law@redhat.com>
11003
11004         [BZ #14505]
11005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
11006         if the family is PF_UNSPEC.
11007
11008 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
11009
11010         * Makerules (lib-version): Rename from V.
11011         (install-lib-nosubdir): Change V to lib-version.
11012
11013 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
11014
11015         [BZ #14252]
11016         * powerpc32/power6/wcschr.c: New file.
11017         * powerpc32/power6/wcscpy.c: New file.
11018         * powerpc32/power6/wcsrchr.c: New file.
11019         * powerpc64/power6/wcschr.c: New file.
11020         * powerpc64/power6/wcscpy.c: New file.
11021         * powerpc64/power6/wcsrchr.c: New file.
11022
11023 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11024
11025         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
11026         (two_way_short_needle): Use it.
11027         * string/strstr.c (AVAILABLE1_USES_J): Define.
11028         * string/strcasestr.c: Likewise.
11029
11030         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
11031         array references.
11032         * string/strcasestr.c (TOLOWER): Make side-effect safe.
11033
11034         [BZ #11607]
11035         * NEWS: Add an entry.
11036         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
11037         define their defaults.
11038         (two_way_short_needle): Detect end-of-string on-the-fly.
11039         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
11040         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
11041         * string/bug-strcasestr1.c: New test.
11042         * string/Makefile: Run it.
11043
11044 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
11045
11046         [BZ #11607]
11047         * string/str-two-way.h (two_way_short_needle): Optimize matching of
11048         the first character.
11049
11050 2012-08-21  Roland McGrath  <roland@hack.frob.com>
11051
11052         * csu/elf-init.c (__libc_csu_irel): Function removed.
11053         * csu/libc-start.c (apply_irel): New function.
11054         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
11055
11056 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
11057
11058         * sysdeps/unix/sysv/linux/kernel-features.h
11059         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
11060         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11061         <kernel-features.h>.
11062         [__NR_fadvise64_64]: Make code unconditional.
11063         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
11064         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11065         !__NR_fadvise64_64)]: Likewise.
11066         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
11067         !__NR_fadvise64_64))]: Likewise.
11068         [__NR_fadvise64]: Make code unconditional.
11069         [!__NR_fadvise64]: Remove conditional code.
11070         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
11071         <kernel-features.h>.
11072         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11073         unconditional.
11074         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11075         conditional code.
11076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
11077         not include <kernel-features.h>.
11078         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11079         unconditional.
11080         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11081         conditional code.
11082         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
11083         include <kernel-features.h>.
11084         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
11085         unconditional.
11086         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
11087         conditional code.
11088
11089 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
11090
11091         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
11092         slight instruction rearrangements per scrollpipe analysis.
11093         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11094
11095 2012-08-20  Roland McGrath  <roland@hack.frob.com>
11096
11097         * manual/syslog.texi (syslog; vsyslog, closelog):
11098         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
11099         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
11100
11101         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
11102         DSOCAPS to match condition on defining it.
11103
11104 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * sysdeps/unix/sysv/linux/kernel-features.h
11107         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
11108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
11109         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11110         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
11112         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11113         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
11115         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
11116         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
11117
11118         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
11119         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
11120
11121         * sysdeps/unix/sysv/linux/kernel-features.h
11122         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
11123         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
11124         unconditional.
11125         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11126         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
11127         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11128         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11129         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
11130         Make code unconditional.
11131         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11132         (__mmap64) [!__NR_mmap2]: Likewise.
11133         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
11134         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
11135         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11136         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
11137         [__NR_mmap2]: Make code unconditional.
11138         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
11139         (__mmap64) [!__NR_mmap2]: Likewise.
11140
11141 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11142
11143         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
11144
11145 2012-08-18  Andreas Jaeger  <aj@suse.de>
11146
11147         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
11148
11149 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11150
11151         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
11152         * include/unistd.h (__have_sock_cloexec): Likewise.
11153         (__have_pipe2): Likewise.
11154         (__have_dup3): Likewise.
11155
11156 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
11157
11158         [BZ #9685]
11159         * include/unistd.h (__have_pipe2): Change define into an extern int.
11160         (__have_dup3): Likewise.
11161         * socket/have_sock_cloexec.c: Include fcntl.h.
11162         (__have_pipe2): New variable.
11163         (__have_dup3): Likewise.
11164
11165 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
11166
11167         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
11168
11169 2012-08-17  Marek Polacek  <polacek@redhat.com>
11170
11171         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
11172         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
11173
11174 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11175
11176         * configure.in: Add AC_SUBST for sysheaders.
11177         * configure: Regenerated.
11178         * config.make.in (sysheaders): New substituted variable.
11179
11180         * sysdeps/unix/mkfifo.c: Moved ...
11181         * sysdeps/posix/mkfifo.c: ... here.
11182         * sysdeps/unix/mkfifoat.c: Moved ...
11183         * sysdeps/posix/mkfifoat.c: ... here.
11184
11185         * sysdeps/unix/utime.c: Moved ...
11186         * sysdeps/posix/utime.c: ... here.
11187
11188         * sysdeps/unix/time.c: Moved ...
11189         * sysdeps/posix/time.c: ... here.
11190         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
11191         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
11192
11193         * sysdeps/unix/nice.c: Moved ...
11194         * sysdeps/posix/nice.c: ... here.
11195
11196         * sysdeps/unix/alarm.c: Moved ...
11197         * sysdeps/posix/alarm.c: ... here.
11198
11199         * intl/Makefile ($(codeset_mo)): Depend on the input file.
11200
11201 2012-08-17  Jeff Law <law@redhat.com>
11202
11203         * intl/Makefile (codeset_mo): New variable.
11204         ($(codeset_mo)): New target.
11205         (tst-codeset.out): Depend on that.  Remove explicit rule.
11206         (tst-gettext3.out, tst-gettext5.out): Likewise.
11207         (LOCPATH-ENV, tst-codeset-ENV): New variables.
11208         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
11209         * intl/tst-codeset.sh: Remove.
11210         * intl/tst-gettext3.sh: Likewise.
11211         * intl/tst-gettext5.sh: Likewise.
11212
11213 2012-08-17  Roland McGrath  <roland@hack.frob.com>
11214
11215         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
11216         * sysdeps/unix/syscalls.list: ... here.
11217
11218         * sysdeps/posix/getaddrinfo.c
11219         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
11220         (gaiconf_init, gaiconf_reload): Use them.
11221         [!_STATBUF_ST_NSEC]
11222         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
11223         Define using time_t rather than struct timespec.
11224
11225         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
11226         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
11227         Macros removed.
11228         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
11229         [!NO_THREADS].
11230         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
11231         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
11232         Likewise.
11233
11234         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
11235         __libc_cleanup_push argument.
11236
11237         * bits/param.h: New file.
11238         * misc/sys/param.h: New file.
11239         * include/sys/param.h: New file.
11240         * misc/Makefile (headers): Add bits/param.h.
11241         * sysdeps/generic/sys/param.h: File removed.
11242         * sysdeps/unix/sysv/linux/bits/param.h: New file.
11243         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
11244         * sysdeps/mach/hurd/bits/param.h: New file.
11245         * sysdeps/mach/hurd/sys/param.h: File removed.
11246
11247         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
11248         last change.
11249
11250         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
11251         [_IO_MTSAFE_IO].
11252         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
11253         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
11254         New macros.
11255
11256         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
11257         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
11258         rather than -D_IO_MTSAFE_IO conditionally.
11259         * stdio-common/Makefile (CPPFLAGS): Likewise.
11260         * wcsmbs/Makefile (CPPFLAGS): Likewise.
11261         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
11262         Use $(libio-mtsafe).
11263         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
11264         of -D_IO_MTSAFE_IO.
11265         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
11266         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
11267         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
11268         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
11269         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
11270         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
11271         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
11272         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
11273         (CFLAGS-fread_u_chk.c): Likewise.
11274         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
11275         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
11276         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
11277         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
11278         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
11279         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
11280         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
11281         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
11282         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
11283
11284         * libio/Makefile: Test [$(libc-reentrant) = yes]
11285         instead of [$(filter %REENTRANT, $(defines)) nonempty].
11286
11287         * Makeconfig
11288         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
11289         * sysdeps/pthread/configure: File removed.
11290         * sysdeps/pthread/Makeconfig: New file.
11291         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
11292         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
11293
11294 2012-08-16  Gary Benson  <gbenson@redhat.com>
11295
11296         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
11297         unmapping the first object in a namespace.
11298
11299 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11300
11301         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
11302         (__internal_setnetgrent): ... this.  Add internal_function to
11303         definition.  Add libc_hidden_def.
11304         (setnetgrent): Update caller.
11305         (internal_endnetgrent): Renamed to ...
11306         (__internal_endnetgrent): ... this.  Add internal_function to
11307         definition.  Add libc_hidden_def.
11308         (endnetgrent): Update caller.
11309         (internal_getnetgrent_r): Renamed to ...
11310         (__internal_getnetgrent_r): ... this.  Add internal_function to
11311         definition.  Add libc_hidden_def.
11312         (__getnetgrent_r): Update caller.
11313         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
11314
11315 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11316
11317         * stdlib/longlong.h: Update from GCC.
11318
11319 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11320
11321         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
11322         on _QL, which is set by umul_ppmm but never used.
11323         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
11324         variables, which are set by GMP macros but never used.
11325         * stdio-common/_itowa.c (_itowa): Likewise.
11326         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
11327         * stdlib/mod_1.c (mpn_mod_1): Likewise.
11328
11329 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
11330
11331         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
11332         struct La_sh_regs is not constant.
11333         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
11334         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
11335         and struct La_sparc64_regs are not constant.
11336
11337 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11338
11339         * sysdeps/unix/sysv/linux/kernel-features.h
11340         (__ASSUME_POSIX_TIMERS): Remove.
11341         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
11342         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11343         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
11344         Make code unconditional.
11345         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11346         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
11347         Make code unconditional.
11348         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11349         * sysdeps/unix/sysv/linux/clock_nanosleep.c
11350         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
11351         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11352         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
11353         Make code unconditional.
11354         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11355         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
11356         (__libc_missing_posix_timers): Remove.
11357
11358 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11359
11360         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
11361         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
11362
11363         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
11364
11365         * elf/dl-sym.c: Include <stdlib.h>.
11366
11367         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
11368         constants, which avoids warnings in 32-bit builds.
11369
11370         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
11371         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
11372
11373         * misc/lseek.c: File moved to ...
11374         * io/lseek.c: ... here.
11375
11376         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
11377
11378         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
11379         shifting LEN more than 31 bits at once.
11380
11381 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11382
11383         [BZ #14195]
11384         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
11385         segmentation fault for a case of two empty input strings.
11386         * string/test-strncasecmp.c (check1): Renamed to...
11387         (bz12205): ...this.
11388         (bz14195): Add new testcase for two empty input strings and N > 0.
11389         (test_main): Call new testcase, adapt for renamed function.
11390
11391 2012-08-15  Andreas Jaeger  <aj@suse.de>
11392
11393         [BZ #14090]
11394         * crypt/md5test2.c: New test, based on test supplied by Serge
11395         Belyshev <belyshev@depni.sinp.msu.ru>.
11396         * crypt/Makefile (xtests): Add md5test-giant..
11397         * crypt/Makefile ($(objpfx)md5test-giant): Add.
11398
11399 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11400
11401         [BZ #14090]
11402         * crypt/md5.c (md5_process_block): Don't assume the buffer
11403         length is less than 2**32.
11404         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
11405         length is less than 2**64.
11406
11407 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11408
11409         * string/str-two-way.h: Include <sys/param.h>.
11410         (MAX): Macro removed.
11411
11412         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
11413         Move #define and #undef of memmove to just before and after
11414         including <string.h>.
11415
11416         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
11417         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
11418         and after including <string.h>.  Move declarations of
11419         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
11420         to before #include "string/memmove.c".
11421
11422         * include/dirent.h: Declare __getdirentries.
11423
11424         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
11425         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
11426
11427 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
11428
11429         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
11430         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
11431         * sysdeps/i386/configure: Regenerated.
11432         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
11433         STABS_CURRENT_FILE, and STABS_FUN.
11434         (END): Remove call to STABS_FUN_END.
11435         (STABS_CURRENT_FILE1): Delete.
11436         (STABS_CURRENT_FILE): Likewise.
11437         (STABS_FUN): Likewise.
11438         (STABS_FUN_END): Likewise.
11439         (STABS_FUN2): Likewise.
11440         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
11441         * sysdeps/x86_64/configure: Regenerated.
11442
11443 2012-08-14  Roland McGrath  <roland@hack.frob.com>
11444
11445         * elf/dl-open.c: Include <atomic.h>.
11446         * elf/dl-lookup.c: Likewise.
11447
11448 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
11449
11450         * sysdeps/unix/sysv/linux/kernel-features.h
11451         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
11452         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
11453         unconditionally.
11454         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
11455         unconditionally.
11456         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
11457         condition on __ASSUME_CLONE_THREAD_FLAGS.
11458
11459 2012-08-14  Andreas Jaeger  <aj@suse.de>
11460
11461         * sysdeps/i386/fpu/libm-test-ulps: Update.
11462
11463 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
11464
11465         * include/atomic.h (atomic_exchange_and_add): Split into ...
11466         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
11467         New atomic macros.
11468
11469 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
11470
11471         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11472
11473 2012-08-13  Jeff Law <law@redhat.com>
11474
11475         * manual/stdio.texi (snprintf): Clarify handling of the trailing
11476         null byte in the output string.
11477
11478 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
11479
11480         * sysdeps/unix/sysv/linux/kernel-features.h
11481         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
11482         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
11483         (__ASSUME_ARG_MAX_STACK_BASED): Define.
11484         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
11485         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
11486         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
11487         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
11488
11489 2012-08-09  Jeff Law <law@redhat.com>
11490
11491         [BZ #13939]
11492         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
11493         When avoid_arena is set, don't retry in the that arena.  Pick the
11494         next one, whatever it might be.
11495         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
11496         (arena_lock): Pass in new parameter to arena_get2.
11497         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
11498         arena_get2.
11499         (__libc_malloc): Unify retrying after main arena failure with
11500         __libc_memalign version.
11501         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
11502
11503 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11504
11505         [BZ #14166]
11506         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
11507         to __redirect_strstr.
11508         (__strstr_sse42): Use typeof __redirect_strstr.
11509         (__strstr_ia32): Likewise.
11510         (__libc_strstr): New prototype.
11511         (strstr): Renamed to ...
11512         (__libc_strstr): This.
11513         (strstr): New strong alias of __libc_strstr.
11514         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
11515         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
11516         __redirect_time.
11517         Include <time.h>.
11518         (__libc_time): New prototype.
11519         (time_ifunc): Replace time with __libc_time.
11520         (time): New strong alias and hidden definition of __libc_time.
11521         (__GI_time): Remove strong alias.
11522         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
11523         Include <stddef.h>.
11524         (memmove): Redefined to __redirect_memmove.
11525         (__memmove_sse2): Use typeof __redirect_memmove.
11526         (__memmove_ssse3): Likewise.
11527         (__memmove_ssse3_back): Likewise.
11528         (__libc_memmove): New prototype.
11529         (memmove): Renamed to ...
11530         (__libc_memmove): This.
11531         (memmove): New strong alias of __libc_memmove.
11532
11533 2012-08-08  Mark Salter  <msalter@redhat.com>
11534
11535         * elf/elf.h
11536         (R_MN10300_TLS_GD): Define.
11537         (R_MN10300_TLS_LD): Likewise.
11538         (R_MN10300_TLS_LDO): Likewise.
11539         (R_MN10300_TLS_GOTIE): Likewise.
11540         (R_MN10300_TLS_IE): Likewise.
11541         (R_MN10300_TLS_LE): Likewise.
11542         (R_MN10300_TLS_DTPMOD): Likewise.
11543         (R_MN10300_TLS_DTPOFF): Likewise.
11544         (R_MN10300_TLS_TPOFF): Likewise.
11545         (R_MN10300_SYM_DIFF): Likewise.
11546         (R_MN10300_ALIGN): Likewise.
11547         (R_MN10300_NUM): Update.
11548
11549 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
11550
11551         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
11552         Remove.
11553
11554 2012-08-08  Roland McGrath  <roland@hack.frob.com>
11555
11556         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
11557
11558         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
11559         sysdeps/unix -> sysdeps/posix move.
11560         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11561
11562 2012-08-07      Allan McRae     <allan@archlinux.org>
11563
11564         [BZ #14303]
11565         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
11566         (SUNOS_CPP): Likewise.
11567         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
11568         not found.
11569         (open_input): Call CPP using execvp.
11570
11571 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11572
11573         * sysdeps/unix/sysv/linux/kernel-features.h
11574         (__ASSUME_PROT_GROWSUPDOWN): Remove.
11575         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11576         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11577         (__ASSUME_WAITID_SYSCALL): Likewise.
11578         * sysdeps/unix/sysv/linux/dl-execstack.c
11579         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
11580         code unconditional.
11581         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
11582         conditional code.
11583         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
11584         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
11585         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
11586         code.
11587         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
11588         unconditional.
11589         [__ASSUME_WAITID_SYSCALL]: Likewise.
11590         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
11591
11592 2012-08-07  Roland McGrath  <roland@hack.frob.com>
11593
11594         * sysdeps/unix/closedir.c: Renamed to ...
11595         * sysdeps/posix/closedir.c: ... here.
11596         * sysdeps/unix/dirfd.c: Renamed to ...
11597         * sysdeps/posix/dirfd.c: ... here.
11598         * sysdeps/unix/dirstream.h: Renamed to ...
11599         * sysdeps/posix/dirstream.h: ... here.
11600         * sysdeps/unix/fdopendir.c: Renamed to ...
11601         * sysdeps/posix/fdopendir.c: ... here.
11602         * sysdeps/unix/opendir.c: Renamed to ...
11603         * sysdeps/posix/opendir.c: ... here.
11604         * sysdeps/unix/readdir.c: Renamed to ...
11605         * sysdeps/posix/readdir.c: ... here.
11606         * sysdeps/unix/readdir_r.c: Renamed to ...
11607         * sysdeps/posix/readdir_r.c: ... here.
11608         * sysdeps/unix/rewinddir.c: Renamed to ...
11609         * sysdeps/posix/rewinddir.c: ... here.
11610         * sysdeps/unix/seekdir.c: Renamed to ...
11611         * sysdeps/posix/seekdir.c: ... here.
11612         * sysdeps/unix/telldir.c: Renamed to ...
11613         * sysdeps/posix/telldir.c: ... here.
11614         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
11615         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
11616         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11617         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
11618
11619         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
11620         * bits/fcntl.h: ... here.
11621
11622         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
11623         not 0.
11624         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
11625         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11626         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11627         (struct flock): Move l_start, l_len to the beginning.
11628         Use __pid_t for l_pid.
11629         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11630         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11631         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11632         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11633         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11634         [__USE_LARGEFILE64] (struct flock64): New type.
11635         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11636
11637         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11638         * bits/dirent.h: ... here.
11639
11640         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11641         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11642
11643 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11644
11645         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11646         Change from 2.6.0 to 2.6.16.
11647         * sysdeps/unix/sysv/linux/configure: Regenerated.
11648         * sysdeps/unix/sysv/linux/kernel-features.h
11649         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11650         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11651         version.
11652         (__ASSUME_UTIMES): Likewise.
11653         (__ASSUME_CLONE_STOPPED): Remove.
11654         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11655         architectures, not kernel version.
11656         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11657         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11658         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11659         (__ASSUME_WAITID_SYSCALL): Likewise.
11660         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11661         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11662         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11663         refer to older versions.
11664
11665 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11666
11667         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11668         Define alphasort64 as an alias.
11669         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11670         Define versionsort64 as an alias.
11671         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11672         Define scandir64 as an alias.
11673         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11674         Define scandirat64 as an alias.
11675         * dirent/alphasort64.c (alphasort64):
11676         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11677         * dirent/versionsort64.c: Likewise.
11678         * dirent/scandir64.c: Likewise.
11679         * dirent/scandirat64.c: Likewise.
11680         * sysdeps/wordsize-64/alphasort.c: File removed.
11681         * sysdeps/wordsize-64/alphasort64.c: File removed.
11682         * sysdeps/wordsize-64/scandir.c: File removed.
11683         * sysdeps/wordsize-64/scandir64.c: File removed.
11684         * sysdeps/wordsize-64/scandirat.c: File removed.
11685         * sysdeps/wordsize-64/scandirat64.c: File removed.
11686         * sysdeps/wordsize-64/versionsort.c: File removed.
11687         * sysdeps/wordsize-64/versionsort64.c: File removed.
11688         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11689         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11690         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11691         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11692         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11693         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11694         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11695         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11696
11697         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11698         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11699         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11700         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11701         [defined __arch64__ || defined __sparcv9]
11702         (__INO_T_MATCHES_INO64_T): New macro.
11703         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11704         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11705         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11706         * sysdeps/unix/sysv/linux/bits/dirent.h
11707         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11708         (_DIRENT_MATCHES_DIRENT64): New macro.
11709
11710         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11711         Define lockf64 as an alias.
11712         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11713         Define fseeko64 as an alias.
11714         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11715         Define ftello64 as an alias.
11716         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11717         Define _IO_fgetpos64 and fgetpos64 as aliases.
11718         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11719         Define _IO_fsetpos64 and fsetpos64 as aliases.
11720         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11721         Conditionalize body on this.
11722         * libio/fseeko64.c: Likewise.
11723         * libio/ftello64.c: Likewise.
11724         * libio/iofgetpos64.c: Likewise.
11725         * libio/iofsetpos64.c: Likewise.
11726         * sysdeps/wordsize-64/lockf.c: File removed.
11727         * sysdeps/wordsize-64/lockf64.c: File removed.
11728         * sysdeps/wordsize-64/fseeko.c: File removed.
11729         * sysdeps/wordsize-64/fseeko64.c: File removed.
11730         * sysdeps/wordsize-64/ftello.c: File removed.
11731         * sysdeps/wordsize-64/ftello64.c: File removed.
11732         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11733         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11734         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11735         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11736         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11737         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11738         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11739         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11740         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11741         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11742         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11743         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11744         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11745         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11746
11747         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11748         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11749         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11750         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11751         [defined __arch64__ || defined __sparcv9]
11752         (__OFF_T_MATCHES_OFF64_T): New macro.
11753         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11754         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11755         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11756         (__OFF_T_MATCHES_OFF64_T): New macro.
11757
11758 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11759
11760         * stdlib/secure-getenv.c (__secure_getenv): Replace
11761         GLIBC_2_16 with GLIBC_2_17.
11762
11763 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11764
11765         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11766         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11767
11768 2012-08-03  David S. Miller  <davem@davemloft.net>
11769
11770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11771
11772 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11773
11774         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11775         Remove.
11776         (__ASSUME_CORRECT_SI_PID): Likewise.
11777         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11778         (__ASSUME_TMPFS_NAME): Likewise.
11779         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11780         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11781         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11782         (HAVE_AUX_SECURE): Make definition unconditional.
11783         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11784         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11785
11786 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11787
11788         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11789         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11790         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11791         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11792         __eloop_threshold instead of SYMLOOP_MAX.
11793
11794         * sysdeps/generic/eloop-threshold.h: New file.
11795         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11796         of MAXSYMLINKS.
11797         * elf/chroot_canon.c (chroot_canon): Likewise.
11798
11799 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11800
11801         [BZ #13717]
11802         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11803         Change to 2.6.0 everywhere.
11804         * sysdeps/unix/sysv/linux/configure: Regenerated.
11805         * sysdeps/unix/sysv/linux/kernel-features.h
11806         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11807         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11808         kernel versions.
11809         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11810         (__ASSUME_FUTEX_REQUEUE): Remove.
11811         (__ASSUME_STATFS64): Define unconditionally.
11812         (__ASSUME_AT_SECURE): Likewise.
11813         (__ASSUME_CORRECT_SI_PID): Likewise.
11814         (__ASSUME_TGKILL): Define without depending on kernel version for
11815         i386.
11816         (__ASSUME_UTIMES): Likewise.
11817         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11818         kernel version.
11819         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11820         (__ASSUME_TMPFS_NAME): Likewise.
11821         * README: Update reference to Linux kernel versions.
11822
11823 2012-08-02  Marek Polacek  <polacek@redhat.com>
11824
11825         [BZ# 14150]
11826         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11827         libc_cv_asm_type_prefix with %.
11828         * configure: Regenerated.
11829         * include/libc-symbols.h: Remove comment about
11830         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11831         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11832         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11833         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11834         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11835         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11836         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11837         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11838         * elf/tst-unique2mod1.c: Likewise.
11839         * elf/tst-unique1mod2.c: Likewise.
11840         * elf/tst-unique1mod1.c: Likewise.
11841         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11842         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11843         Replace ASM_TYPE_DIRECTIVE with .type.
11844         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11845         * sysdeps/i386/sysdep.h: Likewise.
11846         * sysdeps/x86_64/sysdep.h: Likewise.
11847         * sysdeps/sh/sysdep.h: Likewise.
11848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11849         Do not define ASM_TYPE_DIRECTIVE.
11850         * sysdeps/powerpc/sysdep.h: Likewise.
11851         * sysdeps/powerpc/powerpc32/sysdep.h:
11852         Replace ASM_TYPE_DIRECTIVE with .type.
11853         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11854         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11855         * sysdeps/i386/fpu/e_powf.S: Likewise.
11856         * sysdeps/i386/fpu/e_expl.S: Likewise.
11857         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11858         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11859         * sysdeps/i386/fpu/e_pow.S: Likewise.
11860         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11861         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11862         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11863         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11864         * sysdeps/i386/fpu/e_log2.S: Likewise.
11865         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11866         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11867         * sysdeps/i386/fpu/e_powl.S: Likewise.
11868         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11869         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11870         * sysdeps/i386/fpu/e_logl.S: Likewise.
11871         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11872         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11873         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11874         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11875         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11876         * sysdeps/i386/fpu/e_log.S: Likewise.
11877         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11878         * sysdeps/i386/fpu/e_logf.S: Likewise.
11879         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11880         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11881         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11882         * sysdeps/i386/fpu/e_log10.S: Likewise.
11883         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11884         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11885         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11886         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11887         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11888         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11889         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11890         * sysdeps/i386/i686/strtok.S: Likewise.
11891         * sysdeps/i386/i386-mcount.S: Likewise.
11892         * sysdeps/i386/strtok.S: Likewise.
11893         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11894         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11895         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11896         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11897         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11898         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11899         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11900         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11901         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11902         * sysdeps/x86_64/_mcount.S: Likewise.
11903         * sysdeps/x86_64/strtok.S: Likewise.
11904         * sysdeps/sh/_mcount.S: Likewise.
11905
11906 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11907
11908         * libio/iofopen.c: Include <fcntl.h>.
11909         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11910         (_IO_fopen64, fopen64): Define as aliases.
11911         * libio/iofopen64.c: Include <fcntl.h>.
11912         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11913         Conditionalize body on this.
11914         * sysdeps/wordsize-64/iofopen.c: File removed.
11915         * sysdeps/wordsize-64/iofopen64.c: File removed.
11916
11917 2012-08-01  Marek Polacek  <polacek@redhat.com>
11918
11919         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11920         Use dlfcn directly instead of a variable.
11921         (binfmt-subdir): Do not define.
11922         (dlfcn): Likewise.
11923
11924 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11925
11926         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11927         Remove all definitions.
11928         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11929         <kernel-features.h>.
11930         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11931         (miss_F_GETOWN_EX): Remove all definitions.
11932         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11933         macro definition.
11934         [!__ASSUME_FCNTL64]: Remove conditional code.
11935         [__ASSUME_FCNTL64]: Make code unconditional.
11936         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11937         <kernel-features.h>.
11938         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11939         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11940         (lockf64) [__NR_fcntl64]: Make code unconditional.
11941         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11942
11943         * sysdeps/unix/sysv/linux/kernel-features.h
11944         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11945         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11946         Make code unconditional.
11947         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11948         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11950         [__NR_vfork]: Make code unconditional.
11951         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11952         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11954         [__NR_vfork]: Make code unconditional.
11955         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11956         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11957
11958 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11959
11960         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11961         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11962
11963         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11964         Define mkstemp64 as an alias.
11965         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11966         Define mkstemps64 as an alias.
11967         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11968         Define mkostemp64 as an alias.
11969         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11970         Define mkostemps64 as an alias.
11971         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11972         Conditionalize body on this.
11973         * misc/mkostemp64.c: Likewise.
11974         * misc/mkostemps64.c: Likewise.
11975         * misc/mkstemps64.c: Likewise.
11976         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11977         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11978         * sysdeps/wordsize-64/mkostemp.c: File removed.
11979         * sysdeps/wordsize-64/mkstemp.c: File removed.
11980         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11981         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11982         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11983         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11984
11985         [BZ #14138]
11986         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11987         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11988         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11989         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11990
11991         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11992         compat_symbol macros from <shlib-compat.h> rather than the underlying
11993         default_symbol_version and symbol_version macros, so that DEFAULT
11994         lines in shlib-versions are respected.
11995         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11996
11997 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11998
11999         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
12000         Declare with warn_unused_result.
12001         (setgid, setregid, setegid, setresgid): Likewise.
12002         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
12003         Likewise.
12004         * WUR-REPORT: Remove set*id functions.
12005
12006 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
12007
12008         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
12009
12010 2012-07-31  Roland McGrath  <roland@hack.frob.com>
12011
12012         [BZ #10191]
12013         * include/sys/socket.h (__libc_accept, __libc_accept4):
12014         Add attribute_hidden.
12015         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
12016
12017         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
12018         use of PTR_MANGLE.
12019         * inet/getnetgrent_r.c (setup): Likewise.
12020
12021         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
12022
12023 2012-07-31  David S. Miller  <davem@davemloft.net>
12024
12025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12026
12027 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
12028
12029         [BZ #13629]
12030         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
12031         value between 1.0 and 2.0 and smaller part has absolute value less
12032         than 1.0.
12033         * math/s_clog10.c (__clog10): Likewise.
12034         * math/s_clog10f.c (__clog10f): Likewise.
12035         * math/s_clog10l.c (__clog10l): Likewise.
12036         * math/s_clogf.c (__clogf): Likewise.
12037         * math/s_clogl.c (__clogl): Likewise.
12038         * math/libm-test.inc (clog_test): Add more tests.
12039         (clog10_test): Likewise.
12040         * sysdeps/i386/fpu/libm-test-ulps: Update.
12041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12042
12043 2012-07-31  Florian Weimer  <fweimer@redhat.com>
12044
12045         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
12046         Exit with zero in case no suitable GID is found, and write a
12047         message to standard error.
12048
12049 2012-07-30  Roland McGrath  <roland@hack.frob.com>
12050
12051         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
12052         rather than to 1.
12053         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
12054         (MAXPATHLEN): Removed.
12055         (NOGROUP, NODEV): New macros.
12056         (setbit, clrbit, isset, isclr): New macros.
12057         (howmany, roundup, powerof2): New macros.
12058         (DEV_BSIZE): New macro.
12059
12060         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
12061         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
12062
12063         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
12064         definition on [!__NO_LONG_DOUBLE_MATH].
12065
12066         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
12067         PTR_MANGLE and PTR_DEMANGLE.
12068
12069         * socket/accept4.c (accept4): Rename to __libc_accept4.
12070         Define accept4 as a weak alias.
12071
12072         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
12073         on [_DIRENT_HAVE_D_TYPE].
12074         * io/ftw.c (ftw_dir): Likewise.
12075
12076         * io/xmknod.c (__xmknod): Don't check PATH for being null.
12077
12078         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
12079
12080         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
12081         Use the BSD numbers rather than the arbitrary ones we had.
12082         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
12083         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
12084         (SIGXCPU, SIGXFSZ): New macros.
12085         (_NSIG): Now 32.
12086
12087         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
12088         initializer on [_LIBC_REENTRANT].
12089
12090         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
12091         definitions inside [_POSIX_MAPPED_FILES].
12092
12093         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
12094
12095         * dirent/opendir.c: Include <fcntl.h>.
12096
12097         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
12098         (__libc_getspecific): Likewise.
12099         (__libc_key_create): Likewise.
12100
12101         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
12102         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
12103         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
12104         (tmpfile64): Define as alias.
12105         * sysdeps/wordsize-64/tmpfile.c: File removed.
12106         * sysdeps/wordsize-64/tmpfile64.c: File removed.
12107         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
12108         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
12109
12110         * stdio-common/vfscanf.c: Include <stdbool.h>.
12111         * nss/makedb.c: Likewise.
12112         * stdio-common/_i18n_number.h: Likewise.
12113         * argp/argp-help.c: Likewise.
12114         * posix/wordexp.c: Likewise.
12115         * sysdeps/posix/spawni.c: Likewise.
12116         * nss/nss_files/files-initgroups.c: Likewise.
12117         * stdio-common/reg-modifier.c: Include <stdlib.h>.
12118         * nss/nss_files/files-initgroups.c: Likewise.
12119         * nss/nss_db/db-netgrp.c: Likewise.
12120         * nss/nss_db/db-initgroups.c: Likewise.
12121         * io/fchmodat.c: Include <sys/stat.h>.
12122
12123         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
12124         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
12125
12126         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
12127         [HAVE_MMAP].
12128
12129         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
12130         Add multiple inclusion protection.
12131
12132 2012-07-27  David S. Miller  <davem@davemloft.net>
12133
12134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12135
12136 2012-07-27  Gary Benson  <gbenson@redhat.com>
12137
12138         [BZ #14298]
12139         * elf/rtld.c: Include <stap-probe.h>.
12140         (dl_main): Added static probes "init_start" and "init_complete".
12141         * elf/dl-load.c: Include <stap-probe.h>.
12142         (lose): Take new parameter "nsid".
12143         Added static probe "map_failed".
12144         (_dl_map_object_from_fd): Pass namespace id to lose.
12145         Added static probe "map_start".
12146         (open_verify): Pass namespace id to lose.
12147         * elf/dl-open.c: Include <stap-probe.h>.
12148         (dl_open_worker) Added static probes "map_complete", "reloc_start"
12149         and "reloc_complete".
12150         * elf/dl-close.c: Include <stap-probe.h>.
12151         (_dl_close_worker): Added static probes "unmap_start" and
12152         "unmap_complete".
12153         * elf/rtld-debugger-interface.txt: New file documenting the above.
12154
12155 2012-07-26  Roland McGrath  <roland@hack.frob.com>
12156
12157         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
12158         rather than a string variable.
12159         * sunrpc/rpc_main.c (h_output): Likewise.
12160         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
12161
12162 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
12163
12164         * inet/check_native.c: New file.
12165
12166 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
12167
12168         [BZ #13629]
12169         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
12170         if larger part has absolute value 1.0.
12171         * math/s_clog10.c (__clog10): Likewise.
12172         * math/s_clog10f.c (__clog10f): Likewise.
12173         * math/s_clog10l.c (__clog10l): Likewise.
12174         * math/s_clogf.c (__clogf): Likewise.
12175         * math/s_clogl.c (__clogl): Likewise.
12176         * math/libm-test.inc (clog_test): Add more tests.
12177         (clog10_test): Likewise.
12178         * sysdeps/i386/fpu/libm-test-ulps: Update.
12179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12180
12181         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
12182         (pltexit): Likewise.
12183         (La_regs): Likewise.
12184         (La_retval): Likewise.
12185         (int_retval): Likewise.
12186         Update #error for removed macros to refer only to definitions in
12187         tst-audit.h.
12188         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
12189         macro.
12190         (pltexit): Likewise.
12191         (La_regs): Likewise.
12192         (La_retval): Likewise.
12193         (int_retval): Likewise.
12194         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
12195         macro.
12196         (pltexit): Likewise.
12197         (La_regs): Likewise.
12198         (La_retval): Likewise.
12199         (int_retval): Likewise.
12200         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
12201         macro.
12202         (pltexit): Likewise.
12203         (La_regs): Likewise.
12204         (La_retval): Likewise.
12205         (int_retval): Likewise.
12206         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
12207         macro.
12208         (pltexit): Likewise.
12209         (La_regs): Likewise.
12210         (La_retval): Likewise.
12211         (int_retval): Likewise.
12212         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
12213         macro.
12214         (pltexit): Likewise.
12215         (La_regs): Likewise.
12216         (La_retval): Likewise.
12217         (int_retval): Likewise.
12218         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
12219         macro.
12220         (pltexit): Likewise.
12221         (La_regs): Likewise.
12222         (La_retval): Likewise.
12223         (int_retval): Likewise.
12224         * sysdeps/generic/tst-audit.h: Update comment to refer only to
12225         macro definitions in tst-audit.h.
12226         * sysdeps/i386/tst-audit.h: New file.
12227         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
12228         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
12229         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
12230         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
12231         * sysdeps/sh/tst-audit.h: Likewise.
12232         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
12233         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
12234         * sysdeps/x86_64/tst-audit.h: Likewise.
12235
12236 2012-07-26  Andreas Jaeger  <aj@suse.de>
12237
12238         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
12239         ptrace.
12240
12241         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
12242         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
12243         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
12244         PTRACE_O_MASK.
12245         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
12246         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
12247         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
12248
12249         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
12250         value.
12251
12252         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
12253         _sigsys.
12254         (si_call_addr, si_syscall, si_arch): Define new macro.
12255         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
12256         _sigsys.
12257         (si_call_addr, si_syscall, si_arch): Define new marcro.
12258         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
12259         _sigsys.
12260         (si_call_addr, si_syscall, si_arch): Define new macro.
12261         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
12262         _sigsys.
12263         (si_call_addr, si_syscall, si_arch): Define new macro.
12264
12265 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12266
12267         [BZ #13717]
12268         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12269         Change to 2.4.21 where previously 2.4.1.
12270         * sysdeps/unix/sysv/linux/configure: Regenerated.
12271         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
12272         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
12273         Linux kernel version.
12274         (__ASSUME_STD_AUXV): Remove.
12275         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
12276         kernel version.
12277         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
12278         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
12279         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
12280         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
12281         (__ASSUME_NETLINK_SUPPORT): Likewise.
12282         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
12283         (__no_netlink_support): Remove conditional definition.
12284         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
12285         Remove.
12286         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12287         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
12288         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
12289         (if_nameindex_ioctl): Remove.
12290         (if_nameindex_netlink): Do not handle __no_netlink_support.
12291         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12292         code.
12293         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
12294         Remove conditional code.
12295         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12296         code.
12297         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
12298         unconditional.
12299         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12300         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
12301         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
12302         Remove.
12303         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12304         [!__ASSUME_STD_AUXV]: Remove conditional code.
12305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
12306         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
12307         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
12308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
12309         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
12310         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12311         code.
12312         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12314         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
12315         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12316         conditional code.
12317         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12319         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12320         code.
12321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12322         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12323         conditional code.
12324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
12325         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12326         code unconditional.
12327         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12328         conditional code.
12329         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12330         unconditional.
12331         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12332         conditional code.
12333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12334         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12335         unconditional.
12336         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12337         conditional code.
12338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
12339         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12340         code unconditional.
12341         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12342         conditional code.
12343         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12344         unconditional.
12345         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12346         conditional code.
12347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
12348         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12349         code unconditional.
12350         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12351         conditional code.
12352         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12353         unconditional.
12354         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12355         conditional code.
12356
12357 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
12358
12359         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
12360         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
12361         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
12362         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
12363         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12364         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12365         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12366         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
12367         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12368         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12369         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12370         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12371         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
12372         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12373         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12374         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
12375         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
12376         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
12377         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
12378         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
12379         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
12380         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12381         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12382
12383 2012-07-25  Florian Weimer  <fweimer@redhat.com>
12384
12385         * Versions.def: Add GLIBC_2.17.
12386         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
12387         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
12388         Introduce __libc_secure_getenv.
12389         * stdlib/Versions (2.17): Add secure_getenv
12390         (GLIBC_PRIVATE): Add __libc_secure_getenv.
12391         * stdlib/secure-getenv.c: Rename __secure_getenv to
12392         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
12393         symbol __secure_getenv for GLIBC_2.0.
12394         * stdlib/tst-secure-getenv.c: New.
12395         * stdlib/Makefile (tests): Add testcase.
12396         * manual/startup.texi (Environment Access): Document
12397         secure_getenv.
12398         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
12399         __libc_secure_getenv.
12400         * inet/ruserpass.c (ruserpass): Likewise.
12401         * malloc/mtrace.c (mtrace): Likewise.
12402         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
12403         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
12404         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
12405         * sysdeps/posix/tempname.c: Likewise.  Evaluate
12406         HAVE_SECURE_GETENV.
12407         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
12408         __secure_getenv to __libc_secure_getenv.
12409         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
12410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12411         Likewise.
12412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12413         Likewise.
12414         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12416         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12417         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12418         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12420         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12421
12422 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12423
12424         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
12425         (struct La_i86_retval): Likewise.
12426         (struct La_x86_64_regs): Likewise.
12427         (struct La_x86_64_retval): Likewise.
12428         (struct La_x32_regs): Likewise.
12429         (struct La_x32_retval): Likewise.
12430         (struct La_ppc32_regs): Likewise.
12431         (struct La_ppc32_retval): Likewise.
12432         (struct La_ppc64_regs): Likewise.
12433         (struct La_ppc64_retval): Likewise.
12434         (struct La_sh_regs): Likewise.
12435         (struct La_sh_retval): Likewise.
12436         (struct La_s390_32_regs): Likewise.
12437         (struct La_s390_32_retval): Likewise.
12438         (struct La_s390_64_regs): Likewise.
12439         (struct La_s390_64_retval): Likewise.
12440         (struct La_sparc32_regs): Likewise.
12441         (struct La_sparc32_retval): Likewise.
12442         (struct La_sparc64_regs): Likewise.
12443         (struct La_sparc64_retval): Likewise.
12444         (struct audit_ifaces): Remove architecture-specific pltenter and
12445         pltexit members.
12446         * sysdeps/i386/ldsodefs.h: New file.
12447         * sysdeps/powerpc/ldsodefs.h: Likewise.
12448         * sysdeps/s390/ldsodefs.h: Likewise.
12449         * sysdeps/sh/ldsodefs.h: Likewise.
12450         * sysdeps/sparc/ldsodefs.h: Likewise.
12451         * sysdeps/x86_64/ldsodefs.h: Likewise.
12452
12453 2012-07-25  Marek Polacek  <polacek@redhat.com>
12454
12455         [BZ #6808]
12456         * math/libm-test.inc (yn_test): Add another test.
12457         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
12458         to ERANGE when the result is +-Inf.
12459         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
12460         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12461         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
12462         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
12463
12464 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
12465
12466         * conform/data/time.h-data (NULL): Use macro-constant.  Require
12467         equal to 0.
12468         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
12469         clock_t.
12470         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
12471
12472 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
12473
12474         * configure.in <sysdeps resolving>: Correct printing
12475         Implies_before.
12476         * configure: Regenerate.
12477
12478 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
12479
12480         * math/w_ilogb.c: Include <limits.h>.
12481         * math/w_ilogbl.c: Likewise.
12482
12483 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12484
12485         * manual/lang.texi (__va_copy): Document primarily as ISO C99
12486         va_copy.  Document allowing for unavailable va_copy only as
12487         pre-C99 compatibility.
12488         * manual/string.texi (Copying and Concatenation): Use va_copy
12489         instead of __va_copy in concat example.
12490
12491 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
12492
12493         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
12494         (__sendto): Use create_address_port.  Initialize APORT and deallocate
12495         it if not null.
12496
12497         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
12498         with O_NOLINK passed to __file_name_lookup.
12499
12500         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
12501         with O_NOLINK passed to __file_name_lookup.
12502
12503         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
12504         negative N or less than NGIDS.
12505
12506         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
12507         type to string_t.  Set ERANGE as errno and return it if NAME is not big
12508         enough.  Use memcpy instead of strncpy.
12509
12510 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12511
12512         * elf/Makefile (check-data): Remove.
12513         (localplt.data): New vpath directive.
12514         ($(objpfx)check-localplt.out): Use localplt.data from vpath
12515         instead of $(check-data).
12516         * scripts/data/localplt-generic.data: Move to ...
12517         * sysdeps/generic/localplt.data: ... here.
12518         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
12519         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
12520         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
12521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
12522         ... here.
12523         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
12524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
12525         ... here.
12526         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
12527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
12528         ... here.
12529         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
12530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
12531         ... here.
12532         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
12533         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
12534         ... here.
12535         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
12536         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
12537         ... here.
12538
12539 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12540
12541         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
12542         PPC32 and PPC64 files.
12543         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
12544         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
12545
12546 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12547
12548         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
12549         __makecontext_ret to ...
12550         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
12551         ... here and call exit if uc_link is NULL.  New file.
12552         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
12553         __makecontext_ret.S.
12554         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
12555         __makecontext_ret to ...
12556         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
12557         ... here and call exit if uc_link is NULL.  New file.
12558         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
12559         __makecontext_ret.S.
12560
12561 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12562
12563         * elf/elf.h (R_390_IRELATIVE): New definition.
12564         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
12565         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
12566         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
12567         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12568         (elf_machine_lazy_rel): Likewise.
12569         * sysdeps/s390/dl-irel.h: New file.
12570         * sysdeps/s390/s390-64/memcpy.S: New asm code.
12571         * sysdeps/s390/s390-64/memset.S: New asm code.
12572         * sysdeps/s390/s390-64/memcmp.S: New asm code.
12573         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
12574         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
12575         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
12576         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
12577         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
12578         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
12579         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
12580         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
12581         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
12582         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
12583         * sysdeps/s390/s390-32/memcpy.S: New asm code.
12584         * sysdeps/s390/s390-32/memset.S: New asm code.
12585         * sysdeps/s390/s390-32/memcmp.S: New asm code.
12586
12587 2012-07-17  Marek Polacek  <polacek@redhat.com>
12588
12589         [BZ #14349]
12590         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
12591         * sysdeps/s390/s390-64/configure.in: Likewise.
12592         * sysdeps/sparc/configure.in: Likewise.
12593         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
12594         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
12595         * sysdeps/i386/configure.in: Likewise.
12596         * sysdeps/x86_64/configure.in: Likewise.
12597         * sysdeps/sh/configure.in: Likewise.
12598         * sysdeps/s390/s390-32/configure: Regenerated.
12599         * sysdeps/s390/s390-64/configure: Likewise.
12600         * sysdeps/x86_64/configure: Likewise.
12601         * sysdeps/sh/configure: Likewise.
12602         * sysdeps/powerpc/powerpc64/configure: Likewise.
12603         * sysdeps/powerpc/powerpc32/configure: Likewise.
12604         * sysdeps/sparc/configure: Likwise.
12605         * sysdeps/i386/configure: Likewise.
12606
12607         * elf/dl-open.c: Comment fixes.
12608
12609 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * Makefile [CXX] (check-data): Remove.
12612         [CXX] (c++-types.data): New vpath directive.
12613         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
12614         vpath.  Do not allow for C++ type data being missing.
12615         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
12616         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
12617         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
12618         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
12619         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
12620         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
12621         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
12622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
12623         ... here.
12624         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
12625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12626         ... here.
12627         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12628         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12629         ... here.
12630         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12631         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12632         ... here.
12633         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12634         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12635         ... here.
12636         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12638         ... here.
12639         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12641         ... here.
12642         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12644
12645         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12646         definitions to architecture-specific files.
12647         (TLS_IE): Likewise.
12648         (TLS_LD): Likewise.
12649         (TLS_GD): Likewise.
12650         * sysdeps/i386/tls-macros.h: New file.
12651         * sysdeps/powerpc/tls-macros.h: Likewise.
12652         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12653         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12654         * sysdeps/sh/tls-macros.h: Likewise.
12655         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12656         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12657         * sysdeps/x86_64/tls-macros.h: Likewise.
12658
12659 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12660
12661         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12662         zero value for regular exit case.
12663
12664         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12665         (__start_context): Preserve zero value for regular exit case.
12666
12667 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12668             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12669
12670         * manual/setjmp.texi (setcontext): Clarify normal process
12671         termination when uc_link is the null pointer.
12672         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12673         exit call.
12674
12675 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12676
12677         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12678         preprocessor.  Test for each exception mask separately.
12679
12680 2012-07-16  Andreas Jaeger  <aj@suse.de>
12681
12682         * po/ru.po: Update from translation team.
12683
12684 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12685
12686         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12687         equal to 0.
12688         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12689         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12690         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12691         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12692         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12693
12694 2012-07-13  Andreas Jaeger  <aj@suse.de>
12695
12696         * po/fr.po: Update from translation team.
12697
12698 2012-07-12  Marek Polacek  <polacek@redhat.com>
12699
12700         [BZ #14173]
12701         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12702         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12703         loop condition.
12704
12705 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12706
12707         [BZ #13717]
12708         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12709         Change to 2.4.1 where previously 2.4.0.
12710         * sysdeps/unix/sysv/linux/configure: Regenerated.
12711         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12712         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12713         version.
12714         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12715         (__ASSUME_AT_CLKTCK): Remove.
12716         (__ASSUME_AT_PAGESIZE): Likewise.
12717         (__ASSUME_AT_XID): Likewise.
12718         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12719         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12720         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12721         unconditionally.
12722         (HAVE_AUX_PAGESIZE): Likewise.
12723         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12724         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12725         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12726
12727 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12728
12729         [BZ #14307]
12730         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12731         the temporary buffer used to invoke __gethostbyname2_r,
12732         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12733         host_data / struct gaih_addrtuple.
12734         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12735         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12736         header file nss/nsswitch.h.
12737         * nss/nsswitch.h (global scope): Add definition of implementation
12738         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12739         resolv/nss_dns/dns-host.c).
12740
12741 2012-07-11  Andreas Jaeger  <aj@suse.de>
12742
12743         * po/fr.po: Update from translation team.
12744
12745         * po/sv.po: Update from translation team
12746         * po/fr.po: Another update from translation team.
12747
12748 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12749
12750         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12751         for subnormals or multiply small sinh result by itself.
12752         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12754
12755 2012-07-11  David S. Miller  <davem@davemloft.net>
12756
12757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12758
12759 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12760
12761         [BZ #14347]
12762         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12763         (INTERNAL_MARK): Shift it here.
12764
12765 2012-07-10  Marek Polacek  <polacek@redhat.com>
12766
12767         [BZ #14151]
12768         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12769         libc_cv_asm_global_directive with .globl.
12770         * configure: Regenerated.
12771         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12772         with .globl.
12773         * sysdeps/i386/configure: Regenerated.
12774         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12775         with .globl.
12776         * sysdeps/x86_64/configure: Regenerated.
12777         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12778         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12779         * elf/tst-unique2mod2.c: Likewise.
12780         * elf/tst-unique2mod1.c: Likewise.
12781         * elf/tst-unique1mod2.c: Likewise.
12782         * elf/tst-unique1mod1.c: Likewise.
12783         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12784         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12785         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12786         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12787         * sysdeps/mach/sysdep.h: Likewise.
12788         * sysdeps/i386/sysdep.h: Likewise.
12789         * sysdeps/i386/i386-mcount.S: Likewise.
12790         * sysdeps/x86_64/_mcount.S: Likewise.
12791         * sysdeps/x86_64/sysdep.h: Likewise.
12792         * sysdeps/sh/_mcount.S: Likewise.
12793         * sysdeps/sh/sysdep.h: Likewise.
12794         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12795         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12796         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12797         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12798         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12799         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12800         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12801         * locale/localeinfo.h: Likewise.
12802         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12803         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12804
12805 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12806
12807         [BZ #14336]
12808         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12809         system".
12810         * manual/message.texi (The Uniforum approach): Likewise.
12811         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12812         (glibc iconv Implementation): Likewise.
12813
12814 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12815
12816         [BZ #14337]
12817         * math/s_clog.c (__clog): Avoid scaling a value down where that
12818         could result in underflow.
12819         * math/s_clog10.c (__clog10): Likewise.
12820         * math/s_clog10f.c (__clog10f): Likewise.
12821         * math/s_clog10l.c (__clog10l): Likewise.
12822         * math/s_clogf.c (__clogf): Likewise.
12823         * math/s_clogl.c (__clogl): Likewise.
12824         * math/libm-test.inc (clog_test): Add more tests.
12825         (clog10_test): Likewise.
12826         * sysdeps/i386/fpu/libm-test-ulps: Update.
12827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12828
12829 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12830
12831         [BZ #14283]
12832         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12833         by 7 not 8 to examine high bit of fractional part.
12834
12835         [BZ #14042]
12836         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12837         for call to __mcount_internal.
12838         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12839         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12840         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12841
12842 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12843
12844         [BZ #14154]
12845         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12846         approximation for values within 0x1p-13f of an odd multiple of
12847         pi/4.
12848         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12849         exception.  Add more tests.
12850         * sysdeps/i386/fpu/libm-test-ulps: Update.
12851
12852         [BZ #6778]
12853         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12854         inputs and return -1 for them.  Do not check for +Inf in case not
12855         reachable for +Inf.
12856         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12857         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12858         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12859         and return -1 for them.  Do not check for +Inf in case not
12860         reachable for +Inf.
12861         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12862         define.
12863         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12864         and return -1 for them.  Do not check for +Inf in case not
12865         reachable for +Inf.
12866         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12867         spurious underflow.
12868         * sysdeps/i386/fpu/libm-test-ulps: Update.
12869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12870
12871 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12872
12873         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12874
12875 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12876
12877         [BZ #14157]
12878         [BZ #14331]
12879         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12880         could result in spurious underflow.  Scale down values above
12881         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12882         * math/s_csqrtf.c (__csqrtf): Likewise.
12883         * math/s_csqrtl.c (__csqrtl): Likewise.
12884         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12885         spurious underflow.
12886         * sysdeps/i386/fpu/libm-test-ulps: Update.
12887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12888
12889 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12890
12891         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12892         xopen-msg.sed.
12893         * catgets/xopen-msg.awk: New file.
12894         * catgets/xopen-msg.sed: Removed.
12895
12896         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12897         po2text.sed.
12898         * intl/po2test.awk: New file.
12899         * intl/po2test.sed: Removed.
12900
12901 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12902
12903         [BZ #14328]
12904         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12905         or multiply small sinh result by itself.
12906         * math/s_ctanf.c (__ctanf): Likewise.
12907         * math/s_ctanh.c (__ctanh): Likewise.
12908         * math/s_ctanhf.c (__ctanhf): Likewise.
12909         * math/s_ctanhl.c (__ctanhl): Likewise.
12910         * math/s_ctanl.c (__ctanl): Likewise.
12911         * math/libm-test.inc (ctan_test_tonearest): New function.
12912         (ctan_test_towardzero): Likewise.
12913         (ctan_test_downward): Likewise.
12914         (ctan_test_upward): Likewise.
12915         (ctanh_test_tonearest): Likewise.
12916         (ctanh_test_towardzero): Likewise.
12917         (ctanh_test_downward): Likewise.
12918         (ctanh_test_upward): Likewise.
12919         (main): Call these new functions.
12920         * sysdeps/i386/fpu/libm-test-ulps: Update.
12921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12922
12923 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12924
12925         * .gitignore: Delete /ports entry.
12926
12927 2012-07-03  Andreas Jaeger  <aj@suse.de>
12928
12929         * po/bg.po: Update from translation team.
12930         * po/cs.po: Likewise.
12931         * po/de.po: Likewise.
12932         * po/hr.po: Likewise.
12933         * po/nl.pl: Likewise.
12934         * po/pl.po: Likewise.
12935         * po/vi.po: Likewise.
12936
12937 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12938
12939         * Makeconfig [!+link] (+link-before-libc): New variable.
12940         [!+link] (+link-after-libc): Likewise.
12941         [!+link] (+link-tests): Likewise.
12942         [!+link] (+link): Define in terms of $(+link-before-libc) and
12943         $(+link-after-libc).
12944         [!+link-static] (+link-static-before-libc): New variable.
12945         [!+link-static] (+link-static-after-libc): Likewise.
12946         [!+link-static] (+link-static-tests): Likewise.
12947         [!+link-static] (+link-static): Define in terms of
12948         $(+link-static-before-libc) and $(+link-static-after-libc).
12949         [build-shared] (link-libc-before-gnulib): New variable.
12950         [build-shared] (link-libc-tests): Likewise.
12951         [build-shared] (link-libc): Define in terms of
12952         $(link-libc-before-gnulib).
12953         [!build-shared] (link-libc-tests): New variable.
12954         (link-libc-static-tests): New variable.
12955         [!gnulib] (gnulib-arch): New variable.
12956         [!gnulib] (gnulib-tests): Likewise.
12957         [!gnulib] (static-gnulib-arch): Likewise.
12958         [!gnulib] (static-gnulib-tests): Likewise.
12959         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12960         Define with "=" instead of ":=".
12961         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12962         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12963         * Rules (binaries-all-notests): New variable.
12964         (binaries-all-tests): Likewise.
12965         (binaries-static-notests): Likewise.
12966         (binaries-static-tests): Likewise.
12967         (binaries-all): Define using $(binaries-all-notests) and
12968         $(binaries-all-tests).
12969         (binaries-static): Define using $(binaries-static-notests) and
12970         $(binaries-static-tests).
12971         (binaries-shared-tests): New variable.
12972         (binaries-shared-notests): Likewise.
12973         (binaries-shared): Remove variable.
12974         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12975         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12976         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12977         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12978         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12979         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12980         * elf/Makefile (sln-modules): New variable.
12981         (extra-objs): Add $(sln-modules:=.o).
12982         (ldconfig-modules): Add static-stubs.
12983         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12984         * elf/static-stubs.c: New file.
12985
12986         [BZ #14283]
12987         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12988         by 7 not 8 to examine high bit of fractional part.  Use volatile
12989         variables when splitting into final array of floats if
12990         __FLT_EVAL_METHOD__ != 0.
12991         * math/libm-test.inc (cos_test): Add another test.
12992         (sin_test): Likewise.
12993         * sysdeps/i386/fpu/libm-test-ulps: Update.
12994
12995         [BZ #14273]
12996         * math/libm-test.inc (cosh_test): Add more tests.
12997
12998         * version.h (RELEASE): Set to "development".
12999         (VERSION): Set to "2.16.90".
13000
13001 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
13002
13003         * NEWS: Update copyright. Remove last-updated date.
13004         Mention math library bug fixes and timezone data changes.
13005         * README: Mention GNU/Hurd, x32, and HPPA support status.
13006
13007 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
13008
13009         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
13010
13011 2012-06-27  Andreas Jaeger  <aj@suse.de>
13012
13013         * manual/contrib.texi (Contributors): Add Samuel Thibault.
13014
13015 2012-06-25  Andreas Jaeger  <aj@suse.de>
13016
13017         * sysdeps/s390/fpu/libm-test-ulps: Update.
13018
13019 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
13020             Thomas Schwinge  <thomas@codesourcery.com>
13021
13022         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
13023         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
13024         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
13025         fanotify_mark.
13026
13027 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
13028
13029         * sysdeps/mach/start.c: Remove file.
13030         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
13031         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
13032         * sysdeps/sh/init-first.c: Likewise.
13033
13034         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
13035         registers for frame unwinding purposes, add CFI directives.
13036         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13037         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
13038         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
13039         Likewise.
13040
13041         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
13042         __fortify_fail returning.
13043         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
13044
13045         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
13046         sysdeps/sh/____longjmp_chk.S.
13047         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
13048         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
13049         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
13050         (gen-as-const-headers): Append sigaltstack-offsets.sym.
13051
13052         * sysdeps/sh/abort-instr.h: New file.
13053         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
13054         process in case exit returns.
13055
13056         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
13057         initialize the GOT register before use.
13058
13059         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
13060         calculation of ARGC > 4.
13061
13062         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
13063         meaningful names to some local labels.
13064
13065 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
13066             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13067
13068         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
13069         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
13070         (__arch_compare_and_exchange_val_16_acq): Likewise.
13071         (__arch_compare_and_exchange_val_32_acq): Likewise.
13072         (atomic_exchange_and_add): Fix gUSA sequence.
13073         (atomic_add): Likewise.
13074         (atomic_add_negative): Likewise.
13075         (atomic_add_zero): Likewise.
13076         (atomic_bit_test_set): Likewise.
13077
13078 2012-06-22  Andreas Schwab  <schwab@redhat.com>
13079
13080         [BZ #13579]
13081         * include/link.h (struct link_map): Add l_free_initfini.
13082         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
13083         l_initfini.
13084         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
13085         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
13086         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
13087         set.
13088
13089 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
13090
13091         * configure.in: Use AC_LANG_SOURCE.
13092         * configure: Regenerate.
13093
13094 2012-06-22  Roland McGrath  <roland@hack.frob.com>
13095
13096         * configure.in (libc_cv_localstatedir): New substituted variable.
13097         * configure: Regenerated.
13098         * config.make.in (localstatedir): New variable, substituted from
13099         libc_cv_localstatedir.
13100         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
13101         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
13102         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
13103         * sysdeps/gnu/configure: Regenerated.
13104
13105 2012-06-21  Jeff Law  <law@redhat.com>
13106
13107         [BZ #14277]
13108         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
13109         free.  Simplify list management for _LIBC case.
13110
13111 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
13112
13113         [BZ #14273]
13114         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
13115         Clear sign bit of 64-bit integer value before comparing against
13116         overflow value.
13117
13118         * sysdeps/mach/configure: Regenerated.
13119
13120 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         [BZ #14278]
13123         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
13124
13125 2012-06-21  Jeff Law  <law@redhat.com>
13126
13127         [BZ #13882]
13128         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
13129         uint16_t for elements in the "seen" array to avoid char overflows.
13130         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13131         * elf/dl-open.c (dl_open_worker): Likewise.
13132
13133 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
13134
13135         * scripts/list-sources.sh: Scan PORTS for translations.
13136         * po/libc.pot: Regenerated.
13137
13138 2012-06-21  Andreas Jaeger  <aj@suse.de>
13139
13140         [BZ #12194]
13141         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
13142         warning.
13143         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
13144         * bits/byteswap-16.h (__bswap_16): Likewise.
13145         * bits/byteswap.h (__bswap_constant_16): Likewise.
13146
13147 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13148
13149         [BZ #14117]
13150         * sysdeps/i386/fpu_control.h: Removed.
13151         * sysdeps/x86_64/fpu_control.h: Moved to ...
13152         * sysdeps/x86/fpu_control.h: Here.
13153
13154         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
13155         (_FPU_SETCW): Likewise.
13156
13157 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
13158
13159         [BZ #14117]
13160         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
13161         * sysdeps/x86/fpu/bits/mathinline.h: This.
13162         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
13163
13164         [BZ #14050]
13165         [BZ #14117]
13166         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
13167         functions if __x86_64__ is defined.
13168
13169 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
13170
13171         * string/endian.h: Add !__ASSEMBLER__ condition for including
13172         conversion interfaces.
13173
13174 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
13175
13176         [BZ #14241]
13177         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
13178         of ABS(x) in calculating zero to negative powers other than odd
13179         integers.
13180         * math/libm-test.inc (pow_test): Add more tests.
13181
13182 2012-06-15  Andreas Jaeger  <aj@suse.de>
13183
13184         * manual/contrib.texi (Contributors): Update entry of Liubov
13185         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
13186         Machado Filho.
13187
13188 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
13189
13190         * string/string.h: Add __wur to GNU version of strerror_r.
13191
13192 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13193
13194         [BZ #14229]
13195         * string/Makefile (tests): Add tst-strtok_r.
13196         * string/tst-strtok_r.c: New file.
13197         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
13198         RAX_LP/RDX_LP on SAVE_PTR.
13199
13200 2012-06-14  Roland McGrath  <roland@hack.frob.com>
13201
13202         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
13203
13204 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
13205
13206         * libm_test.inc (csqrt_test): Allow more spurious underflow
13207         exceptions.
13208         (j0_test): Likewise.
13209         (j1_test): Likewise.
13210         (y0_test): Likewise.
13211         (y1_test): Likewise.
13212
13213 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
13214
13215         * po/Makefile (libc.pot): Use UTF-8 charset.
13216
13217 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
13218
13219         [BZ #14210]
13220         Suppress sign-conversion warning from FD_SET.
13221         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
13222         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
13223         not unsigned long int.
13224         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
13225
13226 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13227
13228         [BZ #14050]
13229         [BZ #14117]
13230         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
13231         __extern_always_inline instead of __extern_inline.
13232         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
13233         (__signbit): Likewise.
13234         (__signbitl): Support C++ namespace.
13235         (lrintf): New inline function.
13236         (lrint): Likewise.
13237         (llrintf): Likewise.
13238         (llrint): Likewise.
13239         (fmaxf): Likewise.
13240         (fmax): Likewise.
13241         (fminf): Likewise.
13242         (fmin): Likewise.
13243         (rint): Likewise.
13244         (rintf): Likewise.
13245         (ceil): Likewise.
13246         (ceilf): Likewise.
13247         (floor): Likewise.
13248         (floorf): Likewise.
13249         (nearbyint): Likewise.
13250         (nearbyintf): Likewise.
13251
13252 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
13253
13254         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
13255         non-default versions.
13256
13257 2012-06-11  Roland McGrath  <roland@hack.frob.com>
13258
13259         [BZ #14218]
13260         * manual/argp.texi (Argp): Reword argp_parse description slightly.
13261
13262 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
13263
13264         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
13265         (FE_UPWARD, FE_DOWNWARD): Don't define.
13266         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
13267         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13268
13269         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
13270         reading it.
13271         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13272         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13273
13274 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13275
13276         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13277         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
13278         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
13279         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
13280
13281 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
13282
13283         [BZ #14117]
13284         * sysdeps/i386/fpu/bits/fenv.h: Removed.
13285         * sysdeps/i386/fpu/Implies: New file.
13286         * sysdeps/x86_64/fpu/Implies: Likewise.
13287         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
13288         * sysdeps/x86/fpu/bits/fenv.h: This.
13289
13290         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
13291         __SSE_MATH__.
13292
13293 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
13294
13295         [BZ #14134]
13296         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
13297         character 0xffff that matches the last element of the
13298         conversion table.
13299
13300 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13301
13302         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
13303         fmodl commit.
13304
13305 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13306
13307         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
13308         values higher than 25.6283.
13309
13310 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13311
13312         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
13313         subnormal exponent extraction and add some __builtin_expect.
13314         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
13315         Fix for subnormal mantissa calculation.
13316
13317 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
13318
13319         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
13320         cpu2 is -1 and errno is not ENOSYS.
13321
13322 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13323
13324         [BZ #14117]
13325         * sysdeps/i386/i486/bits/string.h: Renamed to ...
13326         * sysdeps/x86/bits/string.h: This.
13327         * sysdeps/x86_64/bits/string.h: Removed.
13328
13329         * sysdeps/i386/i486/bits/string.h: Define inline functions only
13330         if not compiling for x86-64, but compiling for >= i486.
13331
13332         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
13333         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
13334
13335         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
13336         New macro from Linux kernel 3.4.0.
13337         (FP_XSTATE_MAGIC2): Likewise.
13338         (FP_XSTATE_MAGIC2_SIZE): Likewise.
13339         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
13340         (struct _fpx_sw_bytes): New struct.
13341         (struct _xsave_hdr): Likewise.
13342         (struct _ymmh_state): Likewise.
13343         (struct _xstate): Likewise.
13344
13345         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
13346         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
13347         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
13348         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
13349         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
13350         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
13351
13352         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
13353         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
13354         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
13355         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
13356         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
13357         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
13358
13359 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13360
13361         [BZ #13743]
13362         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
13363         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
13364         (sysdep_headers): Include sys/platform/ppc.h.
13365         * sysdeps/powerpc/test-gettimebase.c: Test for
13366         __ppc_get_timebase() to catch future ISA opcode/insn changes.
13367         * manual/Makefile (appendices): Include platform.texi.
13368         * manual/contrib.texi (Contributors): Update @node pointers.
13369         * manual/maint.texi (Maintenance): Likewise.
13370         (Platform): New node.
13371         * manual/platform.texi: New file.  Document the new features.
13372
13373 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13374             Jakub Jelinek  <jakub@redhat.com>
13375
13376         [BZ #14188]
13377         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
13378         where __builtin_expect is unavailable.
13379
13380 2012-06-03  David S. Miller  <davem@davemloft.net>
13381
13382         * stdlib/longlong.h: Updated from GCC.
13383
13384 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
13385
13386         [BZ #14042]
13387         * sysdeps/powerpc/powerpc32/mcount.c: New file.
13388         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
13389         __mcount_internal.
13390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13391         (GLIBC_2.16): Likewise.
13392
13393 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13394
13395         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
13396
13397 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13398
13399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
13400         (default-abi): New variable.
13401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
13402         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
13403         variable.
13404         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
13405         Likewise.
13406         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
13407         Likewise.
13408         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
13409         Likewise.
13410
13411         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
13412         definition.  Document in comment.
13413
13414 2012-06-01  David S. Miller  <davem@davemloft.net>
13415
13416         * stdlib/longlong.h: Updated from GCC.
13417
13418 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13419
13420         [BZ #14117]
13421         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
13422         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
13423         sys/debugreg.h sys/io.h here.
13424         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
13425         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
13426         sys/io.h.
13427         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
13428         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
13429         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
13430         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
13431         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
13432         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
13433
13434         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
13435         Define only if __x86_64__ is defined.
13436
13437 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13438
13439         [BZ #14048]
13440         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
13441         Use int64_t for variable i.
13442         * math/libm-test.inc (fmod_test): Add more tests.
13443
13444         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
13445         z computation is not scheduled after fetestexcept.
13446         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
13447         Use math_force_eval instead of asm to ensure calculation scheduled
13448         before exception test.
13449         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
13450         Ensure a1 + u.d computation is not scheduled after fetestexcept.
13451
13452 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
13453
13454         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
13455         computation is not scheduled after fetestexcept.
13456
13457 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13458
13459         [BZ #14117]
13460         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
13461         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
13462
13463 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13464
13465         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
13466         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13467
13468 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13469
13470         [BZ #14117]
13471         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
13472         <bits/wordsize.h>.
13473         (__WCHAR_MIN): Support __WORDSIZE == 64.
13474         (__WCHAR_MAX): Likewise.
13475
13476         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
13477         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
13478
13479         [BZ #14183]
13480         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
13481         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
13482
13483         [BZ #14117]
13484         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
13485         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
13486
13487         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
13488         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
13489
13490         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
13491         Defined to 1 if __x86_64__ isn't defined.
13492         (_STAT_VER_LINUX_OLD): New.
13493         (st_atime): Remove duplicate.
13494         (st_mtime): Likewise.
13495         (st_ctime): Likewise.
13496
13497 2012-05-31  David S. Miller  <davem@davemloft.net>
13498
13499         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
13500         entries.
13501
13502 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
13503
13504         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
13505         gen-libm-test.pl.
13506
13507         [BZ #14132]
13508         * elf/dl-reloc.c: Include <_itoa.h>.
13509         (_dl_reloc_bad_type): Remove use of INTUSE.
13510         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
13511         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
13512         * stdio-common/psiginfo.c (psiginfo): Likewise.
13513         * stdio-common/psignal.c (psignal): Likewise.
13514         * string/strsignal.c (strsignal): Likewise.
13515         * include/signal.h (_sys_siglist): Declare hidden proto.
13516         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
13517         INTVARDEF with libc_hidden_data_def.
13518         * stdio-common/itoa-udigits.c: Likewise.
13519         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
13520         (_itoa_lower_digits_internal): Remove declaration.
13521         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
13522         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
13523         (_sys_sigabbrev_internal): Remove aliases.
13524         (_sys_siglist): Define hidden alias.
13525
13526 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
13527
13528         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13529         bits/sysctl.h.
13530
13531 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13532
13533         [BZ #14117]
13534         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
13535         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
13536
13537         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
13538         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
13539         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
13540         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
13541         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
13542         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
13543
13544         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
13545         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
13546         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
13547
13548         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
13549         with __addr.
13550         (insw): Likewise.
13551         (insl): Likewise.
13552         (outsb): Likewise.
13553         (outsw): Likewise.
13554         (outsl): Likewise.
13555
13556         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
13557         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
13558         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
13559
13560         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
13561         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
13562         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
13563         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
13564         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13565         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
13566
13567         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
13568         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
13569
13570         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
13571         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
13572
13573         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
13574         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
13575         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
13576
13577         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
13578         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
13579         to ...
13580         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
13581
13582         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
13583         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
13584         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
13585
13586         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
13587         for x86-64.
13588         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
13589
13590 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
13591
13592         * math/math.h (M_El): Use two more decimal places.
13593         (M_LOG2El): Likewise.
13594         (M_LOG10El): Likewise.
13595         (M_LN2l): Likewise.
13596         (M_LN10l): Likewise.
13597         (M_PIl): Likewise.
13598         (M_PI_2l): Likewise.
13599         (M_PI_4l): Likewise.
13600         (M_1_PIl): Likewise.
13601         (M_2_PIl): Likewise.
13602         (M_2_SQRTPIl): Likewise.
13603         (M_SQRT2l): Likewise.
13604         (M_SQRT1_2l): Likewise.
13605
13606 2012-05-31  David S. Miller  <davem@davemloft.net>
13607
13608         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
13609         values between float registers.
13610         * sysdeps/sparc/sparc64/memset.S: Likewise.
13611         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13612
13613 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
13614
13615         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
13616         -D_FORTIFY_SOURCE=1.
13617         (CPPFLAGS-tst-longjmp_chk.c): Define.
13618         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
13619         (CPPFLAGS-tst-longjmp_chk2.c): Define.
13620         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
13621         CFLAGS-tst-wchar-h.c.
13622
13623 2012-05-31  Marek Polacek  <polacek@redhat.com>
13624
13625         [BZ #14132]
13626         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13627         __endmntent_internal): Remove declaration.
13628         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13629         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13630         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13631
13632 2012-05-30  David S. Miller  <davem@davemloft.net>
13633
13634         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13635         (___Q_simulate_exceptions): Use real FP ops rather than writing
13636         into the %fsr.
13637         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13638         Likewise.
13639
13640 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13641
13642         [BZ #14117]
13643         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13644         * sysdeps/x86/bits/xtitypes.h: This.
13645
13646         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13647         * sysdeps/x86/bits/wordsize.h: This.
13648
13649         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13650         * sysdeps/x86/bits/huge_vall.h: This.
13651
13652         * sysdeps/i386/bits/select.h: Removed.
13653         * sysdeps/x86_64/bits/select.h: Renamed to ...
13654         * sysdeps/x86/bits/select.h: This.
13655
13656         * sysdeps/i386/bits/setjmp.h: Removed.
13657         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13658         * sysdeps/x86/bits/setjmp.h: This.
13659
13660         * sysdeps/i386/bits/mathdef.h: Removed.
13661         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13662         * sysdeps/x86/bits/mathdef.h: This.
13663
13664 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13665
13666         [BZ #14132]
13667         * include/sys/socket.h (__connect_internal)
13668         (__libc_sa_len_internal): Remove declaration.
13669         (__connect, __libc_sa_len): Declare hidden_proto.
13670         (SA_LEN): Remove use of INTUSE.
13671         * socket/connect.c: Add libc_hidden_def.
13672         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13673         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13674         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13675         alias.
13676         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13677         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13678         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13679         of adding _internal alias.
13680
13681 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13682
13683         [BZ #14117]
13684         * sysdeps/i386/bits/link.h: Removed.
13685         * sysdeps/i386/bits/linkmap.h: Likewise.
13686         * sysdeps/x86_64/bits/link.h: Renamed to ...
13687         * sysdeps/x86/bits/link.h: This.
13688         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13689         * sysdeps/x86/bits/linkmap.h: This.
13690
13691         * sysdeps/i386/bits/endian.h: Removed.
13692         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13693         * sysdeps/x86/bits/endian.h: This.
13694
13695         * sysdeps/i386/bits/byteswap.h: Removed.
13696         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13697         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13698         * sysdeps/x86/bits/byteswap.h: This.
13699         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13700         * sysdeps/x86/bits/byteswap-16.h: This.
13701         * sysdeps/i386/Implies: Add x86.
13702         * sysdeps/x86_64/Implies: Likewise.
13703
13704 2012-05-30  David S. Miller  <davem@davemloft.net>
13705
13706         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13707         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13708         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13709         (FP_TRAPPING_EXCEPTIONS): Define.
13710         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13711         (FP_TRAPPING_EXCEPTIONS): Define.
13712         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13713         subnormals only when inexact has been signalled or underflow
13714         exceptions are enabled.
13715         (_FP_PACK_CANONICAL): Likewise.
13716
13717 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13718
13719         [BZ #14183]
13720         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13721         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13722
13723 2012-05-30  Richard Henderson  <rth@twiddle.net>
13724
13725         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13726         with #ifndef NOT_IN_libc.
13727
13728         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13729         marked to avoid plt entry.
13730
13731 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13732
13733         [BZ #14112]
13734         * Makeconfig (default-abi): New macro.
13735         (abi-includes): Likewise.
13736         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13737         $(abi-$(default-abi)-lib-soname) for soname if defined.
13738         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13739         abi-variants.
13740         * Makefile (installed-stubs): Likewise.
13741         * include/stubs-biarch.h: Removed.
13742         * scripts/lib-names.awk: Only handle one library at a time.
13743         * scripts/soversions.awk: Remove WORDSIZE support.
13744         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13745         entries.
13746         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13747         Removed.
13748         (syscall-list-default-condition): Likewise.
13749         (syscall-list-default-condition): Likewise.
13750         (syscall-list-includes): Likewise.
13751         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13752         syscall-list-* with abi-*.  Handle undefined abi-variants.
13753         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13754         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13755         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13756         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13757         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13758         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13759         Removed.
13760         (syscall-list-32-options): Likewise.
13761         (syscall-list-32-condition): Likewise.
13762         (syscall-list-64-options): Likewise.
13763         (syscall-list-64-condition): Likewise.
13764         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13765         macro.
13766         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13767         Renamed to ...
13768         (abi-*): This.
13769         (abi-64-ld-soname): New macro.
13770         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13771         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13772         Renamed to ...
13773         (abi-*): This.
13774         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13775         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13776
13777 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13778
13779         * sysdeps/unix/sysv/linux/kernel-features.h
13780         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13781         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13782         include <kernel-features.h>.
13783         [!__NR_ftruncate64]: Remove conditional code.
13784         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13785         [__NR_ftruncate64]: Make code unconditional.
13786         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13787         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13788         include <kernel-features.h>.
13789         [!__NR_ftruncate64]: Remove conditional code.
13790         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13791         [__NR_ftruncate64]: Make code unconditional.
13792         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13794         include <kernel-features.h>.
13795         [!__NR_ftruncate64]: Remove conditional code.
13796         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13797         [__NR_ftruncate64]: Make code unconditional.
13798         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13800         include <kernel-features.h>.
13801         [!__NR_ftruncate64]: Remove conditional code.
13802         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13803         [__NR_ftruncate64]: Make code unconditional.
13804         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13805
13806         * configure.in (libc_cv_fpie): Weaken to a compile test using
13807         LIBC_TRY_CC_OPTION.
13808         * configure: Regenerated.
13809
13810 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13811
13812         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13814         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13816         Refreshed.
13817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13820         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13822         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13823         Refreshed.
13824
13825 2012-05-27  David S. Miller  <davem@davemloft.net>
13826
13827         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13828         (___Q_zero): New.
13829         (__Q_simulate_exceptions): Return void.  Change to simulate
13830         exceptions by writing into the %fsr.
13831         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13832         (__Qp_handle_exceptions): Likewise.
13833         (numbers): Delete.
13834         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13835         __Qp_handle_exceptions.
13836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13837         __Qp_handle_exceptions.
13838         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13839         as unused and give dummy FP_RND_NEAREST initializer.
13840         (FP_INHIBIT_RESULTS): Define.
13841         (___Q_simulate_exceptions): Update declaration.
13842         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13843         formatting.
13844         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13845         as unused and give dummy FP_RND_NEAREST initializer.
13846         (__Qp_handle_exceptions): Update declaration.
13847         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13848         formatting.
13849
13850 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13851
13852         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13853         the temporary FPU control word.
13854         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13855         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13856         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13857         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13858         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13859         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13860         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13861         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13862         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13863         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13864         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13865
13866 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13867
13868         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13869         fields.
13870
13871 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13872
13873         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13874         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13875         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13876         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13877         Likewise.
13878         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13879         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13880         Likewise.
13881
13882 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13883
13884         * po/h.po: Update from translation team.
13885
13886 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13887
13888         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13889
13890         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13891         handling of denormals.
13892         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13893         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13894         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13895         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13896         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13897         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13898         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13899         Likewise.
13900
13901 2012-05-26  Marek Polacek  <polacek@redhat.com>
13902
13903         [BZ #14152]
13904         * math/libm-test.inc (fma_test): Don't always expect underflow
13905         exception.
13906
13907 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13908
13909         [BZ #12416]
13910         * elf/tst-execstack.c: Include stackinfo.h.
13911         (do_test): Adjust test case to ensure that pthread_getattr_np
13912         behaviour remains the same after marking stack executable.
13913
13914 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13915
13916         * sysdeps/unix/sysv/linux/kernel-features.h
13917         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13918         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13919         kernel-features.h.
13920         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13921         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13922         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13923         kernel-features.h.
13924         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13925         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13926
13927 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13928
13929         * configure.in: Define the default includes to being none.
13930         * configure: Regenerated.
13931
13932 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13933
13934         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13935         * sysdeps/x86_64/setjmp.S: Likewise.
13936         * sysdeps/i386/bsd-setjmp.S: Likewise.
13937         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13938         * sysdeps/i386/setjmp.S: Likewise.
13939         * sysdeps/i386/__longjmp.S: Likewise.
13940         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13941         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13942
13943         * include/stap-probe.h: New file.
13944         * configure.in: Handle --enable-systemtap.
13945         * configure: Regenerated.
13946         * config.h.in (USE_STAP_PROBE): New #undef.
13947         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13948         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13949         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13950
13951 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13952
13953         [BZ #13717]
13954         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13955         to 2.4.0 where earlier.
13956         * sysdeps/unix/sysv/linux/configure: Regenerated.
13957         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13958         <kernel-features.h>.
13959         [__ASSUME_32BITUIDS]: Make code unconditional.
13960         [!__ASSUME_32BITUIDS]: Remove conditional code.
13961         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13962         <kernel-features.h>.
13963         [__ASSUME_32BITUIDS]: Make code unconditional.
13964         [!__ASSUME_32BITUIDS]: Remove conditional code.
13965         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13966         [__ASSUME_32BITUIDS]: Make code unconditional.
13967         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13968         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13969         <kernel-features.h>.
13970         [__ASSUME_32BITUIDS]: Make code unconditional.
13971         [!__ASSUME_32BITUIDS]: Remove conditional code.
13972         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13973         <kernel-features.h>.
13974         [__ASSUME_32BITUIDS]: Make code unconditional.
13975         [!__ASSUME_32BITUIDS]: Remove conditional code.
13976         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13977         <kernel-features.h>.
13978         [__ASSUME_32BITUIDS]: Make code unconditional.
13979         [!__ASSUME_32BITUIDS]: Remove conditional code.
13980         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13981         <kernel-features.h>.
13982         [__ASSUME_32BITUIDS]: Make code unconditional.
13983         [!__ASSUME_32BITUIDS]: Remove conditional code.
13984         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13985         <kernel-features.h>.
13986         [__ASSUME_32BITUIDS]: Make code unconditional.
13987         [!__ASSUME_32BITUIDS]: Remove conditional code.
13988         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13989         <kernel-features.h>.
13990         [__ASSUME_32BITUIDS]: Make code unconditional.
13991         [!__ASSUME_32BITUIDS]: Remove conditional code.
13992         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13993         <kernel-features.h>.
13994         [__ASSUME_32BITUIDS]: Make code unconditional.
13995         [!__ASSUME_32BITUIDS]: Remove conditional code.
13996         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13997         <kernel-features.h>.
13998         [__ASSUME_32BITUIDS]: Make code unconditional.
13999         [!__ASSUME_32BITUIDS]: Remove conditional code.
14000         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
14001         <kernel-features.h>.
14002         [__ASSUME_32BITUIDS]: Make code unconditional.
14003         [!__ASSUME_32BITUIDS]: Remove conditional code.
14004         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
14005         <kernel-features.h>.
14006         [__ASSUME_32BITUIDS]: Make code unconditional.
14007         [!__ASSUME_32BITUIDS]: Remove conditional code.
14008         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
14009         <kernel-features.h>.
14010         [__NR_setresgid] (__setresgid): Do not declare.
14011         [__ASSUME_32BITUIDS]: Make code unconditional.
14012         [!__ASSUME_32BITUIDS]: Remove conditional code.
14013         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
14014         <kernel-features.h>.
14015         [__NR_setresuid] (__setresuid): Do not declare.
14016         [__ASSUME_32BITUIDS]: Make code unconditional.
14017         [!__ASSUME_32BITUIDS]: Remove conditional code.
14018         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
14019         <kernel-features.h>.
14020         [__ASSUME_32BITUIDS]: Make code unconditional.
14021         [!__ASSUME_32BITUIDS]: Remove conditional code.
14022         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
14023         <kernel-features.h>.
14024         [__ASSUME_32BITUIDS]: Make code unconditional.
14025         [!__ASSUME_32BITUIDS]: Remove conditional code.
14026         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
14027         <kernel-features.h>.
14028         [__ASSUME_32BITUIDS]: Make code unconditional.
14029         [!__ASSUME_32BITUIDS]: Remove conditional code.
14030         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
14031         <kernel-features.h>.
14032         [__ASSUME_32BITUIDS]: Make code unconditional.
14033         [!__ASSUME_32BITUIDS]: Remove conditional code.
14034         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
14035         <kernel-features.h>.
14036         [__ASSUME_32BITUIDS]: Make code unconditional.
14037         [!__ASSUME_32BITUIDS]: Remove conditional code.
14038         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
14039         <kernel-features.h>.
14040         [__ASSUME_32BITUIDS]: Make code unconditional.
14041         [!__ASSUME_32BITUIDS]: Remove conditional code.
14042         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
14043         <kernel-features.h>.
14044         [__ASSUME_32BITUIDS]: Make code unconditional.
14045         [!__ASSUME_32BITUIDS]: Remove conditional code.
14046         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
14047         <kernel-features.h>.
14048         [__ASSUME_32BITUIDS]: Make code unconditional.
14049         [!__ASSUME_32BITUIDS]: Remove conditional code.
14050         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
14051         <kernel-features.h>.
14052         [__ASSUME_32BITUIDS]: Make code unconditional.
14053         [!__ASSUME_32BITUIDS]: Remove conditional code.
14054         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
14055         <kernel-features.h>.
14056         [__ASSUME_32BITUIDS]: Make code unconditional.
14057         [!__ASSUME_32BITUIDS]: Remove conditional code.
14058         * sysdeps/unix/sysv/linux/kernel-features.h
14059         (__ASSUME_SETRESUID_SYSCALL): Remove.
14060         (__ASSUME_SETRESGID_SYSCALL): Likewise.
14061         (__ASSUME_32BITUIDS): Likewise.
14062         (__ASSUME_LDT_WORKS): Likewise.
14063         (__ASSUME_O_DIRECTORY): Likewise.
14064         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
14065         architecture but not kernel version.
14066         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
14067         (__ASSUME_MMAP2_SYSCALL): Likewise.
14068         (__ASSUME_STAT64_SYSCALL): Likewise.
14069         (__ASSUME_IPC64): Likewise.
14070         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
14071         <kernel-features.h>.
14072         [__ASSUME_32BITUIDS]: Make code unconditional.
14073         [!__ASSUME_32BITUIDS]: Remove conditional code.
14074         * sysdeps/unix/sysv/linux/opendir.c: Do not include
14075         <kernel-features.h>.
14076         [__ASSUME_O_DIRECTORY]: Make code unconditional.
14077         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
14078         132096]: Remove conditional code.
14079         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
14080         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
14081         <kernel-features.h>.
14082         [__ASSUME_32BITUIDS]: Make code unconditional.
14083         [!__ASSUME_32BITUIDS]: Remove conditional code.
14084         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
14085         <kernel-features.h>.
14086         [__ASSUME_32BITUIDS]: Make code unconditional.
14087         [!__ASSUME_32BITUIDS]: Remove conditional code.
14088         * sysdeps/unix/sysv/linux/setegid.c: Do not include
14089         <kernel-features.h>.
14090         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
14091         unconditional.
14092         (__setresgid): Do not declare.
14093         [__ASSUME_32BITUIDS]: Make code unconditional.
14094         [!__ASSUME_32BITUIDS]: Remove conditional code.
14095         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
14096         <kernel-features.h>.
14097         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
14098         unconditional.
14099         (__setresuid): Do not declare.
14100         [__ASSUME_32BITUIDS]: Make code unconditional.
14101         [!__ASSUME_32BITUIDS]: Remove conditional code.
14102         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
14103         <kernel-features.h>.
14104         [__ASSUME_32BITUIDS]: Make code unconditional.
14105         [!__ASSUME_32BITUIDS]: Remove conditional code.
14106         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
14107         <kernel-features.h>.
14108         [__ASSUME_32BITUIDS]: Make code unconditional.
14109         [!__ASSUME_32BITUIDS]: Remove conditional code.
14110
14111 2012-05-25  Richard Henderson  <rth@twiddle.net>
14112
14113         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
14114         dl_hwcap to ifunc resolver.
14115         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
14116         elf_ifunc_invoke.
14117         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
14118         dl_hwcap to ifunc resolver.
14119         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
14120
14121 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14122
14123         [BZ #14153]
14124         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
14125         for |x| <= 2**-26, not 2**-57.
14126         * math/libm-test.inc (acos_test): Do not allow spurious underflow
14127         exception.
14128
14129 2012-05-24  Jeff Law  <law@redhat.com>
14130
14131         * stdio-common/Makefile (tests): Add bug25.
14132         * stdio-common/bug25.c: New test.
14133
14134 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14135
14136         [BZ #13576]
14137         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
14138         multiple of MALLOC_ALIGNMENT in size.
14139         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
14140
14141 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14142
14143         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
14144         Require >= 256.
14145         (FILENAME_MAX): Use macro-int-constant.
14146         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
14147         (_IOFBF): Use macro-int-constant.
14148         (_IOLBF): Likewise.
14149         (_IONBF): Likewise.
14150         (SEEK_CUR): Likewise.
14151         (SEEK_END): Likewise.
14152         (SEEK_SET): Likewise.
14153         (TMP_MAX): Likewise.
14154         (EOF): Use macro-int-constant.  Require < 0.
14155         (NULL): Use macro-constant.  Require == 0.
14156         (stdin): Require type to be FILE *.
14157         (stdout): Likewise.
14158         (stderr): Likewise.
14159         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
14160         macro-int-constant.
14161         (EXIT_SUCCESS): Likewise.
14162         (NULL): Use macro-constant.  Require == 0.
14163         (RAND_MAX): Use macro-int-constant.
14164         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
14165         [C99-based standards] (strtof): Require function.
14166         [C99-based standards] (strtold): Likewise.
14167         [C99-based standards] (strtoll): Likewise.
14168         [C99-based standards] (strtoull): Likewise.
14169         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
14170         [ISO || ISO99 || ISO11] (limits.h): Likewise.
14171         [ISO || ISO99 || ISO11] (math.h): Likewise.
14172         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
14173         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
14174         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14175
14176 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
14177
14178         [BZ #14132]
14179         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
14180         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
14181         * intl/dgettext.c (DCGETTEXT): Likewise.
14182         * intl/gettext.c (DCGETTEXT): Likewise.
14183         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
14184         * posix/regex_internal.h (gettext): Likewise.
14185         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
14186         Remove declaration.
14187         * include/argz.h (__argz_count_internal)
14188         (__argz_stringify_internal): Remove declaration.
14189         (__argz_count, __argz_stringify): Declare hidden proto.
14190         * intl/dcgettext.c: Remove use of INTDEF.
14191         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
14192         * string/argz-stringify.c: Likewise.
14193         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14194         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14195         Declare hidden proto.
14196         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
14197         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
14198         Declare hidden proto.
14199         * include/stdio.h (__asprintf_internal): Don't declare.
14200         (__asprintf): Don't define as macro.  Declare hidden proto.
14201         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
14202         (__fsetlocking): Declare hidden proto.
14203         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
14204         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
14205         hidden proto.
14206         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
14207         (_IO_setlinebuf): Remove use of INTUSE.
14208         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
14209         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
14210         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
14211         Remove declaration.
14212         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
14213         (_IO_do_flush): Remove use of INTUSE.
14214         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
14215         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
14216         (_IO_adjust_column, _IO_least_wmarker)
14217         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
14218         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
14219         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
14220         (_IO_default_doallocate, _IO_wdefault_doallocate)
14221         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
14222         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
14223         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
14224         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
14225         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
14226         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
14227         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
14228         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
14229         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
14230         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
14231         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
14232         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
14233         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
14234         proto.
14235         (_IO_flush_all_internal, _IO_adjust_column_internal)
14236         (_IO_default_uflow_internal, _IO_default_finish_internal)
14237         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
14238         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
14239         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
14240         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
14241         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
14242         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
14243         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
14244         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
14245         (_IO_file_close_internal, _IO_file_close_it_internal)
14246         (_IO_file_underflow_internal, _IO_file_overflow_internal)
14247         (_IO_file_init_internal, _IO_file_attach_internal)
14248         (_IO_file_fopen_internal, _IO_file_read_internal)
14249         (_IO_file_sync_internal, _IO_file_seek_internal)
14250         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
14251         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
14252         (_IO_str_underflow_internal, _IO_str_overflow_internal)
14253         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
14254         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
14255         (_IO_list_all_internal, _IO_link_in_internal)
14256         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
14257         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
14258         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
14259         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
14260         (_IO_do_write_internal, _IO_padn_internal)
14261         (_IO_getline_info_internal, _IO_getline_internal)
14262         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
14263         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
14264         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
14265         (_IO_vfscanf_internal, _IO_vfprintf_internal)
14266         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
14267         (_IO_init_internal, _IO_un_link_internal): Don't declare.
14268         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
14269         with libc_hidden_ver, remove use of INTUSE.
14270         * libio/genops.c: Likewise.
14271         * libio/freopen.c: Likewise.
14272         * libio/freopen64.c: Likewise.
14273         * libio/iofclose.c: Likewise.
14274         * libio/iofdopen.c: Likewise.
14275         * libio/iofflush.c: Likewise.
14276         * libio/iofflush_u.c: Likewise.
14277         * libio/iofgets.c: Likewise.
14278         * libio/iofgets_u.c: Likewise.
14279         * libio/iofopen.c: Likewise.
14280         * libio/iofopncook.c: Likewise.
14281         * libio/iofread.c: Likewise.
14282         * libio/iofread_u.c: Likewise.
14283         * libio/ioftell.c: Likewise.
14284         * libio/iofwrite.c: Likewise.
14285         * libio/iogetline.c: Likewise.
14286         * libio/iogets.c: Likewise.
14287         * libio/iogetwline.c: Likewise.
14288         * libio/iopadn.c: Likewise.
14289         * libio/iopopen.c: Likewise.
14290         * libio/ioseekoff.c: Likewise.
14291         * libio/ioseekpos.c: Likewise.
14292         * libio/iosetbuffer.c: Likewise.
14293         * libio/iosetvbuf.c: Likewise.
14294         * libio/ioungetc.c: Likewise.
14295         * libio/ioungetwc.c: Likewise.
14296         * libio/iovdprintf.c: Likewise.
14297         * libio/iovsprintf.c: Likewise.
14298         * libio/iovsscanf.c: Likewise.
14299         * libio/memstream.c: Likewise.
14300         * libio/obprintf.c: Likewise.
14301         * libio/oldfileops.c: Likewise.
14302         * libio/oldiofclose.c: Likewise.
14303         * libio/oldiofdopen.c: Likewise.
14304         * libio/oldiofopen.c: Likewise.
14305         * libio/oldiopopen.c: Likewise.
14306         * libio/oldstdfiles.c: Likewise.
14307         * libio/putc.c: Likewise.
14308         * libio/setbuf.c: Likewise.
14309         * libio/setlinebuf.c: Likewise.
14310         * libio/stdfiles.c: Likewise.
14311         * libio/strops.c: Likewise.
14312         * libio/vasprintf.c: Likewise.
14313         * libio/vscanf.c: Likewise.
14314         * libio/vsnprintf.c: Likewise.
14315         * libio/vswprintf.c: Likewise.
14316         * libio/wfiledoalloc.c: Likewise.
14317         * libio/wfileops.c: Likewise.
14318         * libio/wgenops.c: Likewise.
14319         * libio/wmemstream.c: Likewise.
14320         * libio/wstrops.c: Likewise.
14321         * libio/__fpurge.c: Likewise.
14322         * libio/__fsetlocking.c: Likewise.
14323         * assert/assert.c: Likewise.
14324         * debug/fgets_chk.c: Likewise.
14325         * debug/fgets_u_chk.c: Likewise.
14326         * debug/fread_chk.c: Likewise.
14327         * debug/fread_u_chk.c: Likewise.
14328         * debug/gets_chk.c: Likewise.
14329         * debug/obprintf_chk.c: Likewise.
14330         * debug/vasprintf_chk.c: Likewise.
14331         * debug/vdprintf_chk.c: Likewise.
14332         * debug/vsnprintf_chk.c: Likewise.
14333         * debug/vsprintf_chk.c: Likewise.
14334         * malloc/mtrace.c: Likewise.
14335         * misc/error.c: Likewise.
14336         * misc/syslog.c: Likewise.
14337         * stdio-common/asprintf.c: Likewise.
14338         * stdio-common/fxprintf.c: Likewise.
14339         * stdio-common/getw.c: Likewise.
14340         * stdio-common/isoc99_fscanf.c: Likewise.
14341         * stdio-common/isoc99_scanf.c: Likewise.
14342         * stdio-common/isoc99_vfscanf.c: Likewise.
14343         * stdio-common/isoc99_vscanf.c: Likewise.
14344         * stdio-common/isoc99_vsscanf.c: Likewise.
14345         * stdio-common/printf-prs.c: Likewise.
14346         * stdio-common/printf_fp.c: Likewise.
14347         * stdio-common/printf_fphex.c: Likewise.
14348         * stdio-common/printf_size.c: Likewise.
14349         * stdio-common/putw.c: Likewise.
14350         * stdio-common/scanf.c: Likewise.
14351         * stdio-common/sprintf.c: Likewise.
14352         * stdio-common/tmpfile.c: Likewise.
14353         * stdio-common/vfprintf.c: Likewise.
14354         * stdio-common/vfscanf.c: Likewise.
14355         * stdlib/strfmon_l.c: Likewise.
14356         * sunrpc/openchild.c: Likewise.
14357         * sunrpc/xdr_stdio.c: Likewise.
14358         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
14359         * sysdeps/mach/hurd/tmpfile.c: Likewise.
14360
14361 2012-05-24  Roland McGrath  <roland@hack.frob.com>
14362
14363         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14364
14365         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
14366         in the third column, to generate for the shared library an IFUNC
14367         that uses _dl_vdso_vsym.
14368         * Makerules (COMPILE.c, compile-stdin.c): New variables.
14369         * Makeconfig (object-suffixes-noshared): New variable.
14370
14371         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
14372         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
14373         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
14374         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
14375
14376         [BZ #14132]
14377         * include/sys/time.h (__gettimeofday): Remove macro.
14378         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
14379         * time/gettimeofday.c (__gettimeofday): Remove #undef.
14380         Remove INTDEF.
14381         (__gettimeofday): Add libc_hidden_def.
14382         (gettimeofday): Add libc_hidden_weak.
14383         * sysdeps/mach/gettimeofday.c: Likewise.
14384         * sysdeps/posix/gettimeofday.c: Likewise.
14385         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
14386         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
14387         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
14388         (__gettimeofday_internal): Remove strong_alias.
14389         (__gettimeofday): Add libc_hidden_def.
14390         (gettimeofday): Add libc_hidden_weak.
14391         * sysdeps/unix/syscalls.list (gettimeofday):
14392         Remove __gettimeofday_internal alias.
14393
14394 2012-05-24  Daniel Jacobowitz  <drow@false.org>
14395             H.J. Lu  <hongjiu.lu@intel.com>
14396
14397         [BZ #12495]
14398         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
14399         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
14400         (largebin_index_32_big): New.
14401         (largebin_index): Use it for 16-byte alignment.
14402         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
14403         correction with front_misalign.
14404
14405 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14406
14407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
14408         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
14409         Likewise.
14410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
14411         Likewise.
14412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
14413         Likewise.
14414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
14415         Likewise.
14416         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
14417         Likewise.
14418         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
14419         Likewise.
14420         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
14421         Likewise.
14422         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14423         Likewise.
14424         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
14425         Likewise.
14426         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
14427         Likewise.
14428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
14429         Likewise.
14430         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
14431         Likewise.
14432
14433         * scripts/data/c++-types-x32-linux-gnu.data: New file.
14434         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
14435
14436 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14437
14438         [BZ #10846]
14439         [BZ #14036]
14440         * math/libm-test.inc (exp_test): Add test from bug 14036.
14441         (pow_test): Add test from bug 10846.
14442
14443         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
14444         and other flags.
14445         (special_function): Do not include flags in test name.
14446         (parse_args): Likewise.
14447         * sysdeps/i386/fpu/libm-test-ulps: Update.
14448         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14449         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14450         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14452
14453         * math/gen-libm-test.pl (%beautify): Add entries for underflow
14454         exceptions.
14455         * math/libm-test.inc ("Philosophy"): Update comment about
14456         exception testing.
14457         (UNDERFLOW_EXCEPTION): New macro.
14458         (UNDERFLOW_EXCEPTION_OK): Likewise.
14459         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
14460         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
14461         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
14462         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
14463         (INVALID_EXCEPTION_OK): Update value.
14464         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14465         (OVERFLOW_EXCEPTION_OK): Likewise.
14466         (IGNORE_ZERO_INF_SIGN): Likewise.
14467         (test_exceptions): Handle underflow exceptions.
14468         (acos_test): Update for underflow exception expectations.
14469         (cexp_test): Likewise.
14470         (clog_test): Likewise.
14471         (clog10_test): Likewise.
14472         (csqrt_test): Likewise.
14473         (ctan_test): Likewise.
14474         (ctanh_test): Likewise.
14475         (exp_test): Likewise.
14476         (exp10_test): Likewise.
14477         (exp2_test): Likewise.
14478         (expm1_test): Likewise.
14479         (fma_test): Likewise.
14480         (j0_test): Likewise.
14481         (jn_test): Likewise.
14482         (nexttoward_test): Likewise.
14483         (pow_test): Likewise.
14484         (scalbn_test): Likewise.
14485         (scalbln_test): Likewise.
14486         (tan_test): Likewise.
14487         (y1_test): Likewise.
14488         * sysdeps/i386/fpu/libm-test-ulps: Update.
14489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14490
14491 2012-05-23  David S. Miller  <davem@davemloft.net>
14492
14493         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14494         (__libc_sigaction): Remove unused local variables.
14495
14496 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14497
14498         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
14499
14500 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14501
14502         mktime: avoid signed integer overflow
14503         * time/mktime.c (__mktime_internal): Do not mishandle the case
14504         where diff == INT_MIN.
14505
14506         mktime: simplify computation of average
14507         * time/mktime.c (ranged_convert): Use new time_t_avg function
14508         instead of rolling our own (probably-slower) code.
14509
14510         mktime: do not assume signed right shift propagates sign bit
14511         * time/mktime.c (isdst_differ): New static function.
14512         (__mktime_internal): No need to normalize tm_isdst now.
14513         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
14514         tm_isdst values.
14515
14516         mktime: merge another wrapv change from gnulib
14517         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
14518         from some compilers.
14519
14520         mktime: remove incorrect attempt at unusual arithmetics
14521         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
14522         The code didn't really work on such machines anyway.
14523         (TYPE_MINIMUM): Assume two's complement.
14524         (twos_complement_arithmetic): Verify that long_int and time_t
14525         are two's complement (or unsigned, in the latter case).
14526
14527         mktime: check signed shifts on long_int and time_t, too
14528         * time/mktime.c (SHR): Check that shifts work as desired
14529         on the types long_int and time_t too, as SHR is used on
14530         such types.
14531
14532         mktime: do not assume 'long' is wide enough
14533         * time/mktime.c (verify): Move decl up.
14534         (long_int): New type.
14535         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
14536         to remove assumption in the code that 'long' is wide enough to
14537         store year values.  This assumption is not true on x32 and on
14538         some non-glibc platforms.
14539
14540         mktime: merge wrapv change from gnulib
14541         * time/mktime.c (WRAPV): New macro.
14542         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
14543         (guess_time_tm, __mktime_internal): Do not assume that signed
14544         integer overflow wraps around; modern compilers generate code
14545         where this assumption is no longer valid.
14546
14547 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14548
14549         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14550         Replace "jmp L(pseudo_end)" with "ret".
14551         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14552         Likewise.
14553
14554 2012-05-23  Andreas Jaeger  <aj@suse.de>
14555
14556         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
14557         * sysdeps/unix/sysv/linux/poll.c: Remove file.
14558
14559 2012-05-23  Andreas Jaeger  <aj@suse.de>
14560             Maximilian Attems  <max@stro.at>
14561
14562         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
14563         New macros.
14564
14565 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14566
14567         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
14568         code so that pseudo_end is just ret and the stack pointer is
14569         correct also for static library in error case.
14570
14571 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
14572
14573         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
14574         move to syscalls.list.
14575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
14576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
14577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
14578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
14579
14580         * manual/install.texi (Running make install): Do not mention Linux
14581         kernel version for which pt_chown is not needed.
14582         (Linux): Do not mention problems with nscd with 2.0 kernels.
14583         * INSTALL: Regenerated.
14584
14585 2012-05-23  Andreas Jaeger  <aj@suse.de>
14586
14587         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
14588         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
14589         macro.
14590         * sysdeps/unix/sysv/linux/s390/bits/mman.h
14591         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14592         * sysdeps/unix/sysv/linux/sh/bits/mman.h
14593         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14594         * sysdeps/unix/sysv/linux/i386/bits/mman.h
14595         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14596         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
14597         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14598         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
14599         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14600         * sysdeps/unix/sysv/linux/bits/in.h
14601         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
14602
14603 2012-05-22  Roland McGrath  <roland@hack.frob.com>
14604
14605         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
14606         (PREPARE_VERSION): Just use assert instead, it will be elided
14607         under [NDEBUG] anyway.
14608
14609 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14610
14611         * sysdeps/unix/sysv/linux/Makefile: Include
14612         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
14613         (sysdep_routines): Remove sysctl.
14614         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
14615         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
14616         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
14617         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
14618         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
14619
14620 2012-05-22  Andreas Jaeger  <aj@suse.de>
14621
14622         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
14623         that pseudo_end is just ret and the stack pointer is correct also
14624         for static library in error case.
14625
14626 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14627
14628         [BZ #14122]
14629         * nss/nsswitch.c (defconfig_entries): New variable.
14630         (__nss_database_lookup): Don't leak defconfig entries.
14631         (nss_parse_service_list): Don't leak on error paths.
14632         (free_database_entries): New function.
14633         (free_defconfig): New function.
14634         (free_mem): Move common code to free_database_entries.
14635
14636 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14637
14638         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14639         Add arch_prctl.
14640         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14641
14642         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14643         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14644         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14645         New macro.
14646         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14647         (INTERNAL_SYSCALL_TYPES): Likewise.
14648         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14649         (LOAD_REGS_TYPES_[1-6]): Likewise.
14650         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14651         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14652
14653 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14654
14655         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14656         copysignl for GLIBC_2_0.
14657         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14658         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14659         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14660         logbl for GLIBC_2_0.
14661         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14662         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14663
14664 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14665
14666         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14667         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14668
14669         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14670         Use "neg %eax".
14671
14672         * time/mktime.c: Update copyright years.
14673
14674 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         mktime: merge comment-quoting-style change from gnulib
14677         * time/mktime.c: Quote 'like this' in comments.
14678         The GNU coding standards suggest that we no longer quote `like this',
14679         as "`" and "'" are typically rendered asymmetrically nowadays.
14680         The typical gnulib style is to quote 'like this' when quoting
14681         code, and "like this" when quoting English.
14682
14683         * time/mktime.c (compile-command): Add "-I.".
14684
14685         mktime: merge mktime-internal.h change from gnulib
14686         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14687
14688         mktime: merge time_r change from gnulib
14689         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14690
14691         mktime: merge DEBUG change from gnulib
14692         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14693         case system <time.h> has a #define.
14694
14695         mktime: merge <sys/types.h> change from gnulib
14696         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14697         since <time.t> is now guaranteed to define time_t.
14698
14699         mktime: merge HAVE_CONFIG_H change from gnulib
14700         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14701
14702 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14703
14704         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14705         Use "neg %eax".
14706
14707         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14708         __rlim_t cast.
14709         (struct rusage): Use anonymous union to pad each field to
14710         __syscall_slong_t.
14711
14712 2012-05-21  David S. Miller  <davem@davemloft.net>
14713
14714         * Makefules (o-iterator): Remove .s cases.
14715         (compile-command.s): Delete.
14716         (COMPILE.s): Delete.
14717         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14718
14719 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14720
14721         * configure.in (libc_cv_predef_stack_protector): Only consider
14722         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14723         * configure: Regenerated.
14724
14725 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14726
14727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14728         New macro.  Use R*LP on int and pointer.
14729         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14730         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14731         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14732         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14733
14734         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14735         [__WORDSIZE_TIME64_COMPAT32] instead of
14736         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14737         (struct utmp): Likewise.
14738         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14739         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14740         Renamed to ...
14741         (__WORDSIZE_TIME64_COMPAT32): This.
14742         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14743         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14744         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14745         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14746         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14747         (__WORDSIZE_TIME64_COMPAT32): New macro.
14748
14749 2012-05-21  Andreas Jaeger  <aj@suse.de>
14750
14751         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14752         only if [SHARED]. Add prototype for __wcschr_ia32.
14753
14754 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14755
14756         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14757         of %rbp unmolested in the jmp_buf while mangling the low bits.
14758         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14759         unmolested high bits of %rbp while demangling the low bits.
14760         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14761
14762 2012-05-21  Andreas Jaeger  <aj@suse.de>
14763
14764         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14765         * sunrpc/svc_simple.c: Use it for registerrpc.
14766         * sunrpc/xcrypt.c: Use it for passwd2des.
14767
14768         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14769
14770 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14771
14772         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14773         Don't define if [__SYSCALL_WORDSIZE != 32].
14774         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14775         New macro.
14776
14777 2012-05-21  Bruno Haible  <bruno@clisp.org>
14778             Andreas Jaeger  <aj@suse.de>
14779
14780         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14781         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14782         inptr and inend for must_buffer_ch.
14783         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14784         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14785         * stdio-common/Makefile (tests): Remove bug15.
14786         (bug15-ENV): Remove macro.
14787         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14788         anymore.
14789
14790 2012-05-19  Andreas Jaeger  <aj@suse.de>
14791             Roland McGrath  <roland@hack.frob.com>
14792
14793         * manual/contrib.texi: Completely rewritten. It contains now an
14794         alphabetical list of contributors and their contributions.
14795
14796 2012-05-21  Richard Henderson  <rth@twiddle.net>
14797
14798         * misc/getauxval.c (__getauxval): Use unsigned long int.
14799         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14800         (getauxval): Use unsigned long int.
14801
14802 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14803
14804         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14805
14806 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14807
14808         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14809         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14810         __alignof__ (long double).
14811
14812 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14813
14814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14815
14816 2012-05-20  Richard Henderson  <rth@twiddle.net>
14817
14818         * misc/getauxval.c: New file.
14819         * misc/sys/auxv.h: New file.
14820         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14821         (routines): Add getauxval.
14822         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14823         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14824         * elf/dl-sysdep.c (_dl_auxv): Remove.
14825         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14826         * elf/dl-support.c (_dl_auxv): New variable.
14827         (_dl_aux_init): Initialize it.
14828         * manual/startup.texi (Auxiliary Vector): New node.
14829         * sysdeps/generic/bits/hwcap.h: New file.
14830         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14831         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14832         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14833         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14834         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14835         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14837         Update.
14838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14841         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14843         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14844         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14845         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14846
14847 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14848
14849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14850
14851 2012-05-19  David S. Miller  <davem@davemloft.net>
14852
14853         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14854
14855 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14856
14857         [BZ #14123]
14858         * math/s_ccosh.c: Include <float.h>
14859         (__ccosh): Avoid internal overflow calculating sinh and cosh
14860         values before multiplying by sin and cos values.
14861         * math/s_ccoshf.c: Likewise.
14862         * math/s_ccoshl.c: Likewise.
14863         * math/s_csin.c: Likewise.
14864         * math/s_csinf.c: Likewise.
14865         * math/s_csinl.c: Likewise.
14866         * math/s_csinh.c: Likewise.
14867         * math/s_csinhf.c: Likewise.
14868         * math/s_csinhl.c: Likewise.
14869         * math/libm-test.inc (ccos_test): Add more tests.
14870         (ccosh_test): Likewise.
14871         (csin_test): Likewise.
14872         (csinh_test): Likewise.
14873         * sysdeps/i386/fpu/libm-test-ulps: Update.
14874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14875
14876 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14877
14878         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14879         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14880
14881         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14882
14883 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14884
14885         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14886         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14887         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14888         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14889         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14890         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14891         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14892         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14893         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14894         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14895         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14896         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14897         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14898         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14899         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14900         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14901         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14902         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14903         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14904         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14905         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14906         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14907         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14908         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14909         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14910         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14911         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14912         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14913         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14914         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14915         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14916
14917 2012-05-18  Andreas Jaeger  <aj@suse.de>
14918
14919         * csu/.gitignore: Delete.
14920
14921 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14924         (timex): Use __syscall_slong_t.
14925
14926 2012-05-18  Andreas Jaeger  <aj@suse.de>
14927             Carlos O'Donell  <carlos_odonell@mentor.com>
14928
14929         * manual/install.texi (Configuring and compiling): Update
14930         description about files modified in the source directory.
14931         * INSTALL: Regenerated.
14932
14933 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14934
14935         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14936         value.  Use "or" to set return value to -1.
14937         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14938         negate return value.
14939
14940 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14941
14942         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14943         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14944         failure if the compiler has Graphite support disabled.
14945         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14946         Likewise.
14947         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14948         CFLAGS-memmove.c): Likewise.
14949         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14950         Likewise.
14951
14952 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14953
14954         * sysdeps/x86_64/x32/_itoa.h: New file.
14955
14956         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14957         getdents system call only if kernel and user dirents have the
14958         same d_ino and d_off.
14959
14960         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14961         LLONG_MAX != LONG_MAX.
14962         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14963         (_fitoa_word): Likewise.
14964
14965         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14966         years.
14967         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14968         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14969         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14970
14971         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14972         include <bits/wordsize.h>.  Check __x86_64__ instead of
14973         __WORDSIZE.
14974         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14975         if __x86_64__ is defined.  Use anonymous union on fpstate.
14976
14977         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14978         anonymous union.
14979
14980 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14981
14982         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14983         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14984         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14985         Refer to _rtld_local_ro instead of _rtld_global_ro.
14986         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14987         Likewise.
14988         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14989         Likewise.
14990         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14991         Likewise.
14992         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14993         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14994         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14995
14996         * sysdeps/powerpc/powerpc32/dl-machine.c
14997         (__elf_machine_runtime_setup) [PROF]: Don't reference
14998         _dl_prof_resolve.
14999
15000 2012-05-18  Andreas Jaeger  <aj@suse.de>
15001
15002         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
15003         function only available for GCCs before 3.4 since GCC 3.4
15004         introduced a builtin.
15005         (lrint): Likewise.
15006         (llrintf): Likewise.
15007         (llrint): Likewise.
15008         (fmaxf): Likewise.
15009         (fmax): Likewise.
15010         (fminf): Likewise.
15011         (fmin): Likewise.
15012         (rint): Likewise.
15013         (rintf): Likewise.
15014         (nearbyint): Likewise.
15015         (nearbyintf): Likewise.
15016         (ceil): Likewise.
15017         (ceilf): Likewise.
15018         (floor): Likewise.
15019         (floorf): Likewise.
15020
15021 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15022
15023         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
15024         on both fields and cast pointer to __syscall_ulong_t.
15025
15026         * bits/types.h (__fsword_t): New type.
15027         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
15028         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
15029         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15030         (__FSWORD_T_TYPE): Likewise.
15031         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15032         (__FSWORD_T_TYPE): Likewise.
15033         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15034         (__FSWORD_T_TYPE): Likewise.
15035         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
15036         (__FSWORD_T_TYPE): Likewise.
15037         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
15038         __SWORD_TYPE with __fsword_t.
15039         (statfs64): Likewise.
15040
15041 2012-05-17  David S. Miller  <davem@davemloft.net>
15042
15043         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
15044
15045 2012-05-17  Andreas Jaeger  <aj@suse.de>
15046
15047         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
15048         warning.
15049
15050 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15051
15052         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
15053
15054 2012-05-17  Andreas Jaeger  <aj@suse.de>
15055
15056         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
15057         when it is used.
15058
15059 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15060
15061         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
15062
15063 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
15064
15065         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
15066         * sysdeps/x86_64/tst-mallocalign1.c: New file.
15067
15068 2012-05-17  Andreas Jaeger  <aj@suse.de>
15069             Carlos O'Donell  <carlos_odonell@mentor.com>
15070
15071         [BZ #14059]
15072         * sysdeps/x86_64/multiarch/init-arch.h
15073         (bit_YMM_Usable): Rename to...
15074         (bit_AVX_Usable): ... this.
15075         (bit_FMA4_Usable): New macro.
15076         (bit_XMM_state): New macro.
15077         (bit_YMM_state): New macro.
15078         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
15079         [__ASSEMBLER__] (index_AVX_Usable): ... this.
15080         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
15081         (CPUID_OSXSAVE): New macro.
15082         (CPUID_AVX): New macro.
15083         (CPUID_FMA4): New macro.
15084         (index_YMM_Usable): Rename to...
15085         (index_AVX_Usable): ... this.
15086         (HAS_AVX): Use HAS_ARCH_FEATURE.
15087         (HAS_FMA4): Likewise.
15088         (HAS_YMM_USABLE): Remove.
15089         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15090         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
15091         are present.
15092         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
15093         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
15094         * sysdeps/x86_64/multiarch/Makefile: Likewise.
15095         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
15096         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
15097
15098 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
15099
15100         * math/libm-test.c: Support platforms without multiple rounding modes.
15101         * math/bug-nextafter.c: Support platforms without FP exceptions.
15102         * math/bug-nexttoward.c: Likewise.
15103         * math/test-fenv.c: Likewise.
15104         * math/test-misc.c: Likewise.
15105         * stdlib/bug-getcontext.c: Likewise.
15106
15107 2012-05-17  Andreas Jaeger  <aj@suse.de>
15108
15109         * manual/examples/search.c (critter_cmp): Change signature to
15110         avoid warnings.
15111         * manual/string.texi (Collation Functions): Likewise.
15112
15113 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15114
15115         * bits/types.h: Fold copyright years.
15116         * bits/typesizes.h: Likewise.
15117         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
15118         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
15119         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
15120         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
15121         * time/time.h: Likewise.
15122
15123 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
15124
15125         [BZ #208]
15126         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
15127         in instead of returning them.  Return void.
15128         (__libc_mallinfo): Accumulate over all arenas.
15129         (__malloc_stats): Adjust for change in int_mallinfo interface.
15130
15131 2012-05-16  Roland McGrath  <roland@hack.frob.com>
15132
15133         [BZ #10375]
15134         * configure.in (NM): Add AC_CHECK_TOOL for it.
15135         (libc_extra_cflags): New substituted variable.
15136         Check for -fstack-protector being used implicitly.
15137         * configure: Regenerated.
15138         * config.make.in (config-extra-cflags): New variable,
15139         gets @libc_extra_cflags@.
15140         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
15141
15142         [BZ #10375]
15143         * configure.in: Check for _FORTIFY_SOURCE being predefined.
15144         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
15145         * configure: Regenerated.
15146         * config.make.in (CPPUNDEFS): New substituted variable.
15147         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
15148         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
15149         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
15150
15151 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15152
15153         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
15154         (mq_attr): Use __syscall_slong_t.
15155
15156 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15157
15158         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
15159         Check __x86_64__ instead of __WORDSIZE.
15160         (_STAT_VER_LINUX): Likewise.
15161         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
15162         __syscall_ulong_t and __syscall_slong_t.
15163         (stat64): Likewise.
15164
15165 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15166
15167         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
15168
15169 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15170
15171         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
15172
15173 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15174
15175         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
15176         __syscall_ulong_t.
15177
15178         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
15179         include <bits/wordsize.h>.  Check __x86_64__ instead of
15180         __WORDSIZE.
15181         (greg_t): Use "__extension__ long long int" if __x86_64__ is
15182         defined.
15183         (mcontext_t): Replace "unsigned long" with "unsigned long long".
15184
15185         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
15186         include <bits/wordsize.h>.  Check __x86_64__ instead of
15187         __WORDSIZE.
15188         (user_regs_struct): Use "__extension__ unsigned long long"
15189         instead of "unsigned long" if __x86_64__ is defined.
15190         (user): Likewise.  Pad after pointer field if __ILP32__ is
15191         defined.
15192
15193 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
15194
15195         * configure.in (makeinfo): Require version 4.5 or later.  Allow
15196         versions 5 to 9.
15197         * configure: Regenerated.
15198         * manual/install.texi (texinfo): Increase version requirement to
15199         4.5 or later.
15200         * INSTALL: Regenerated.
15201
15202         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
15203
15204 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
15205
15206         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
15207
15208         * sysdeps/x86_64/x32/ffs.c: New file.
15209
15210         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
15211         __syscall_ulong_t.
15212         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
15213         defined.  Use __syscall_ulong_t.
15214         (shminfo): Use __syscall_ulong_t.
15215         (shm_info): Likewise.
15216
15217         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
15218         __syscall_ulong_t.
15219
15220         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
15221         <bits/wordsize.h>.
15222         (msgqnum_t): Use __syscall_ulong_t.
15223         (msglen_t): Likewise.
15224         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
15225         __syscall_ulong_t.
15226
15227         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
15228         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15229
15230         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
15231
15232         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
15233         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
15234
15235         * sysvipc/sys/msg.h (msgbuf): Replace long int with
15236         __syscall_slong_t.
15237
15238         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
15239         include <bits/wordsize.h>.  Check __x86_64__ instead of
15240         __WORDSIZE.
15241
15242         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
15243         "unsigned long long int" if __x86_64__ is defined.
15244         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
15245
15246         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
15247         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15248         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
15249
15250         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
15251         <stdint.h>.
15252         (GET_PC): Cast to uintptr_t first.
15253         (GET_FRAME): Likewise.
15254         (GET_STACK): Likewise.
15255
15256         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
15257         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
15258         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
15259         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
15260         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
15261         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
15262         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
15263         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
15264         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
15265         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
15266         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
15267         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
15268         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15269         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
15270         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
15271         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
15272         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
15273         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
15274         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
15275         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
15276         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
15277         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
15278         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
15279         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
15280         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
15281         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
15282         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
15283         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
15284         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
15285
15286 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
15287
15288         * Makerules (+depfiles): Also collect depfiles from .oS in
15289         $(extra-objs).
15290         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
15291         .oS, $(libnldbl-routines)).
15292
15293         * Makerules (native-compile-mkdep-flags): Define.
15294         * sunrpc/Makefile (extra-objs): Add $(addprefix
15295         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
15296         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
15297         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
15298         calling $(make-target-directory).
15299
15300 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15301
15302         * bits/types.h (__snseconds_t): Removed.
15303         * time/time.h (struct timespec): Replace __snseconds_t with
15304         __syscall_slong_t.
15305         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
15306         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
15307         Likewise.
15308         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15309         (__SNSECONDS_T_TYPE): Likewise.
15310         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15311         (__SNSECONDS_T_TYPE): Likewise.
15312         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15313         (__SNSECONDS_T_TYPE): Likewise.
15314
15315 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15316
15317         * sysdeps/mach/hurd/bits/typesizes.h
15318         (__SYSCALL_SLONG_TYPE): New macro.
15319         (__SYSCALL_ULONG_TYPE): Likewise.
15320
15321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15322
15323         * bits/types.h (__syscall_slong_t): New type.
15324         (__syscall_ulong_t): Likewise.
15325
15326         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
15327         (__SYSCALL_ULONG_TYPE): Likewise.
15328         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15329         (__SYSCALL_SLONG_TYPE): Likewise.
15330         (__SYSCALL_ULONG_TYPE): Likewise.
15331         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15332         (__SYSCALL_SLONG_TYPE): Likewise.
15333         (__SYSCALL_ULONG_TYPE): Likewise.
15334         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15335         (__SYSCALL_SLONG_TYPE): Likewise.
15336         (__SYSCALL_ULONG_TYPE): Likewise.
15337
15338 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15339
15340         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
15341         Add sigaltstack-offsets.sym.
15342         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15343         <sigaltstack-offsets.h>.
15344         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
15345         longjmp_msg pointer.
15346         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
15347         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
15348         signal stack.
15349         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
15350
15351 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15352
15353         * elf/stackguard-macros.h: Remove file.
15354         * sysdeps/generic/stackguard-macros.h: New file.
15355         * sysdeps/i386/stackguard-macros.h: Likewise.
15356         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
15357         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
15358         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
15359         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
15360         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
15361         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
15362         * sysdeps/x86_64/stackguard-macros.h: Likewise.
15363         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
15364         <elf/stackguard-macros.h>.
15365
15366         [BZ #14109]
15367         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
15368         __aligned__ in attribute.
15369         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
15370         (gregset_t): Likewise.
15371
15372 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15373
15374         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
15375         * sysdeps/x86_64/64/Implies-after: Here.  New file.
15376         * sysdeps/x86_64/x32/Implies-after: New file.
15377
15378 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15379
15380         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
15381         and access return value for _dl_profile_fixup.  Use R10_LP to
15382         load frame size.
15383
15384 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15385
15386         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
15387
15388 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15389
15390         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
15391         * sysdeps/x86_64/x32/sysdep.h: New file.
15392
15393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15394
15395         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
15396         * sysdeps/x86_64/setjmp.S: Likewise.
15397
15398 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15399
15400         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
15401         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
15402         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
15403         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
15404         remove unused global constant.
15405
15406 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
15407
15408         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
15409         include of <not-cancel.h>.
15410
15411 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15412
15413         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
15414
15415 2012-05-15  Jeff Law  <law@redhat.com>
15416             Andreas Jaeger  <aj@suse.de>
15417
15418         [BZ #13594]
15419         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
15420         out from...
15421         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
15422         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
15423         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
15424         code changing __hst_map_handle.map.
15425
15426 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15427
15428         * configure.in (sysnames): Look for Implies-before and Implies-after
15429         files.
15430         * configure: Regenerated.
15431
15432 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15433
15434         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
15435         8-byte data alignment with LP_SIZE alignment.
15436
15437 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15438
15439         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
15440         into R10_LP.
15441
15442 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15443
15444         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
15445
15446 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15447
15448         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
15449         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
15450         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
15451         Likewise.
15452         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15453
15454 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15455
15456         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
15457         (stackinfo_sub_sp): Likewise.
15458
15459 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15460
15461         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
15462         RAX_LP.
15463
15464 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15465
15466         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
15467         into R*_LP.
15468
15469 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15470
15471         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
15472         sizes into R*_LP.
15473
15474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15475
15476         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
15477
15478 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15479
15480         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
15481         into R11_LP and load __x86_64_shared_cache_size_half into
15482         R8_LP.
15483
15484 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15485
15486         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
15487         R8_LP.
15488
15489 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15490
15491         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
15492         logb for POWER7.
15493         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
15494         logbf for POWER7.
15495         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
15496         logbl for POWER7.
15497         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
15498         powerpc32/power7/fpu/s_logb.c via #include.
15499         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
15500         powerpc32/power7/fpu/s_logbf.c via #include.
15501         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
15502         powerpc32/power7/fpu/s_logbl.c via #include.
15503
15504 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15505
15506         * README.libm: Remove file.
15507
15508 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15509
15510         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
15511         count for x32.  Use R*_LP and omit operand-size suffix.
15512
15513 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15514
15515         * shlib-versions: Move x86_64-.*-linux.* entries to ...
15516         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
15517         * sysdeps/x86_64/x32/shlib-versions: New file.
15518
15519 2012-05-14  Roland McGrath  <roland@hack.frob.com>
15520
15521         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
15522         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
15523         Use _dl_fatal_printf instead.
15524
15525 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15526
15527         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
15528         set if not set by the user.  Do not allow for being unset.
15529         * sysdeps/unix/sysv/linux/configure: Regenerated.
15530
15531 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15532
15533         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
15534         the `q' suffix from lea and replace .quad with ASM_ADDR.
15535
15536 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15537
15538         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
15539         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
15540         instead of $17.
15541         (PTR_DEMANGLE): Likewise.
15542
15543 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15544
15545         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
15546         (LP_OP): Likewise.
15547         (ASM_ADDR): Likewise.
15548         (RAX_LP): Likewise.
15549         (RBP_LP): Likewise.
15550         (RBX_LP): Likewise.
15551         (RCX_LP): Likewise.
15552         (RDI_LP): Likewise.
15553         (RSI_LP): Likewise.
15554         (RSP_LP): Likewise.
15555         (R8_LP): Likewise.
15556         (R9_LP): Likewise.
15557         (R10_LP): Likewise.
15558         (R10_LP): Likewise.
15559         (R11_LP): Likewise.
15560         (R12_LP): Likewise.
15561         (R13_LP): Likewise.
15562         (R14_LP): Likewise.
15563         (R15_LP): Likewise.
15564
15565 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15566
15567         * sysdeps/x86_64/x32/dl-machine.h: New file.
15568
15569 2012-05-14  Andreas Jaeger  <aj@suse.de>
15570
15571         * manual/Makefile (subdir): Remove export of subdir.
15572         (all): Remove target.
15573         (.PHONY): Remove all from list.
15574         (mkinstalldirs): Remove.
15575         (.PHONY): Remove installdirs from list.
15576         ($(inst_infodir)/libc.info): Use make-target-directory.
15577         (installdirs): Remove.
15578         (subdir_%): Remove.
15579         (glibc-targets): Remove.
15580         (lib): Remove.
15581         (stubs): Remove.
15582         ($(objpfx)stubs ../po/manual.pot): Remove.
15583         ($(objpfx)stamp%): Remove.
15584         (make-target-directory): Remove.
15585         (subdir_install): Remove.
15586         (routines): Remove.
15587         (aux): Remove.
15588         (sources): Remove.
15589         (objects): Remove.
15590         (headers): Remove.
15591
15592         [BZ #13750]
15593         * manual/.gitignore: Remove, it's not needed anymore.
15594         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
15595         all files in it.
15596         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
15597         directory.
15598         (texis): Renamed to $(objpfx)texis.
15599         (texis-path): New, contains path to generated files.
15600         (chapters.%): Use texis-path for complete path, add extra argument
15601         libc-texinfo.sh.
15602         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
15603         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15604         (summary,texi, stamp-summary): Use complete path of
15605         files. Generate files in build dir.
15606         (dir-add.texi): Build in build dir.
15607         (libm-err.texi,stamp-libm-err): Likewise.
15608         (version.texi, stamp-version): Likewise.
15609         (.%c.texi): Likewise.
15610         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
15611         (mostlyclean): Remove target.
15612         (realclean): Remove target.
15613         (generated): Add new variable with contents from mostlyclean and
15614         realclean, remove entries duplicated in common-mostlyclean, add
15615         stamp-libm-err and stamp-version.
15616         (generated-dirs): Add libc directory.
15617         ($(inst_infodir)/libc.info): Install files from build dir.
15618
15619         * manual/install.texi (Configuring and compiling): Adjust since
15620         the info files are not part of the tar ball anymore.
15621
15622 2012-05-14  Andreas Jaeger  <aj@suse.de>
15623
15624         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
15625         variable.
15626
15627 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15628
15629         [BZ #13717]
15630         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15631         to 2.2.0 where earlier.
15632         * sysdeps/unix/sysv/linux/configure: Regenerated.
15633         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15634         Remove conditional code.
15635         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15636         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15637         Remove conditional code.
15638         [!__NR_lchown]: Likewise.
15639         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15640         [__NR_lchown]: Likewise.
15641         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15642         comment referencing __ASSUME_LCHOWN_SYSCALL.
15643         * sysdeps/unix/sysv/linux/i386/sigaction.c
15644         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15645         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15646         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15647         Remove conditional code.
15648         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15649         (__protocol_available): Remove #if 0 code.
15650         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15651         conditional code.
15652         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15653         * sysdeps/unix/sysv/linux/kernel-features.h
15654         (__ASSUME_GETCWD_SYSCALL): Don't define.
15655         (__ASSUME_REALTIME_SIGNALS): Likewise.
15656         (__ASSUME_PREAD_SYSCALL): Likewise.
15657         (__ASSUME_PWRITE_SYSCALL): Likewise.
15658         (__ASSUME_POLL_SYSCALL): Likewise.
15659         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15660         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15661         non-SPARC.
15662         (__ASSUME_SIOCGIFNAME): Don't define.
15663         (__ASSUME_MSG_NOSIGNAL): Likewise.
15664         (__ASSUME_SENDFILE): Define unconditionally.
15665         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15666         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15667         conditional code.
15668         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15669         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15670         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15671         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15672         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15673         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15674         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15676         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15677         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15679         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15680         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15682         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15683         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15685         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15686         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15688         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15689         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15691         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15692         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15694         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15695         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15697         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15698         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15699         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15700         Remove conditional code.
15701         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15702         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15703         Remove conditional code.
15704         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15705         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15706         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15707         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15708         Remove conditional code.
15709         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15710         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15711         Remove conditional code.
15712         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15713         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15714         Remove conditional code.
15715         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15716         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15717         Remove conditional code.
15718         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15719         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15720         Remove conditional code.
15721         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15722         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15723         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15724         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15725         * sysdeps/unix/sysv/linux/sigaction.c
15726         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15727         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15728         * sysdeps/unix/sysv/linux/sigpending.c
15729         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15730         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15731         * sysdeps/unix/sysv/linux/sigprocmask.c
15732         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15733         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15734         * sysdeps/unix/sysv/linux/sigsuspend.c
15735         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15736         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15737         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15738         (__libc_missing_rt_sigs): Remove.
15739         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15740         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15741         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15742         Remove conditional code.
15743         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15744         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15745         return 1.
15746         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15747         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15748         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15749         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15750
15751 2012-05-14  Andreas Jaeger  <aj@suse.de>
15752
15753         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15754         it's not used in glibc.
15755         (__coshm1): Likewise.
15756         (__acosh1p): Likewise.
15757         (__sgn): Likewise.
15758
15759         * manual/string.texi (Copying and Concatenation): Add missing
15760         variable in concat example.
15761         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15762
15763 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15764
15765         [BZ #14103]
15766         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15767         __builtin_clzl with __builtin_clzll.
15768
15769 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15770
15771         [BZ #14104]
15772         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15773         libc_freeres_ptr.
15774
15775 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15776
15777         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15778         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15779         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15780         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15781
15782 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15783
15784         * NEWS: Update ia64 info.
15785
15786 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15787
15788         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15789         used as bcopy.
15790
15791 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15792
15793         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15794         * sysdeps/unix/syscalls.list (dup3): Likewise.
15795         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15796         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15797
15798 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15801         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15802
15803 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15804
15805         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15806         thread pointer.
15807         (TLS_IE): Use mov/add instead of movq/addq to load thread
15808         pointer.
15809         (TLS_GD_PREFIX): New.
15810         (TLS_GD): Use it.
15811
15812 2012-05-11  David S. Miller  <davem@davemloft.net>
15813
15814         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15815         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15816         (_FPU_SETCW): Likewise.
15817
15818 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15819
15820         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15821         is 32-byte aligned.
15822
15823 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15824
15825         [BZ #11837]
15826         * iconvdata/gb18030.c: Update tables.
15827         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15828         characters specially.
15829         (BODY for TO_LOOP): Add encoding of missing ranges.
15830
15831 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15832
15833         [BZ #13673]
15834         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15835         * sysdeps/mach/hurd/dup3.c: Likewise.
15836         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15837         * sysdeps/powerpc/memmove.c:: Likewise.
15838
15839 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15840
15841         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15842         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15843
15844 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15845
15846         * elf/elf.h (R_X86_64_RELATIVE64): New.
15847         (R_X86_64_NUM): Updated.
15848         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15849         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15850         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15851         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15852         tst-quad1pie tst-quad2pie
15853         (modules-names): Add tst-quadmod1 tst-quadmod2.
15854         ($(objpfx)tst-quad1): New dependency.
15855         ($(objpfx)tst-quad2): Likewise.
15856         ($(objpfx)tst-quad1pie): Likewise.
15857         ($(objpfx)tst-quad2pie): Likewise.
15858         * sysdeps/x86_64/tst-quad1.c: New file.
15859         * sysdeps/x86_64/tst-quad1pie.c: New file.
15860         * sysdeps/x86_64/tst-quad2.c: Likewise.
15861         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15862         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15863         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15864         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15865         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15866
15867 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15868
15869         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15870         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15871         * streams/stropts.h (t_scalar_t): Define type.
15872
15873         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15874         (_PATH_PRESERVE): Set to "/var/lib".
15875         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15876
15877         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15878         instead of int.
15879
15880         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15881         if __dir_mkfile succeeded.
15882
15883         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15884         checking for _hurd_dtablesize.  Unlock it right after having
15885         finished _hurd_dtable allocation.
15886
15887 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15888
15889         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15890         * sysdeps/mach/hurd/configure: Regenerated.
15891         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15892         special-casing to...
15893         * sysdeps/gnu/configure.in: ... this new file.
15894         * sysdeps/unix/sysv/linux/configure: Regenerated.
15895         * sysdeps/gnu/configure: New generated file.
15896
15897         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15898         for Linux: use nsec instead of usec, as well as:
15899         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15900         members of type struct timespec.
15901         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15902         New macros.
15903         (struct stat64): Likewise.
15904         (_STATBUF_ST_NSEC): New macro.
15905         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15906
15907         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15908         __strtoul_internal rather than strtoul.
15909
15910 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15911
15912         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15913         and reject them.
15914
15915 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15916
15917         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15918         which preserves existing values.
15919         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15920
15921 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15922
15923         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15924         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15925         greater than FD_SETSIZE.
15926
15927 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15928
15929         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15930         allocated, call __vm_protect to finish enabling the existing space, and
15931         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15932         allocate the remainder.
15933
15934 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15935
15936         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15937         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15938
15939 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15940
15941         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15942         sysdeps/mach/hurd/readlink.c.
15943
15944         * posix/tst-sysconf.c (posix_options): Only use
15945         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15946         _POSIX_SYNCHRONIZED_IO when they are defined
15947         * sysdeps/mach/hurd/bits/posix_opt.h:
15948         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15949         (_XOPEN_REALTIME): Undefine macro.
15950         (_XOPEN_REALTIME_THREADS): Undefine macro.
15951         (_XOPEN_SHM): Undefine macro.
15952         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15953         macro to -1.
15954         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15955         macro to -1.
15956         (_POSIX_ASYNC_IO): Undefine macro.
15957         (_POSIX_PRIORITIZED_IO): Undefine macro.
15958         (_POSIX_SPIN_LOCKS): Define macro to -1.
15959
15960         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15961         SA_NODEFER, SA_RESETHAND.
15962         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15963         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15964         F_DUPFD_CLOEXEC.
15965
15966 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15967
15968         * elf/Makefile (pldd-modules): Define unconditionally.
15969
15970 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15971
15972         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15973
15974 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15975
15976         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15977         Return ENOENT when name is empty.
15978         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15979
15980 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15981
15982         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15983
15984         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15985
15986 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15987
15988         Fix mlock in all cases except non-readable pages.
15989         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15990         instead of VM_PROT_ALL as parameter to __vm_wire function.
15991
15992         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15993         (__mkdir): When path is `/', just fail with EEXIST.
15994         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15995
15996 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15997
15998         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15999         <sys/uio.h> (for writev).
16000         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
16001         and <sys/param.h> (for MIN).
16002
16003 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
16004
16005         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
16006         REQUESTED_TIME.  Properly set the remaining time and return EINTR
16007         if interrupted.
16008
16009 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16010
16011         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
16012         Depend on against $(link-rpcuserlibs).
16013
16014 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16015
16016         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
16017         (__libc_stack_end): Do not use attribute_relro.
16018         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
16019         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
16020         to libthread-provided value.
16021         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
16022         attribute_relro.
16023
16024 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16025
16026         [BZ #3748]
16027         * bits/libc-lock.h (__libc_once_get): New macro.
16028         * sysdeps/mach/bits/libc-lock.h: Likewise.
16029         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
16030         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
16031         instead of using implementation details.
16032
16033         * libio/fileops.c: Unconditionally include <kernel-features.h>.
16034         * libio/freopen.c: Likewise.
16035         * libio/freopen64.c: Likewise.
16036         * misc/syslog.c: Likewise.
16037         * nscd/connections.c: Likewise.
16038         * nscd/netgroupcache.c: Likewise.
16039         * sysdeps/posix/getcwd.c: Likewise.
16040
16041 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16042
16043         * math/w_ilogbf.c: Add #include <limits.h>.
16044
16045 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16046
16047         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
16048         path instead of returning without unlocking.
16049
16050         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
16051         immediate-write ioctls.
16052         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
16053
16054 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16055
16056         * sysdeps/mach/hurd/i386/init-first.c (init): Use
16057         __builtin_frame_address instead of making assumptions about the
16058         location of the return address relative to DATA.  Force early load of
16059         the return address.
16060         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
16061         __builtin_frame_address.
16062
16063         dup3 for GNU Hurd.
16064         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
16065         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
16066         implement dup3 and do some further code clean-ups.
16067         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
16068         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
16069
16070 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16071
16072         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
16073
16074         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
16075         HURD_CRITICAL_END around holding _hurd_dtable_lock.
16076         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
16077         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
16078         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
16079         d->port.lock.
16080
16081         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
16082         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
16083         when handler == SIG_ERR, not when handler != SIG_ERR.
16084
16085 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16086
16087         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
16088         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
16089         definitions.
16090
16091         accept4 for GNU Hurd.
16092         * include/sys/socket.h (__libc_accept4): New prototype.
16093         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
16094         to implement __libc_accept4.
16095         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
16096         __libc_accept4.
16097         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
16098
16099         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
16100         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
16101         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
16102         signal-defines.sym.
16103
16104 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16105
16106         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
16107
16108 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
16109
16110         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
16111         assertion on O_CLOEXEC flag.
16112         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
16113         * hurd/intern-fd.c: Likewise.
16114         * hurd/port2fd.c: Likewise.
16115
16116 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16117
16118         [BZ #3906]
16119         * bits/in.h (IPV6_PKTINFO): Define new macro.
16120         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
16121
16122 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16123
16124         [BZ #13954]
16125         [BZ #13955]
16126         [BZ #13956]
16127         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
16128         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
16129         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
16130         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
16131         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
16132         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
16133         * math/libm-test.inc (logb_test) : Additional logb tests.
16134
16135 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
16136             Andreas Jaeger  <aj@suse.de>
16137
16138         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
16139         * configure: Regenerated.
16140         * config.h.in (LINK_OBSOLETE_RPC): New macro.
16141         * config.make.in (link-obsolete-rpc): New substituted variable.
16142         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
16143         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
16144         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16145         (shared-only-routines): Don't set it under [link-obsolete-rpc],
16146         so that libc.a contains the symbols.
16147         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
16148         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
16149         * sunrpc/auth_none.c: Likewise.
16150         * sunrpc/auth_unix.c: Likewise.
16151         * sunrpc/authdes_prot.c: Likewise.
16152         * sunrpc/authuxprot.c: Likewise.
16153         * sunrpc/clnt_gen.c: Likewise.
16154         * sunrpc/clnt_perr.c: Likewise.
16155         * sunrpc/clnt_raw.c: Likewise.
16156         * sunrpc/clnt_simp.c: Likewise.
16157         * sunrpc/clnt_tcp.c: Likewise.
16158         * sunrpc/clnt_udp.c: Likewise.
16159         * sunrpc/clnt_unix.c: Likewise.
16160         * sunrpc/des_crypt.c: Likewise.
16161         * sunrpc/des_soft.c: Likewise.
16162         * sunrpc/get_myaddr.c: Likewise.
16163         * sunrpc/key_call.c: Likewise.
16164         * sunrpc/key_prot.c: Likewise.
16165         * sunrpc/netname.c: Likewise.
16166         * sunrpc/pm_getmaps.c: Likewise.
16167         * sunrpc/pm_getport.c: Likewise.
16168         * sunrpc/pmap_clnt.c: Likewise.
16169         * sunrpc/pmap_prot.c: Likewise.
16170         * sunrpc/pmap_prot2.c: Likewise.
16171         * sunrpc/pmap_rmt.c: Likewise.
16172         * sunrpc/publickey.c: Likewise.
16173         * sunrpc/rpc_cmsg.c: Likewise.
16174         * sunrpc/rpc_common.c: Likewise.
16175         * sunrpc/rpc_dtable.c: Likewise.
16176         * sunrpc/rpc_prot.c: Likewise.
16177         * sunrpc/rpc_thread.c: Likewise.
16178         * sunrpc/rtime.c: Likewise.
16179         * sunrpc/svc.c: Likewise.
16180         * sunrpc/svc_auth.c: Likewise.
16181         * sunrpc/svc_raw.c: Likewise.
16182         * sunrpc/svc_run.c: Likewise.
16183         * sunrpc/svc_tcp.c: Likewise.
16184         * sunrpc/svc_udp.c: Likewise.
16185         * sunrpc/svc_unix.c: Likewise.
16186         * sunrpc/svcauth_des.c: Likewise.
16187         * sunrpc/xcrypt.c: Likewise.
16188         * sunrpc/xdr.c: Likewise.
16189         * sunrpc/xdr_array.c: Likewise.
16190         * sunrpc/xdr_float.c: Likewise.
16191         * sunrpc/xdr_intXX_t.c: Likewise.
16192         * sunrpc/xdr_mem.c: Likewise.
16193         * sunrpc/xdr_rec.c: Likewise.
16194         * sunrpc/xdr_ref.c: Likewise.
16195         * sunrpc/xdr_sizeof.c: Likewise.
16196         * sunrpc/xdr_stdio.c: Likewise.
16197
16198 2012-05-10  Roland McGrath  <roland@hack.frob.com>
16199
16200         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
16201         change.  Update copyright years.
16202
16203 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16204
16205         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
16206
16207 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
16208             Joseph Myers  <joseph@codesourcery.com>
16209             Paul Pluzhnikov  <ppluzhnikov@google.com>
16210
16211         [BZ #14012]
16212         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
16213         requiring rpcgen.
16214         [cross-compiling] (extra-libs): Likewise.
16215         [cross-compiling] (extra-libs-others): Likewise.
16216         [cross-compiling] (librpcsvc-routines): Likewise.
16217         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
16218         [cross-compiling] (omit-deps): Likewise.
16219         (sunrpc-CPPFLAGS): New variable.
16220         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
16221         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
16222         (cross-rpcgen-objs): New variable.
16223         (extra-objs): Append $(cross-rpcgen-objs).
16224         ($(cross-rpcgen-objs)): New rule.
16225         ($(objpfx)cross-rpcgen): Likewise.
16226         (rpcgen-cmd): Define to use $(built-program-file).  Expand
16227         comment.
16228         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
16229         ($(objpfx)x%.stmp): Likewise.
16230         * sunrpc/proto.h [IS_IN_build] (_): Define.
16231         [IS_IN_build] (_libc_intl_domainname): Likewise.
16232
16233 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16234
16235         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
16236         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
16237         and R_X86_64_TPOFF64.
16238
16239 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16240
16241         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
16242         sysdeps/unix/sysv/syscalls.list.
16243         (stime): Likewise.
16244         (utime): Likewise.
16245         * sysdeps/unix/sysv/syscalls.list: Remove file.
16246
16247 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16248
16249         [BZ #3440]
16250         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
16251         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
16252         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
16253         (__LC_IDENTIFICATION): Make these macros useful in #if
16254         expressions, as required by C99.
16255
16256 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
16257
16258         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
16259         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
16260         after this.
16261
16262 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16263
16264         * stdlib/longlong.h: Updated from GCC.
16265
16266 2012-05-09  Andreas Jaeger  <aj@suse.de>
16267
16268         * nscd/nscd.c (run_modes): Make named enum, reorder so that
16269         default is first entry.
16270         (run_mode): Set type.
16271         (main): Remove informal message about syslog.
16272         (options): Fix typo.
16273
16274         [BZ #14053]
16275         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
16276         to asm.
16277         (lrint): Likewise.
16278         (llrintf): Likewise.
16279         (llrint): Likewise.
16280         (rint): Likewise.
16281         (rintf): Likewise.
16282         (nearbyint): Likewise.
16283         (nearbyintf): Likewise.
16284
16285 2012-05-09  Andreas Jaeger  <aj@suse.de>
16286             Pedro Alves  <palves@redhat.com>
16287
16288         * nscd/nscd.c (run_mode): Use enum.
16289         (main): Cleanup coding style issue.
16290
16291 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
16292             Andreas Jaeger  <aj@suse.de>
16293
16294         * nscd/nscd.c (go_background): Replaced with...
16295         (run_mode): ... this.
16296         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
16297         (options): Add -F --foreground.
16298         (main): Implement it.
16299         (parse_opt): Parse it.
16300
16301 2012-05-09  Andreas Jaeger  <aj@suse.de>
16302
16303         [BZ #14083]
16304         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
16305         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
16306         -Wconversion warning.
16307         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
16308         Likewise.
16309
16310 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
16311
16312         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
16313         == 0.
16314         (LC_ALL): Use macro-int-constant.
16315         (LC_COLLATE): Likewise.
16316         (LC_CTYPE): Likewise.
16317         (LC_MESSAGES): Likewise.
16318         (LC_MONETARY): Likewise.
16319         (LC_NUMERIC): Likewise.
16320         (LC_TIME): Likewise.
16321         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
16322         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16323         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16324         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
16325         Specify type.
16326         [C99-based standards] (float_t): Expect type.
16327         [C99-based standards] (double_t): Expect type.
16328         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
16329         type.
16330         [C99-based standards] (HUGE_VALL): Likewise.
16331         [C99-based standards] (INFINITY): Likewise.
16332         [C99-based standards] (NAN): Likewise.
16333         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
16334         [C99-based standards] (FP_NAN): Likewise.
16335         [C99-based standards] (FP_NORMAL): Likewise.
16336         [C99-based standards] (FP_SUBNORMAL): Likewise.
16337         [C99-based standards] (FP_ZERO): Likewise.
16338         [C99-based standards] (FP_FAST_FMA): Use
16339         optional-macro-int-constant.  Specify type.  Require == 1.
16340         [C99-based standards] (FP_FAST_FMAF): Likewise.
16341         [C99-based standards] (FP_FAST_FMAL): Likewise.
16342         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
16343         [C99-based standards] (FP_ILOGBNAN): Likewise.
16344         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
16345         Specify type.
16346         [C99-based standards] (MATH_ERREXCEPT): Likewise.
16347         [C99-based standards] (math_errhandling): Specify type.
16348         [ISO99 || ISO11] (signgam): Do not allow.
16349         [non-C99-based standards] (copysignf): Do not allow.
16350         [non-C99-based standards] (exp2f): Likewise.
16351         [non-C99-based standards] (log2f): Likewise.
16352         [non-C99-based standards] (modff): Allow.
16353         [non-C99-based standards] (erff): Do not allow.
16354         [non-C99-based standards] (erfcf): Likewise.
16355         [non-C99-based standards] (gammaf): Likewise.
16356         [non-C99-based standards] (hypotf): Likewise.
16357         [non-C99-based standards] (j0f): Likewise.
16358         [non-C99-based standards] (j1f): Likewise.
16359         [non-C99-based standards] (jnf): Likewise.
16360         [non-C99-based standards] (lgammaf): Likewise.
16361         [non-C99-based standards] (tgammaf): Likewise.
16362         [non-C99-based standards] (y0f): Likewise.
16363         [non-C99-based standards] (y1f): Likewise.
16364         [non-C99-based standards] (ynf): Likewise.
16365         [non-C99-based standards] (isnanf): Likewise.
16366         [non-C99-based standards] (acoshf): Likewise.
16367         [non-C99-based standards] (asinhf): Likewise.
16368         [non-C99-based standards] (atanhf): Likewise.
16369         [non-C99-based standards] (cbrtf): Likewise.
16370         [non-C99-based standards] (expm1f): Likewise.
16371         [non-C99-based standards] (ilogbf): Likewise.
16372         [non-C99-based standards] (log1pf): Likewise.
16373         [non-C99-based standards] (logbf): Likewise.
16374         [non-C99-based standards] (nextafterf): Likewise.
16375         [non-C99-based standards] (remainderf): Likewise.
16376         [non-C99-based standards] (rintf): Likewise.
16377         [non-C99-based standards] (scalbf): Likewise.
16378         [non-C99-based standards] (copysignl): Likewise.
16379         [non-C99-based standards] (exp2l): Likewise.
16380         [non-C99-based standards] (log2l): Likewise.
16381         [non-C99-based standards] (modfl): Allow.
16382         [non-C99-based standards] (erfl): Do not allow.
16383         [non-C99-based standards] (erfcl): Likewise.
16384         [non-C99-based standards] (gammal): Likewise.
16385         [non-C99-based standards] (hypotl): Likewise.
16386         [non-C99-based standards] (j0l): Likewise.
16387         [non-C99-based standards] (j1l): Likewise.
16388         [non-C99-based standards] (jnl): Likewise.
16389         [non-C99-based standards] (lgammal): Likewise.
16390         [non-C99-based standards] (tgammal): Likewise.
16391         [non-C99-based standards] (y0l): Likewise.
16392         [non-C99-based standards] (y1l): Likewise.
16393         [non-C99-based standards] (ynl): Likewise.
16394         [non-C99-based standards] (isnanl): Likewise.
16395         [non-C99-based standards] (acoshl): Likewise.
16396         [non-C99-based standards] (asinhl): Likewise.
16397         [non-C99-based standards] (atanhl): Likewise.
16398         [non-C99-based standards] (cbrtl): Likewise.
16399         [non-C99-based standards] (expm1l): Likewise.
16400         [non-C99-based standards] (ilogbl): Likewise.
16401         [non-C99-based standards] (log1pl): Likewise.
16402         [non-C99-based standards] (logbl): Likewise.
16403         [non-C99-based standards] (nextafterl): Likewise.
16404         [non-C99-based standards] (remainderl): Likewise.
16405         [non-C99-based standards] (rintl): Likewise.
16406         [non-C99-based standards] (scalbl): Likewise.
16407         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16408         [non-C99-based standards] (FP_*): Do not allow.
16409         [C99-based standards] (FP_*): Change to
16410         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16411         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16412         allow.
16413         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
16414         (SIG_ERR): Likewise.
16415         [X/Open-based standards] (SIG_HOLD): Likewise.
16416         (SIG_IGN): Likewise.
16417         (SIGABRT): Use macro-int-constant.  Specify type.  Require
16418         positive value.
16419         (SIGFPE): Likewise.
16420         (SIGILL): Likewise.
16421         (SIGINT): Likewise.
16422         (SIGSEGV): Likewise.
16423         (SIGTER): Likewise.
16424         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
16425         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
16426         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
16427         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
16428         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
16429         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
16430         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
16431         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
16432         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
16433         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
16434         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
16435         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
16436         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
16437         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
16438         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
16439         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
16440         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
16441         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
16442         [X/Open-based standards] (SIGTRAP): Likewise.
16443         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
16444         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
16445         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
16446         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
16447         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16448         allow.
16449
16450 2012-05-08  Ian Wienand  <ianw@vmware.com>
16451
16452         [BZ #14080]
16453         * time/tzset.c (__tzset_parse_tz): Update default rules for
16454         daylight time changes in the Energy Policy Act of 2005.
16455
16456 2012-05-09  Andreas Jaeger  <aj@suse.de>
16457
16458         [BZ #13983]
16459         * elf/ldconfig.c (parse_conf): Change string to make clear that
16460         ldconfig only issued a warning if ld.so.conf does not exist.
16461
16462 2012-05-08  David S. Miller  <davem@davemloft.net>
16463
16464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
16465         movxtod instead of popping the value on the stack.
16466
16467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16468
16469 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
16470
16471         * config.h.in: Add HAVE_ARM_PCS_VFP.
16472
16473 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
16474
16475         [BZ #13979]
16476         * include/features.h: Warn if user requests __FORTIFY_SOURCE
16477         checking but the checks are disabled for any reason.
16478
16479 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16480
16481         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
16482         and ELF64_R_TYPE with ELFW(R_TYPE).
16483
16484 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
16485
16486         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
16487         (ulimit): Likewise.
16488
16489         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
16490         (settimeofday): Likewise.
16491
16492 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
16493
16494         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
16495         a struct th_u2 inside the union, and move tu_block/tu_code into
16496         a new th_u3 union of tu_block/tu_code inside of that.  Move
16497         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
16498         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
16499         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
16500         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
16501         (th_stuff): Change to th_u1.tu_stuff.
16502         (th_data): Define.
16503         (th_msg): Change to th_u1.th_u2.tu_data.
16504
16505 2012-05-07  David S. Miller  <davem@davemloft.net>
16506
16507         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16508
16509         [BZ #14074]
16510         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
16511         (SETUP_PIC_REG): Use it.
16512         (SETUP_PIC_REG_LEAF): Use it.
16513
16514 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
16515
16516         [BZ #13885]
16517         [BZ #13923]
16518         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16519         USE_AS_EXPM1L.
16520         (EXPL_FINITE): Likewise.
16521         (FLDLOG): Likewise.
16522         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16523         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16524         e_expl.S.
16525         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16526         USE_AS_EXPM1L.
16527         (EXPL_FINITE): Likewise.
16528         (FLDLOG): Likewise.
16529         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16530         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16531         e_expl.S.
16532         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
16533         test of -max_value argument for long double.
16534         * sysdeps/i386/fpu/libm-test-ulps: Update.
16535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16536
16537 2012-05-06  David S. Miller  <davem@davemloft.net>
16538
16539         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
16540         quad soft-float symbols whose references which are compiler
16541         generated.
16542         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16543
16544 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
16545
16546         [BZ #13884]
16547         [BZ #13914]
16548         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16549         USE_AS_EXP10L.
16550         (EXPL_FINITE): Likewise.
16551         (FLDLOG): Likewise.
16552         (c0): Likewise.
16553         (c1): Likewise.
16554         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16555         Adjust comments for base varying.
16556         (__expl_finite): Change alias to EXPL_FINITE.
16557         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
16558         e_expl.S.
16559         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
16560         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16561         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16562         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
16563         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16564         USE_AS_EXP10L.
16565         (EXPL_FINITE): Likewise.
16566         (FLDLOG): Likewise.
16567         (c0): Likewise.
16568         (c1): Likewise.
16569         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16570         Adjust comments for base varying.
16571         (__expl_finite): Change alias to EXPL_FINITE.
16572         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
16573         tests for bugs.
16574         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16575
16576         [BZ #14064]
16577         * math/libm-test.inc (check_float_internal): Correct ulp
16578         calculation for subnormal expected results.
16579
16580 2012-05-06  Andreas Jaeger  <aj@suse.de>
16581
16582         * Makeconfig (+math-flags): New, set to -frounding-math.
16583         (+cflags): Add +math-flags so that all of glibc gets compiled with
16584         it.
16585
16586         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
16587
16588 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
16589
16590         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
16591         Disable one test.
16592
16593         [BZ #13787]
16594         [BZ #13922]
16595         [BZ #14036]
16596         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
16597         (__ieee754_expl): Allow for and saturate large arguments.
16598         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
16599         (u_threshold): Likewise.
16600         (__exp): Call __ieee754_exp before checking for overflow and
16601         underflow.
16602         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
16603         (u_threshold): Likewise.
16604         (__expf): Call __ieee754_expf before checking for overflow and
16605         underflow.
16606         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
16607         (u_threshold): Likewise.
16608         (__expl): Call __ieee754_expl before checking for overflow and
16609         underflow.
16610         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
16611         (__ieee754_expl): Allow for and saturate large arguments.
16612         * math/libm-test.inc (exp_test): Add another test.  Do not allow
16613         missing overflow exception on overflow.
16614         (expm1_test): Do not allow missing overflow exception on overflow.
16615
16616         * sysdeps/i386/fpu/e_expl.c: Move to ...
16617         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
16618         rather than using inline asm.
16619         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
16620         * sysdeps/x86_64/fpu/e_expl.S: Copy from
16621         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
16622
16623         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
16624         (nice): Likewise.
16625         (poll): Likewise.
16626         (signal): Likewise.
16627         (time): Likewise.
16628         (times): Likewise.
16629
16630 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16631
16632         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16633         sysdeps/unix/common/syscalls.list.
16634         (fchmod): Likewise.
16635         (fchown): Likewise.
16636         (ftruncate): Likewise.
16637         (getrusage): Likewise.
16638         (gettimeofday): Likewise.
16639         (setpgid): Likewise.
16640         (setregid): Likewise.
16641         (setreuid): Likewise.
16642         (sigaction): Likewise.
16643         (truncate): Likewise.
16644         (vhangup): Likewise.
16645         * sysdeps/unix/common/syscalls.list: Remove file.
16646         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16647         * sysdeps/unix/sysv/linux/Implies: Likewise.
16648
16649 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16650
16651         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16652         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16653         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16654         Moved to ...
16655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16656         Here.
16657         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16658         to ...
16659         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16660         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16661         to ...
16662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16663         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16664         to ...
16665         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16666         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16667         to ...
16668         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16669         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16670         to ...
16671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16672         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16673         to ...
16674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16675         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16676         to ...
16677         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16678         Here.
16679         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16680         to ...
16681         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16682         Here.
16683         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16684         to ...
16685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16686         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16687         Moved to ...
16688         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16689         Here.
16690         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16691         to ...
16692         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16693
16694 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16695
16696         * sysdeps/unix/common/bits/dirent.h: Remove file.
16697         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16698
16699         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16700         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16701         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16702         * sysdeps/unix/bsd/isatty.c: Likewise.
16703         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16704         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16705         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16706
16707 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16708
16709         [BZ #13563]
16710         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16711         long double comparison inaccuracies.
16712         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16713         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16714
16715 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16716
16717         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16718         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16719
16720 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16721
16722         [BZ #14049]
16723         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16724         nonzero digits before rounding a hex value.
16725         * stdlib/tst-strtod.c (tests): Add another test.
16726
16727 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16728
16729         * sysdeps/s390/fpu/libm-test-ulps: Update.
16730
16731 2012-05-03  Andreas Jaeger  <aj@suse.de>
16732
16733         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16734         does not get optimized out.
16735         (malloc_opt_barrier): New.
16736
16737 2012-05-03  Andreas Jaeger  <aj@suse.de>
16738             Roland McGrath  <roland@hack.frob.com>
16739
16740         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16741         intermediate file deletion.
16742         (generated): Add .symlist files.
16743
16744 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16745
16746         [BZ #13775]
16747         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16748         Redirect under this condition.
16749         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16750         [__USE_GNU] (__dprintf_chk): Not under this condition.
16751         [__USE_GNU] (__vdprintf_chk): Likewise.
16752         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16753         under this condition.
16754         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16755         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16756         [__USE_XOPEN2K8] (vdprintf): Likewise.
16757         [__USE_GNU] (__dprintf_chk): Not under this condition.
16758         [__USE_GNU] (__vdprintf_chk): Likewise.
16759         [__USE_GNU] (dprintf): Likewise.
16760         [__USE_GNU] (vdprintf): Likewise.
16761
16762 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16763
16764         * elf/Makefile (common-generated): Set this instead of generated for
16765         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16766         $(all-built-dso)-derived lists.
16767
16768 2012-05-03  Andreas Jaeger  <aj@suse.de>
16769
16770         * sysdeps/i386/fpu/libm-test-ulps: Update.
16771
16772         * FAQ: Removed.
16773         * FAQ.in: Likewise.
16774         * scripts/gen-FAQ.pl: Likewise.
16775         * manual/install.texi (Installation): Point to online location of
16776         FAQ.
16777         * Makefile (files-for-dist): Remove FAQ.
16778         (FAQ): Remove.
16779
16780 2012-05-02  Allan McRae  <allan@archlinux.org>
16781
16782         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16783         (LDFLAGS-reldepmod5.so): Likewise.
16784         (LDFLAGS-reldep6mod1.so): Likewise.
16785         (LDFLAGS-reldep6mod4.so): Likewise.
16786         (LDFLAGS-reldep8mod3.so): Likewise.
16787         (LDFLAGS-unload4mod1.so): Likewise.
16788         (LDFLAGS-unload4mod2.so): Likewise.
16789         (LDFLAGS-tst-initorder): Likewise.
16790         (LDFLAGS-tst-initordera2.so): Likewise.
16791         (LDFLAGS-tst-initordera3.so): Likewise.
16792         (LDFLAGS-tst-initordera4.so): Likewise.
16793         (LDFLAGS-tst-initorderb2.so): Likewise.
16794         (LDFLAGS-noload): Likewise.
16795         (LDFLAGS-next): Likewise.
16796         (LDFLAGS-order2mod1.so): Likewise.
16797         (LDFLAGS-order2mod2.so): Likewise.
16798         (LDFLAGS-tst-initorder2): Likewise.
16799         (LDFLAGS-tst-initorder2a.so): Likewise.
16800         (LDFLAGS-tst-initorder2b.so): Likewise.
16801         (LDFLAGS-tst-initorder2c.so): Likewise.
16802         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16803
16804 2012-05-02  David S. Miller  <davem@davemloft.net>
16805
16806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16807
16808 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16809
16810         [BZ #14055]
16811         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16812
16813 2012-05-02  Andreas Jaeger  <aj@suse.de>
16814
16815         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16816         since we manipulate rounding mode.
16817         (CPPFLAGS-test-idouble.c): Likewise.
16818         (CPPFLAGS-test-ifloat.c): Likewise.
16819         (CFLAGS-test-ldouble.c): Likewise.
16820         (CFLAGS-test-double.c): Likewise.
16821         (CFLAGS-test-float.c): Likewise.
16822         (CFLAGS-test-misc.c): Likewise.
16823         (CFLAGS-test-test-fenv.c): Likewise.
16824
16825 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16826
16827         [BZ #2550]
16828         [BZ #2570]
16829         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16830         comparisons to determine direction to adjust input.
16831
16832 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16833
16834         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16835         output to the target.
16836
16837         * scripts/localplt.awk: New file.
16838         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16839         (check-localplt-CFLAGS): Variable removed.
16840         ($(all-built-dso:=.jmprel)): New static pattern rule.
16841         (generated): Add those targets.
16842         (localplt-built-dso): New variable.
16843         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16844
16845         * elf/check-localplt.c: File removed.
16846
16847         * scripts/check-execstack.awk: New file.
16848         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16849         (check-execstack-CFLAGS): Variable removed.
16850         ($(objpfx)check-execstack.h): Target removed.
16851         ($(objpfx)execstack-default): New target.
16852         (generated): Add that instead of check-execstack.h.
16853         ($(all-built-dso:=.phdr)): New static pattern rule.
16854         (generated): Add those targets.
16855         * elf/check-execstack.c: File removed.
16856
16857         * scripts/check-textrel.awk: New file.
16858         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16859         (check-textrel-CFLAGS): Variable removed.
16860         (all-built-dso): Use := to define.o
16861         ($(all-built-dso:=.dyn)): New static pattern rule.
16862         (generated): Add those targets.
16863         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16864         * config.make.in (READELF): New substituted variable.
16865         * elf/check-textrel.c: File removed.
16866
16867 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16868
16869         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16870         allow.
16871         * conform/data/ctype.h-data [C99-based standards] (isblank):
16872         Expect function.
16873         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16874         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16875         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16876         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16877         Specify type.  Require positive value.
16878         (EILSEQ): Likewise.
16879         (ERANGE): Likewise.
16880         [ISO || POSIX] (EILSEQ): Do not expect.
16881         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16882         Specify type.  Require positive value.
16883         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16884         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16885         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16886         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16887         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16888         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16889         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16890         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16891         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16892         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16893         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16894         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16895         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16896         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16897         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16898         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16899         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16900         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16901         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16902         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16903         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16904         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16905         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16906         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16907         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16908         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16909         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16910         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16911         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16912         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16913         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16914         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16915         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16916         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16917         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16918         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16919         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16920         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16921         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16922         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16923         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16924         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16925         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16926         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16927         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16928         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16929         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16930         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16931         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16932         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16933         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16934         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16935         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16936         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16937         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16938         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16939         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16940         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16941         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16942         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16943         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16944         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16945         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16946         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16947         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16948         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16949         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16950         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16951         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16952         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16953         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16954         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16955         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16956         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16957         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16958         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16959         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16960         Require >= 2.
16961         (FLT_ROUNDS): Expect as macro, not constant.
16962         (FLT_MANT_DIG): Use macro-int-constant.
16963         (DBL_MANT_DIG): Likewise.
16964         (LDBL_MANT_DIG): Likewise.
16965         (FLT_DIG): Likewise.
16966         (DBL_DIG): Likewise.
16967         (LDBL_DIG): Likewise.
16968         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16969         (DBL_MIN_EXP): Likewise.
16970         (LDBL_MIN_EXP): Likewise.
16971         (FLT_MAX_EXP): Use macro-int-constant.
16972         (DBL_MAX_EXP): Likewise.
16973         (LDBL_MAX_EXP): Likewise.
16974         (FLT_MAX_10_EXP): Likewise.
16975         (DBL_MAX_10_EXP): Likewise.
16976         (LDBL_MAX_10_EXP): Likewise.
16977         (FLT_MAX): Use macro-constant.
16978         (DBL_MAX): Likewise.
16979         (LDBL_MAX): Likewise.
16980         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16981         (DBL_EPSILON): Likewise.
16982         (LDBL_EPSILON): Likewise.
16983         (FLT_MIN): Likewise.
16984         (DBL_MIN): Likewise.
16985         (LDBL_MIN): Likewise.
16986         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16987         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16988         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16989         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16990         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16991         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16992         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16993         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16994         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16995         [ISO11] (FLT_TRUE_MIN): Likewise.
16996         [ISO11] (LDBL_TRUE_MIN): Likewise.
16997         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16998         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16999         (SCHAR_MIN): Use macro-int-constant.  Specify type.
17000         (SCHAR_MAX): Likewise.
17001         (UCHAR_MAX): Likewise.
17002         (CHAR_MIN): Likewise.
17003         (CHAR_MAX): Likewise.
17004         (MB_LEN_MAX): Use macro-int-constant.
17005         (SHRT_MIN): Use macro-int-constant.  Specify type.
17006         (SHRT_MAX): Likewise.
17007         (USHRT_MAX): Likewise.
17008         (INT_MAX): Likewise.
17009         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
17010         bound negative.
17011         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17012         bound with "U".
17013         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17014         bound with "L".
17015         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
17016         bound negative.  Suffix upper bound with "L".
17017         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
17018         bound with "UL".
17019         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
17020         Specify type.
17021         [C99-based standards] (LLONG_MAX): Likewise.
17022         [C99-based standards] (ULLONG_MAX): Likewise.
17023         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
17024         == 0.
17025         [ISO11] (max_align_t): Require type.
17026         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17027
17028         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
17029         from $CFLAGS, without defining away __attribute__ calls.
17030         (checknamespace): Use $CFLAGS_namespace.
17031
17032         * conform/conformtest.pl (@keywords): Only include C99 keywords
17033         for standards based on C99 or C11.
17034
17035         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
17036         Disable tests.
17037         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
17038         UNIX98]: Likewise.
17039
17040         * conform/conformtest.pl: Handle "macro-int-constant" and test for
17041         usability of symbols in #if.
17042
17043         * conform/conformtest.pl: If macro or constant types start
17044         "promoted:", expect the symbol to be of the following type
17045         promoted by the integer promotions.
17046
17047         * conform/conformtest.pl: Parse all "constant" and "macro" lines
17048         in one place.  Also handle "macro-constant".
17049
17050         * conform/conformtest.pl: Only accept expected macro values with
17051         "==".  Parse all "macro" lines in one place.
17052         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
17053
17054         * conform/conformtest.pl: Handle braced types on "constant" lines
17055         instead of handling "typed-constant".
17056         * conform/data/signal.h-data: Use "constant" instead of
17057         "typed-constant".
17058
17059         * conform/conformtest.pl: Handle "optional-" at start of lines in
17060         one place rather than duplicating several cases.  Handle each
17061         format of "macro" line with initial "optional-".
17062
17063         * conform/conformtest.pl: Only accept expected constant or
17064         optional-constant values with "==".  Parse all "constant" lines in
17065         one place.  Parse all "optional-constant" lines in one place.
17066         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
17067         * conform/data/fmtmsg.h-data: Likewise.
17068         * conform/data/netinet/in.h-data: Likewise.
17069         * conform/data/tar.h-data: Likewise.
17070         * conform/data/limits.h-data: Use "==" form on "constant" and
17071         "optional-constant" lines.
17072
17073         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
17074         Use -std=c99 for XOPEN2K.
17075         (@knownproblems): Remove.
17076         (newtoken): Don't check %isknown.
17077
17078         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
17079         Do not expect macro.
17080         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
17081         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
17082         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
17083         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
17084         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
17085         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
17086         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
17087         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
17088         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
17089         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
17090         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
17091         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
17092         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
17093         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
17094         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
17095         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
17096         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
17097         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
17098         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
17099         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
17100         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
17101         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
17102         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
17103         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
17104         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
17105         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
17106         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
17107         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
17108         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
17109         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
17110         [XPG3] (acosh): Likewise.
17111         [XPG3] (asinh): Likewise.
17112         [XPG3] (atanh): Likewise.
17113         [XPG3] (cbrt): Likewise.
17114         [XPG3] (expm1): Likewise.
17115         [XPG3] (ilogb): Likewise.
17116         [XPG3] (log1p): Likewise.
17117         [XPG3] (logb): Likewise.
17118         [XPG3] (nextafter): Likewise.
17119         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
17120         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
17121         [XPG3] (remainder): Likewise.
17122         [XPG3] (rint): Likewise.
17123         [XPG3 || XPG4 || UNIX98] (round): Likewise.
17124         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
17125         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
17126         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
17127         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
17128         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
17129         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
17130         [UNIX98 || XOPEN2K] (scalb): Expect.
17131         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
17132         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
17133         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
17134         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
17135         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
17136         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
17137         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
17138         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
17139         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
17140         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
17141         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
17142         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
17143         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
17144         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
17145         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
17146         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
17147         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
17148         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
17149         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
17150         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
17151         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
17152         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
17153         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
17154         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
17155         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
17156         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
17157         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
17158         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
17159         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
17160         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
17161         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
17162         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
17163         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
17164         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
17165         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
17166         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
17167         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
17168         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
17169         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
17170         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
17171         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
17172         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
17173         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
17174         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
17175         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
17176         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
17177         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
17178         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
17179         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
17180         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
17181         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
17182         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
17183         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
17184         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
17185         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
17186         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
17187         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
17188         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
17189         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
17190         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
17191         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
17192         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
17193         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
17194         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
17195         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
17196         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
17197         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
17198         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
17199         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
17200         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
17201         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
17202         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
17203         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
17204         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
17205         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
17206         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
17207         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
17208         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
17209         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
17210         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
17211         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
17212         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
17213         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
17214         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
17215         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
17216         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
17217         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
17218         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
17219         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
17220         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
17221         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
17222         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
17223         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
17224         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
17225         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
17226         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
17227         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
17228         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
17229         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
17230         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
17231         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
17232         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
17233         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
17234         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
17235         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
17236         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
17237         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
17238         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
17239         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
17240         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
17241         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
17242         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
17243         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
17244         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
17245         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
17246         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
17247         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
17248         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
17249         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
17250         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
17251         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
17252         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
17253         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
17254         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
17255         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
17256         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
17257         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
17258         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
17259         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
17260         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
17261         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
17262         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
17263         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
17264         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
17265         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
17266         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
17267         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
17268
17269         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
17270         _XOPEN_SOURCE_EXTENDED for XPG4.
17271
17272         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
17273
17274         * Makeconfig (localtime): Remove variable.
17275         (inst_localtime-file): Likewise.
17276
17277 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17278
17279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
17280         Update.
17281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17282         Update.
17283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
17284         Update.
17285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
17286         Update.
17287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
17288         Update.
17289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
17290         Update.
17291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17292         Update.
17293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
17294         Update.
17295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17296         Update.
17297
17298 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17299
17300         [BZ #2550]
17301         [BZ #2570]
17302         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
17303         comparisons to determine direction to adjust input.
17304         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17305         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
17306         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17307         Likewise.
17308         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17309         Likewise.
17310         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17311         Likewise.
17312         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17313         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17314         Likewise.
17315         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17316         Likewise.
17317         * math/libm-test.inc (nexttoward_test): Add more tests.
17318
17319 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17320
17321         [BZ #14040]
17322         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
17323         in version GLIBC_2.1, not GLIBC_2.0.
17324         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
17325         Likewise.
17326
17327 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
17328
17329         [BZ #13942]
17330         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
17331         (1 - x) * (1 + x).
17332         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17333         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
17334         * math/libm-test.inc (acos_test): Add more tests.
17335         (asin_test): Likewise.
17336         * sysdeps/i386/fpu/libm-test-ulps: Update.
17337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17338
17339         [BZ #14034]
17340         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
17341         of square root.
17342         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
17343         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17344         * math/libm-test.inc (acos_test_tonearest): New function.
17345         (acos_test_towardzero): Likewise.
17346         (acos_test_downward): Likewise.
17347         (acos_test_upward): Likewise.
17348         (asin_test_tonearest): Likewise.
17349         (asin_test_towardzero): Likewise.
17350         (asin_test_downward): Likewise.
17351         (asin_test_upward): Likewise.
17352         (main): Call the new functions.
17353         * sysdeps/i386/fpu/libm-test-ulps: Update.
17354         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17355
17356         [BZ #13884]
17357         [BZ #13924]
17358         * math/e_exp10.c: Include <float.h>.
17359         (__ieee754_exp10): Handle underflow here rather than multiplying
17360         large negative argument by M_LN10.
17361         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
17362         of __ieee754_expf.
17363         * math/e_exp10l.c: Include <float.h>.
17364         (__ieee754_exp10l): Handle underflow here rather than multiplying
17365         large negative argument by M_LN10l.
17366         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
17367         spurious overflow exception on underflow.
17368
17369 2012-04-29  Marek Polacek  <polacek@redhat.com>
17370
17371         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
17372         (__fortify_function): New macro.
17373         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
17374         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
17375         __extern_always_inline.
17376         * libio/bits/stdio2.h: Likewise.
17377         * libio/bits/stdio.h: Likewise.
17378         * string/string.h: Likewise.
17379         * string/bits/string3.h: Likewise.
17380         * include/stdio.h: Likewise.
17381         * stdlib/bits/stdlib.h: Likewise.
17382         * stdlib/stdlib.h: Likewise.
17383         * rt/bits/mqueue2.h: Likewise.
17384         * rt/mqueue.h: Likewise.
17385         * posix/bits/unistd.h: Likewise.
17386         * posix/unistd.h: Likewise.
17387         * io/bits/poll2.h: Likewise.
17388         * io/bits/fcntl2.h: Likewise.
17389         * io/fcntl.h: Likewise.
17390         * io/sys/poll.h: Likewise.
17391         * misc/bits/syslog.h: Likewise.
17392         * misc/bits/syslog-ldbl.h: Likewise.
17393         * misc/sys/syslog.h: Likewise.
17394         * socket/bits/socket2.h: Likewise.
17395         * socket/sys/socket.h: Likewise.
17396         * debug/tst-chk1.c: Likewise.
17397         * wcsmbs/bits/wchar2.h: Likewise.
17398         * wcsmbs/bits/wchar-ldbl.h: Likewise.
17399         * wcsmbs/wchar.h: Likewise.
17400
17401 2012-04-29  Andreas Jaeger  <aj@suse.de>
17402
17403         * Makerules (tests): Remove enable-check-abi protection.
17404         (check-abi-warn): Remove.
17405         (check-abi-%): Remove check-abi-warn usage.
17406
17407         * configure.in: Remove check-abi configure option.
17408         * configure: Regenerated.
17409         * config.make.in (enable-check-abi): Remove.
17410
17411 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
17412
17413         [BZ #14033]
17414         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
17415         double functions to double *_finite functions.
17416
17417         [BZ #13941]
17418         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
17419         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
17420         LDBL_MIN_EXP.
17421         * stdio-common/Makefile (tests): Add tst-sprintf3.
17422         * stdio-common/tst-sprintf3.c: New file.
17423
17424         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
17425         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
17426
17427 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17428
17429         * conform/conformtest.pl: Remove duplicate typed-constant
17430         handling.
17431
17432 2012-04-28  David S. Miller  <davem@davemloft.net>
17433
17434         * Makerules (%.abilist): Add vpath on sysdep_dirs.
17435         (check-abi-%): Remove AWK script prerequisite and explicit
17436         abilist directory.
17437         (check-abi): Rewrite to just diff the symlist with the abilist.
17438         (config-tls, config-abi-config): Delete, no longer used.
17439         (update-abi-%): Remove AWK script and explicit abilist directory.
17440         (update-abi): Rewrite to simply compare and conditionally copy the
17441         symlist and the sysdep abilist file.  Remove update-abi-config
17442         checks.
17443         * abilist/ld.abilist: Remove.
17444         * abilist/libBrokenLocale.abilist: Remove.
17445         * abilist/libanl.abilist: Remove.
17446         * abilist/libcrypt.abilist: Remove.
17447         * abilist/libdl.abilist: Remove.
17448         * abilist/librt.abilist: Remove.
17449         * abilist/libthread_db.abilist: Remove.
17450         * abilist/libutil.abilist: Remove.
17451         * scripts/extract-abilist.awk: Remove.
17452         * scripts/merge-abilist.awk: Remove.
17453         * sysdeps/generic/libcidn.abilist: New file.
17454         * sysdeps/generic/libnss_compat.abilist: New file.
17455         * sysdeps/generic/libnss_db.abilist: New file.
17456         * sysdeps/generic/libnss_dns.abilist: New file.
17457         * sysdeps/generic/libnss_files.abilist: New file.
17458         * sysdeps/generic/libnss_hesiod.abilist: New file.
17459         * sysdeps/generic/libnss_nis.abilist: New file.
17460         * sysdeps/generic/libnss_nisplus.abilist: New file.
17461         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
17462         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
17463         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
17464         file.
17465         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
17466         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
17467         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
17468         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
17469         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
17470         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
17471         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
17472         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
17473         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
17474         file.
17475         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
17476         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
17477         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
17478         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
17479         file.
17480         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
17481         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
17482         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
17483         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
17484         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
17485         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
17486         file.
17487         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
17488         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
17489         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
17490         file.
17491         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
17492         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
17493         New file.
17494         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
17495         New file.
17496         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
17497         New file.
17498         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
17499         New file.
17500         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
17501         New file.
17502         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
17503         New file.
17504         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
17505         New file.
17506         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
17507         New file.
17508         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
17509         New file.
17510         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
17511         New file.
17512         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
17513         New file.
17514         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
17515         New file.
17516         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
17517         New file.
17518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
17519         file.
17520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
17521         New file.
17522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
17523         New file.
17524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
17525         file.
17526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
17527         New file.
17528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
17529         New file.
17530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
17531         file.
17532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
17533         New file.
17534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17535         New file.
17536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
17537         New file.
17538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
17539         New file.
17540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
17541         New file.
17542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
17543         New file.
17544         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
17545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
17546         file.
17547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
17548         New file.
17549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
17550         file.
17551         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
17552         file.
17553         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
17554         file.
17555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
17556         file.
17557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
17558         file.
17559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17560         New file.
17561         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
17562         file.
17563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
17564         file.
17565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
17566         New file.
17567         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
17568         file.
17569         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
17570         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
17571         file.
17572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
17573         New file.
17574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
17575         file.
17576         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
17577         file.
17578         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
17579         file.
17580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
17581         file.
17582         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
17583         file.
17584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17585         New file.
17586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
17587         file.
17588         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
17589         file.
17590         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
17591         New file.
17592         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
17593         file.
17594         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17595         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
17596         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
17597         file.
17598         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
17599         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
17600         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
17601         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
17602         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
17603         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
17604         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
17605         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
17606         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
17607         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
17608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
17609         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
17610         file.
17611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
17612         New file.
17613         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
17614         file.
17615         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
17616         file.
17617         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
17618         file.
17619         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
17620         file.
17621         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
17622         file.
17623         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17624         New file.
17625         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17626         New file.
17627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17628         file.
17629         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17630         New file.
17631         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17632         file.
17633         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17635         file.
17636         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17637         New file.
17638         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17639         file.
17640         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17641         file.
17642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17643         file.
17644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17645         file.
17646         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17647         file.
17648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17649         New file.
17650         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17651         New file.
17652         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17653         file.
17654         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17655         New file.
17656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17657         file.
17658
17659 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17660
17661         * conform/conformtest.pl: Fix typo in handling typed-constant from
17662         allow-header.
17663
17664 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17665
17666         * README: Cut down references to pre-2.6 Linux kernels and
17667         Linuxthreads.  Update lists of configurations in libc and ports
17668         and sort alphabetically.  Say "or newer" with Linux kernel version
17669         requirements.
17670
17671         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17672
17673 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17674
17675         [BZ #887]
17676         * math/libm-test.inc (logb_test_downward): New test to expose
17677         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17678         rounding mode.
17679
17680 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17681
17682         [BZ #14027]
17683         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17684         to be done.
17685         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17686         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17687
17688 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17689
17690         * sysdeps/unix/i386/brk.S: Remove file.
17691         * sysdeps/unix/i386/dl-brk.S: Likewise.
17692         * sysdeps/unix/i386/pipe.S: Likewise.
17693         * sysdeps/unix/i386/sigreturn.S: Likewise.
17694         * sysdeps/unix/i386/syscall.S: Likewise.
17695         * sysdeps/unix/i386/vfork.S: Likewise.
17696         * sysdeps/unix/i386/wait.S: Likewise.
17697
17698         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17699         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17700
17701         * configure.in (arm*-none*): Do not allow without
17702         --enable-hacker-mode.
17703         (netbsd*): Remove case setting base_os.
17704         (386bsd*): Likewise.
17705         (freebsd*): Likewise.
17706         (bsdi*): Likewise.
17707         (osf*): Likewise.
17708         (sunos*): Likewise.
17709         (ultrix*): Likewise.
17710         (newsos*): Likewise.
17711         (dynix*): Likewise.
17712         (*bsd*): Likewise.
17713         (sysv*): Likewise.
17714         (isc*): Likewise.
17715         (esix*): Likewise.
17716         (sco*): Likewise.
17717         (minix*): Likewise.
17718         (irix4*): Likewise.
17719         (irix6*): Likewise.
17720         (solaris[2-9]*): Likewise.
17721         (none): Likewise.
17722         * configure: Regenerated.
17723
17724 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17725
17726         [BZ #11521]
17727         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17728         overflow or cancellation in calculating denominator.
17729         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17730         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17731         down expression to avoid unexpected rounding in newer GCCs.
17732         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17733
17734 2012-04-26  David S. Miller  <davem@davemloft.net>
17735
17736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17737         long-double compat symbols.
17738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17751
17752 2012-04-25  David S. Miller  <davem@davemloft.net>
17753
17754         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17755         HWCAP_* values only after the memory barriers have been defined.
17756         (atomic_full_barrier): Define.
17757         (atomic_read_barrier): Define.
17758         (atomic_write_barrier): Define.
17759
17760 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17761
17762         * shlib-versions: Add libgcc_s version information.
17763         * sysdeps/generic/libgcc_s.h: Remove.
17764         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17765         libgcc_s.h.
17766         * sysdeps/gnu/unwind-resume.c: Likewise.
17767         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17768
17769 2012-04-25  David S. Miller  <davem@davemloft.net>
17770
17771         * sysdeps/unix/sparc/brk.S: Delete.
17772         * sysdeps/unix/sparc/dl-brk.S: Delete.
17773         * sysdeps/unix/sparc/pipe.S: Delete.
17774         * sysdeps/unix/sparc/sysdep.S: Delete.
17775         * sysdeps/unix/sparc/sysdep.h: Delete.
17776         * sysdeps/unix/sparc/vfork.S: Delete.
17777         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17778         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17779         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17780         ret_ERRVAL, r0, r1, MOVE): Define.
17781         (JUMPTARGET): Remove.
17782         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17783         sysdeps/unix/sparc/sysdep.h
17784         (ENTRY, END): Remove.
17785         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17786
17787 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17788
17789         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17790         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17791         -DIS_IN_build.
17792
17793         * timezone/README: Update upstream location and email address for
17794         tzcode and tzdata.
17795         * timezone/zdump.c: Update from tzcode 2012b.
17796         * timezone/zic.c: Likewise.
17797
17798         * configure.in (libc_cv_as_needed): Remove test.
17799         * configure: Regenerated.
17800         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17801         conditional definition.
17802         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17803         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17804         * config.make.in (have-as-needed): Remove variable.
17805
17806 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17807             Paul Pluzhnikov  <ppluzhnikov@google.com>
17808
17809         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17810         strings correctly.
17811
17812 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17813
17814         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17815         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17816         * sysdeps/sh/strlen.S: Likewise.
17817
17818 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17819
17820         * sysdeps/unix/fork.S: Remove file.
17821         * sysdeps/unix/i386/fork.S: Likewise.
17822         * sysdeps/unix/sparc/fork.S: Likewise.
17823
17824         * sysdeps/unix/system.c: Remove file.
17825         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17826
17827         * sysdeps/unix/getegid.S: Remove file.
17828         * sysdeps/unix/geteuid.S: Likewise.
17829
17830 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17831
17832         * scripts/check-localplt.awk: New file.
17833         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17834         of diff.
17835         * scripts/data/localplt-generic.data: Add a comment.
17836
17837         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17838         NODE when __dir_mkfile failed.
17839         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17840         Reported by Ludovic Courtès <ludo@gnu.org>.
17841
17842 2012-04-24  Andreas Jaeger  <aj@suse.de>
17843
17844         * Makerules (common-clean): Also remove gen-as-const-headers
17845         files.
17846
17847 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17848
17849         * Makerules (native-compile): Do not change working directory for
17850         build.  Use $(OUTPUT_OPTION) in command.
17851         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17852
17853 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17854
17855         [BZ #13886]
17856         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17857         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17858         * math/libm-test.inc (floor_test): Add more tests.
17859         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17860
17861 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17862
17863         * sysdeps/unix/getdents.c: Remove file.
17864         * sysdeps/unix/sysv/getdents.c: Likewise.
17865         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17866
17867         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17868         sysdeps/unix/mman/syscalls.list.
17869         (mmap): Likewise.
17870         (mprotect): Likewise.
17871         (msync): Likewise.
17872         (munmap): Likewise.
17873         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17874         * sysdeps/unix/mman/syscalls.list: Remove.
17875         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17876
17877         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17878         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17879         * configure: Regenerated.
17880         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17881         $(libgcc_s_suffix).
17882         * config.make.in (libgcc_s_suffix): Remove variable.
17883
17884 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17885
17886         * sysdeps/unix/sysv/gethostname.c: Move to ...
17887         * sysdeps/posix/gethostname.c: ... here.
17888
17889         * sysdeps/unix/execve.S: Remove file.
17890
17891         * sysdeps/unix/_exit.S: Remove file.
17892
17893 2012-04-23  Andreas Jaeger  <aj@suse.de>
17894
17895         [BZ #13739]
17896         * manual/Makefile: Remove make dist support, there's no
17897         need for a stand-alone documentation tar ball.
17898         (TEXI2DVI): Define always, it's not in Makeconfig.
17899         (dist): Removed.
17900         (tar-it): Removed.
17901         (edition): Removed.
17902         (glibc-doc-$(edition).tar): Removed
17903         (%.Z): Removed.
17904         (%.gz): Removed.
17905         (%.uu): Removed.
17906         (ETAGS): Remove, it's in Makeconfig.
17907         (move-if-change): Remove, it's in Makeconfig.
17908
17909 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17910
17911         [BZ #13970]
17912         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17913         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17914         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17915         (strtod_l, strtof_l, strtold_l): Remove __wur.
17916         It is not necessarily an error to ignore strtol's return value.
17917         One can reliably look at the stored endptr to decide whether
17918         the number had valid syntax.
17919
17920 2012-04-21  Andreas Jaeger  <aj@suse.de>
17921
17922         [BZ #13739]
17923         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17924
17925 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17926
17927         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17928         * sysdeps/unix/sysv/Versions: Remove file.
17929
17930 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17931
17932         [BZ #13927]
17933         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17934
17935 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17936
17937         [BZ #7064]
17938         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17939         version from __vm86.
17940
17941 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17942
17943         * sysdeps/unix/common/lxstat.c: Remove file.
17944         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17945
17946         * sysdeps/unix/sysv/Makefile: Remove file.
17947
17948         * sysdeps/unix/sysv/direct.h: Remove file.
17949
17950         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17951         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17952         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17953         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17954         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17955         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17956         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17957
17958         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17959
17960         * sysdeps/unix/xmknod.c: Remove file.
17961         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17962
17963         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17964
17965         * sysdeps/unix/sysv/i386/time.S: Remove file.
17966
17967         * sysdeps/unix/fxstat.c: Remove file.
17968         * sysdeps/unix/xstat.c: Likewise.
17969         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17970
17971         * sysdeps/unix/sysv/sigaction.c: Remove file.
17972
17973         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17974         (sysdep_headers): Remove variable.
17975         [termio.h not in sysdep_headers] (generated): Likewise.
17976         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17977         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17978         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17979         * sysdeps/unix/sysv/tcflow.c: Likewise.
17980         * sysdeps/unix/sysv/tcflush.c: Likewise.
17981         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17982         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17983         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17984         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17985         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17986
17987         * sysdeps/unix/siglist.c: Remove file.
17988
17989         * sysdeps/unix/getppid.S: Remove file.
17990
17991         * sysdeps/unix/mkdir.c: Remove file.
17992         * sysdeps/unix/rmdir.c: Likewise.
17993
17994 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17995
17996         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17997         ERR_MAX value.
17998         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17999         errlist-compat value.
18000
18001 2012-04-18  David S. Miller  <davem@davemloft.net>
18002
18003         * sysdeps/generic/memcopy.h (reg_char): Delete.
18004         * debug/strcat_chk.c: Use char, not reg_char.
18005         * debug/strcpy_chk.c: Likewise.
18006         * debug/strncat_chk.c: Likewise.
18007         * debug/strncpy_chk.c: Likewise.
18008         * string/memchr.c: Likewise.
18009         * string/memrchr.c: Likewise.
18010         * string/rawmemchr.c: Likewise.
18011         * string/strcat.c: Likewise.
18012         * string/strchr.c: Likewise.
18013         * string/strchrnul.c: Likewise.
18014         * string/strcmp.c: Likewise.
18015         * string/strcpy.c: Likewise.
18016         * string/strncat.c: Likewise.
18017         * string/strncmp.c: Likewise.
18018         * string/strncpy.c: Likewise.
18019
18020 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18021
18022         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
18023         __builtin_memcopy is called when src and dest ranges are known to not
18024         overlap.
18025
18026 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18027
18028         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
18029         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
18030         fwd_align_merge macro call.
18031         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
18032         bwd_align_merge macro call.
18033         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18034
18035 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
18036
18037         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
18038         bwd_align_merge macros.
18039         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
18040         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
18041         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
18042
18043 2012-04-18  David S. Miller  <davem@davemloft.net>
18044
18045         * sysdeps/sparc/sparc64/memcopy.h: Delete.
18046
18047 2012-04-18  Andreas Jaeger  <aj@suse.de>
18048
18049         [BZ# 6794]
18050         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
18051         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
18052         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18053
18054         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
18055         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
18056         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18057
18058         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
18059         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
18060         Adjust for changed ldbl-128 files.
18061
18062         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
18063         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
18064         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
18065
18066 2012-04-17  David S. Miller  <davem@davemloft.net>
18067
18068         * sysdeps/sparc/sparc32/memcopy.h: Delete.
18069
18070 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
18071
18072         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
18073         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
18074         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
18075         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
18076         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
18077         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
18078
18079 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18080
18081         [BZ #6794]
18082         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
18083         * math/libm-test.inc: Add ilogb errno and exception tests.
18084         * math/w_ilogb.c: New file: ilogb wrapper.
18085         * math/w_ilogbf.c: New file: ilogbf wrapper.
18086         * math/w_ilogbl.c: New file: ilogbl wrapper.
18087         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
18088         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
18089         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
18090         exception being thrown with 0.0 as argument.
18091         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
18092         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
18093         exception being thrown with 0.0 as argument.
18094         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
18095         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18096         exception being thrown with 0.0 as argument.
18097         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
18098         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
18099         exception being thrown with 0.0 as argument.
18100         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
18101         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
18102         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
18103         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
18104         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
18105         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
18106         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
18107         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
18108         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
18109
18110 2012-04-17  Petr Baudis  <pasky@ucw.cz>
18111
18112         * include/sys/uio.h: Change __vector to __iovec to avoid clash
18113         with altivec.
18114
18115 2012-04-16  Marek Polacek  <polacek@redhat.com>
18116
18117         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
18118
18119 2012-04-16  Marek Polacek  <polacek@redhat.com>
18120
18121         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
18122         operands of fdivp instruction.
18123
18124 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18125
18126         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
18127         * elf/tst-auditmod3b.c: Likewise.
18128         * elf/tst-auditmod4b.c: Likewise.
18129         * elf/tst-auditmod5b.c: Likewise.
18130         * elf/tst-auditmod6b.c: Likewise.
18131         * elf/tst-auditmod6c.c: Likewise.
18132         * elf/tst-auditmod7b.c: Likewise.
18133         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
18134         * sysdeps/x86_64/preconfigure.in: Likewise.
18135         * sysdeps/x86_64/preconfigure: Regenerated.
18136
18137 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18138
18139         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
18140         __ILP32__.
18141
18142 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
18143
18144         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18145         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
18146
18147 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
18148
18149         [BZ #13973]
18150         * locale/iso-639.def: Fix gl language name. Spotted by
18151         Yaron Shahrabani.
18152
18153 2012-04-12  Roland McGrath  <roland@hack.frob.com>
18154
18155         [BZ #2074]
18156         * libio/libio.h (__io_write_fn): Update comment.
18157
18158 2012-04-12  Petr Baudis  <pasky@ucw.cz>
18159
18160         [BZ #2074]
18161         * stdio.texi (Hook Functions): The user provided writer function
18162         is not allowed to return -1.
18163
18164 2012-04-11  David S. Miller  <davem@davemloft.net>
18165
18166         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18167
18168 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
18169
18170         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
18171         Add a leading slash to rtkaio.
18172
18173 2012-04-11  Jim Meyering  <meyering@redhat.com>
18174
18175         [BZ #11959]
18176         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
18177         It is not necessarily an error to ignore fwrite's return
18178         value.  One can reliably use ferror to test for errors after
18179         the fact.
18180
18181 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18182
18183         * bits/types.h (__snseconds_t): New type.
18184         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
18185
18186         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
18187         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18188         (__SNSECONDS_T_TYPE): Likewise.
18189         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18190         (__SNSECONDS_T_TYPE): Likewise.
18191         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18192         (__SNSECONDS_T_TYPE): Likewise.
18193
18194 2012-04-10  Andreas Jaeger  <aj@suse.de>
18195
18196         [BZ #2636]
18197         * manual/time.texi (Processor Time): Return type of times is
18198         elapsed real time since an arbitrary point in the past.
18199         (CPU Time): Move CLK_TCK from here...
18200         (Processor Time): ...to here.  Correct description.
18201         * manual/conf.texi (Constants for Sysconf): Correct description of
18202         _SC_CLK_TCK.
18203
18204 2012-04-10  David S. Miller  <davem@davemloft.net>
18205
18206         [BZ #13967]
18207         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
18208         where the is a gap between DT_REL(A) and DT_JMPREL.
18209
18210 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
18211
18212         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
18213         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18214         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18215
18216 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18217
18218         * elf/dl-support.c (_dl_inhibit_cache): New variable.
18219         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
18220         (dl_main): Handle --inhibit-cache.
18221         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
18222         _dl_inhibit_cache.
18223         * elf/dl-load.c (_dl_map_object): Use it.
18224         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
18225
18226 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18227
18228         [BZ #13872]
18229         * sysdeps/i386/fpu/e_powl.S (p78): New object.
18230         (__ieee754_powl): Saturate large exponents rather than testing for
18231         overflow of y*log2(x).
18232         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18233         * math/libm-test.inc (pow_test): Do not permit spurious overflow
18234         exceptions.
18235
18236         [BZ #11521]
18237         * math/s_ctan.c: Include <float.h>.
18238         (__ctan): Avoid internal overflow or cancellation in calculating
18239         denominator.
18240         * math/s_ctanf.c: Likewise.
18241         * math/s_ctanl.c: Likewise.
18242         * math/s_ctanh.c: Likewise.
18243         * math/s_ctanhf.c: Likewise.
18244         * math/s_ctanhl.c: Likewise.
18245         * math/libm-test.inc (ctan_test): Add more tests.
18246         (ctanh_test): Likewise.
18247         * sysdeps/i386/fpu/libm-test-ulps: Update.
18248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18249
18250 2012-04-09  Andreas Jaeger  <aj@suse.de>
18251
18252         [BZ #6894]
18253         * manual/filesys.texi (Directory Entries): Mention that d_namlen
18254         is an optional BSD extension.
18255
18256         [BZ #10254]
18257         * manual/stdio.texi (Opening Streams): Document additional fopen
18258         parameters.
18259
18260 2012-04-09  Roland McGrath  <roland@hack.frob.com>
18261
18262         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
18263         %eax without telling the compiler.
18264
18265 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
18266
18267         [BZ # 13963]
18268         * manual/install.texi: Use sourceware.org.
18269
18270 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18271
18272         [BZ #13873]
18273         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
18274         (__ieee754_pow): Generate overflow and underflow using huge*huge
18275         and tiny*tiny rather than just returning constant infinity or zero
18276         for large exponents.
18277         * math/libm-test.inc (pow_test): Require overflow exceptions for
18278         applicable cases of large exponents.
18279
18280         [BZ #706]
18281         * sysdeps/i386/fpu/e_pow.S (p10): New object.
18282         (__ieee754_pow): Use iterative multiplication algorithm only for
18283         integer exponents with absolute value below 1024.  Check for odd
18284         integer exponents when using algorithm for real exponents.
18285         * math/libm-test.inc (pow_test): Add more tests.
18286         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18287
18288 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
18289
18290         [BZ #13705]
18291         * math/libm-test.inc (exp_test): Do not allow overflow exception
18292         on underflow test.
18293
18294 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
18295
18296         [BZ #13705]
18297         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
18298         instead of __kernel_standard_f.
18299
18300 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
18301
18302         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
18303         * sysdeps/x86_64/memset_chk.S: Likewise.
18304
18305 2012-04-08  Andreas Jaeger  <aj@suse.de>
18306
18307         [BZ #10153]
18308         * manual/startup.texi (Environment Access): Describe return value
18309         for putenv and setenv.
18310
18311         [BZ #6895]
18312         * manual/filesys.texi (Directory Entries): Add description for
18313         DT_LNK.
18314
18315         [BZ #6890]
18316         * manual/filesys.texi (Directory Entries): Clarify that it's file
18317         system not operating system in the description of DT_UNKNOWN.
18318
18319         [BZ #6578]
18320         * manual/syslog.texi (closelog): Fix reference, it's openlog.
18321
18322 2012-04-08  Stephen Compall  <s11@member.fsf.org>
18323
18324         [BZ #6649]
18325         * manual/llio.texi (Opening and Closing Files): Add cross
18326         reference to explain mode argument.
18327
18328 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
18329
18330         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
18331         * sysdeps/x86_64/memset_chk.S: Likewise.
18332
18333 2012-04-07  David S. Miller  <davem@davemloft.net>
18334
18335         * elf/elf.h (R_SPARC_WDISP10): Define.
18336         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
18337         R_SPARC_SIZE32.
18338         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
18339         R_SPARC_SIZE64 and R_SPARC_H34.
18340
18341 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
18342
18343         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
18344         conditions and remove no longer applicable assertion.
18345
18346 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18347
18348         * bits/byteswap.h: Include <features.h>.
18349         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18350         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18351
18352 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18353
18354         * bits/byteswap.h (__bswap_16): Removed.
18355         Include <bits/byteswap-16.h> to get __bswap_16.
18356         * sysdeps/i386/bits/byteswap.h: Likewise.
18357         * sysdeps/s390/bits/byteswap.h: Likewise.
18358         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18359         * bits/byteswap-16.h: New file.
18360         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18361         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18362         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
18363         * string/Makefile (headers): Add bits/byteswap-16.h.
18364
18365 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18366
18367         [BZ #13895]
18368         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
18369         extra indirection.
18370         * nss/Makefile (tests-static, tests): Add tst-nss-static.
18371         * nss/tst-nss-static.c: New.
18372
18373 2012-04-06  Robert Millan  <rmh@gnu.org>
18374
18375         [BZ #6486]
18376         * manual/llio.texi (File Position Primitive): lseek
18377         refers to WHENCE when it really means OFFSET.
18378
18379 2012-04-06  Andreas Jaeger  <aj@suse.de>
18380
18381         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
18382         strncmp declarations.
18383
18384         * abilist/libc.abilist: Add __poll and __ppoll.
18385
18386 2012-04-05  David S. Miller  <davem@davemloft.net>
18387
18388         * scripts/check-local-headers.sh: Accept a host triplet in the
18389         path matched by the exclude regexp.
18390
18391         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
18392         definition.
18393         * sysdeps/powerpc/powerpc32/dl-machine.h
18394         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
18395         * sysdeps/s390/s390-32/dl-machine.h
18396         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18397         * sysdeps/sparc/sparc32/dl-machine.h
18398         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18399         * sysdeps/sparc/sparc64/dl-machine.h
18400         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18401
18402         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
18403         lazy binding.
18404         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
18405         undefined symbol errors.
18406
18407         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
18408         DT_NEEDED entries.
18409
18410 2012-04-05  Michael Matz  <matz@suse.de>
18411
18412         [BZ #13592]
18413         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
18414
18415 2012-04-05  Andreas Jaeger  <aj@suse.de>
18416
18417         [BZ #13908]
18418         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
18419         comment.
18420
18421 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18422
18423         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
18424         which ROUND is no valid rounding mode.
18425
18426 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18427
18428         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
18429         read again.
18430         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
18431
18432 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18433
18434         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
18435         an exception using FPU order intentionally.
18436
18437 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18438
18439         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
18440         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
18441         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
18442         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
18443
18444 2012-04-05  Simon Josefsson  <simon@josefsson.org>
18445
18446         [BZ #12340]
18447         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
18448         EINVAL when BUFLEN is too smal.
18449
18450 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18451
18452         [BZ #13553]
18453         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
18454         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
18455
18456 2012-04-03  Andreas Jaeger  <aj@suse.de>
18457
18458         [BZ #13938]
18459         * manual/setjmp.texi (System V contexts): Fix sentence.
18460
18461         [BZ #13926]
18462         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
18463         New macro for this case.
18464         [!__GNUC__] (__bswap_64): New inline function for this case.
18465         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18466         * bits/byteswap.h: Likewise.
18467         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
18468         ull, guard with __GLIBC_HAVE_LONG_LONG.
18469
18470         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
18471         __GLIBC_HAVE_LONG_LONG.
18472
18473         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
18474         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
18475
18476 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18477
18478         [BZ #13691]
18479         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
18480         inptr and inend, rather than using last_ch.
18481
18482 2012-04-02  David S. Miller  <davem@davemloft.net>
18483
18484         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
18485         * stdio-common/printf-parse.h (read_int): Change return type to
18486         'int', return -1 on INT_MAX overflow.
18487         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
18488         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
18489         overflows INT_MAX.  Check for overflow of in-format-string precision
18490         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
18491         SIZE_MAX not INT_MAX for integer overflow test.
18492         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
18493         skip the construct in the format string but do not record anything.
18494         * stdio-common/bug22.c: Adjust to test both width/prevision
18495         INT_MAX overflow as well as total length INT_MAX overflow.  Check
18496         explicitly for proper errno values.
18497
18498 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18499
18500         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
18501         CHAR_MAX.
18502         * string/test-strcmp.c [! WIDE]: Likewise.
18503         * time/tst-mktime2.c: Likewise for INT_MAX.
18504         * string/test-string.h: #include <sys/param.h> for MIN.
18505
18506         * csu/init-first.c (__libc_init_first): Call __ctype_init.
18507         * sysdeps/i386/init-first.c (init): Likewise.
18508         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
18509         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
18510         * sysdeps/sh/init-first.c (init): Likewise.
18511
18512 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
18513
18514         * po/ru.po: Update from translation team.
18515         * po/vi.po: Likewise.
18516
18517 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
18518
18519         * resolv/nss_dns/dns-host.c: Merge copyright years.
18520
18521 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18522
18523         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18524         Optimize memcpy with prefetch if
18525         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
18526         src, dst pointers have unequal 16 byte alignments.
18527
18528 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18529
18530         [BZ #13928]
18531         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
18532         from a CNAME entry and return the minimum ttl for the query.
18533         (gaih_getanswer_slice): Likewise.
18534
18535 2012-03-30  Jeff Law  <law@redhat.com>
18536
18537         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
18538         due to long keys.
18539         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
18540         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
18541
18542         * resolv/nss_dns/dns-host.c: Update copyright year.
18543
18544 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
18545
18546         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
18547         requests to save a system call.  Fix check that all bytes are sent.
18548
18549         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
18550         comments for sendmmsg.
18551
18552 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18553
18554         [BZ #13691]
18555         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
18556         with only 1 character between 0x0041 and 0x01b0.
18557         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
18558         * wcsmbs/tst-mbsnrtowcs.c: New file.
18559
18560 2012-03-29  David S. Miller  <davem@davemloft.net>
18561
18562         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
18563         small copies by hand.
18564
18565 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18566
18567         [BZ #13761]
18568         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18569         _nss_compat_initgroups_dyn): Fall back to malloc/free
18570         for large group memberships.
18571
18572 2012-03-28  David S. Miller  <davem@davemloft.net>
18573
18574         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
18575         that branches into memcpy.
18576         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
18577         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
18578         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18579         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
18580         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
18581         bits.
18582         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
18583         implementation too.
18584         * sysdeps/sparc/mempcpy.S: New file.
18585
18586         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
18587         the IFUNC routine in the libc case.
18588         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18589
18590         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
18591         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
18592         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
18593         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
18594         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
18595         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
18596         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
18597         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
18598
18599         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
18600         loop to 256 bytes instead of 64 bytes and fix test signedness.
18601
18602         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
18603         * sysdeps/sparc/sparc32/Makefile: rather than here...
18604         * sysdeps/sparc/sparc64/Makefile: and here.
18605
18606 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * malloc/mallocbug.c: Avoid warnings about unused variables.
18609
18610 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18611
18612         [BZ #13760]
18613         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
18614         in the right place. Discard and retry query if response is
18615         larger than input buffer size.
18616
18617 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
18618
18619         [BZ #369]
18620         [BZ #2678]
18621         [BZ #3866]
18622         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
18623         x for large integer exponent.
18624         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
18625         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18626         sign of result as needed afterwards.
18627         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18628         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18629         result for underflowing pow the same as for overflow.
18630         (__kernel_standard_l): Handle powl overflow and underflow here
18631         rather than calling __kernel_standard.
18632         * math/libm-test.inc (pow_test): Add more tests.
18633
18634         [BZ #3868]
18635         [BZ #13879]
18636         [BZ #13910]
18637         [BZ #13911]
18638         [BZ #13912]
18639         [BZ #13913]
18640         [BZ #13915]
18641         [BZ #13916]
18642         [BZ #13917]
18643         [BZ #13918]
18644         [BZ #13919]
18645         [BZ #13920]
18646         [BZ #13921]
18647         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18648         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18649         (__kernel_standard_l): New function.
18650         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18651         __kernel_standard.
18652         * math/w_acosl.c (__acosl): Likewise.
18653         * math/w_asinl.c (__asinl): Likewise.
18654         * math/w_atan2l.c (__atan2l): Likewise.
18655         * math/w_atanhl.c (__atanhl): Likewise.
18656         * math/w_coshl.c (__coshl): Likewise.
18657         * math/w_exp10l.c (__exp10l): Likewise.
18658         * math/w_exp2l.c (__exp2l): Likewise.
18659         * math/w_fmodl.c (__fmodl): Likewise.
18660         * math/w_hypotl.c (__hypotl): Likewise.
18661         * math/w_j0l.c (__j0l, __y0l): Likewise.
18662         * math/w_j1l.c (__j1l, __y1l): Likewise.
18663         * math/w_jnl.c (__jnl, __ynl): Likewise.
18664         * math/w_lgammal.c (__lgammal): Likewise.
18665         * math/w_log10l.c (__log10l): Likewise.
18666         * math/w_log2l.c (__log2l): Likewise.
18667         * math/w_logl.c (__logl): Likewise.
18668         * math/w_powl.c (__powl): Likewise.
18669         * math/w_remainderl.c (__remainderl): Likewise.
18670         * math/w_scalbl.c (sysv_scalbl): Likewise.
18671         * math/w_sinhl.c (__sinhl): Likewise.
18672         * math/w_sqrtl.c (__sqrtl): Likewise.
18673         * math/w_tgammal.c (__tgammal): Likewise.
18674         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18675         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18676         * math/libm-test.inc (acos_test): Add more tests.
18677         (acosh_test): Likewise.
18678         (asin_test): Likewise.
18679         (atanh_test): Likewise.
18680         (exp_test): Likewise.
18681         (exp10_test): Likewise.
18682         (exp2_test): Likewise.
18683         (expm1_test): Likewise.
18684         (lgamma_test): Likewise.
18685         (log_test): Likewise.
18686         (log10_test): Likewise.
18687         (log1p_test): Likewise.
18688         (log2_test): Likewise.
18689         (pow_test): Do not allow some spurious overflow exceptions.
18690         (sqrt_test): Add more tests.
18691         (tgamma_test): Likewise.
18692         (y0_test): Likewise.
18693         (y1_test): Likewise.
18694         (yn_test): Likewise.
18695
18696 2012-03-27  Anton Blanchard  <anton@samba.org>
18697
18698         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18699         MAP_HUGETLB.
18700         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18701         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18702         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18703
18704 2012-03-27  David S. Miller  <davem@davemloft.net>
18705
18706         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18707
18708         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18709         have-as-vis3 check.
18710
18711 2012-03-27  Andreas Jaeger  <aj@suse.de>
18712
18713         * sysdeps/x86_64/elf/configure.in: Moved to ...
18714         * sysdeps/x86_64/configure.in: ... here.
18715         * sysdeps/x86_64/elf/start.S: Moved to ...
18716         * sysdeps/x86_64/start.S: ... here.
18717         * sysdeps/x86_64/elf/configure: Delete.
18718
18719         * sysdeps/x86_64/configure.in: Merge contents from
18720         sysdeps/i386/configure.in (without i686 check).
18721
18722         * sysdeps/i386/elf/Versions: Merge into ...
18723         * sysdeps/i386/Versions: ... this.
18724         * sysdeps/i386/elf/Versions: Delete file.
18725         * sysdeps/i386/elf/start.S: Moved to ...
18726         * sysdeps/i386/start.S: ...here.
18727         * sysdeps/i386/elf/configure.in: Merge into...
18728         * sysdeps/i386/configure.in: ...here.
18729         * sysdeps/i386/elf/configure.in: Delete file.
18730         * sysdeps/i386/elf/configure: Delete file.
18731
18732         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18733         * debug/backtracesyms.c: ... here.
18734         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18735         * debug/backtracesymsfd.c: ... here.
18736         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18737         * sysdeps/generic/ifunc-sel.h: ... here.
18738
18739         * sysdeps/unix/i386/start.c: Delete file.
18740         * sysdeps/unix/sparc/start.c: Delete file.
18741         * sysdeps/unix/start.c: Delete file.
18742
18743         * sysdeps/sh/elf/configure.in: Moved to ...
18744         * sysdeps/sh/configure.in: ... here.
18745         * sysdeps/sh/elf/start.S: Moved to ...
18746         * sysdeps/sh/start.S: ... here.
18747         * sysdeps/sh/elf/configure: Delete file.
18748
18749         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18750         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18751         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18752         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18753         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18754         * sysdeps/powerpc/powerpc64/start.S: here.
18755         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18756         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18757         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18758         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18759         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18760
18761         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18762         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18763         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18764         * sysdeps/powerpc/powerpc32/start.S: ... here.
18765         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18766         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18767         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18768
18769         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18770         * sysdeps/powerpc/ifunc-sel.h: ... here.
18771         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18772         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18773
18774         * sysdeps/sparc/elf/configure.in: Moved to ...
18775         * sysdeps/sparc/configure.in: ... here.
18776         * sysdeps/sparc/elf/configure: Delete file.
18777         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18778         * sysdeps/sparc/sparc32/start.S: ... here.
18779         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18780         * sysdeps/sparc/sparc64/start.S: ... here.
18781         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18782         * sysdeps/sparc/sparc32/Makefile: ... this.
18783         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18784         * sysdeps/sparc/sparc64/Makefile: ... this.
18785
18786         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18787         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18788         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18789         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18790         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18791         * sysdeps/s390/s390-32/setjmp.S: ... here.
18792         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18793         * sysdeps/s390/s390-32/configure.in: ... here.
18794         * sysdeps/s390/s390-32/elf/configure: Delete file.
18795         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18796         * sysdeps/s390/s390-32/start.S: ... here.
18797
18798         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18799         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18800         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18801         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18802         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18803         * sysdeps/s390/s390-64/setjmp.S: ... here.
18804         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18805         * sysdeps/s390/s390-64/configure.in: ... here
18806         * sysdeps/s390/s390-64/elf/configure: Delete file.
18807         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18808         * sysdeps/s390/s390-64/start.S: ... here.
18809         * sysdeps/s390/s390-64/elf/configure: Delete.
18810
18811         * configure.in: Remove support for elf directories in sysdeps.
18812
18813         * configure: Regenerated.
18814         * sysdeps/i386/configure: Regenerated.
18815         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18816         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18817         * sysdeps/s390/s390-32/configure: Regenerated.
18818         * sysdeps/s390/s390-64/configure: Regenerated.
18819         * sysdeps/sh/configure: Regenerated.
18820         * sysdeps/sparc/configure: Regenerated.
18821         * sysdeps/x86_64/configure: Regenerated.
18822
18823 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18824
18825         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18826
18827         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18828         denormal result into account.
18829
18830 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18831
18832         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18833         Reported by Allan McRae <allan@archlinux.org>.
18834
18835 2012-03-23  Jeff Law  <law@redhat.com>
18836
18837         * nss/getnssent.c (__nss_getent): Fix typo.
18838
18839 2012-03-23  David S. Miller  <davem@davemloft.net>
18840
18841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18842
18843 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18844
18845         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18846         to pad to uint64_t for each field.
18847         (dl_tls_index): Replace unsigned long with uint64_t.
18848
18849 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18850         Paul Pluzhnikov  <ppluzhnikov@google.com>
18851
18852         [BZ #6528]
18853         * grp/Makefile (otherlibs): Don't set it.
18854         * inet/Makefile (otherlibs): Likewise.
18855         * login/Makefile (otherlibs): Likewise.
18856         * nscd/Makefile (otherlibs): Likewise.
18857         * posix/Makefile (otherlibs): Likewise.
18858         * pwd/Makefile (otherlibs): Likewise.
18859         * rt/Makefile (otherlibs): Likewise.
18860         * sunrpc/Makefile (otherlibs): Likewise.
18861         * nss/Makefile (otherlibs): Likewise.
18862         Add libnss_files to routines and static-only-routines.
18863         ($(objpfx)getent): Remove rule.
18864         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18865         static-only-routines.
18866
18867 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18868
18869         [BZ #13892]
18870         * math/s_cexp.c: Include <float.h>.
18871         (__cexp): Handle exp result overflowing not necessarily
18872         overflowing both real and imaginary parts of result.
18873         * math/s_cexpf.c: Likewise.
18874         * math/s_cexpl.c: Likewise.
18875         * math/libm-test.inc (cexp_test): Add more tests.
18876         * sysdeps/i386/fpu/libm-test-ulps: Update.
18877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18878
18879 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18880
18881         * include/link.h (ELFW): New macro.
18882         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18883         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18884
18885 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18886
18887         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18888         with uint64_t.
18889
18890 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18891
18892         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18893         declaration.
18894         (struct La_x32_retval): Likewise.
18895
18896 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18897
18898         * sysdeps/x86_64/preconfigure.in: New file.
18899         * sysdeps/x86_64/preconfigure: New generated file.
18900
18901 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18902
18903         [BZ #13824]
18904         * math/e_exp2l.c: Include <float.h>.
18905         (__ieee754_exp2l): Handle overflow and underflow cases
18906         separately.  Only pass fractional part of argument to
18907         __ieee754_expl.
18908         * math/libm-test.inc (exp2_test): Add more tests.
18909
18910         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18911         negating x to take absolute value.
18912         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18913         Likewise.
18914         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18915         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18916         Likewise.
18917         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18918         computing low part if x was negated.
18919         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18920
18921 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18922
18923         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18924         la_x32_gnu_pltexit.
18925         (pltexit): Cast int_retval to ptrdiff_t.
18926         * elf/tst-auditmod3b.c: Likewise.
18927         * elf/tst-auditmod4b.c: Likewise.
18928         * elf/tst-auditmod5b.c: Likewise.
18929         * elf/tst-auditmod6b.c: Likewise.
18930         * elf/tst-auditmod6c.c: Likewise.
18931         * elf/tst-auditmod7b.c: Likewise.
18932
18933         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18934         and x32_gnu_pltexit.
18935
18936         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18937         __ELF_NATIVE_CLASS.
18938         (La_x32_regs): New macro.
18939         (La_x32_retval): Likewise.
18940         (la_x32_gnu_pltenter): New function prototype.
18941         (la_x32_gnu_pltexit): Likewise.
18942
18943 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18944
18945         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18946         exponent.
18947
18948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18949
18950         * configure.in (libc_cv_cc_nofma): Check for option to disable
18951         generation of FMA instructions.
18952         * configure: Regenerate.
18953         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18954         * sysdeps/ieee754/dbl-64/Makefile: New file.
18955         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18956         Remove brandred-fma4.
18957         (CFLAGS-brandred-fma4.c): Remove.
18958         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18959         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18960         define.
18961         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18962         define.
18963
18964 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18965
18966         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18967         LLONG_MAX != LONG_MAX.
18968         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18969         (_fitoa_word): Likewise.
18970         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18971         LLONG_MAX != LONG_MAX.
18972         * stdio-common/_itowa.h: Include <_itoa.h>.
18973         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18974         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18975         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18976         only if not defined.
18977         (_ITOA_WORD_TYPE): Likewise.
18978         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18979         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18980
18981 2012-03-21  David S. Miller  <davem@davemloft.net>
18982
18983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18984
18985 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18986
18987         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18988         of x86_64 when setting libc_cv_slibdir, libdir and
18989         libc_cv_localedir.
18990         * sysdeps/unix/sysv/linux/configure: Regenerated.
18991
18992 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18993
18994         * manual/lang.texi (Old Varargs): Remove section.
18995         (How Variadic): Update menu.
18996         (va_start): Do not mention varargs.h.
18997
18998 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18999             Joseph Myers  <joseph@codesourcery.com>
19000
19001         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
19002         link test.
19003         * configure: Regenerated.
19004
19005 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19006
19007         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
19008         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
19009         conformtest.pl
19010
19011 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19012
19013         * NOTES: Remove.
19014         * Makefile (files-for-dist): Remove NOTES.
19015         (NOTES): Remove rule.
19016         * README: Don't refer to NOTES.
19017         * manual/creature.texi: Don't include macros.texi.
19018         * manual/intro.texi (creature.texi): Remove comment referring to
19019         NOTES.
19020
19021         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
19022         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
19023         * configure: Regenerated.
19024         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
19025         LIBC_TRY_CC_OPTION.
19026         (libc_cv_as_i686): Likewise.
19027         (libc_cv_cc_avx): Likewise.
19028         (libc_cv_cc_sse2avx): Likewise.
19029         (libc_cv_cc_fma4): Likewise.
19030         (libc_cv_cc_novzeroupper): Likewise.
19031         * sysdeps/i386/configure: Regenerated.
19032
19033         [BZ #13883]
19034         * sysdeps/i386/fpu/s_cexp.S: Remove.
19035         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19036         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19037         * math/libm-test.inc (cexp_test): Add more tests.
19038         * sysdeps/i386/fpu/libm-test-ulps: Update.
19039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19040
19041 2012-03-21  Allan McRae  <allan@archlinux.org>
19042
19043         * timezone/Makefile: Do not install iso3166.tab and zone.tab
19044
19045 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
19046
19047         [BZ #13871]
19048         * math/w_exp2.c: Do not include <float.h>.
19049         (o_threshold, u_threshold): Remove.
19050         (__exp2): Calculate result before checking finiteness and calling
19051         __kernel_standard.
19052         * math/w_exp2f.c: Likewise.
19053         * math/w_exp2l.c: Likewise.
19054         * math/libm-test.inc (exp2_test): Require overflow exception for
19055         1e6 input.
19056
19057         [BZ #3866]
19058         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
19059         range of signed 64-bit integers before using fistpll.  Remove
19060         checks for whether integers fit in mantissa bits.
19061         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
19062         the range of signed 32-bit integers before using fistpl.  Remove
19063         checks for whether integers fit in mantissa bits.
19064         * sysdeps/i386/fpu/e_powl.S (p64): New object.
19065         (__ieee754_powl): Test for y outside the range of signed 64-bit
19066         integers before using fistpll.  Reduce 64-bit values to 63-bit
19067         ones as needed.
19068         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
19069         divide-by-zero is raised for zero to large negative powers.
19070         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
19071         (__ieee754_powl): Test for y outside the range of signed 64-bit
19072         integers before using fistpll.  Reduce 64-bit values to 63-bit
19073         ones as needed.
19074         * math/libm-test.inc (pow_test): Add more tests.
19075
19076 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19077
19078         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
19079         <stdio-common/_itoa.h>.
19080         * debug/segfault.c: Likewise.
19081         * elf/dl-cache.c: Likewise.
19082         * elf/dl-minimal.c: Likewise.
19083         * elf/dl-misc.c: Likewise.
19084         * elf/dl-sysdep.c: Likewise.
19085         * elf/dl-version.c: Likewise.
19086         * elf/rtld.c: Likewise.
19087         * hurd/hurdsock.c: Likewise.
19088         * hurd/lookup-retry.c: Likewise.
19089         * malloc/malloc.c: Likewise.
19090         * malloc/mtrace.c: Likewise.
19091         * nscd/nscd_getgr_r.c: Likewise.
19092         * nscd/nscd_getpw_r.c: Likewise.
19093         * nscd/nscd_getserv_r.c: Likewise.
19094         * posix/getopt_init.c: Likewise.
19095         * posix/wordexp.c: Likewise.
19096         * stdio-common/_itoa.c: Likewise.
19097         * stdio-common/printf_fphex.c: Likewise.
19098         * stdio-common/vfprintf.c: Likewise.
19099         * string/_strerror.c: Likewise.
19100         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
19101         * sysdeps/i386/i686/hp-timing.h: Likewise.
19102         * sysdeps/mach/_strerror.c: Likewise.
19103         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
19104         * sysdeps/mach/hurd/sethostid.c: Likewise.
19105         * sysdeps/mach/hurd/xmknodat.c: Likewise.
19106         * sysdeps/mach/xpg-strerror.c: Likewise.
19107         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
19108         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
19109         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
19110         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
19111         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
19112         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
19113         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
19114         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
19115         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
19116         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
19117         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
19118         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
19119         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
19120         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
19121         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
19122         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
19123         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
19124         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
19125         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
19126         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
19127         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
19128
19129         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
19130
19131         * stdio-common/_itoa.h: Moved to ...
19132         * sysdeps/generic/_itoa.h: Here.
19133
19134         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
19135
19136         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
19137         instead of "_itoa.h" and "_itowa.h".
19138         * stdio-common/vfprintf.: Likewise.
19139
19140 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19141
19142         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
19143         <bits/wordsize.h>.
19144         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
19145         (__signbit): Likwise.
19146         (llrintf): Likwise.
19147         (llrint): Likwise.
19148
19149 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19150
19151         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
19152         __WORDSIZE != 64.
19153
19154 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
19155
19156         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
19157         OVERFLOW_EXCEPTION_OK.
19158         * math/libm-test.inc ("Philosophy"): Update comment about
19159         exception testing.
19160         (OVERFLOW_EXCEPTION): Define.
19161         (OVERFLOW_EXCEPTION_OK): Likewise.
19162         (INVALID_EXCEPTION_OK): Renumber.
19163         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19164         (IGNORE_ZERO_INF_SIGN): Likewise.
19165         (test_exceptions): Handle FE_OVERFLOW.
19166         (exp10_test): Expect overflow exceptions.
19167         (exp2_test): Likewise.
19168         (expm1_test): Likewise.
19169         (nextafter_test): Likewise.
19170         (pow_test): Likewise.
19171         (scalbn_test): Likewise.
19172         (scalbln_test): Likewise.
19173
19174 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19175
19176         * sysdeps/x86_64/bits/atomic.h
19177         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
19178         64bit integer.
19179         (atomic_exchange_acq): Likewise.
19180         (__arch_exchange_and_add_body): Likewise.
19181         (__arch_add_body): Likewise.
19182         (atomic_add_negative): Likewise.
19183         (atomic_add_zero): Likewise.
19184
19185 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19186
19187         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
19188         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
19189
19190 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19191
19192         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
19193         Check __x86_64__ instead of __WORDSIZE.
19194
19195 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19196
19197         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
19198
19199 2012-03-19  David S. Miller  <davem@davemloft.net>
19200
19201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19202
19203         * sysdeps/sparc/fpu/fenv_private.h: New file.
19204         * sysdeps/sparc/fpu/math_private.h: Use it.
19205         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
19206         Remove.
19207         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
19208         (libc_feholdexcept_setroundl): Remove.
19209         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
19210         Remove.
19211         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
19212         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
19213
19214 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19215
19216         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
19217         int64_t instead of long int.
19218         (INSERT_WORDS64): Likwise.
19219
19220 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
19221
19222         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
19223         _Unwind_GetCFA return to _Unwind_Ptr first.
19224
19225 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
19226
19227         [BZ #13629]
19228         * math/s_clog.c: Include <float.h>.
19229         (__clog): Scale large or subnormal inputs.
19230         * math/s_clogf.c: Likewise.
19231         * math/s_clogl.c: Likewise.
19232         * math/s_clog10.c: Include <float.h>.
19233         (M_LOG10_2): Define.
19234         (__clog10): Scale large or subnormal inputs.
19235         * math/s_clog10f.c: Likewise.
19236         * math/s_clog10l.c: Likewise.
19237         * math/libm-test.inc (clog_test): Add more tests.
19238         (clog10_test): Likewise.
19239         * sysdeps/i386/fpu/libm-test-ulps: Update.
19240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19241
19242         [BZ #11451]
19243         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
19244         x and y.
19245         * math/libm-test.inc (atan2_test): Add another test.
19246
19247         * Makerules (common-objdir-compile): Remove.
19248         * sysdeps/unix/Makefile (config-generated): Do not add
19249         $(unix-generated) to variable.
19250         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
19251         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
19252         Remove rule.
19253         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
19254         Likewise.
19255         [generic bits/local_lim.h] (before-compile): Do not append to
19256         variable.
19257         [generic bits/local_lim.h] (common-generated): Likewise.
19258         [generic sys/param.h] (before-compile): Do not append to variable.
19259         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
19260         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
19261         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
19262         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
19263         include.
19264         [generic sys/param.h] (sys/param.h-includes): Remove variable.
19265         [generic sys/param.h] (sys/param.h-includes): Remove rule.
19266         [generic sys/param.h] ($(addprefix
19267         $(common-objpfx),$(sys/param.h-includes))): Likewise.
19268         [generic sys/param.h] (common-generated): Do not append to
19269         variable.
19270         [generic sys/param.h] (sysdep_headers): Likewise.
19271         [generic bits/errno.h] (before-compile): Do not append to
19272         variable.
19273         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
19274         rule.
19275         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
19276         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
19277         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
19278         [generic bits/errno.h] (common-generated): Do not append to
19279         variable.
19280         [generic bits/ioctls.h] (before-compile): Do not append to
19281         variable.
19282         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
19283         rule.
19284         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
19285         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
19286         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
19287         rule.
19288         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
19289         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
19290         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
19291         [generic bits/ioctls.h] (common-generated): Do not append to
19292         variable.
19293         [generic sys/syscall.h] (syscall.h): Remove variable.
19294         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
19295         rule.
19296         [generic sys/syscall.h] (before-compile): Do not append to
19297         variable.
19298         [generic sys/syscall.h] (common-generated): Likewise.
19299         * sysdeps/unix/errnos-tmpl.c: Remove file.
19300         * sysdeps/unix/errnos.awk: Likewise.
19301         * sysdeps/unix/ioctls-tmpl.c: Likewise.
19302         * sysdeps/unix/ioctls.awk: Likewise.
19303         * sysdeps/unix/mk-local_lim.c: Likewise.
19304         * sysdeps/unix/snarf-ioctls: Likewise.
19305
19306 2012-03-19  Richard Henderson  <rth@twiddle.net>
19307
19308         * sysdeps/i386/fpu/fenv_private.h: New file.
19309         * sysdeps/i386/fpu/math_private.h: Use it.
19310         (math_opt_barrier, math_force_eval): Remove.
19311         (libc_feholdexcept_setround_53bit): Remove.
19312         (libc_feupdateenv_53bit): Remove.
19313         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19314         (math_opt_barrier, math_force_eval): Remove.
19315         (libc_feholdexcept): Remove.
19316         (libc_feholdexcept_setround): Remove.
19317         (libc_fetestexcept, libc_fesetenv): Remove.
19318         (libc_feupdateenv_test): Remove.
19319         (libc_feupdateenv, libc_feholdsetround): Remove.
19320         (libc_feresetround): Remove.
19321
19322         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
19323         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
19324
19325         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
19326         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
19327         (libc_feupdateenv_testl): New.
19328         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
19329         (libc_feupdateenv_testf): New.
19330         (libc_feupdateenv): Use libc_feupdateenv_test.
19331         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
19332         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
19333
19334         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
19335         (libc_feholdsetroundf, libc_feholdsetroundl): New.
19336         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
19337         (libc_feresetround_noex): New.
19338         (libc_feresetround_noexf): New.
19339         (libc_feresetround_noexl): New.
19340         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
19341         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
19342         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
19343         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
19344         SET_RESTORE_ROUND.
19345         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19346         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
19347         (__cos): Likewise.
19348         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
19349         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
19350         SET_RESTORE_ROUND_NOEX.
19351         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
19352         SET_RESTORE_ROUND_NOEXF.
19353         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
19354         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
19355         (libc_feholdsetroundf): New.
19356         (libc_feresetround, libc_feresetroundf): New.
19357
19358         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
19359         (libc_feholdexcept_setround_53bit): Convert from macro to function.
19360         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
19361
19362         * sysdeps/generic/math_private.h: Include <fenv.h>.
19363         (default_libc_feholdexcept): New.
19364         (default_libc_feholdexcept_setround): New.
19365         (default_libc_fesetenv, default_libc_feupdateenv): New.
19366         (libc_feholdexcept): Only define if undefined.
19367         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
19368         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
19369         (libc_feholdexcept_setroundl): Likewise.
19370         (libc_feholdexcept_setround_53bit): Likewise.
19371         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
19372         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
19373         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
19374         (libc_feupdateenv_53bit): Likewise.
19375         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
19376         (libc_feholdexcept): Convert from macro to inline function.
19377         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
19378         (libc_fesetenv, libc_feupdateenv): Likewise.
19379
19380         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
19381         not previously defined.
19382         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
19383         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
19384         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
19385         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
19386         * sysdeps/ieee754/flt-32/math_private.h: New file.
19387         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
19388         math_private.h below SET_FLOAT_WORD.
19389         (__isnan, __isinf_ns, __finite): Remove.
19390         (__isnanf, __isinf_nsf, __finitef): Remove.
19391
19392 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
19393
19394         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19395
19396 2012-03-17  David S. Miller  <davem@davemloft.net>
19397
19398         [BZ #6471]
19399         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
19400         for 2.16.
19401
19402 2012-03-16  David S. Miller  <davem@davemloft.net>
19403
19404         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
19405         warnings.
19406
19407         [BZ #6471]
19408         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
19409         properly.
19410         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
19411         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
19412         sysdep_routines when subdir is sysvipc.
19413         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
19414         __getshmlba helper.
19415
19416         * sysdeps/sparc/fpu/libm-test/ulps: Update.
19417
19418 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19419
19420         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
19421         [__LP64__].
19422
19423 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19424
19425         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
19426         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
19427         (__lround): Renamed to ...
19428         (__llround): This.  Replace long int with long long int.
19429         Define lround functions as aliases of llround functions.
19430         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
19431
19432 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19433
19434         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
19435         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
19436         adresses to uintptr_t.  Replace "long int" and "unsigned long
19437         int" with "greg_t" on va_arg.
19438
19439 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19440
19441         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
19442         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
19443
19444         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
19445         Move e_machine check before EI_CLASS check.  Handle x32
19446         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
19447         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
19448         SKIP_EM_IA_64 and include
19449         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
19450
19451         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
19452         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
19453         (add_system_dir): New macro.
19454
19455         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
19456         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
19457
19458 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19459
19460         [BZ #2551]
19461         [BZ #2552]
19462         [BZ #2553]
19463         [BZ #2554]
19464         [BZ #2562]
19465         [BZ #2563]
19466         [BZ #2565]
19467         [BZ #2566]
19468         [BZ #2576]
19469         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
19470         (y0): Likewise.
19471         * math/w_j0f.c (j0f): Likewise.
19472         (y0f): Likewise.
19473         * math/w_j0l.c (__j0l): Likewise.
19474         (__y0l): Likewise.
19475         * math/w_j1.c (j1): Likewise.
19476         (y1): Likewise.
19477         * math/w_j1f.c (j1f): Likewise.
19478         (y1f): Likewise.
19479         * math/w_j1l.c (__j1l): Likewise.
19480         (__y1l): Likewise.
19481         * math/w_jn.c (jn): Likewise.
19482         (yn): Likewise.
19483         * math/w_jnf.c (jnf): Likewise.
19484         (ynf): Likewise.
19485         * math/w_jnl.c (__jnl): Likewise.
19486         (__ynl): Likewise.
19487         * math/libm-test.inc (j0_test): Add more tests.
19488         (j1_test): Likewise.
19489         (jn_test): Likewise.  Add trailing semicolon to existing test.
19490         (y0_test): Likewise.
19491         (y1_test): Likewise.
19492         * sysdeps/i386/fpu/libm-test-ulps: Update.
19493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19494
19495         [BZ #13851]
19496         [BZ #13854]
19497         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
19498         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
19499         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
19500         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
19501         (__tanl): Set errno for infinite argument.
19502         * sysdeps/i386/fpu/mptan.c: Remove.
19503         * sysdeps/i386/fpu/s_tan.S: Likewise.
19504         * sysdeps/i386/fpu/s_tanl.S: Likewise.
19505         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
19506         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
19507         * math/libm-test.inc (tan_test): Add more tests and enable more
19508         tests for double and long double.
19509         * sysdeps/i386/fpu/libm-test-ulps: Update.
19510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19511
19512 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
19513
19514         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
19515         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
19516
19517 2012-03-16  Roland McGrath  <roland@hack.frob.com>
19518
19519         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
19520         * configure.in: Use it for both main tree and add-ons.
19521         * configure: Regenerated.
19522
19523 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19524
19525         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
19526
19527 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19528
19529         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
19530         in comment.
19531
19532         [BZ #13851]
19533         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
19534         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
19535         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
19536         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
19537         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
19538         infinite argument.
19539         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
19540         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
19541         != 0 for prec == 2.
19542         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
19543         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
19544         * sysdeps/i386/fpu/s_cosl.S: Likewise.
19545         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
19546         * sysdeps/i386/fpu/s_sinl.S: Likewise.
19547         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
19548         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
19549         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
19550         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
19551         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
19552         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
19553         * math/libm-test.inc (cos_test): Add more tests and enable more
19554         tests for long double.
19555         (sin_test): Likewise.
19556         (sincos_test): Likewise.
19557         * sysdeps/i386/fpu/libm-test-ulps: Update.
19558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19559
19560 2012-03-16  David S. Miller  <davem@davemloft.net>
19561
19562         * sysdeps/sparc/fpu/math_private.h: New file.
19563
19564 2012-03-15  David S. Miller  <davem@davemloft.net>
19565
19566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
19567         file.
19568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
19569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
19570         file.
19571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
19572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
19573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
19574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
19575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
19576         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
19577         sysdep routines.
19578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19579
19580         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
19581         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
19582
19583         * sysdeps/sparc/sparc-ifunc.h: New file.
19584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
19585         sparc-ifunc.h
19586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
19587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19588         Likewise.
19589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19590         Likewise.
19591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
19592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
19594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
19595         Likewise.
19596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
19597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
19598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
19599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
19600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
19601         Likewise.
19602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
19603         Likewise.
19604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
19605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
19607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
19608         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
19609         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
19610         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
19611         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
19612         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
19613         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
19614         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
19615         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
19616         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
19617         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
19618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
19619         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
19620         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
19621         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
19622         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
19623         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
19624         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
19625         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19626         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19627         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19628
19629 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19630
19631         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19632         scaling.
19633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19634
19635 2012-03-15  Andreas Jaeger  <aj@suse.de>
19636
19637         [BZ #13852]
19638         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19639         ieee754/flt-32 implementation for sin, cos and sincos.
19640         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19641         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19642         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19643         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19644         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19645         ieee754/flt-32 implementation for tan.
19646
19647         * math/libm-test.inc (cos_test): Enable some large input tests for
19648         float as well
19649         (sin_test): Likewise.
19650         (sincos_test): Likewise.
19651         (tan_test): Add tests for large input.
19652
19653         * sysdeps/i386/fpu/libm-test-ulps: Update.
19654
19655 2012-03-15  Andreas Jaeger  <aj@suse.de>
19656
19657         [BZ #13658]
19658         * math/libm-test.inc (cos_test): Add more test cases.
19659         (sin_test): Likewise.
19660         (sincos_test): Likewise.
19661
19662 2012-03-15  Andreas Jaeger  <aj@suse.de>
19663
19664         [BZ #13837]
19665         * math/libm-test.inc (cos_test): Add a test case for large input
19666         value.
19667         (sin_test): Likewise.
19668         (sincos_test): Likewise.
19669
19670 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19671         Joseph Myers  <joseph@codesourcery.com>
19672
19673         [BZ #13658]
19674         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19675         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19676         * sysdeps/i386/fpu/branred.c: Likewise.
19677         * sysdeps/i386/fpu/dosincos.c: Likewise.
19678         * sysdeps/i386/fpu/mpa.c: Likewise.
19679         * sysdeps/i386/fpu/s_cos.S: Likewise.
19680         * sysdeps/i386/fpu/s_sin.S: Likewise.
19681         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19682         * sysdeps/i386/fpu/sincos32.c: Likewise.
19683
19684         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19685         Define.
19686         (libc_feupdateenv_53bit): Define.
19687         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19688         Define.
19689         (libc_feupdateenv_53bit): Define.
19690
19691         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19692         53 bit (without extend i386 double precision).
19693
19694         * math/libm-test.inc (sincos_test): Add tests for large input.
19695         (sin): Likewise.
19696         (cos): Likewise.
19697
19698         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19699
19700 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19701
19702         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19703
19704 2012-03-15  David S. Miller  <davem@davemloft.net>
19705
19706         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19707         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19708         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19709         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19714         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19715         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19716         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19717         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19718         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19719         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19720         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19722         file.
19723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19725         file.
19726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19728         file.
19729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19731         file.
19732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19733         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19734         fmin/fmax sysdep routines.
19735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19736
19737 2012-03-14  David S. Miller  <davem@davemloft.net>
19738
19739         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19740         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19741         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19742         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19743         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19744         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19745         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19746         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19747         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19749         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19750         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19751         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19752         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19753         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19758         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19759         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19760         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19761         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19762         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19763         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19764         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19765         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19766         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19767         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19768         routines.
19769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19770         file.
19771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19773         file.
19774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19776         file.
19777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19779         file.
19780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19782         file.
19783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19785         file.
19786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19787         file.
19788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19789         file.
19790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19791         file.
19792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19793         New file.
19794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19795         file.
19796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19797         file.
19798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19800         file.
19801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19803         file.
19804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19806         file.
19807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19809         VIS3 routines.
19810
19811         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19812         New file.
19813
19814         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19815
19816         * sysdeps/sparc/configure.in: New file.
19817         * sysdeps/sparc/configure: Generate.
19818         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19819         * configure: Regenerate.
19820         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19821         * config.make.in (have-as-vis3): New.
19822         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19823         available use -Av9d instead of -Av9a.
19824         * sysdeps/sparc/sparc64/Makefile: Likewise.
19825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19827         New file.
19828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19829         file.
19830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19831         New file.
19832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19833         file.
19834         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19835         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19836         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19837         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19838         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19839
19840         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19841         fzeros/fnegs to load 0x80000000 into a float register instead of
19842         using the stack.
19843         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19844
19845 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19846
19847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19848         bits/syscall.h.
19849         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19850         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19851         ($(inst_includedir)/bits/syscall.h): Remove rule.
19852         ($(objpfx)bits/syscall.d): Include instead of
19853         $(objpfx)syscall-list.d.
19854         (generated): Change syscall-list.h and syscall-list.d to
19855         bits/syscall.h and bits/syscall.d.
19856
19857 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19858
19859         [BZ #13846]
19860         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19861
19862 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19863
19864         [BZ #13841]
19865         * math/s_csqrt.c: Include <float.h>.
19866         (__csqrt): Scale large or subnormal inputs.
19867         * math/s_csqrtf.c: Likewise.
19868         * math/s_csqrtl.c: Likewise.
19869         * math/libm-test.inc (csqrt_test): Add more tests.
19870         * sysdeps/i386/fpu/libm-test-ulps: Update.
19871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19872
19873         [BZ #13840]
19874         * math/libm-test.inc (hypot_test): Add more tests.
19875
19876 2012-03-13  David S. Miller  <davem@davemloft.net>
19877
19878         [BZ #13840]
19879         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19880         double-precision for the calculation instead of scaling.
19881
19882 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19883
19884         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19885         manipulate bits before adding and subtracting TWO52[sx].
19886         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19887         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19888         Likewise.
19889         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19890
19891 2012-03-13  David S. Miller  <davem@davemloft.net>
19892
19893         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19894         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19895         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19896         rtld-global-offsets.h
19897         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19898
19899         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19900         large parameters.
19901
19902         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19903
19904         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19905         'err' in the ifdef scope in which it is actually used.
19906
19907         * nss/nss_db/db-init.c: Include string.h
19908
19909 2012-03-12  David S. Miller  <davem@davemloft.net>
19910
19911         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19912         masking out of the most significant byte of random value used.
19913         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19914         Fix coding style in previous change.
19915
19916         * sysdeps/unix/sysv/linux/kernel-features.h
19917         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19918         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19919         expression.
19920         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19921         later.
19922
19923 2012-03-11  David S. Miller  <davem@davemloft.net>
19924
19925         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19926         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19927         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19928         for 'resultvar' otherwise things get truncated on 64-bit.
19929
19930         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19931         Fix masking out of the most significant byte of random value used.
19932
19933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19934
19935 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19936
19937         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19938
19939 2012-03-09  David S. Miller  <davem@davemloft.net>
19940
19941         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19942         variables with appropriate CPP guards.
19943         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19944         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19945         on resulting framesize and the management of the outregs buffer for pltexit.
19946         Preserve floating point return values across _dl_call_pltexit call.
19947         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19948         framesize and the management of the outregs buffer for pltexit.
19949         Preserve floating point return values across _dl_call_pltexit
19950         call.
19951         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19952         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19953         (print_exit): Fix format string for return register value.
19954
19955 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19956
19957         * sunrpc/Makefile (others): Add rpcgen.
19958         ($(objpfx)rpcgen): Remove special build rule and dependency on
19959         libc.
19960         * sunrpc/rpcgen.c: New file.
19961
19962 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19963
19964         [BZ #13673]
19965         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19966         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19967         * sysdeps/i386/crti.S: Likewise.
19968         * sysdeps/i386/crtn.S: Likewise.
19969         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19970         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19971         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19972         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19973         * sysdeps/sh/crti.S: Likewise.
19974         * sysdeps/sh/crtn.S: Likewise.
19975         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19976
19977         [BZ #13673]
19978         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19979         with URL.
19980         * locale/programs/locfile-kw.gperf: Likewise.
19981         * locale/programs/charmap-kw.h: Regenerated.
19982         * locale/programs/locfile-kw.h: Likewise.
19983
19984         [BZ #13673]
19985         * intl/plural.y: Replace FSF snail mail address with URL.
19986         * intl/plural.c: Regenerated.
19987
19988 2012-03-09  Richard Henderson  <rth@twiddle.net>
19989
19990         * include/math_private.h: Remove file.
19991         * math/math_private.h: Move file ...
19992         * sysdeps/generic/math_private.h: ... here.
19993
19994         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19995         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19996         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19997
19998         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19999         and <math_private.h>.
20000         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20001         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20002         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20003         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20004         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20005         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
20006         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20007         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20008         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
20009         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20010         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20011         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20012         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
20013         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20014         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
20015         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
20016         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20017         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
20018         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
20019         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
20020         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20021         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
20022         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
20023         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20024         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
20025         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
20026         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
20027         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
20028         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20029         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20030         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
20031         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
20032         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
20033         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20034         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20035         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20036         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20037         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20038         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20039         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20040         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
20041         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20042         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20043         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20044         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
20045         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20046         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
20047         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
20048         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20049         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20050         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
20051         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
20052         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
20053         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20054         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
20055         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
20056         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20057         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
20058         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
20059         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
20060         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20061         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
20062         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20063         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20064         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
20065         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20066         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20067         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20068         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
20069         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
20070         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
20071         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20072         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20073         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20074         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
20075         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20076         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
20077         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20078         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
20079         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
20080         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
20081         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
20082         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
20083         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
20084         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20085         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
20086         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
20087         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
20088         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
20089         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20090         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20091         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
20092         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20093         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
20094         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
20095         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
20096         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20097         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
20098         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
20099         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
20100         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
20101         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
20102         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
20103         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
20104         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20105         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
20106         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
20107         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
20108         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20109         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20110         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20111         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20112         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
20113         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20114         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
20115         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20116         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20117         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20118         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20119         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20120         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20121         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20122         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20123         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
20124         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20125         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20126         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
20127         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
20128         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20129         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
20130         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
20131         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20132         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20133         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
20134         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
20135         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
20136         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
20137         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20138         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
20139         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
20140         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20141         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
20142         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
20143         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
20144         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
20145         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20146         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20147         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20148         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
20149         * sysdeps/ieee754/k_standard.c: Likewise.
20150         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
20151         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
20152         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20153         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
20154         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
20155         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
20156         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
20157         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
20158         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
20159         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
20160         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
20161         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
20162         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
20163         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
20164         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
20165         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
20166         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
20167         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
20168         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
20169         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
20170         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
20171         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
20172         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20173         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20174         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
20175         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
20176         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20177         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20178         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20179         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20180         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
20181         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20182         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20183         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20184         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
20185         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20186         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20187         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
20188         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
20189         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20190         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
20191         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
20192         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
20193         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20194         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
20195         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
20196         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20197         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20198         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20199         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20200         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20201         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
20202         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20203         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
20204         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20205         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20206         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
20207         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
20208         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20209         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20210         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20211         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
20212         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20213         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
20214         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20215         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20216         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
20217         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
20218         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
20219         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
20220         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
20221         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20222         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
20223         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
20224         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20225         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20226         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
20227         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20228         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20229         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
20230         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
20231         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
20232         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20233         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20234         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
20235         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20236         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20237         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20238         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20239         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20240         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
20241         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20242         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
20243         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
20244         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20245         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20246         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
20247         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
20248         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
20249         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
20250         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20251         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20252         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20253         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20254         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
20255         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20256         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20257         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
20258         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
20259         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20260         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20261         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20262         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20263         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20264         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20265         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20266         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20267         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20268         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20269         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20270         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20271         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20272         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20273         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20274         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20275         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
20276         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20277         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20278         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20279         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20280         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20281         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20282         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20283         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
20284         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20285         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20286         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
20287         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
20288         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20289         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
20290         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
20291         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20292         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
20293         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
20294         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20295         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20296         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20297         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20298         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20299         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
20300         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20301         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20302         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20303         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20304         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
20305         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
20306         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20307         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20308         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20309         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
20310         * sysdeps/ieee754/s_lib_version.c: Likewise.
20311         * sysdeps/ieee754/s_matherr.c: Likewise.
20312         * sysdeps/ieee754/s_signgam.c: Likewise.
20313         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20314         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20315         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
20316         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
20317         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
20318         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
20319         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
20320         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
20321         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
20322         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
20323         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
20324         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
20325         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20326         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20327         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
20328         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
20329         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
20330         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
20331         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
20332         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20333         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20334
20335 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20336
20337         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
20338         * sunrpc/rpc_main.c: Likewise.
20339         * sunrpc/rpc_svcout.c: Likewise.
20340
20341 2012-03-09  David S. Miller  <davem@davemloft.net>
20342
20343         * include/math_private.h: New file.
20344
20345 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20346
20347         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
20348         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
20349         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
20350         from <bits/socket_type.h>.
20351         (enum __socket_type): Don't define here.
20352         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
20353         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20354         bits/socket_type.h.
20355
20356         [BZ #13566]
20357         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
20358         checking __USE_GNU.
20359
20360         * Makerules ($(inst_includedir)/%.h): New rule.
20361         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
20362         (install-others): Remove variable setting.
20363         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
20364
20365 2012-03-08  Richard Henderson  <rth@twiddle.net>
20366
20367         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
20368         from macro to inline function; merge with the
20369         !__LIBC_INTERNAL_MATH_INLINES version.
20370         (__ieee754_sqrtf): Likewise.
20371
20372         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
20373         to inline function.
20374         (__rintf, __floor, __floorf): Likewise.
20375
20376         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
20377         macro to inline function.
20378         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
20379
20380         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
20381         not <math/math_private.h>.
20382
20383 2012-03-08  David S. Miller  <davem@davemloft.net>
20384
20385         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
20386         copyright year.
20387         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
20388
20389 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
20390
20391         * resolv/gai_misc.c (handle_requests): Fix struct timespec
20392         normalization.
20393         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
20394         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
20395
20396 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
20397
20398         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
20399         be defined individually, they must be defined as a block.  Define
20400         S for printing a string instead of hidint the different by using a
20401         macro for adding the 'l'.
20402         * stdio-common/tst-fphex-wide.c: Adjust.
20403
20404 2012-03-07  Marek Polacek  <polacek@redhat.com>
20405
20406         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
20407
20408 2012-03-08  Marek Polacek  <polacek@redhat.com>
20409
20410         [BZ #13806]
20411         * stdio-common/Makefile (tests): Add tst-fphex-wide.
20412         * stdio-common/tst-fphex.c: Define a few macros to make the
20413         test reusable.  Use them.
20414         * stdio-common/tst-fphex-wide.c: New file.
20415
20416 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
20417
20418         [BZ #6911]
20419         * manual/macros.texi (gnusystems): New macro.
20420         (nongnusystems): Likewise.
20421         (gnulinuxhurdsystems): Likewise.
20422         (gnuhurdsystems): Likewise..
20423         (gnulinuxsystems): Likewise.
20424         * manual/charset.texi: Use new macros or @theglibc{} to refer to
20425         variants of the GNU system, not "GNU system".
20426         * manual/conf.texi: Likewise.
20427         * manual/errno.texi: Likewise.  Update example of errno macro
20428         expansion.
20429         * manual/filesys.texi: Likewise.
20430         (getumask): Document as specific to GNU/Hurd.
20431         * manual/install.texi: Likewise.  Reword some references to
20432         GNU/Linux.
20433         * manual/intro.texi: Likewise.
20434         * manual/io.texi: Likewise.
20435         (File Name Portability): Detail which constraints are inapplicable
20436         to all GNU systems and which are only inapplicable to GNU/Hurd.
20437         * manual/job.texi: Likewise.
20438         * manual/llio.texi: Likewise.
20439         (O_NOCTTY): Document as present on GNU/Linux.
20440         * manual/maint.texi: Likewise.
20441         * manual/memory.texi: Likewise.
20442         * manual/pattern.texi: Likewise.
20443         * manual/pipe.texi: Likewise.
20444         * manual/process.texi: Likewise.
20445         * manual/resource.texi: Likewise.
20446         (RUSAGE_CHILDREN): Remove statement about specifying a particular
20447         child on GNU/Hurd.
20448         * manual/setjmp.texi: Likewise.
20449         * manual/signal.texi: Likewise.
20450         * manual/startup.texi: Likewise.
20451         * manual/stdio.texi: Likewise.
20452         * manual/terminal.texi: Likewise.
20453         (ONLCR): Document as POSIX.
20454         (OXTABS): Document availability on GNU/Linux as XTABS.
20455         (ONOEOT): Document availability separately from other bits.
20456         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
20457         * manual/time.texi: Likewise.
20458         * manual/users.texi: Likewise.
20459         * INSTALL: Regenerated.
20460         * sysdeps/gnu/errlist.c: Regenerated.
20461
20462         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
20463         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
20464         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
20465         puts.
20466         * configure: Regenerated.
20467
20468 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
20469
20470         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
20471         default includes instead of AC_HEADER_CHECK.
20472         * sysdeps/i386/configure: Regenerated.
20473
20474         [BZ #10716]
20475         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
20476         * math/s_cacoshf.c (__cacoshf): Likewise.
20477         * math/s_cacoshl.c (__cacoshl): Likewise.
20478         * math/s_casinh.c (__casinh): Set signs of result from argument.
20479         * math/s_casinhf.c (__casinhf): Likewise.
20480         * math/s_casinhl.c (__casinhl): Likewise.
20481         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
20482         (casinh_test): Add more tests.
20483         * sysdeps/i386/fpu/libm-test-ulps: Update.
20484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20485
20486 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
20487
20488         * po/zh_TW.po: Update from translation team.
20489
20490         * login/Makefile (distribute): Remove variable.
20491         * catgets/Makefile: Likewise.
20492         * mach/Makefile: Likewise.
20493         * malloc/Makefile: Likewise.
20494         * misc/Makefile: Likewise.
20495         * iconv/Makefile: Likewise.
20496         * nscd/Makefile: Likewise.
20497         * hurd/Makefile: Likewise.
20498         * manual/Makefile: Likewise.
20499         * locale/Makefile: Likewise.
20500         * intl/Makefile: Likewise.
20501         * conform/Makefile: Likewise.
20502         * nss/Makefile: Likewise.
20503         * time/Makefile: Likewise.
20504         * soft-fp/Makefile: Likewise.
20505         * dirent/Makefile: Likewise.
20506         * gmon/Makefile: Likewise.
20507         * po/Makefile: Likewise.
20508         * rt/Makefile: Likewise.
20509         * socket/Makefile: Likewise.
20510         * math/Makefile: Likewise.
20511         * signal/Makefile: Likewise.
20512         * debug/Makefile: Likewise.
20513         * elf/Makefile: Likewise.
20514         * timezone/Makefile: Likewise.
20515         * stdlib/Makefile: Likewise.
20516         * iconvdata/Makefile: Likewise.
20517         * sunrpc/Makefile: Likewise.
20518         * io/Makefile: Likewise.
20519         * argp/Makefile: Likewise.
20520         * inet/Makefile: Likewise.
20521         * hesiod/Makefile: Likewise.
20522         * grp/Makefile: Likewise.
20523         * csu/Makefile: Likewise.
20524         * wctype/Makefile: Likewise.
20525         * crypt/Makefile: Likewise.
20526         * libio/Makefile: Likewise.
20527         * string/Makefile: Likewise.
20528         * nis/Makefile: Likewise.
20529         * resolv/Makefile: Likewise.
20530         * stdio-common/Makefile: Likewise.
20531         * wcsmbs/Makefile: Likewise.
20532         * dlfcn/Makefile: Likewise.
20533         * posix/Makefile: Likewise.
20534
20535         [BZ #6959]
20536         * timezone/Makefile: Don't install timezone files, just the programs
20537         and scripts.
20538
20539 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
20540
20541         * nss/databases.def: Add missing gshadow entry.
20542
20543         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
20544
20545 2012-03-06  Marek Polacek  <polacek@redhat.com>
20546
20547         [BZ #13726]
20548         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
20549         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20550         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
20551         * stdio-common/tst-long-dbl-fphex.c: New file.
20552
20553 2012-03-06  David S. Miller  <davem@davemloft.net>
20554
20555         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20556         (set_obp_int): New function.
20557         (get_obp_int): New function.
20558         (__get_clockfreq_via_dev_openprom): Likewise.
20559         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
20560         Avoid unused variable warnings on 'val' and use builtin_expect.
20561         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
20562         __builtin_expect.
20563         (INLINE_CLONE_SYSCALL): Likewise.
20564
20565 2012-03-05  David S. Miller  <davem@davemloft.net>
20566
20567         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20568
20569 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
20570
20571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20572
20573         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
20574         only for |x| >= 40.
20575         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20576
20577 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20578
20579         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
20580         Replace gettimeofday with __vdso_gettimeofday.
20581
20582         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20583         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
20584         __vdso_clock_gettime and __vdso_getcpu.
20585
20586         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
20587         time with __vdso_time.
20588
20589 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20590
20591         * manual/lang.texi (size_t): Note types to which size_t may be
20592         equivalent with the GNU C Library, but do not describe when
20593         differences between them are significant.
20594
20595 2012-03-05  Andreas Jaeger  <aj@suse.de>
20596
20597         * sysdeps/i386/fpu/libm-test-ulps: Update.
20598
20599 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20600
20601         [BZ #3976]
20602         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
20603         (__ieee754_pow): Save and restore rounding mode and use
20604         round-to-nearest for main computations.
20605         * math/libm-test.inc (pow_test_tonearest): New function.
20606         (pow_test_towardzero): Likewise.
20607         (pow_test_downward): Likewise.
20608         (pow_test_upward): Likewise.
20609         (main): Call the new functions.
20610         * sysdeps/i386/fpu/libm-test-ulps: Update.
20611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20612
20613         [BZ #3976]
20614         * math/libm-test.inc (cosh_test_tonearest): New function.
20615         (cosh_test_towardzero): Likewise.
20616         (cosh_test_downward): Likewise.
20617         (cosh_test_upward): Likewise.
20618         (sinh_test_tonearest): Likewise.
20619         (sinh_test_towardzero): Likewise.
20620         (sinh_test_downward): Likewise.
20621         (sinh_test_upward): Likewise.
20622         (main): Call the new functions.
20623         * sysdeps/i386/fpu/libm-test-ulps: Update.
20624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20625
20626 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20627
20628         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20629         default stack guard is set in last bytes.
20630         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20631
20632 2012-03-05  Kees Cook  <keescook@chromium.org>
20633
20634         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20635
20636         [BZ #13656]
20637         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20638         possibly allocate from heap instead of stack.
20639         * stdio-common/bug-vfprintf-nargs.c: New file.
20640         * stdio-common/Makefile (tests): Add nargs overflow test.
20641
20642 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20643
20644         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20645
20646 2012-03-03  Marek Polacek  <polacek@redhat.com>
20647
20648         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20649         * math/math_private.h: Likewise.
20650         * stdlib/tst-strtod.c: Likewise.
20651         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20652         * sysdeps/x86_64/bits/atomic.h: Likewise.
20653
20654 2012-03-02  David S. Miller  <davem@davemloft.net>
20655
20656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20658         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20660         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20661         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20662         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20663         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20664
20665 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20666
20667         [BZ #13792]
20668         * manual/examples/README: New file, says the example source files
20669         can be used under GPL>=2.
20670         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20671         line containing just "*/".
20672         * manual/examples/add.c: Add copyright header (GPL>=2).
20673         * manual/examples/argp-ex1.c: Likewise.
20674         * manual/examples/argp-ex2.c: Likewise.
20675         * manual/examples/argp-ex3.c: Likewise.
20676         * manual/examples/argp-ex4.c: Likewise.
20677         * manual/examples/atexit.c: Likewise.
20678         * manual/examples/db.c: Likewise.
20679         * manual/examples/dir.c: Likewise.
20680         * manual/examples/dir2.c: Likewise.
20681         * manual/examples/execinfo.c: Likewise.
20682         * manual/examples/filecli.c: Likewise.
20683         * manual/examples/filesrv.c: Likewise.
20684         * manual/examples/fmtmsgexpl.c: Likewise.
20685         * manual/examples/genpass.c: Likewise.
20686         * manual/examples/inetcli.c: Likewise.
20687         * manual/examples/inetsrv.c: Likewise.
20688         * manual/examples/isockad.c: Likewise.
20689         * manual/examples/longopt.c: Likewise.
20690         * manual/examples/memopen.c: Likewise.
20691         * manual/examples/memstrm.c: Likewise.
20692         * manual/examples/mkfsock.c: Likewise.
20693         * manual/examples/mkisock.c: Likewise.
20694         * manual/examples/mygetpass.c: Likewise.
20695         * manual/examples/pipe.c: Likewise.
20696         * manual/examples/popen.c: Likewise.
20697         * manual/examples/rprintf.c: Likewise.
20698         * manual/examples/search.c: Likewise.
20699         * manual/examples/select.c: Likewise.
20700         * manual/examples/setjmp.c: Likewise.
20701         * manual/examples/sigh1.c: Likewise.
20702         * manual/examples/sigusr.c: Likewise.
20703         * manual/examples/stpcpy.c: Likewise.
20704         * manual/examples/strdupa.c: Likewise.
20705         * manual/examples/strftim.c: Likewise.
20706         * manual/examples/strncat.c: Likewise.
20707         * manual/examples/subopt.c: Likewise.
20708         * manual/examples/swapcontext.c: Likewise.
20709         * manual/examples/termios.c: Likewise.
20710         * manual/examples/testopt.c: Likewise.
20711         * manual/examples/testpass.c: Likewise.
20712         * manual/examples/timeval_subtract.c: Likewise.
20713
20714         [BZ #13792]
20715         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20716         function to ...
20717         * manual/timeval_subtract.c.texi: ... here, new file.
20718
20719 2012-03-02  David S. Miller  <davem@davemloft.net>
20720
20721         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20722
20723 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20724
20725         [BZ #3976]
20726         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20727         (__sin): Save and restore rounding mode and use round-to-nearest
20728         for all computations.
20729         (__cos): Save and restore rounding mode and use round-to-nearest
20730         for all computations.
20731         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20732         <fenv.h>.
20733         (tan): Save and restore rounding mode and use round-to-nearest for
20734         all computations.
20735         * math/libm-test.inc (cos_test_tonearest): New function.
20736         (cos_test_towardzero): Likewise.
20737         (cos_test_downward): Likewise.
20738         (cos_test_upward): Likewise.
20739         (sin_test_tonearest): Likewise.
20740         (sin_test_towardzero): Likewise.
20741         (sin_test_downward): Likewise.
20742         (sin_test_upward): Likewise.
20743         (tan_test_tonearest): Likewise.
20744         (tan_test_towardzero): Likewise.
20745         (tan_test_downward): Likewise.
20746         (tan_test_upward): Likewise.
20747         (main): Call the new functions.
20748         * sysdeps/i386/fpu/libm-test-ulps: Update.
20749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20750
20751         [BZ #10135]
20752         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20753         small n, then large n, before computing and testing k+n.
20754         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20755         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20756         Likewise.
20757         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20758         Likewise.
20759         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20760         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20761         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20762         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20763         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20764         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20765         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20766         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20767         * math/libm-test.inc (scalbn_test): Add more tests.
20768         (scalbln_test): Likewise.
20769
20770         * manual/filesys.texi (mode_t): Describe constraints on size and
20771         signedness, not exact equivalence to a particular type.
20772         (ino_t): Likewise.
20773         (ino64_t): Likewise.
20774         (dev_t): Likewise.
20775         (nlink_t): Likewise.
20776         (blkcnt_t): Likewise.
20777         (blkcnt64_t): Likewise.
20778         * manual/llio.texi (off_t): Likewise.
20779
20780         [BZ #3976]
20781         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20782         (__ieee754_exp): Save and restore rounding mode and use
20783         round-to-nearest for all computations.
20784         * math/libm-test.inc (exp_test_tonearest): New function.
20785         (exp_test_towardzero): Likewise.
20786         (exp_test_downward): Likewise.
20787         (exp_test_upward): Likewise.
20788         (main): Call the new functions.
20789         * sysdeps/i386/fpu/libm-test-ulps: Update.
20790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20791
20792 2012-03-01  Chris Demetriou  <cgd@google.com>
20793
20794         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20795         have predictable order.
20796
20797 2012-03-01  David S. Miller  <davem@davemloft.net>
20798
20799         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20800
20801         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20802         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20803         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20804         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20805
20806         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20807         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20808         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20810         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20811         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20812         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20813         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20814         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20815
20816         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20817
20818         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20819         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20820         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20821
20822         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20823         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20824         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20825         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20826         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20827         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20828         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20829         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20830         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20831         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20832         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20833         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20834         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20835         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20836         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20837         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20838         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20839         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20840         * sysdeps/sparc/elf/configure: Regenerated.
20841
20842 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20843
20844         * configure.in (AS, LD): Require binutils 2.20 or later.
20845         * configure: Regenerated.
20846         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20847         as required minimum version.
20848         * INSTALL: Regenerated.
20849
20850         [BZ #2541]
20851         [BZ #4108]
20852         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20853         before squaring exponent.
20854         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20855         bottom long double and 27 bits of top long double before squaring
20856         exponent.
20857         * math/libm-test.inc (erfc_test): Add more tests.
20858         * sysdeps/i386/fpu/libm-test-ulps: Update.
20859         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20861
20862 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20863
20864         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20865         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20866         containing bit-fields.
20867         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20868         * soft-fp/single.h (_FP_UNION_S): Likewise.
20869         * soft-fp/double.h (_FP_UNION_D): Likewise.
20870
20871 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20872
20873         [BZ #13786]
20874         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20875         not include ../strcmp.S.
20876         [USE_AS_STRNCASECMP_L]: Likewise.
20877         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20878         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20879         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20880         (__strncasecmp_l_ia32): Define as alias to
20881         __strncasecmp_l_nonascii.
20882
20883         [BZ #5794]
20884         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20885         * sysdeps/i386/fpu/libm-test-ulps: Update.
20886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20887
20888         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20890
20891 2012-02-29  Jeff Law  <law@redhat.com>
20892
20893         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20894         out of bounds read.
20895
20896 2012-02-29  Marek Polacek  <polacek@redhat.com>
20897
20898         [BZ #13706]
20899         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20900         * elf/Makefile: Add rules to run tst-unused-dep.out.
20901
20902 2012-02-28  David S. Miller  <davem@davemloft.net>
20903
20904         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20905         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20906         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20907         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20908         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20909         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20910
20911 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20912
20913         * math/libm-test.inc (llround_test): Move one test from
20914         lround_test.  Use TEST_f_L in moved test.
20915         (lround_test): Move misplaced test to llround_test.  Add testcase
20916         from bug 2561.
20917
20918 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20919
20920         * sysdeps/x86_64/fpu/e_expf.S: New file.
20921         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20922
20923 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20924
20925         [BZ #13637]
20926         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20927         of remain_len that may cause incomplete multi-byte character and
20928         false match.
20929         * posix/bug-regex33.c: New file.
20930         * posix/Makefile (tests): Add bug-regex33.
20931
20932 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20933
20934         * manual/macros.texi: New file.
20935         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20936         * manual/libc.texinfo: Include macros.texi.
20937         * manual/creatute.texi: Likewise.
20938         * manual/install.texi: Likewise.
20939         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20940         @glibcadj{} in references to the GNU C Library.
20941         * manual/charset.texi: Likewise.
20942         * manual/conf.texi: Likewise.
20943         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20944         when not using those macros.
20945         * manual/creature.texi: Likewise.
20946         * manual/crypt.texi: Likewise.
20947         * manual/errno.texi: Likewise.
20948         * manual/filesys.texi: Likewise.
20949         * manual/header.texi: Likewise.
20950         * manual/install.texi: Likewise.
20951         * manual/intro.texi: Likewise.
20952         * manual/io.texi: Likewise.
20953         * manual/job.texi: Likewise.
20954         * manual/lang.texi: Likewise.
20955         * manual/libc.texiinfo: Likewise.
20956         * manual/llio.texi: Likewise.
20957         * manual/locale.texi: Likewise.
20958         * manual/maint.texi: Likewise.
20959         * manual/math.texi: Likewise.
20960         * manual/memory.texi: Likewise.
20961         * manual/message.texi: Likewise.
20962         * manual/nss.texi: Likewise.
20963         * manual/pattern.texi: Likewise.
20964         * manual/process.texi: Likewise.
20965         * manual/resource.texi: Likewise.
20966         * manual/search.texi: Likewise.
20967         * manual/setjmp.texi: Likewise.
20968         * manual/signal.texi: Likewise.
20969         * manual/socket.texi: Likewise.
20970         * manual/startup.texi: Likewise.
20971         * manual/stdio.texi: Likewise.
20972         * manual/string.texi: Likewise.
20973         * manual/sysinfo.texi: Likewise.
20974         * manual/syslog.texi: Likewise.
20975         * manual/terminal.texi: Likewise.
20976         * manual/time.texi: Likewise.
20977         * manual/users.texi: Likewise.
20978         * INSTALL: Regenerated.
20979         * NOTES: Regenerated.
20980         * sysdeps/gnu/errlist.c: Regenerated.
20981
20982 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20983
20984         * include/dirent.h: Include <dirstream.h> before
20985         <dirent/dirent.h>.
20986
20987 2012-02-28  David S. Miller  <davem@davemloft.net>
20988
20989         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20990         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20991         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20992         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20993
20994 2012-02-27  David S. Miller  <davem@davemloft.net>
20995
20996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20998         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20999         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
21000
21001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
21002         frame pointer instead of stack pointer relative arg slot.
21003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21004         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21005         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21006
21007 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
21008
21009         [BZ #3992]
21010         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
21011
21012 2012-02-27  David S. Miller  <davem@davemloft.net>
21013
21014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
21015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
21016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
21018         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
21019         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
21020         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
21021         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
21022
21023 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21024
21025         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
21026         later.  Allow versions 5-9.
21027         * configure: Regenerated.
21028         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
21029         required minimum version and 4.6 as recommended version.  Do not
21030         mention bugs in GCC 2.7 and 2.8.
21031         * INSTALL: Regenerated.
21032
21033 2012-02-27  David S. Miller  <davem@davemloft.net>
21034
21035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
21036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
21037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
21038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
21039         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
21040         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
21041         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
21042         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
21043
21044         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
21045         manipulate bits before adding and subtracting TWO112[sx].
21046         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21047
21048 2012-02-27  Roland McGrath  <roland@hack.frob.com>
21049
21050         [BZ #13775]
21051         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
21052         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
21053         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
21054         being in POSIX, because they are in 1003.1-2008.
21055
21056         * rt/tst-aio.c: Include <fcntl.h>.
21057         * rt/tst-aio7.c: Likewise.
21058         * rt/tst-aio64.c: Likewise.
21059
21060         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
21061
21062 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
21063
21064         * manual/install.texi (--with-headers): Describe headers as
21065         interface headers, not private headers.
21066         (Specific advice for GNU/Linux systems): Describe use of headers
21067         from "make headers_install", not private headers from older
21068         kernels.
21069         * INSTALL: Regenerated.
21070         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
21071         Change to 2.6.19.
21072         * sysdeps/unix/sysv/linux/configure: Regenerated.
21073
21074         * manual/llio.texi (fclean): Remove documentation.
21075
21076         * manual/Makefile (libc-texi-generated): New variable.  Include
21077         version.texi.
21078         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
21079         $(libc-texi-generated), not duplicated list of files.
21080         (version.texi, stamp-version): New rules.
21081         (realclean): Remove $(libc-texi-generated), not individual files
21082         from that list.  Do not remove dir-add.texinfo.
21083         * manual/libc.texinfo: Comment out uses of edition numbers and
21084         references to printed manual.  Remove last-updated dates.
21085         (EDITION): Comment out.
21086         (ISBN): Likewise.
21087         (VERSION, UPDATED): Remove.
21088         (version.texi): Include.
21089
21090 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
21091
21092         * sysdeps/posix/spawni.c: Include <signal.h>.
21093         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
21094         * sysdeps/pthread/aio_fsync.c: Likewise.
21095
21096 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
21097
21098         * conform/Makefile (tests): Run only when not cross-compiling and
21099         when fast-check is not defined.
21100
21101         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
21102         * conform/data/limits.h-data: Fixes for POSIX2008.
21103         * conform/run-conformtest.sh: Run all tests.
21104         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
21105         headers.
21106         * include/bits/dlfcn.h: Likewise.
21107         * include/langinfo.h: Likewise.
21108         * include/monetary.h: Likewise.
21109         * include/sys/poll.h: Likewise.
21110
21111         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
21112         for __USE_GNU.
21113         * posix/spawn.h: Define __need_sigset_t.
21114         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
21115         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
21116         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
21117         to get sigevent_t only.
21118         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
21119         only for __USE_GNU.
21120         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21121         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
21122         process_vm_writev only for __USE_GNU.
21123         * termios/termios.h: Declare tcgetsid also for POSIX2008.
21124
21125         * conform/Makefile: For now ignore errors from run-conformtest.
21126         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
21127         POSIX to avoid namespace pollution.  Don't prepend headers.
21128         * conform/data/aio.h-data: Fixes for POSIX testing.
21129         * conform/data/fcntl.h-data: Likewise.
21130         * conform/data/glob.h-data: Likewise.
21131         * conform/data/grp.h-data: Likewise.
21132         * conform/data/pthread.h-data: Likewise.
21133         * conform/data/pwd.h-data: Likewise.
21134         * conform/data/signal.h-data: Likewise.
21135         * conform/data/spawn.h-data: Likewise.
21136         * conform/data/stdio.h-data: Likewise.
21137         * conform/data/stdlib.h-data: Likewise.
21138         * conform/data/stropts.h-data: Likewise.
21139         * conform/data/sys/mman.h-data: Likewise.
21140         * conform/data/sys/stat.h-data: Likewise.
21141         * conform/data/sys/types.h-data: Likewise.
21142         * conform/data/sys/wait.h-data: Likewise.
21143         * conform/data/time.h-data: Likewise.
21144         * conform/data/unistd.h-data: Likewise.
21145         * conform/data/utime.h-data: Likewise.
21146
21147         * io/sys/stat.h: fchmod was always in POSIX.
21148         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
21149         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
21150         * rt/aio.h: Define __need_timespec before including <time.h>.
21151         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
21152         struct.  Add forward declaration of pthread_attr_t and use it in
21153         sigevent.
21154         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
21155         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
21156         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
21157         always remove CLK_TCK definition.
21158
21159 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
21160
21161         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
21162
21163 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
21164
21165         * conform/run-conformtest.sh: New file.
21166         * conform/Makefile: Run run-conformtest for tests.
21167         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
21168         support.
21169
21170         * conform/data/uchar.h-data: New file.
21171         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
21172         * conform/data/arpa/inet.h-data: Likewise.
21173         * conform/data/assert.h-data: Likewise.
21174         * conform/data/complex.h-data: Likewise.
21175         * conform/data/cpio.h-data: Likewise.
21176         * conform/data/ctype.h-data: Likewise.
21177         * conform/data/dirent.h-data: Likewise.
21178         * conform/data/dlfcn.h-data: Likewise.
21179         * conform/data/errno.h-data: Likewise.
21180         * conform/data/fcntl.h-data: Likewise.
21181         * conform/data/float.h-data: Likewise.
21182         * conform/data/fmtmsg.h-data: Likewise.
21183         * conform/data/fnmatch.h-data: Likewise.
21184         * conform/data/ftw.h-data: Likewise.
21185         * conform/data/glob.h-data: Likewise.
21186         * conform/data/grp.h-data: Likewise.
21187         * conform/data/iconv.h-data: Likewise.
21188         * conform/data/inttypes.h-data: Likewise.
21189         * conform/data/langinfo.h-data: Likewise.
21190         * conform/data/libgen.h-data: Likewise.
21191         * conform/data/limits.h-data: Likewise.
21192         * conform/data/locale.h-data: Likewise.
21193         * conform/data/math.h-data: Likewise.
21194         * conform/data/monetary.h-data: Likewise.
21195         * conform/data/mqueue.h-data: Likewise.
21196         * conform/data/ndbm.h-data: Likewise.
21197         * conform/data/net/if.h-data: Likewise.
21198         * conform/data/netdb.h-data: Likewise.
21199         * conform/data/netinet/in.h-data: Likewise.
21200         * conform/data/nl_types.h-data: Likewise.
21201         * conform/data/poll.h-data: Likewise.
21202         * conform/data/pthread.h-data: Likewise.
21203         * conform/data/pwd.h-data: Likewise.
21204         * conform/data/regex.h-data: Likewise.
21205         * conform/data/sched.h-data: Likewise.
21206         * conform/data/search.h-data: Likewise.
21207         * conform/data/semaphore.h-data: Likewise.
21208         * conform/data/setjmp.h-data: Likewise.
21209         * conform/data/signal.h-data: Likewise.
21210         * conform/data/spawn.h-data: Likewise.
21211         * conform/data/stdarg.h-data: Likewise.
21212         * conform/data/stdio.h-data: Likewise.
21213         * conform/data/stdlib.h-data: Likewise.
21214         * conform/data/string.h-data: Likewise.
21215         * conform/data/strings.h-data: Likewise.
21216         * conform/data/stropts.h-data: Likewise.
21217         * conform/data/sys/ipc.h-data: Likewise.
21218         * conform/data/sys/mman.h-data: Likewise.
21219         * conform/data/sys/msg.h-data: Likewise.
21220         * conform/data/sys/resource.h-data: Likewise.
21221         * conform/data/sys/select.h-data: Likewise.
21222         * conform/data/sys/sem.h-data: Likewise.
21223         * conform/data/sys/shm.h-data: Likewise.
21224         * conform/data/sys/socket.h-data: Likewise.
21225         * conform/data/sys/stat.h-data: Likewise.
21226         * conform/data/sys/statvfs.h-data: Likewise.
21227         * conform/data/sys/time.h-data: Likewise.
21228         * conform/data/sys/timeb.h-data: Likewise.
21229         * conform/data/sys/times.h-data: Likewise.
21230         * conform/data/sys/types.h-data: Likewise.
21231         * conform/data/sys/uio.h-data: Likewise.
21232         * conform/data/sys/un.h-data: Likewise.
21233         * conform/data/sys/utsname.h-data: Likewise.
21234         * conform/data/sys/wait.h-data: Likewise.
21235         * conform/data/syslog.h-data: Likewise.
21236         * conform/data/tar.h-data: Likewise.
21237         * conform/data/termios.h-data: Likewise.
21238         * conform/data/utime.h-data: Likewise.
21239         * conform/data/utmpx.h-data: Likewise.
21240         * conform/data/varargs.h-data: Likewise.
21241         * conform/data/wchar.h-data: Likewise.
21242         * conform/data/wctype.h-data: Likewise.
21243         * conform/data/wordexp.h-data: Likewise.
21244
21245         * include/stropts.h: New file.
21246         * include/uchar.h: New file.
21247         * include/aio.h: Changes to allow conformtest.pl to use the headers.
21248         * include/assert.h: Likewise.
21249         * include/ctype.h: Likewise.
21250         * include/dirent.h: Likewise.
21251         * include/dlfcn.h: Likewise.
21252         * include/fcntl.h: Likewise.
21253         * include/fnmatch.h: Likewise.
21254         * include/glob.h: Likewise.
21255         * include/grp.h: Likewise.
21256         * include/libio.h: Likewise.
21257         * include/locale.h: Likewise.
21258         * include/math.h: Likewise.
21259         * include/net/if.h: Likewise.
21260         * include/netdb.h: Likewise.
21261         * include/netinet/in.h: Likewise.
21262         * include/pthread.h: Likewise.
21263         * include/pwd.h: Likewise.
21264         * include/regex.h: Likewise.
21265         * include/sched.h: Likewise.
21266         * include/search.h: Likewise.
21267         * include/setjmp.h: Likewise.
21268         * include/signal.h: Likewise.
21269         * include/stdio.h: Likewise.
21270         * include/stdlib.h: Likewise.
21271         * include/string.h: Likewise.
21272         * include/sys/cdefs.h: Likewise.
21273         * include/sys/mman.h: Likewise.
21274         * include/sys/msg.h: Likewise.
21275         * include/sys/resource.h: Likewise.
21276         * include/sys/select.h: Likewise.
21277         * include/sys/socket.h: Likewise.
21278         * include/sys/stat.h: Likewise.
21279         * include/sys/statvfs.h: Likewise.
21280         * include/sys/time.h: Likewise.
21281         * include/sys/times.h: Likewise.
21282         * include/sys/uio.h: Likewise.
21283         * include/sys/utsname.h: Likewise.
21284         * include/sys/wait.h: Likewise.
21285         * include/termios.h: Likewise.
21286         * include/time.h: Likewise.
21287         * include/ulimit.h: Likewise.
21288         * include/unistd.h: Likewise.
21289         * include/utime.h: Likewise.
21290         * include/wchar.h: Likewise.
21291         * include/wctype.h: Likewise.
21292         * include/wordexp.h: Likewise.
21293
21294         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
21295
21296         * time/time.h: TIME_UTC must be a macro.
21297         Make timespec_get available for ISO C11 only as well.
21298
21299 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
21300
21301         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
21302         Reported by Peng Haitao <penght@cn.fujitsu.com>.
21303
21304 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21305
21306         * configure.in: Use -o not -a in test for unsupported multi-arch.
21307
21308 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21309
21310         * manual/texinfo.tex: Update to version 2012-01-19.16.
21311
21312 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21313
21314         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
21315
21316 2012-02-24  Roland McGrath  <roland@hack.frob.com>
21317
21318         [BZ #13738]
21319         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
21320         * manual/fdl-1.3.texi: New file.
21321         * manual/fdl-1.1.texi: File removed.
21322
21323         [BZ #13738]
21324         * manual/libc.texinfo (FDL_VERSION): New @set.
21325         Use it for mention of FDL in cover text.
21326         (Documentation License): Use it in @include file name.
21327
21328 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21329             Roland McGrath  <roland@hack.frob.com>
21330
21331         [BZ #5461]
21332         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
21333         not LONG_LONG_MAX and LONG_LONG_MIN.
21334         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
21335         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
21336         name.
21337         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
21338
21339 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21340
21341         [BZ #2547]
21342         [BZ #11365]
21343         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
21344         manipulate bits before adding and subtracting TWO23[sx].
21345         * math/libm-test.inc (nearbyint_test): Add more tests.
21346
21347 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21348
21349         [BZ #2548]
21350         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
21351         bits before adding and subtracting TWO23[sx].
21352         * math/libm-test.inc (rint_test): Add more tests.
21353         (rint_test_tonearest): Likewise.
21354         (rint_test_towardzero): Likewise.
21355         (rint_test_downward): Likewise.
21356         (rint_test_upward: Likewise.
21357
21358 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21359
21360         [BZ #10110]
21361         * include/stdc-predef.h: New file.  Extracted from features.h.
21362         * include/features.h: Include stdc-predef.h.
21363         * Makefile (headers): Add stdc-predef.h.
21364         * CONFORMANCE (Compiler limitations): Update.
21365
21366 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21367
21368         * manual/libc.texinfo (VERSION, UPDATED): Revert.
21369
21370 2012-02-21  David S. Miller  <davem@davemloft.net>
21371
21372         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
21373         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21374
21375 2012-02-20  David S. Miller  <davem@davemloft.net>
21376
21377         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
21378         using a normal save/restore sequence, rather than allocating a
21379         dummy stack frame just to store a frame pointer and restore.
21380         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21381
21382 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21383
21384         * manual/install.texi: Fix stray word in line-wrapped comment.
21385
21386 2012-02-20  David S. Miller  <davem@davemloft.net>
21387
21388         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
21389         both binutils and gcc support GOTDATA.
21390
21391         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
21392         "rd %pc" in the PIC register setup sequences.
21393
21394         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
21395         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
21396         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21397         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
21398         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21399         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21400         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21401         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21402         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
21403         (SYSCALL_ERROR_HANDLER): Likewise.
21404         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21405         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21406         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
21407         (SYSCALL_ERROR_HANDLER): Likewise.
21408
21409         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
21410         (HAVE_GCC_GOTDATA): New.
21411         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
21412         relocation support in both binutils and gcc.
21413         * sysdeps/sparc/elf/configure: Regenerate.
21414
21415         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
21416         * sysdeps/sparc/sparc32/elf/configure: Delete.
21417         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
21418         * sysdeps/sparc/sparc64/elf/configure: Delete.
21419         * sysdeps/sparc/elf/configure.in: New file.
21420         * sysdeps/sparc/elf/configure: Generate.
21421
21422         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
21423         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
21424         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21425         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
21426         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
21427
21428 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21429
21430         * manual/install.texi: Do not mention specific glibc version
21431         numbers.
21432         * manual/libc.texinfo (VERSION, UPDATED): Update.
21433         (@copying): Use @copyright{} and range of years.
21434
21435 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21436
21437         [BZ #13695]
21438         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
21439         [crti.S not in sysdirs] (generated): Do not append.
21440         [crti.S not in sysdirs] (omit-deps): Likewise.
21441         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
21442         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
21443         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
21444         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
21445         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
21446         Likewise.
21447         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
21448         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
21449         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
21450         * csu/defs.awk: Remove file.
21451         * sysdeps/generic/initfini.c: Likewise.
21452         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
21453         variable.
21454         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
21455         Likewise.
21456
21457 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21458
21459         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
21460         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
21461         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
21462         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
21463         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21464         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
21465         <bits/epoll.h>.
21466         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
21467         (__EPOLL_PACKED): Define to empty if not defined by
21468         <bits/epoll.h>.
21469         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
21470         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21471         bits/epoll.h.
21472
21473 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21474
21475         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
21476         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
21477         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
21478         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
21479         <bits/timerfd.h>.
21480         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
21481         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21482         bits/timerfd.h.
21483
21484 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21485
21486         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
21487         in C locale.
21488         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21489         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
21490         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
21491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21492
21493 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
21494
21495         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21496         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21497
21498 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21499
21500         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
21501         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
21502         defined.
21503         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
21504         Likewise.
21505         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
21506         entry for 2.16.
21507
21508 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
21509
21510         * math/w_acos.c: Use non-signaling floating-point comparisons.
21511         * math/w_acosf.c: Likewise.
21512         * math/w_acosh.c: Likewise.
21513         * math/w_acoshf.c: Likewise.
21514         * math/w_acoshl.c: Likewise.
21515         * math/w_acosl.c: Likewise.
21516         * math/w_asin.c: Likewise.
21517         * math/w_asinf.c: Likewise.
21518         * math/w_asinl.c: Likewise.
21519         * math/w_atanh.c: Likewise.
21520         * math/w_atanhf.c: Likewise.
21521         * math/w_atanhl.c: Likewise.
21522         * math/w_exp2.c: Likewise.
21523         * math/w_exp2f.c: Likewise.
21524         * math/w_exp2l.c: Likewise.
21525         * math/w_j0.c: Likewise.
21526         * math/w_j0f.c: Likewise.
21527         * math/w_j0l.c: Likewise.
21528         * math/w_j1.c: Likewise.
21529         * math/w_j1f.c: Likewise.
21530         * math/w_j1l.c: Likewise.
21531         * math/w_jn.c: Likewise.
21532         * math/w_jnf.c: Likewise.
21533         * math/w_log.c: Likewise.
21534         * math/w_log10.c: Likewise.
21535         * math/w_log10f.c: Likewise.
21536         * math/w_log10l.c: Likewise.
21537         * math/w_log2.c: Likewise.
21538         * math/w_log2f.c: Likewise.
21539         * math/w_log2l.c: Likewise.
21540         * math/w_logf.c: Likewise.
21541         * math/w_logl.c: Likewise.
21542         * math/w_sqrt.c: Likewise.
21543         * math/w_sqrtf.c: Likewise.
21544         * math/w_sqrtl.c: Likewise.
21545         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21546         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
21547         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21548         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21549         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21550
21551 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21552
21553         [BZ #9739]
21554         * manual/string.texi (strnlen): Use correct parameter name in
21555         equivalent expression.
21556
21557 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21558
21559         [BZ #11174]
21560         * manual/users.texi (seteuid): Consistently use neweuid for
21561         argument name.
21562
21563 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21564
21565         [BZ #13704]
21566         * manual/nss.texi (Services in the NSS configuration): Correct
21567         list of services in example configuration file.
21568
21569 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
21570
21571         [BZ #11322]
21572         * manual/arith.texi: Remove statements about negative zero
21573         behaving identically to zero.
21574
21575 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21576
21577         [BZ #5993]
21578         * manual/install.texi: Do not document upgrading from libc5.
21579
21580 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21581
21582         [BZ #4596]
21583         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
21584
21585 2012-02-18  David S. Miller  <davem@davemloft.net>
21586
21587         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
21588         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
21589         %o7 across the call.
21590         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
21591         instead.
21592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
21593         SETUP_PIC_REG_LEAF.
21594         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21595         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
21596         * sysdeps/sparc/crtn.S: Likewise.
21597
21598 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
21599
21600         * aout/Makefile: Remove.
21601
21602 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
21603
21604         [BZ #13058]
21605         * manual/examples/argp-ex1.c (main): Format definition in GNU
21606         style.
21607         * manual/examples/argp-ex2.c (main): Likewise.
21608         * manual/examples/argp-ex3.c (main): Likewise.
21609         * manual/examples/argp-ex4.c (main): Likewise.
21610         * manual/examples/longopt.c (main): Use new-style prototype
21611         definition.
21612         * manual/examples/strncat.c (main): Specify return type and use
21613         (void) for arguments.
21614         * manual/examples/subopt.c (main): Use char **argv argument.
21615
21616 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21617
21618         [BZ #5077]
21619         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
21620         rounding modes.
21621
21622 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
21623
21624         [BZ #6907]
21625         * manual/string.texi (strchr): Change when strchrnul is
21626         recommended.
21627
21628 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21629
21630         [BZ #174]
21631         * manual/locale.texi (setlocale): Document LOCPATH.
21632
21633 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21634
21635         [BZ #10210]
21636         * manual/process.texi (execle): Move @dots{} before last argument.
21637
21638 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21639
21640         [BZ #12047]
21641         * manual/charset.texi (Generic Charset Conversion): Fix typo
21642         (LC_TYPE -> LC_CTYPE).
21643
21644 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21645
21646         [BZ #5805]
21647         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21648         (scalbnf): Likewise.
21649         (scalbnl): Likewise.
21650         (scalbln): Likewise.
21651         (scalblnf): Likewise.
21652         (scalblnl): Likewise.
21653         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21654         (vwarnx): Likewise.
21655         (verr): Likewise.
21656         (verrx): Likewise.
21657         * manual/filesys.texi (telldir): Use braces around return type.
21658         * manual/llio.texi (mmap): Add space after comma.
21659         (mmap64): Likewise.
21660         * manual/math.texi (jn): Use @var{} on parameter names.
21661         (jnf): Likewise.
21662         (jnl): Likewise.
21663         (yn): Likewise.
21664         (ynf): Likewise.
21665         (ynl): Likewise.
21666         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21667         line.
21668         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21669         "...".
21670         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21671         (sched_get_priority_max): Likewise.
21672         * manual/signal.texi (sigvec): Add space after comma.
21673         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21674         names.
21675         (if_indextoname): Likewise.
21676         (if_freenameindex): Likewise.
21677         (sendto): Use ',' instead of '.' in prototype.
21678         * manual/startup.texi (syscall): Use @dots{} instead of literal
21679         "...".
21680         * manual/stdio.texi (__fpending): Separate initial words of
21681         paragraph from @deftypefun line.
21682         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21683         "...".
21684         (vsyslog): Use @var{} on parameter names.
21685         * manual/terminal.texi (stty): Use @var{} on parameter names.
21686         * manual/users.texi (getutmp): Use @var{} on parameter names.
21687         (getutmpx): Likewise.
21688
21689 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21690
21691         [BZ #6884]
21692         * manual/stdio.texi (fopen): Fix typos in description of
21693         ",ccs=STRING".
21694
21695 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21696
21697         [BZ #4026]
21698         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21699         get clock_id definition.
21700
21701 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21702
21703         [BZ #4822]
21704         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21705         (madvise): Cast every argument to void on its own.
21706
21707 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21708
21709         [BZ #9902]
21710         * manual/startup.texi (Exit Status): Fix typo.
21711
21712 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21713
21714         [BZ #10140]
21715         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21716         * manual/examples/argp-ex2.c: Likewise.
21717         * manual/examples/argp-ex3.c: Likewise.
21718
21719 2012-02-16  Richard Henderson  <rth@redhat.com>
21720
21721         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21722         * sysdeps/s390/s390-32/initfini.c: Remove.
21723         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21724         * sysdeps/s390/s390-64/initfini.c: Remove.
21725
21726 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21727
21728         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21729         compiler output for sysdeps/generic/initfini.c.
21730         * sysdeps/sh/elf/initfini.c: Remove file.
21731
21732 2012-02-16  David S. Miller  <davem@davemloft.net>
21733
21734         [BZ #11494]
21735         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21736
21737         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21738         * sysdeps/sparc/crti.S: New file.
21739         * sysdeps/sparc/crtn.S: New file.
21740         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21741         * sysdeps/sparc/sparc64/Makefile: Likewise.
21742
21743 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21744
21745         [BZ #3335]
21746         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21747
21748 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21749
21750         [BZ #4822]
21751         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21752
21753         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21754         (write, read, close): Likewise.
21755         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21756
21757 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21758
21759         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21760         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21761         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21762         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21763         <bits/signalfd.h>.
21764         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21765         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21766         bits/signalfd.h.
21767
21768 2012-02-14  Marek Polacek  <polacek@redhat.com>
21769
21770         * sysdeps/x86_64/crti.S: New file.
21771         * sysdeps/x86_64/crtn.S: New file.
21772         * sysdeps/x86_64/elf/initfini.c: Remove file.
21773
21774 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21775
21776         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21777         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21778         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21779         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21780         <bits/inotify.h>.
21781         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21782         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21783         bits/inotify.h.
21784
21785 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21786
21787         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21788         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21789         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21790         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21791         <bits/eventfd.h>.
21792         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21793         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21794         bits/eventfd.h.
21795
21796 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21797
21798         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21799         __feraiseexcept instead of feraiseexcept.
21800
21801         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21802         nanosleep invocations.
21803         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21804         strings, and add error checking for a nanosleep invocations.
21805
21806 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21807
21808         Replace FSF snail mail address with URLs, as per GNU coding standards.
21809         Most of the snail mail addresses were wrong anyway, and omitting
21810         them makes the source code easier to maintain.  Almost all of the
21811         changes are to license notices and to locale LC_IDENTIFICATION
21812         addresses, except for this one:
21813         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21814         not its snail mail address.
21815
21816 2012-02-09  Richard Henderson  <rth@twiddle.net>
21817
21818         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21819         of kernel-features.h.
21820
21821         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21822
21823 2012-02-08  Marek Polacek  <polacek@redhat.com>
21824
21825         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21826         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21827         * sysdeps/gnu/_G_config.h: Likewise.
21828         * sysdeps/generic/_G_config.h: Likewise.
21829
21830 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21831
21832         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21833         tests.
21834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21835
21836         * sysdeps/powerpc/powerpc32/crti.S: New file.
21837         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21838         * sysdeps/powerpc/powerpc64/crti.S: New file.
21839         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21840
21841         * Makeconfig (have-initfini): Don't set.
21842         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21843         * configure.in (nopic_initfini): Don't substitute.
21844         * config.h.in (HAVE_INITFINI): Don't #undef.
21845         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21846         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21847
21848 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21849
21850         Support crti.S and crtn.S provided directly by architectures.
21851         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21852         [crti.S in sysdirs] (omit-deps): Likewise.
21853         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21854         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21855         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21856         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21857         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21858         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21859         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21860         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21861         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21862         compiler output for sysdeps/generic/initfini.c.
21863         * sysdeps/i386/elf/Makefile: Remove file.
21864         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21865
21866 2012-02-07  Marek Polacek  <polacek@redhat.com>
21867
21868         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21869         * sysdeps/gnu/_G_config.h: Likewise.
21870         * sysdeps/mach/hurd/_G_config.h: Likewise.
21871
21872 2012-02-07  Marek Polacek  <polacek@redhat.com>
21873
21874         * math/Makefile (tests): Add tst-CMPLX2.
21875         * math/tst-CMPLX2.c: New file.
21876
21877 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21878
21879         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21880
21881         * math/libm-test.inc (jn_test): Add missing L suffix.
21882
21883 2012-02-06  Marek Polacek  <polacek@redhat.com>
21884
21885         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21886         * sysdeps/i386/fpu/e_powf.S: Likewise.
21887         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21888         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21889         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21890         * sysdeps/i386/fpu/e_pow.S: Likewise.
21891         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21892         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21893         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21894         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21895         * sysdeps/i386/fpu/e_log2.S: Likewise.
21896         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21897         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21898         * sysdeps/i386/fpu/e_powl.S: Likewise.
21899         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21900         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21901         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21902         * sysdeps/i386/fpu/e_logl.S: Likewise.
21903         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21904         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21905         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21906         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21907         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21908         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21909         * sysdeps/i386/fpu/e_log.S: Likewise.
21910         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21911         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21912         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21913         * sysdeps/i386/fpu/e_logf.S: Likewise.
21914         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21915         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21916         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21917         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21918         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21919         * sysdeps/i386/fpu/e_log10.S: Likewise.
21920         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21921         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21922         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21923         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21924         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21925         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21926         * sysdeps/i386/asm-syntax.h: Likewise.
21927         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21928         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21929         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21930         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21931         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21932         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21933         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21934         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21935         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21936         * sysdeps/powerpc/sysdep.h: Likewise.
21937         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21938         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21939
21940 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21941
21942         [BZ #411]
21943         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21944
21945 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21946
21947         * sysdeps/i386/sysdep.h: Include <features.h>.
21948         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21949         version.
21950
21951 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21952
21953         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21954         Define.
21955         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21956         LOAD_PIC_REG_STR.
21957
21958 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21959
21960         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21961         (SETUP_PIC_REG): Use GET_PC_THUNK.
21962         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21963         macro.
21964
21965 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21966
21967         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21968         for non-PIC compilation.
21969         (SETUP_PIC_REG): Add .p2align directive.
21970         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21971         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21972         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21973         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21974         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21975         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21976         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21977         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21978         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21979         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21980         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21981         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21982         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21983         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21984         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21985         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21986         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21987         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21988         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21989         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21990         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21991         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21992         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21993         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21994         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21995         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21996         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21997         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21998         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21999         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
22000         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
22001         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22002         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
22003         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
22004         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
22005         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
22006         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
22007         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
22008         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
22009         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
22010         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
22011
22012 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
22013
22014         * math/tst-CMPLX.c: Include <stdio.h>.
22015
22016 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
22017
22018         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
22019         float.
22020         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22021         * sysdeps/sparc/bits/mathdef.h: Likewise.
22022
22023 2012-01-31  Marek Polacek  <polacek@redhat.com>
22024
22025         * libio/libio.h: Don't define _PARAMS.
22026         * locale/programs/config.h: Don't define PARAMS.
22027         * stdlib/strtol_l.c: Likewise.
22028         (__strtol_l): Remove PARAMS from the prototype.
22029
22030 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
22031
22032         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
22033         names.  Just use the correct names.  Remove unnecessary wrapper
22034         functions.
22035         * malloc/arena.c: Likewise.
22036         * malloc/hooks.c: Likewise.
22037
22038         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
22039         ARENA_TEST says not to.  Simplify test for creation of a new arena.
22040         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
22041
22042 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
22043
22044         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
22045         into tail calls.
22046         (update_get_addr): New function.
22047         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
22048         GET_ADDR_MODULE parameter.
22049
22050 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22051
22052         * crypt/cert.c: Remove __STDC__ conditionals.
22053         * crypt/crypt-entry.c: Likewise.
22054         * crypt/crypt_util.c: Likewise.
22055         * libio/filedoalloc.c: Likewise.
22056         * libio/fileops.c: Likewise.
22057         * libio/genops.c: Likewise.
22058         * libio/iofclose.c: Likewise.
22059         * libio/iofdopen.c: Likewise.
22060         * libio/iofopen.c: Likewise.
22061         * libio/iofopen64.c: Likewise.
22062         * libio/iogetdelim.c: Likewise.
22063         * libio/iopopen.c: Likewise.
22064         * libio/obprintf.c: Likewise.
22065         * libio/oldfileops.c: Likewise.
22066         * libio/oldiofclose.c: Likewise.
22067         * libio/oldiofdopen.c: Likewise.
22068         * libio/oldiofopen.c: Likewise.
22069         * libio/oldiopopen.c: Likewise.
22070         * libio/wfiledoalloc.c: Likewise.
22071         * libio/wgenops.c: Likewise.
22072         * locale/programs/xmalloc.c: Likewise.
22073         * misc/syslog.c: Likewise.
22074         * stdio-common/xbug.c: Likewise.
22075         * string/memchr.c: Likewise.
22076         * string/memcmp.c: Likewise.
22077         * string/memrchr.c: Likewise.
22078         * string/rawmemchr.c: Likewise.
22079         * sysdeps/posix/getcwd.c: Likewise.
22080         * time/strftime_l.c: Likewise.
22081
22082 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
22083
22084         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
22085         * config.make.in (config-cflags-sse2avx): Define.
22086         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
22087         Fix typo.
22088
22089 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
22090
22091         * scripts/config.guess: Update from upstream config git repository.
22092         * scripts/config.sub: Likewise.
22093
22094 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
22095
22096         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
22097         (EM_NUM): Update.
22098         (R_TILEPRO_*, R_TILEGX_*): New macros.
22099
22100         * scripts/firstversions.awk: Fix bug in version range handling.
22101
22102         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
22103
22104         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
22105
22106         * include/sys/epoll.h: New file.
22107         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
22108         libc_hidden_def.
22109
22110 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
22111
22112         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
22113         Avoid unnecessary __WORDSIZE == 64 test.
22114         (fmaxf): Use VEX format if possible.
22115         (fmax): Likewise.
22116         (fminf): Likewise.
22117         (fmin): Likewise.
22118
22119         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
22120         * math/math_private.h: Remove libc_fegetround* and
22121         libc_fesetround*.
22122         * sysdeps/i386/configure.in: Check for -msse2avx.
22123         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
22124         also if SSE2AVX is defined.
22125         Remove libc_fegetround* and libc_fesetround*.
22126         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
22127         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
22128         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
22129         of HAS_YMM_USABLE.
22130         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22131         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22132         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22133         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22134         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22135
22136         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
22137
22138 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22139
22140         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
22141         size is not set.
22142         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
22143
22144 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
22145
22146         [BZ #13618]
22147         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
22148         relocation.
22149         * Makeconfig (libm): Define.
22150         * elf/Makefile: Add rules to build and run tst-relsort1.
22151         * elf/tst-relsort1.c: New file.
22152         * elf/tst-relsort1mod1.c: New file.
22153         * elf/tst-relsort1mod2.c: New file.
22154
22155 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
22156
22157         * math/s_ldexp.c: Remove __STDC__ conditionals.
22158         * math/s_ldexpf.c: Likewise.
22159         * math/s_ldexpl.c: Likewise.
22160         * math/s_nextafter.c: Likewise.
22161         * math/s_nexttowardf.c: Likewise.
22162         * math/s_significand.c: Likewise.
22163         * math/s_significandf.c: Likewise.
22164         * math/s_significandl.c: Likewise.
22165         * math/w_jnl.c: Likewise.
22166         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
22167         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
22168         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
22169         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
22170         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
22171         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
22172         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
22173         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
22174         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
22175         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
22176         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
22177         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22178         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
22179         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
22180         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
22181         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
22182         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
22183         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
22184         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
22185         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22186         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22187         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
22188         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
22189         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
22190         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
22191         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
22192         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
22193         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
22194         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22195         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
22196         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
22197         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
22198         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
22199         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
22200         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
22201         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
22202         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
22203         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
22204         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
22205         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
22206         * sysdeps/ieee754/k_standard.c: Likewise.
22207         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22208         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
22209         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
22210         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
22211         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
22212         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
22213         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
22214         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
22215         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
22216         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
22217         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
22218         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
22219         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
22220         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
22221         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
22222         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
22223         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
22224         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
22225         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
22226         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
22227         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
22228         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
22229         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
22230         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
22231         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
22232         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
22233         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22234         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22235         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22236         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
22237         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
22238         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
22239         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
22240         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
22241         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
22242         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
22243         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
22244         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
22245         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
22246         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
22247         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
22248         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
22249         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22250         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
22251         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
22252         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
22253         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
22254         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
22255         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
22256         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22257         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
22258         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
22259         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
22260         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
22261         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
22262         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
22263         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
22264         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22265         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22266         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22267         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
22268         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
22269         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
22270         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
22271         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
22272         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
22273         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
22274         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
22275         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
22276         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
22277         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
22278         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
22279         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
22280         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
22281         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
22282         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
22283         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
22284         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
22285         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
22286         * sysdeps/ieee754/s_matherr.c: Likewise.
22287         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
22288         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
22289         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
22290         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
22291
22292 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22293
22294         * crypt/md5.h: Remove __STDC__ conditionals.
22295         * libio/libioP.h: Likewise.
22296         * locale/programs/config.h: Likewise.
22297         * sysdeps/generic/sysdep.h: Likewise.
22298         * sysdeps/i386/asm-syntax.h: Likewise.
22299         * sysdeps/s390/asm-syntax.h: Likewise.
22300         * sysdeps/unix/sysdep.h: Likewise.
22301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
22302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22303
22304 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22305
22306         * libio/libio.h: Remove __STDC__ conditionals.
22307         * malloc/obstack.h: Likewise.
22308         * math/complex.h: Likewise.
22309         * math/math.h: Likewise.
22310         * sysdeps/generic/_G_config.h: Likewise.
22311         * sysdeps/gnu/_G_config.h: Likewise.
22312         * sysdeps/mach/hurd/_G_config.h: Likewise.
22313         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22314         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22315         * sysdeps/sparc/bits/mathdef.h: Likewise.
22316
22317 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
22318
22319         [BZ #13583]
22320         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
22321         Clean up HAS_* macros.
22322         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
22323         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
22324         possible.
22325         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
22326         HAS_AVX.
22327         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22328         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22329         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22330         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22331         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22332
22333 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
22334
22335         * elf/tst-unique3.cc (gets): Remove declaration.
22336         * elf/tst-unique3lib.cc (gets): Likewise.
22337         * elf/tst-unique3lib2.cc (gets): Likewise.
22338         * elf/tst-unique4.cc (gets): Likewise.
22339
22340 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
22341
22342         * include/stdio.h: Add C++ protection.  Add gets declarations and
22343         definitions.
22344         * debug/tst-chk1.c: Don't declare gets here.
22345         * stdio-common/tst-gets.c: Likewise.
22346
22347 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22348
22349         * posix/glob: Remove directory.
22350
22351 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22352
22353         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
22354
22355 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
22356
22357         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
22358         of the non-standard EPFNOSUPPORT.
22359
22360 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22361
22362         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
22363         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
22364         ANYWHERE set to 1 only on KERN_NO_SPACE error.
22365
22366 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
22367
22368         * wcsmbs/uchar.h: Test __STDC_VERSION__.
22369
22370 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
22371
22372         * nscd/aicache.c (addhstaiX): Do not cache negative results of
22373         transient errors.
22374         * nscd/grpcache.c (cache_addgr): Likewise.
22375         * nscd/hstcache.c (cache_addhst): Likewise.
22376         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22377         * nscd/pwdcache.c (cache_addpw): Likewise.
22378         * nscd/servicescache.c (cache_addserv): Likewise.
22379
22380 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
22381
22382         * malloc/malloc.c: Various cleanups.
22383         * malloc/hooks.c: Likewise.
22384
22385         * stdlib/Makefile (tests): Add bug-fmtmsg1.
22386         * stdlib/bug-fmtmsg1.c: New file.
22387
22388         * stdlib/fmtmsg.c (init): Add missing unlock.
22389         Patch by Peng Haitao <penght@cn.fujitsu.com>.
22390
22391 2012-01-12  Marek Polacek  <polacek@redhat.com>
22392
22393         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
22394         and _GNU_SOURCE.
22395
22396 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22397
22398         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
22399         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
22400         macro to ensure uniqueness of label name.
22401         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22402         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22403
22404 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
22405
22406         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
22407
22408         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
22409         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
22410         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
22411         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
22412
22413 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
22414
22415         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
22416
22417         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
22418         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
22419         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
22420
22421         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
22422
22423         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
22424         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
22425         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
22426         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
22427
22428         * math/bits/math-finite.h: Add ldexp support.
22429
22430 2012-01-10  Marek Polacek  <polacek@redhat.com>
22431
22432         * locale/programs/localedef.h (show_archive_content): Add noreturn
22433         attribute.
22434
22435 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
22436
22437         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
22438
22439 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22440
22441         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
22442
22443         * io/Makefile (headers): Add bits/poll2.h.
22444
22445 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
22446
22447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
22448         typo #include statement.
22449
22450 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22451
22452         * include/sys/cdefs.h: Define __attribute_alloc_size.
22453         * catgets/gencat.c: Add alloc_size attribute and apply consistently
22454         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
22455         * elf/pldd.c: Likewise.
22456         * iconv/iconv_charmap.c: Likewise.
22457         * iconv/iconvconfig.c: Likewise.
22458         * iconv/strtab.c: Likewise.
22459         * locale/programs/locale.c: Likewise.
22460         * locale/programs/localedef.h: Likewise.
22461         * locale/programs/simple-hash.c: Likewise.
22462         * nscd/nscd.h: Likewise.
22463         * nss/makedb.c: Likewise.
22464         * sysdeps/generic/ldconfig.h: Likewise.
22465         * locale/programs/localedef.c: Remove xmalloc prototype.
22466         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
22467
22468 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22469
22470         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
22471         appropriate.
22472
22473 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22474
22475         * math/Makefile (tests): Add tst-CMPLX.
22476         * math/tst-CMPLX.c: New file.
22477
22478         * math/complex.h (CMPLXL): Fix typo.
22479
22480         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
22481         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
22482         GLIBC_2.16.
22483         * debug/tst-chk1.c: Add poll and ppoll tests.
22484         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
22485         * include/sys/poll.h: Add hidden proto for ppoll.
22486         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
22487         * sysdeps/mach/hurd/ppoll.c: Likewise.
22488         * io/ppoll.c: Likewise.
22489         * debug/poll_chk.c: New file.
22490         * debug/ppoll_chk.c: New file.
22491         * include/bits/poll2.h: New file.
22492         * io/bits/poll2.h: New file.
22493
22494         [BZ #1350]
22495         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
22496
22497         * configure.in: static is always set to yes.  Remove.
22498         * config.make.in: Don't set build-static.
22499         * Makeconfig: Remove use of build-static.
22500         * dlfcn/Makefile: Likewise.
22501         * elf/Makefile: Likewise.
22502         * math/Makefile: Likewise.
22503         * misc/Makefile: Likewise.
22504         * nptl/Makefile: Likewise.
22505         * sysdeps/mach/hurd/Makefile: Likewise.
22506
22507         * configure.in: PWD_P is not used anymore.
22508         * config.make.in: Remove PWD_P entry.
22509
22510         * configure.in: Remove last remnants of RANLIB.
22511         No need to check for signed size_t anymore.
22512         Don't set libc_commonpagesize and libc_relro_required here for Alpha
22513         and IA-64.
22514         Remove __builtin_expect test because we require at least gcc 3.4.
22515         * aclocal.m4: Likewise.
22516
22517         * wcsmbs/mbrtoc16.c: Implement using towc function.
22518         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
22519         * wcsmbs/wcsmbsload.c: Likewise.
22520         * iconv/gconv_simple.c: Likewise.
22521         * iconv/gconv_int.h: Likewise.
22522         * iconv/gconv_builtin.h: Likewise.
22523         * iconv/iconv_prog.c: Remove CHAR16 handling.
22524
22525         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
22526
22527         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
22528
22529         * configure.in: Remove --with-elf and --enable-bounded options.
22530         Dont set base_machine for ia64.  More non-ELF conditions removed.
22531         Remove testing and setting of leading underscore information.
22532         * config.make.in (build-bounded): Set to no.
22533         * config.h.in: Remove NO_UNDERSCORES entry.
22534         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
22535         them.
22536         * csu/start.c: Remove !NO_UNDERSCORE code.
22537         * locale/localeinfo.h: Likewise.
22538         * sysdeps/generic/machine-gmon.h: Likewise.
22539         * sysdeps/generic/sysdep.h: Likewise.
22540         * sysdeps/i386/sysdep.h: Likewise.
22541         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22542         * sysdeps/mach/sysdep.h: Likewise.
22543         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22544         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22545         * sysdeps/sh/sysdep.h: Likewise.
22546         * sysdeps/sparc/sparc32/alloca.S: Likewise.
22547         * sysdeps/unix/i386/sysdep.S: Likewise.
22548         * sysdeps/unix/sparc/start.c: Likewise.
22549         * sysdeps/unix/sparc/sysdep.S: Likewise.
22550         * sysdeps/unix/sparc/sysdep.h: Likewise.
22551         * sysdeps/unix/start.c: Likewise.
22552         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22553         * sysdeps/x86_64/sysdep.h: Likewise.
22554
22555 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
22556
22557         [BZ #13553]
22558         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
22559         for non-gcc.
22560         * argp/argp-fmtstream.h: Use const instead __const.
22561         * argp/argp.h: Likewise.
22562         * assert/assert.h: Likewise.
22563         * bits/fenv.h: Likewise.
22564         * bits/sched.h: Likewise.
22565         * bits/sigset.h: Likewise.
22566         * bits/sigthread.h: Likewise.
22567         * catgets/nl_types.h: Likewise.
22568         * conform/data/pthread.h-data: Likewise.
22569         * crypt/crypt-private.h: Likewise.
22570         * crypt/crypt.h: Likewise.
22571         * crypt/crypt_util.c: Likewise.
22572         * ctype/ctype.h: Likewise.
22573         * debug/execinfo.h: Likewise.
22574         * debug/mbsnrtowcs_chk.c: Likewise.
22575         * debug/mbsrtowcs_chk.c: Likewise.
22576         * debug/wcsnrtombs_chk.c: Likewise.
22577         * debug/wcsrtombs_chk.c: Likewise.
22578         * debug/wcstombs_chk.c: Likewise.
22579         * dirent/dirent.h: Likewise.
22580         * dlfcn/dlfcn.h: Likewise.
22581         * elf/neededtest4.c: Likewise.
22582         * grp/grp.h: Likewise.
22583         * gshadow/gshadow.h: Likewise.
22584         * iconv/gconv.h: Likewise.
22585         * iconv/gconv_int.h: Likewise.
22586         * iconv/gconv_simple.c: Likewise.
22587         * iconv/iconv.h: Likewise.
22588         * iconv/loop.c: Likewise.
22589         * iconv/skeleton.c: Likewise.
22590         * include/aio.h: Likewise.
22591         * include/aliases.h: Likewise.
22592         * include/argz.h: Likewise.
22593         * include/arpa/inet.h: Likewise.
22594         * include/assert.h: Likewise.
22595         * include/dirent.h: Likewise.
22596         * include/dlfcn.h: Likewise.
22597         * include/execinfo.h: Likewise.
22598         * include/fcntl.h: Likewise.
22599         * include/fenv.h: Likewise.
22600         * include/glob.h: Likewise.
22601         * include/grp.h: Likewise.
22602         * include/libintl.h: Likewise.
22603         * include/mntent.h: Likewise.
22604         * include/netdb.h: Likewise.
22605         * include/pwd.h: Likewise.
22606         * include/rpc/netdb.h: Likewise.
22607         * include/sched.h: Likewise.
22608         * include/search.h: Likewise.
22609         * include/shadow.h: Likewise.
22610         * include/signal.h: Likewise.
22611         * include/stdio.h: Likewise.
22612         * include/stdlib.h: Likewise.
22613         * include/string.h: Likewise.
22614         * include/sys/socket.h: Likewise.
22615         * include/sys/stat.h: Likewise.
22616         * include/sys/statfs.h: Likewise.
22617         * include/sys/statvfs.h: Likewise.
22618         * include/sys/syslog.h: Likewise.
22619         * include/sys/time.h: Likewise.
22620         * include/sys/uio.h: Likewise.
22621         * include/time.h: Likewise.
22622         * include/unistd.h: Likewise.
22623         * include/utmp.h: Likewise.
22624         * include/wchar.h: Likewise.
22625         * include/wctype.h: Likewise.
22626         * inet/aliases.h: Likewise.
22627         * inet/arpa/inet.h: Likewise.
22628         * inet/netinet/ether.h: Likewise.
22629         * inet/netinet/in.h: Likewise.
22630         * intl/libintl.h: Likewise.
22631         * io/bits/fcntl2.h: Likewise.
22632         * io/fcntl.h: Likewise.
22633         * io/ftw.h: Likewise.
22634         * io/sys/poll.h: Likewise.
22635         * io/sys/stat.h: Likewise.
22636         * io/sys/statfs.h: Likewise.
22637         * io/sys/statvfs.h: Likewise.
22638         * io/utime.h: Likewise.
22639         * libio/bits/stdio.h: Likewise.
22640         * libio/bits/stdio2.h: Likewise.
22641         * libio/libio.h: Likewise.
22642         * libio/libioP.h: Likewise.
22643         * libio/stdio.h: Likewise.
22644         * locale/lc-ctype.c: Likewise.
22645         * locale/locale.h: Likewise.
22646         * login/utmp.h: Likewise.
22647         * malloc/arena.c: Likewise.
22648         * malloc/malloc.c: Likewise.
22649         * malloc/malloc.h: Likewise.
22650         * malloc/mcheck.c: Likewise.
22651         * malloc/mtrace.c: Likewise.
22652         * math/bits/mathcalls.h: Likewise.
22653         * math/fenv.h: Likewise.
22654         * math/math_private.h: Likewise.
22655         * misc/bits/error.h: Likewise.
22656         * misc/bits/syslog.h: Likewise.
22657         * misc/err.h: Likewise.
22658         * misc/error.h: Likewise.
22659         * misc/fstab.h: Likewise.
22660         * misc/mntent.h: Likewise.
22661         * misc/regexp.h: Likewise.
22662         * misc/search.h: Likewise.
22663         * misc/sgtty.h: Likewise.
22664         * misc/sys/mman.h: Likewise.
22665         * misc/sys/syslog.h: Likewise.
22666         * misc/sys/uio.h: Likewise.
22667         * misc/sys/xattr.h: Likewise.
22668         * misc/ttyent.h: Likewise.
22669         * nis/rpcsvc/ypclnt.h: Likewise.
22670         * nss/nss.h: Likewise.
22671         * posix/bits/unistd.h: Likewise.
22672         * posix/fnmatch.h: Likewise.
22673         * posix/glob.h: Likewise.
22674         * posix/sched.h: Likewise.
22675         * posix/spawn.h: Likewise.
22676         * posix/sys/wait.h: Likewise.
22677         * posix/unistd.h: Likewise.
22678         * posix/wordexp.h: Likewise.
22679         * pwd/pwd.h: Likewise.
22680         * resolv/netdb.h: Likewise.
22681         * resource/sys/resource.h: Likewise.
22682         * rt/aio.h: Likewise.
22683         * rt/bits/mqueue2.h: Likewise.
22684         * rt/mqueue.h: Likewise.
22685         * shadow/shadow.h: Likewise.
22686         * signal/signal.h: Likewise.
22687         * socket/send.c: Likewise.
22688         * socket/sendto.c: Likewise.
22689         * socket/sys/socket.h: Likewise.
22690         * stdio-common/printf.h: Likewise.
22691         * stdlib/bits/stdlib.h: Likewise.
22692         * stdlib/fmtmsg.h: Likewise.
22693         * stdlib/monetary.h: Likewise.
22694         * stdlib/stdlib.h: Likewise.
22695         * stdlib/ucontext.h: Likewise.
22696         * streams/stropts.h: Likewise.
22697         * string/argz.h: Likewise.
22698         * string/bits/string2.h: Likewise.
22699         * string/string.h: Likewise.
22700         * string/strings.h: Likewise.
22701         * sunrpc/rpc/auth.h: Likewise.
22702         * sunrpc/rpc/auth_des.h: Likewise.
22703         * sunrpc/rpc/clnt.h: Likewise.
22704         * sunrpc/rpc/netdb.h: Likewise.
22705         * sunrpc/rpc/pmap_clnt.h: Likewise.
22706         * sunrpc/rpc/xdr.h: Likewise.
22707         * sysdeps/generic/inttypes.h: Likewise.
22708         * sysdeps/generic/net/if.h: Likewise.
22709         * sysdeps/generic/sys/swap.h: Likewise.
22710         * sysdeps/gnu/net/if.h: Likewise.
22711         * sysdeps/gnu/utmpx.h: Likewise.
22712         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22713         * sysdeps/i386/i486/bits/string.h: Likewise.
22714         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22715         * sysdeps/s390/bits/string.h: Likewise.
22716         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22717         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22718         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22719         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22720         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22721         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22722         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22723         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22724         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22725         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22726         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22727         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22728         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22729         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22730         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22731         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22732         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22733         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22734         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22735         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22736         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22737         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22738         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22739         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22740         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22741         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22742         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22743         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22744         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22745         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22746         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22747         * sysvipc/sys/ipc.h: Likewise.
22748         * sysvipc/sys/msg.h: Likewise.
22749         * sysvipc/sys/sem.h: Likewise.
22750         * sysvipc/sys/shm.h: Likewise.
22751         * termios/termios.h: Likewise.
22752         * time/sys/time.h: Likewise.
22753         * time/time.h: Likewise.
22754         * wcsmbs/bits/wchar2.h: Likewise.
22755         * wcsmbs/uchar.h: Likewise.
22756         * wcsmbs/wchar.h: Likewise.
22757         * wctype/wctype.h: Likewise.
22758
22759         [BZ #13551]
22760         * Makeconfig: Remove all but ELF support including AIX support.
22761         * Makerules: Likewise.
22762         * config.h.in: Likewise.
22763         * config.make.in: Likewise.
22764         * configure: Likewise.
22765         * configure.in: Likewise.
22766         * csu/Makefile: Likewise.
22767         * csu/version.c: Likewise.
22768         * debug/Makefile: Likewise.
22769         * dlfcn/Makefile: Likewise.
22770         * elf/Makefile: Likewise.
22771         * extra-lib.mk: Likewise.
22772         * iconv/Makefile: Likewise.
22773         * include/libc-symbols.h: Likewise.
22774         * include/shlib-compat.h: Likewise.
22775         * resolv/Makefile: Likewise.
22776         * resolv/res_libc.c: Likewise.
22777         * rt/Makefile: Likewise.
22778         * sysdeps/i386/asm-syntax.h: Likewise.
22779         * sysdeps/i386/sysdep.h: Likewise.
22780         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22781         * sysdeps/mach/sysdep.h: Likewise.
22782         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22783         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22784         * sysdeps/s390/asm-syntax.h: Likewise.
22785         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22786         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22787         * sysdeps/sh/sysdep.h: Likewise.
22788         * sysdeps/unix/sparc/sysdep.h: Likewise.
22789         * sysdeps/wordsize-32/divdi3.c: Likewise.
22790         * sysdeps/x86_64/sysdep.h: Likewise.
22791
22792         * argp/Versions: Remove _argp_unlock_xxx.
22793
22794         [BZ #13559]
22795         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22796         * abilist/libBrokenLocale.abilist: Likewise.
22797         * abilist/libanl.abilist: Likewise.
22798         * abilist/libc.abilist: Likewise.
22799         * abilist/libcrypt.abilist: Likewise.
22800         * abilist/libdl.abilist: Likewise.
22801         * abilist/libm.abilist: Likewise.
22802         * abilist/libnsl.abilist: Likewise.
22803         * abilist/libpthread.abilist: Likewise.
22804         * abilist/libresolv.abilist: Likewise.
22805         * abilist/librt.abilist: Likewise.
22806         * abilist/libthread_db.abilist: Likewise.
22807         * abilist/libutil.abilist: Likewise.
22808         * abilist/libnss_db.abilist: New file.
22809
22810         * scripts/abilist.awk: Add support for indirect functions.
22811
22812         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22813
22814         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22815
22816         * shlib-versions: Remove entries for ports architectures.
22817
22818         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22819         files in ports.
22820         * elf/stackguard-macros.h: Remove support for IA-64.
22821         * elf/tst-auditmod1.c: Likewise.
22822         * sysdeps/generic/ldsodefs.h: Likewise.
22823
22824         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22825         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22826         configure files.
22827
22828         [BZ #13552]
22829         * configure.in: Remove --enable-omitfp support.
22830         * FAQ.in: Adjust.
22831         * config.make.in: Likewise.
22832         * Makeconfig: Likewise.
22833         * manual/install.texi: Likewise.
22834
22835         In case anyone cares, the IA-64 architecture could move to ports.
22836         * sysdeps/ia64/*: Removed.
22837         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22838         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22839
22840         [BZ #13555]
22841         * configure.in: Remove entries for unsupported architectures.
22842
22843         [BZ #13533]
22844         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22845         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22846         routines.
22847         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22848         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22849         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22850         fall back to using wcrtomb.
22851         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22852         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22853         renaming.
22854         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22855         * wcsmbs/tst-c16c32-1.c: New file.
22856
22857         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22858         local variable.
22859
22860         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22861
22862         * elf/tst-unique3.cc: Add explicit declaration of gets.
22863         * elf/tst-unique3lib.cc: Likewise.
22864         * elf/tst-unique3lib2.cc: Likewise.
22865         * elf/tst-unique4.cc: Likewise.
22866
22867         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22868
22869 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22870
22871         [BZ #13566]
22872         * assert/assert.h (static_assert): Don't define for C++.
22873         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22874         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22875
22876 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22877
22878         * iconv/loop.c (single loop): Fix assertion in storing of
22879         remaining bytes.
22880
22881         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22882
22883 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22884
22885         * posix/getconf.c: Update copyright year.
22886         * nss/getent.c: Likewise.
22887         * nss/makedb.c: Likewise.
22888         * iconv/iconvconfig.c: Likewise.
22889         * iconv/iconv_prog.c: Likewise.
22890         * elf/ldconfig.c: Likewise.
22891         * elf/pldd.c: Likewise.
22892         * elf/sotruss.ksh: Likewise.
22893         * catgets/gencat.c: Likewise.
22894         * csu/version.c: Likewise.
22895         * elf/ldd.bash.in: Likewise.
22896         * elf/sprof.c (print_version): Likewise.
22897         * locale/programs/locale.c: Likewise.
22898         * locale/programs/localedef.c: Likewise.
22899         * login/programs/pt_chown.c: Likewise.
22900         * nscd/nscd.c (print_version): Likewise.
22901         * debug/xtrace.sh: Likewise.
22902         * malloc/memusage.sh: Likewise.
22903         * malloc/mtrace.pl: Likewise.
22904         * debug/catchsegv.sh: Likewise.
22905
22906 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22907
22908         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22909         pure attribute.
22910
22911 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22912
22913         [BZ #13533]
22914         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22915         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22916         transformations.
22917         * iconv/gconv_int.h: Likewise.
22918         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22919         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22920         from libc for GLIBC_2.16.
22921         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22922         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22923         * wcsmbs/uchar.h: Really define mbstate_t.
22924         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22925         * wcsmbs/c16rtomb.c: New file.
22926         * wcsmbs/mbrtoc16.c: New file.
22927         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22928         for C/POSIX locale.
22929         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22930         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22931
22932         * wcsmbs/wchar.h: Add missing __restrict.
22933
22934 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22935
22936         [BZ #13532]
22937         * time/Makefile (routines): Add timespec_get.
22938         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22939         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22940         timespec for ISO C11.
22941         * time/timespec_get.c: New file.
22942         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22943         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22944
22945         [BZ #13531]
22946         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22947         * stdlib/stdlib.h: Declare aligned_alloc.
22948         * Versions.def: Add GLIBC_2.16 for libc.
22949         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22950
22951         [BZ 13527]
22952         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22953         ISO C11.
22954
22955         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22956         code.
22957
22958         [BZ #13528]
22959         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22960
22961         [BZ #13529]
22962         * assert/assert.h (static_assert): Define.
22963
22964         * version.h: Update for 2.16 development version.
22965
22966         [BZ #13526]
22967         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22968         _ISOC11_SOURCE.
22969
22970         * version.h (RELEASE): Bump for 2.15 release.
22971         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22972
22973         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22974         Patch by Marek Polacek <mpolacek@redhat.com>.
22975
22976         * bits/byteswap.h: Protect long long constants with __extension__.
22977         * sysdeps/i386/bits/byteswap.h: Likewise.
22978         * sysdeps/ia64/bits/byteswap.h: Likewise.
22979         * sysdeps/s390/bits/byteswap.h: Likewise.
22980         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22981
22982 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22983
22984         [BZ #13540]
22985         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22986         destination buffer.
22987         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22988
22989 2011-12-23  Marek Polacek  <polacek@redhat.com>
22990
22991         * elf/dl-addr.c (determine_info): Add inline keyword.
22992         * elf/tst-auditmod4b.c (check_avx): Likewise.
22993         * elf/tst-auditmod6b.c (check_avx): Likewise.
22994         * elf/tst-auditmod6c.c (check_avx): Likewise.
22995         * elf/tst-auditmod7b.c (check_avx): Likewise.
22996
22997 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22998
22999         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
23000         !__SSE_MATH__.
23001
23002 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23003
23004         [BZ #13540]
23005         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
23006         processing for last bytes.
23007
23008 2011-08-06  Bruno Haible  <bruno@clisp.org>
23009
23010         [BZ #13061]
23011         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
23012         U+0385, not to U+1FEE.
23013
23014         [BZ #13062]
23015         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
23016         entry for U+00A5 U+0301.
23017
23018 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23019
23020         [BZ #13166]
23021         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
23022         buffer for the output is too small.
23023
23024         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
23025         optimization.
23026
23027         [BZ #13185]
23028         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
23029         SSE flags if possible.
23030
23031 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23032
23033         [BZ #13540]
23034         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
23035         processing for last bytes.
23036
23037 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
23038
23039         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
23040         (syscall-list-default-options, syscall-list-default-condition)
23041         (syscall-list-includes): Define.
23042         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
23043         list of ABIs and options and #if conditions for each ABI.  Do not
23044         handle common syscalls between ABIs specially.
23045         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
23046         Remove.
23047         (syscall-list-variants, syscall-list-32bit-options)
23048         (syscall-list-32bit-condition, syscall-list-64bit-options)
23049         (syscall-list-64bit-condition): Define.
23050         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
23051         (syscall-list-variants, syscall-list-32bit-options)
23052         (syscall-list-32bit-condition, syscall-list-64bit-options)
23053         (syscall-list-64bit-condition): Define.
23054         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
23055         Remove.
23056         (syscall-list-variants, syscall-list-32bit-options)
23057         (syscall-list-32bit-condition, syscall-list-64bit-options)
23058         (syscall-list-64bit-condition): Define.
23059         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
23060         Remove.
23061         (syscall-list-variants, syscall-list-32bit-options)
23062         (syscall-list-32bit-condition, syscall-list-64bit-options)
23063         (syscall-list-64bit-condition): Define.
23064
23065 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
23066
23067         * locale/iso-639.def: Add brx entry.
23068
23069         [BZ #13328]
23070         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
23071         Proposed by Mariusz_Cukr <marcukr@op.pl>.
23072
23073         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
23074         __feraiseexcept_renamed.
23075
23076 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23077
23078         [BZ #13538]
23079         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
23080         EPOLLET with unsigned values.
23081         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23082         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
23083
23084         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
23085         to large cancellation.
23086         * math/s_cacoshf.c: Likewise.
23087         * math/s_cacoshl.c: Likewise.
23088
23089 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
23090
23091         [BZ #13305]
23092         [BZ #12786]
23093         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
23094         * math/s_cacoshf.c: Likewise.
23095         * math/s_cacoshl.c: Likewise.
23096
23097 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
23098
23099         [BZ #13439]
23100         * iconv/gconv.h: Define __GCONV_SWAP.
23101         * iconvdata/unicode.c: The swap bit must be stored in __flags.
23102         * iconvdata/utf-16.c: Likewise.
23103         * iconvdata/utf-32.c: Likewise.
23104
23105 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
23106
23107         [BZ #13524]
23108         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
23109         numerator after shifting it by one limb.
23110
23111 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
23112
23113         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
23114         under [__USE_EXTERN_INLINES].
23115
23116 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23117
23118         [BZ #13446]
23119         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
23120
23121 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23122
23123         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
23124         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
23125         optimized code.
23126         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
23127         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
23128         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
23129         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
23130         for strncasecmp/strncasecmp_l compilation.
23131         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
23132         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
23133
23134 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
23135
23136         [BZ #13484]
23137         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
23138         of __asm__.
23139
23140 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
23141
23142         [BZ #13506]
23143         * time/tzfile.c (__tzfile_read): Check values from file header.
23144
23145 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
23146
23147         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
23148         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
23149         * powerpc/powerpc32/dl-start.S: Likewise.
23150         * powerpc/powerpc32/elf/start.S: Likewise.
23151         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23152         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
23153         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
23154         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
23155         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23156         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
23157         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
23158         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
23159         * powerpc/powerpc32/fpu/s_round.S: Likewise.
23160         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
23161         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
23162         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
23163         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23164         * powerpc/powerpc32/memset.S: Likewise.
23165         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
23166         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23167         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23168         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23169         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23170         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23171         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23172         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23173         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
23174         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
23175         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
23176         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
23177         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
23178
23179 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23180
23181         * math/libm-test.inc: Added more nearbyint tests.
23182         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
23183         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
23184         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
23185         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
23186
23187 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
23188
23189         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
23190         FD_CLOEXEC.
23191
23192 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23193
23194         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
23195         Add wcscpy-ssse3 wcscpy-c.
23196         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
23197         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
23198         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
23199         * sysdeps/x86_64/wcschr.S: New file.
23200         * sysdeps/x86_64/wcsrchr.S: New file.
23201         * string/test-strcmp.c: Remove checking of wcscmp function for
23202         wrong alignments.
23203         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
23204         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
23205         wcsrchr-sse2 wcsrchr-c.
23206         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
23207         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
23208         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
23209         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
23210         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
23211         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
23212         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
23213         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
23214         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
23215         * wcsmbc/wcschr.c (WCSCHR): New macro.
23216
23217 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23218
23219         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
23220         * wcsmbs/test-wcsrchr.c: New file.
23221         * string/test-strrchr.c: Add wcsrchr support.
23222         (WIDE): New macro.
23223         * wcsmbs/test-wcscpy.c: New file.
23224         * string/test-strcpy.c: Add wcscpy support.
23225         (WIDE): New macro.
23226
23227 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
23228
23229         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
23230         the inner loop.
23231
23232 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
23233
23234         [BZ #13472]
23235         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
23236
23237 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
23238
23239         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
23240         Minor optimizations.
23241
23242         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
23243         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
23244         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
23245
23246 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
23247
23248         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
23249         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
23250         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
23251         for gcc to avoid warnings.
23252         * inet/Makefile (tests): Add tst-checks.
23253         * inet/tst-checks.c: New file.
23254
23255         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
23256         warning.
23257
23258         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
23259         __wmemcmp_sse2.
23260
23261         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
23262         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
23263
23264         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
23265
23266 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
23267
23268         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
23269         problem.
23270
23271         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
23272
23273 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
23274
23275         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
23276         conditional on GCC version.
23277         (__arch_compare_and_exchange_val_8_acq)
23278         (__arch_compare_and_exchange_val_16_acq)
23279         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
23280         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
23281         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
23282
23283 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
23284
23285         * sysdeps/sh/backtrace.c: New file.
23286
23287 2011-12-02  Andreas Schwab  <schwab@redhat.com>
23288
23289         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
23290         parenthesis.
23291
23292 2011-12-01  Andreas Schwab  <schwab@redhat.com>
23293
23294         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
23295         falling back to utime.
23296
23297 2011-11-30  Andreas Schwab  <schwab@redhat.com>
23298
23299         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
23300         expectations for float.
23301
23302 2011-11-29  Andreas Schwab  <schwab@redhat.com>
23303
23304         * locale/weight.h (findidx): Add parameter len.
23305         * locale/weightwc.h (findidx): Likewise.
23306         * posix/fnmatch_loop.c (FCT): Adjust caller.
23307         * posix/regcomp.c (build_equiv_class): Likewise.
23308         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
23309         * posix/regexec.c (check_node_accept_bytes): Likewise.
23310         * string/strcoll_l.c (STRCOLL): Likewise.
23311         * string/strxfrm_l.c (STRXFRM): Likewise.
23312
23313 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
23314
23315         * Makefile.in: Remove CVSOPT handling.
23316         * configure.in: Remove use of AC_REVISION.
23317         * iconvdata/Makefile (distribute): No need to filter out CVS.
23318         * scripts/list-sources.sh: Remove CVS, subversion and monotone
23319         handling.
23320
23321 2011-11-16  Andreas Schwab  <schwab@redhat.com>
23322
23323         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
23324         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
23325         [USE_AS_STRNCASECMP_L]: Likewise.
23326         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
23327         NO_TLS_DIRECT_SEG_REFS.
23328         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
23329         Fix argument offsets for non-PIC.
23330         [USE_AS_STRNCASECMP_L]: Likewise.
23331         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
23332         NO_TLS_DIRECT_SEG_REFS.
23333
23334 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23335
23336         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
23337         O_CLOEXEC.
23338         * locale/loadlocale.c (_nl_load_locale): Likewise.
23339
23340 2011-11-15  Andreas Schwab  <schwab@redhat.com>
23341
23342         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
23343         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
23344         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
23345         (SYSCALL_GETTIME): Set errno on error.
23346
23347         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
23348         count references to noai6ai_cached.
23349
23350 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23351
23352         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
23353
23354         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
23355         FD_CLOEXEC for /proc/self/maps.
23356
23357         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
23358         FD_CLOEXEC for /proc/meminfo.
23359
23360         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
23361         gai.conf.
23362
23363         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
23364         FD_CLOEXEC for given file.
23365
23366         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
23367
23368         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
23369         FD_CLOEXEC for /etc/hosts.
23370         (_gethtent): Likewise.
23371
23372         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
23373
23374         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
23375         cancellation and set FD_CLOEXEC for /etc/netgroup.
23376
23377         * nss/nss_files/files-key.c (search): Don't allow cancellation when
23378         reading /etc/publickey.
23379
23380         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
23381         allow cancellation when reading /etc/group.
23382
23383         * nss/nss_files/files-alias.c (internal_setent): Don't allow
23384         cancellation.
23385         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
23386
23387         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
23388         when using data file.
23389
23390         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
23391
23392         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
23393         (write_nis_obj): Use "c" and "e" in fopen.
23394
23395         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
23396
23397         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
23398
23399         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
23400
23401         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
23402
23403         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
23404         locale.alias.
23405
23406         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
23407
23408         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
23409
23410         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
23411
23412         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
23413         file parsing and set FD_CLOEXEC.
23414
23415 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23416
23417         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
23418
23419 2011-11-14  Andreas Schwab  <schwab@redhat.com>
23420
23421         * malloc/arena.c (arena_get2): Don't call reused_arena when
23422         _int_new_arena failed.
23423
23424 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23425
23426         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
23427         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
23428         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
23429         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23430         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
23431         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
23432         to compile strcasecmp and strncasecmp.
23433         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
23434         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
23435
23436         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
23437
23438 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
23439
23440         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
23441         locale-defines.sym to gen-as-const-headers.
23442         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
23443         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
23444         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
23445         to compile strcasecmp and strncasecmp.
23446         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
23447         strcasecmp_l and strncasecmp_l.
23448         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
23449         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
23450         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
23451         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
23452         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
23453         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
23454         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
23455         * sysdeps/i386/i686/multiarch/strncase.S: New file.
23456         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
23457         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
23458         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
23459
23460 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
23461
23462         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
23463         result of SYSDEP_GETTIME_CPU to retval.
23464         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
23465         parameter list to macro.  Remove trailing semicolon.  Adjust users.
23466
23467         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
23468         variable.
23469
23470         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
23471         mantissa words.
23472         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
23473
23474         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
23475         from unused variable.
23476
23477         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
23478         DWARF definitions.
23479         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
23480         for assembling.
23481
23482         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
23483         over namespaces.
23484
23485         * sunrpc/rpc_prot.c (rejected): Fix case value.
23486
23487         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
23488         unsigned long long int to avoid warnings in shift.
23489
23490         * posix/regex_internal.c (re_string_reconstruct): Actually use result
23491         of use of trans.
23492         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
23493         variable tmp.
23494
23495         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
23496         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23497         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23498
23499         * nis/nis_table.c (nis_list): Use variable of correct type for
23500         result of __follow_path call.
23501
23502 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23503
23504         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
23505         of math functions ceil, trunc, floor, round, and sqrt, when
23506         avaliable on the platform.
23507         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
23508         name clash.
23509         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23510         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23511         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23512
23513 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
23514
23515         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
23516         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
23517
23518 2011-11-11  Roland McGrath  <roland@hack.frob.com>
23519
23520         * include/unistd.h: Fix __readlink return type.
23521         Reported by Chris Metcalf <cmetcalf@tilera.com>.
23522
23523 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
23524
23525         * stdlib/ucontext.h: Undo last change for makecontext.
23526
23527 2011-11-11  Andreas Schwab  <schwab@redhat.com>
23528
23529         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
23530
23531         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
23532         * setjmp/setjmp.h: Mark functions as non-leaf.
23533         * setjmp/bits/setjmp2.h: Likewise.
23534         * stdlib/ucontext.h: Likewise.
23535
23536 2011-11-10  Andreas Schwab  <schwab@redhat.com>
23537
23538         * malloc/arena.c (_int_new_arena): Don't increment narenas.
23539         (reused_arena): Don't check arena limit.
23540         (arena_get2): Atomically check arena limit.
23541
23542 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
23543
23544         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
23545         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
23546
23547         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
23548         instructions.
23549
23550 2011-11-07  Andreas Schwab  <schwab@redhat.com>
23551
23552         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
23553         handler when locking.
23554
23555         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23556         Fix size of allocated buffer.
23557
23558 2011-11-04  Andreas Schwab  <schwab@redhat.com>
23559
23560         [BZ #10103]
23561         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
23562         declarations for long double functions.
23563         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
23564
23565         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
23566
23567 2011-11-03  Andreas Schwab  <schwab@redhat.com>
23568
23569         * nscd/nscd.c (main): Don't start AVC thread until credentials are
23570         installed.
23571
23572         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
23573         is disabled.
23574
23575 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23576
23577         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
23578
23579 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23580
23581         * include/alloca.h (stackinfo_alloca_round): Define.
23582         (extend_alloca): Use it.
23583         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
23584         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
23585         here.
23586
23587         * scripts/check-local-headers.sh: Ignore libaudit.h.
23588
23589         * nscd/Makefile (extra-objs): Make recursively expanded.
23590
23591 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
23592
23593         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
23594         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
23595
23596         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
23597         * posix/tst-rfc3484-2.c: Likewise.
23598         * posix/tst-rfc3484-3.c: Likewise.
23599
23600         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23601         process_vm_writev.
23602         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
23603         process_vm_writev.
23604         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
23605         process_vm_writev from libc using GLIBC_2.15 version.
23606
23607         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
23608
23609 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
23610
23611         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
23612         stack usage.
23613
23614 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
23615
23616         [BZ #13367]
23617         * nss/getent.c (initgroups_keys): Show error message in case no group
23618         names are given.
23619
23620         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
23621         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
23622         __bump_nl_timestamp.
23623         * nscd/connections (nscd_init): When host database is served open
23624         netlink socket and request notification about configuration changes.
23625         (main_loop_poll): Track netlink file descriptor and bump timestamp
23626         in case data becomes available.
23627         (main_loop_epoll): Likewise.
23628         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23629         (database_pers_head): Add extra_data fileds.
23630         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23631         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23632         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23633         Adjust caller.
23634         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23635         in6ai data, call __free_in6ai.
23636         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23637         Add -DHAVE_NETLINK.
23638         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23639         interface information.  Reuse previous data if netlink timestamp
23640         is not changed.
23641         (__bump_nl_timestamp): New function.
23642         (__free_in6ai): New function.
23643
23644 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23645
23646         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23647         close_not_cancel_no_status here.
23648         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23649
23650 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23651
23652         [BZ #13276]
23653         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23654         return value.
23655
23656         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23657         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23658         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23659
23660 2011-07-03  Andreas Jaeger  <aj@suse.de>
23661
23662         [BZ #10709]
23663         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23664         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23665         * math/libm-test.inc (sin_test): Add test case.
23666
23667 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23668
23669         [BZ #13337]
23670         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23671         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23672
23673         * elf/chroot_canon.c (chroot_canon): Cleanups.
23674
23675         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23676
23677         [BZ #13335]
23678         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23679         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23680
23681         * string/test-strchr.c: Make usable for strchrnul testing.
23682         * string/test-strchrnul.c: New file.
23683         * string/Makefile (strop-tests): Add strchrnul.
23684
23685         * po/it.po: Update from translation team.
23686         * po/es.po: Likewise.
23687
23688 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23689
23690         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23691         the three constants needed as parameters.  Drop the others.
23692         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23693         __m128i_strloadu_tolower.
23694         Create and initialize variable zero and use it in all the places
23695         where _mm_setzero_si128 was used.
23696
23697         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23698         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23699         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23700         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23701         anymore.
23702         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23703         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23704         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23705         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23706         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23707         __mpranred, __mptan.
23708         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23709         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23710         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23711         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23712         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23713         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23714         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23715         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23716         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23717
23718 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23719
23720         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23721         redefine if SHARED.
23722         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23723
23724         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23725         wide char related routines to wcsmbs subdir.
23726
23727 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23728
23729         [BZ #13344]
23730         * misc/sys/cdefs.h (__THROWNL): Define.
23731         * posix/unistd.h: Use __THREADNL instead of __THREAD
23732         for memory synchronization functions.
23733
23734 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23735
23736         [BZ #13349]
23737         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23738         doesn't exist.
23739         * manual/stdio.texi (Obstack Streams): Node removed.
23740
23741 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23742
23743         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23744         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23745         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23746
23747         * math/math_private.h (math_force_eval): Allow non-addressable
23748         arguments.
23749         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23750
23751 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23752
23753         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23754         file is not needed.
23755
23756         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23757         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23758         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23759         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23760         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23761         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23762         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23763         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23764         Add AVX variants.
23765         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23766         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23767         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23768         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23769         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23770         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23771         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23772         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23773         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23774         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23775         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23776         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23777         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23778         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23779         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23780         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23781         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23782         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23783         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23784
23785         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23786         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23787
23788         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23789         place.  Use VEX encoding when compiling for AVX.
23790
23791 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23792
23793         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23794         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23795
23796         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23797
23798 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23799
23800         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23801         useless if() expression.
23802         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23803         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23804         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23805         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23806         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23807         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23808         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23809         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23810         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23811         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23812         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23813         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23814         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23815         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23816         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23817         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23818         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23819         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23820         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23821
23822         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23823
23824 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23825
23826         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23827         condition.
23828         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23829
23830 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23831
23832         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23833         .text section.  Avoid duplicate constants.
23834         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23835         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23836         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23837         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23838         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23839         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23840         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23841         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23842         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23843         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23844         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23845         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23846         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23847         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23848         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23849         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23850         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23851         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23852         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23853         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23854         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23855         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23856         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23857         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23858         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23859         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23860         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23861         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23862         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23863         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23864         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23865         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23866         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23867         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23868         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23869         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23870         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23871         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23872         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23873         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23874         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23875         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23876         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23877         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23878         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23879
23880 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23881
23882         * sysdeps/x86_64/dla.h: Move to ...
23883         * sysdeps/x86_64/fpu/dla.h: ...here.
23884         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23885         situations.  Use __builtin_fma only for gcc 4.6 and up.
23886
23887         * config.make.in: Add have-mfma4 entry.
23888         * configure.in: Substitute libc_cv_cc_fma4.
23889         * math/Makefile (dbl-only-routines): Add sincostab.
23890         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23891         Use __sincostab not sincos.
23892         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23893         name is a macro.
23894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23897         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23898         using __copysign.
23899         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23900         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23901         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23902         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23903         and __inv.
23904         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23905         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23906         __copysign.
23907         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23908         define aliases when function name is a macro.
23909         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23910         sysdeps/ieee754/dbl-64/sincos.tbl.
23911         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23912         fma4-enabled routines.
23913         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23914         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23915         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23916         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23917         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23918         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23919         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23920         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23921         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23922         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23923         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23924         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23925         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23926         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23927         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23928         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23929         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23930         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23931         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23932         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23933         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23934         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23935         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23936         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23937         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23938         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23939         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23940         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23941         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23942         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23943
23944         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23945         rename.
23946         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23947         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23948         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23949         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23950         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23951         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23952         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23953         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23954
23955 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23956
23957         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23958
23959 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23960
23961         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23962
23963         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23964         prediction.
23965         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23966
23967         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23968         Remove unused variable magic_bits.
23969         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23970
23971         * string/strnlen.c: Define and use STRNLEN macro.
23972         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23973         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23974         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23975         * wcsmbs/wcslen.c: Define and use WCSLEN.
23976         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23977         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23978         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23979         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23980         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23981         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23982         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23983
23984 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23985
23986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23987         strnlen-sse2-no-bsf.
23988         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23989         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23990         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23991         Add strnlen support.
23992         (USE_AS_STRNLEN): New macro.
23993         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23994         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23995         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23996         * sysdeps/x86_64/wcslen.S: New file.
23997
23998 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23999
24000         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
24001         XMM-moves are used for copying on small sizes.
24002
24003 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24004
24005         * wcsmbs/Makefile (strop-tests): Add wcschr.
24006         * wcsmbs/test-wcschr.c: New file.
24007         * string/test-strchr.c: Update.
24008         Add wcschr support.
24009         (WIDE): New macro.
24010
24011 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24012
24013         * wcsmbs/Makefile (strop-tests): Add wcslen.
24014         * wcsmbs/test-wcslen.c: New file.
24015         * string/test-strlen.c: Update.
24016         Add wcslen support.
24017         (WIDE): New macro.
24018
24019 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24020
24021         * po/it.po: Update from translation team.
24022
24023 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24024
24025         * sysdeps/x86_64/wcscmp.S: Update.
24026         Fix wrong comparison semantics.
24027         wcscmp shall use signed comparison not unsigned.
24028         Don't use substraction to avoid overflow bug.
24029         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24030         * wcsmbc/wcscmp.c: Likewise.
24031         * string/test-strcmp.c: Likewise.
24032         Add new tests to check cases with negative values.
24033
24034 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
24035
24036         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
24037         * sysdeps/x86_64/dla.h: ...here.  New file.
24038         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
24039         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24040         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24041         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24042         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24043         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24044         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24045         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24046         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24047
24048 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
24049
24050         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
24051         __ynl_finite aliases.
24052
24053 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24054
24055         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24056
24057         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
24058         define DLA_FMA.
24059         [DLA_FMA] (EMULV): Use DLA_FMA.
24060         [DLA_FMA] (MUL12): Use EMULV.
24061         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
24062         that are not needed.
24063         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24064         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24065         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24066         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24067         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24068         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24069         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24070
24071 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
24072
24073         * math/s_nan.c: Undef __nan.
24074         * math/s_nanf.c: Undef __nanf.
24075         * math/s_nanl.c: Undef __nanl.
24076         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
24077         "math_private.h".
24078
24079 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
24080
24081         * math/s_catan.c: Add branch predictions.
24082         * math/s_catanf.c: Likewise.
24083         * math/s_catanh.c: Likewise.
24084         * math/s_catanhf.c: Likewise.
24085         * math/s_catanhl.c: Likewise.
24086         * math/s_catanl.c: Likewise.
24087         * math/s_cexp.c: Likewise.
24088         * math/s_cexpf.c: Likewise.
24089         * math/s_cexpl.c: Likewise.
24090         * math/s_clog.c: Likewise.
24091         * math/s_clog10.c: Likewise.
24092         * math/s_clog10f.c: Likewise.
24093         * math/s_clog10l.c: Likewise.
24094         * math/s_clogf.c: Likewise.
24095         * math/s_clogl.c: Likewise.
24096         * math/s_csqrt.c: Likewise.
24097         * math/s_csqrtf.c: Likewise.
24098         * math/s_csqrtl.c: Likewise.
24099         * math/s_ctanf.c: Likewise.
24100         * math/s_ctanh.c: Likewise.
24101         * math/s_ctanhf.c: Likewise.
24102         * math/s_ctanhl.c: Likewise.
24103         * math/s_ctanl.c: Likewise.
24104
24105         * math/math_private.h: Define __nan, __nanf, __nanl.
24106         * math/s_cacosh.c: Include <math_private.h>.
24107         * math/s_cacoshl.c: Likewise.
24108         * math/s_casinh.c: Likewise.
24109         * math/s_casinhf.c: Likewise.
24110         * math/s_casinhl.c: Likewise.
24111         * math/s_ccos.c: Rely entire on ccosh.
24112         * math/s_ccosf.c: Rely entire on ccoshf.
24113         * math/s_ccosl.c: Rely entirely on ccoshl.
24114         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
24115         Remove tests for FE_INVALID.
24116         * math/s_ccoshf.c: Likewise.
24117         * math/s_ccoshl.c: Likewise.
24118         * math/s_csin.c: Likewise.
24119         * math/s_csinf.c: Likewise.
24120         * math/s_csinh.c Likewise.
24121         * math/s_csinhf.c: Likewise.
24122         * math/s_csinhl.c: Likewise.
24123         * math/s_csinl.c: Likewise.
24124         * math/s_ctan.c: Likewise.
24125         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
24126         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
24127         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
24128
24129 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
24130
24131         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
24132         compilation problems.
24133
24134         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
24135         __builtin_expect.
24136
24137 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
24138
24139         * sysdeps/i386/configure.in: Test for -mfma4 option.
24140         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
24141         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
24142         COMMON_CPUID_INDEX_80000001.
24143         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
24144         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
24145         use it if FMA3 is not supported.
24146         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
24147
24148         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
24149         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
24150
24151 2011-10-20  Andreas Schwab  <schwab@redhat.com>
24152
24153         [BZ #12892]
24154         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
24155         it would create a cycle with a link time dependency.
24156
24157 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
24158
24159         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
24160         instruction.
24161         * string/Makefile (strop-tests): Add rawmemchr.
24162         * string/test-rawmemchr.c: New file.
24163
24164         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
24165         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
24166         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
24167         when compiling str{,n}casecmp and when AVX is available.  Hook up
24168         new optimized code in initializers.
24169
24170 2011-10-19  Andreas Schwab  <schwab@redhat.com>
24171
24172         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
24173         __feraiseexcept instead of feraiseexcept.
24174
24175 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
24176
24177         * math/math_private.h: Define defaults for libc_fetestexcept and
24178         libc_feupdateenv.
24179         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
24180         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
24181         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24182         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24183         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24184         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24185         libc_fetestexcept and libc_feupdateenv.
24186
24187         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
24188         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
24189         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
24190         * sysdeps/x86_64/fpu/math_private.h: Define special version of
24191         libc_feholdexcept_setround.
24192
24193         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
24194         Add s_nearbyint-c and s_nearbyintf-c.
24195         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
24196         nearbyintf inlines.
24197         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
24198         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
24199         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
24200         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
24201
24202         * math/math_private.h: Define defaults for libc_fegetround,
24203         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
24204         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
24205         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
24206         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
24207         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
24208         standard functions.
24209         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24210         Remove comments and hacks for old compiler versions.
24211         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
24212         libc_fegetround, libc_fesetround, libc_feholdexcept, and
24213         libc_feholdexceptl.
24214
24215 2011-10-18  Andreas Schwab  <schwab@redhat.com>
24216
24217         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
24218         (__feraiseexcept_renamed): Add __NTH.
24219         (feraiseexcept): Add __NTH.  Rename local variables to fix
24220         namespace violations.
24221
24222 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
24223
24224         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
24225
24226         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
24227
24228         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
24229         recently added interfaces.
24230         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
24231
24232         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
24233         about macro parameter expansion.
24234
24235         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
24236         __NO_MATH_INLINES is defined.  Cleanups.
24237
24238         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
24239         and __floorf is target has SSE4.1.
24240         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
24241         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
24242         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
24243         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
24244
24245         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
24246         name.
24247         (floorf): Likewise.
24248
24249         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
24250
24251 2011-10-17  Andreas Schwab  <schwab@redhat.com>
24252
24253         * misc/sys/cdefs.h: Fix last change.
24254
24255         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
24256         database lookup.
24257
24258 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
24259
24260         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
24261
24262         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
24263         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24264         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24265         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24266         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24267         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24268         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24269         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24270         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24271         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
24272         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
24273         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
24274         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
24275         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
24276         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
24277         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
24278         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
24279         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
24280         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
24281         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
24282         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
24283         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
24284
24285         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
24286         ceil, ceilf, floor, floorf.
24287
24288         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
24289         Perform IRELATIVE relocations last.
24290
24291         * elf/do-rel.h: Add another parameter nrelative, replacing the
24292         local variable with the same name.  Change name of the function
24293         to end in Rel or Rela (uppercase).
24294         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
24295         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
24296         elf_dynamic_do_##reloc function.
24297
24298 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24299
24300         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
24301         is sufficient, at least on modern CPUs.
24302
24303         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
24304
24305         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
24306         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
24307
24308         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
24309         __expl_finite.
24310         * math/bits/math-finite.h: Add entries for exp.
24311         * math/e_expl.c: Add __*_finite alias.
24312         * sysdeps/i386/fpu/e_exp.S: Likewise.
24313         * sysdeps/i386/fpu/e_expf.S: Likewise.
24314         * sysdeps/i386/fpu/e_expl.c: Likewise.
24315         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24316         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24317         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
24318         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
24319         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
24320         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24321         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24322
24323         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
24324         is sufficient, at least on modern CPUs.
24325
24326         * ctype/ctype-info.c (__ctype_init): Define.
24327         * include/ctype.h (__ctype_init): Declare.
24328         (__ctype_b_loc): The variable is always initialized.
24329         (__ctype_toupper_loc): Likewise.
24330         (__ctype_tolower_loc): Likewise.
24331         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
24332         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
24333
24334 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
24335
24336         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
24337
24338         * configure.in: Also look in $cxxmachine/include for C++ system
24339         headers.
24340
24341 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24342
24343         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
24344         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
24345         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
24346         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
24347         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
24348         (USE_AS_WMEMCMP): New macro.
24349         Fixing indents.
24350         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
24351         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
24352         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
24353         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
24354         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24355         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
24356         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
24357         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
24358         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
24359         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
24360         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
24361         (USE_AS_WMEMCMP): New macro.
24362         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
24363         * sysdeps/string/test-memcmp.c: Update.
24364         Fix simple_wmemcmp.
24365         Add new tests.
24366         * wcsmbs/wmemcmp.c: Update.
24367         (WMEMCMP): New macro.
24368         Fix overflow bug.
24369
24370 2011-10-12  Andreas Jaeger  <aj@suse.de>
24371
24372         [BZ #13268]
24373         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
24374
24375 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24376
24377         * libio/iofwide.c (do_length): Avoid warning.
24378
24379         * ctype/ctype.h (__isctype_f): Add missing __THROW.
24380
24381 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
24382
24383         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
24384
24385         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
24386         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
24387         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
24388         * sysdeps/i386/i686/fpu/e_log.S: New file.
24389         * sysdeps/i386/i686/fpu/e_logf.S: New file.
24390         * sysdeps/i386/i686/fpu/e_logl.S: New file.
24391
24392         * ctype/ctype.h: Add support for inlined isXXX functions when
24393         compiling C++ code.
24394
24395 2011-10-14  Andreas Schwab  <schwab@redhat.com>
24396
24397         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24398
24399         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
24400
24401 2011-10-13  Roland McGrath  <roland@hack.frob.com>
24402
24403         [BZ #13291]
24404         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
24405
24406 2011-10-13  Andreas Schwab  <schwab@redhat.com>
24407
24408         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
24409         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
24410         feraiseexcept.
24411
24412         * sysdeps/x86_64/memrchr.S: Check for zero size.
24413
24414         * string/stratcliff.c: Add memrchr tests.
24415
24416 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24417
24418         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24419         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
24420         rawmemchr-sse2 rawmemchr-sse2-bsf.
24421         * sysdeps/i386/i686/multiarch/memchr.S: New file.
24422         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
24423         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
24424         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
24425         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
24426         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
24427         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
24428         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
24429         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
24430         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
24431         * string/memrchr.c (MEMRCHR): New macro.
24432
24433 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
24434
24435         Add integration with gcc's -ffinite-math-only and optimize wrapper
24436         functions in libm.
24437         * Versions.def: Define GLIBC_2.15 version for libm.
24438         * math/Makefile (headers): Add bits/math-finite.h.
24439         * math/bits/math-finite.h: New file.
24440         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
24441         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
24442         * math/e_acoshl.c: Add __*_finite alias.
24443         * math/e_acosl.c: Likewise.
24444         * math/e_asinl.c: Likewise.
24445         * math/e_atan2l.c: Likewise.
24446         * math/e_atanhl.c: Likewise.
24447         * math/e_coshl.c: Likewise.
24448         * math/e_exp10.c: Likewise.
24449         * math/e_exp10f.c: Likewise.
24450         * math/e_exp10l.c: Likewise.
24451         * math/e_exp2l.c: Likewise.
24452         * math/e_fmodl.c: Likewise.
24453         * math/e_gammal_r.c: Likewise.
24454         * math/e_hypotl.c: Likewise.
24455         * math/e_j0l.c: Likewise.
24456         * math/e_j1l.c: Likewise.
24457         * math/e_jnl.c: Likewise.
24458         * math/e_lgammal_r.c: Likewise.
24459         * math/e_log10l.c: Likewise.
24460         * math/e_log2l.c: Likewise.
24461         * math/e_logl.c: Likewise.
24462         * math/e_powl.c: Likewise.
24463         * math/e_sinhl.c: Likewise.
24464         * math/e_sqrtl.c: Likewise.
24465         * math/e_scalb.c: Completely rewritten and optimized.
24466         * math/e_scalbf.c: Likewise.
24467         * math/e_scalbl.c: Likewise.
24468         * math/w_acos.c: Likewise.
24469         * math/w_acosf.c: Likewise.
24470         * math/w_acosl.c: Likewise.
24471         * math/w_acosh.c: Likewise.
24472         * math/w_acoshf.c: Likewise.
24473         * math/w_acoshl.c: Likewise.
24474         * math/w_asin.c: Likewise.
24475         * math/w_asinf.c: Likewise.
24476         * math/w_asinl.c: Likewise.
24477         * math/w_atan2.c: Likewise.
24478         * math/w_atan2f.c: Likewise.
24479         * math/w_atan2l.c: Likewise.
24480         * math/w_atanh.c: Likewise.
24481         * math/w_atanhf.c: Likewise.
24482         * math/w_atanhl.c: Likewise.
24483         * math/w_exp10.c: Likewise.
24484         * math/w_exp10f.c: Likewise.
24485         * math/w_exp10l.c: Likewise.
24486         * math/w_fmod.c: Likewise.
24487         * math/w_fmodf.c: Likewise.
24488         * math/w_fmodl.c: Likewise.
24489         * math/w_j0.c: Likewise.
24490         * math/w_j0f.c: Likewise.
24491         * math/w_j0l.c: Likewise.
24492         * math/w_j1.c: Likewise.
24493         * math/w_j1f.c: Likewise.
24494         * math/w_j1l.c: Likewise.
24495         * math/w_jn.c: Likewise.
24496         * math/w_jnf.c: Likewise.
24497         * math/w_log.c: Likewise.
24498         * math/w_logf.c: Likewise.
24499         * math/w_logl.c: Likewise.
24500         * math/w_log10.c: Likewise.
24501         * math/w_log10f.c: Likewise.
24502         * math/w_log10l.c: Likewise.
24503         * math/w_log2.c: Likewise.
24504         * math/w_log2f.c: Likewise.
24505         * math/w_log2l.c: Likewise.
24506         * math/w_pow.c: Likewise.
24507         * math/w_powf.c: Likewise.
24508         * math/w_powl.c: Likewise.
24509         * math/w_remainder.c: Likewise.
24510         * math/w_remainderf.c: Likewise.
24511         * math/w_remainderl.c: Likewise.
24512         * math/w_scalb.c: Likewise.
24513         * math/w_scalbf.c: Likewise.
24514         * math/w_scalbl.c: Likewise.
24515         * math/w_sqrt.c: Likewise.
24516         * math/w_sqrtf.c: Likewise.
24517         * math/w_sqrtl.c: Likewise.
24518         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
24519         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
24520         used.
24521         * math/math_private.h: Declare __kernel_standard_f.
24522         * math/w_cosh.c: Remove cruft and optimize a bit.
24523         * math/w_coshf.c: Likewise.
24524         * math/w_coshl.c: Likewise.
24525         * math/w_exp2.c: Likewise.
24526         * math/w_exp2f.c: Likewise.
24527         * math/w_exp2l.c: Likewise.
24528         * math/w_hypot.c: Likewise.
24529         * math/w_hypotf.c: Likewise.
24530         * math/w_hypotl.c: Likewise.
24531         * math/w_lgamma.c: Likewise.
24532         * math/w_lgamma_r.c: Likewise.
24533         * math/w_lgammaf.c: Likewise.
24534         * math/w_lgammaf_r.c: Likewise.
24535         * math/w_lgammal.c: Likewise.
24536         * math/w_lgammal_r.c: Likewise.
24537         * math/w_sinh.c: Likewise.
24538         * math/w_sinhf.c: Likewise.
24539         * math/w_sinhl.c: Likewise.
24540         * math/w_tgamma.c: Likewise.
24541         * math/w_tgammaf.c: Likewise.
24542         * math/w_tgammal.c: Likewise.
24543         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24544         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24545         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
24546         Minor optimizations.  Pretty printing.  Remove cruft.
24547         * sysdeps/i386/fpu/e_acosf.S: Likewise.
24548         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24549         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24550         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24551         * sysdeps/i386/fpu/e_acosl.c: Likewise.
24552         * sysdeps/i386/fpu/e_asin.S: Likewise.
24553         * sysdeps/i386/fpu/e_asinf.S: Likewise.
24554         * sysdeps/i386/fpu/e_atan2.S: Likewise.
24555         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
24556         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
24557         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24558         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24559         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24560         * sysdeps/i386/fpu/e_exp10.S: Likewise.
24561         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
24562         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
24563         * sysdeps/i386/fpu/e_exp2.S: Likewise.
24564         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
24565         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
24566         * sysdeps/i386/fpu/e_fmod.S: Likewise.
24567         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
24568         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
24569         * sysdeps/i386/fpu/e_hypot.S: Likewise.
24570         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
24571         * sysdeps/i386/fpu/e_log.S: Likewise.
24572         * sysdeps/i386/fpu/e_log10.S: Likewise.
24573         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24574         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24575         * sysdeps/i386/fpu/e_log2.S: Likewise.
24576         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24577         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24578         * sysdeps/i386/fpu/e_logf.S: Likewise.
24579         * sysdeps/i386/fpu/e_logl.S: Likewise.
24580         * sysdeps/i386/fpu/e_pow.S: Likewise.
24581         * sysdeps/i386/fpu/e_powf.S: Likewise.
24582         * sysdeps/i386/fpu/e_powl.S: Likewise.
24583         * sysdeps/i386/fpu/e_remainder.S: Likewise.
24584         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
24585         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
24586         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24587         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24588         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24589         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
24590         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
24591         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
24592         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24593         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24594         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24595         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24596         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24597         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24598         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
24599         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24600         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24601         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24602         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24603         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24604         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24605         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24606         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24607         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24608         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24609         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24610         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24611         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24612         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24613         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24614         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24615         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24616         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24617         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24618         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24619         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24620         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
24621         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24622         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24623         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24624         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24625         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24626         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24627         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24628         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24629         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24630         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24631         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24632         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24633         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24634         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24635         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24636         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24637         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24638         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24639         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24640         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24641         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24642         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24643         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24644         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24645         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24646         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24647         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24648         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24649         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24650         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24651         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24652         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24653         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24654         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24655         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24656         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24657         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24658         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24659         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24660         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24661         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24662         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24663         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24664         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24665         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24666         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24667         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24668         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24669         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24670         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24671         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24672         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24673         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24674         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24675         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24676         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24677         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24678         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24679         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24680         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24681         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24682         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24683         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24684         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24685         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24686         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24687         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24688         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24689         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24690         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24691         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24692         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24693         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24694         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24695         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24696         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24697         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24698         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24699         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24700         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24701         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24702         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24703         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24704         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24705         (__isnanf): Likewise.
24706         (__isinf_ns): Likewise.
24707         (__isinf_nsf): Likewise.
24708         (__finite): Likewise.
24709         (__finitef): Likewise.
24710         (__ieee754_sqrt): Define as macro.
24711         (__ieee754_sqrtf): Define as macro.
24712         (__ieee754_sqrtl): Define as macro.
24713         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24714         inlined copy.
24715         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24716         __FINITE_MATH_ONLY__ consistent.
24717         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24718
24719 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24720
24721         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24722         of rawmemchr.
24723
24724         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24725
24726 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24727
24728         * po/ja.po: Update from translation team.
24729
24730 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24731
24732         * locale/programs/locarchive.c (prepare_address_space): New function.
24733         (create_archive, enlarge_archive, open_archive): Use it.
24734
24735         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24736         inside [SHARED], where it is used.
24737
24738         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24739
24740         * nss/getent.c (netgroup_keys): Remove unused variable.
24741         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24742
24743 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24744
24745         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24746         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24747         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24748         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24749         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24750         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24751         * math/Makefile (libm-calls): Add s_isinf_ns.
24752         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24753         * math/multc3.c: Likewise.
24754         * math/s_casin.c: Likewise.
24755         * math/s_casinf.c: Likewise.
24756         * math/s_casinl.c: Likewise.
24757         * math/s_ccos.c: Likewise.
24758         * math/s_ccosf.c: Likewise.
24759         * math/s_ccosl.c: Likewise.
24760         * math/s_ctan.c: Likewise.
24761         * math/s_ctanf.c: Likewise.
24762         * math/s_ctanh.c: Likewise.
24763         * math/s_ctanhf.c: Likewise.
24764         * math/s_ctanhl.c: Likewise.
24765         * math/s_ctanl.c: Likewise.
24766         * math/w_fmod.c: Likewise.
24767         * math/w_fmodf.c: Likewise.
24768         * math/w_fmodl.c: Likewise.
24769         * math/w_remainder.c: Likewise.
24770         * math/w_remainderf.c: Likewise.
24771         * math/w_remainderl.c: Likewise.
24772         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24773         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24774         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24775         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24776         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24777         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24778         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24779         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24780
24781         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24782         of the number.
24783         * stdio-common/printf_fphex.c: Likewise.
24784         * stdio-common/printf_size.c: Likewise.
24785
24786         * math/e_exp10.c: Include math_private.h using <...> not "...".
24787         * math/e_exp10f.c: Likewise.
24788         * math/e_exp10l.c: Likewise.
24789         * math/e_exp2l.c: Likewise.
24790         * math/e_j0l.c: Likewise.
24791         * math/e_j1l.c: Likewise.
24792         * math/e_jnl.c: Likewise.
24793         * math/e_lgammal_r.c: Likewise.
24794         * math/e_rem_pio2l.c: Likewise.
24795         * math/e_scalb.c: Likewise.
24796         * math/e_scalbf.c: Likewise.
24797         * math/e_scalbl.c: Likewise.
24798         * math/k_cosl.c: Likewise.
24799         * math/k_sinl.c: Likewise.
24800         * math/k_tanl.c: Likewise.
24801         * math/s_cacoshf.c: Likewise.
24802         * math/s_catan.c: Likewise.
24803         * math/s_catanf.c: Likewise.
24804         * math/s_catanh.c: Likewise.
24805         * math/s_catanhf.c: Likewise.
24806         * math/s_catanhl.c: Likewise.
24807         * math/s_catanl.c: Likewise.
24808         * math/s_ccosh.c: Likewise.
24809         * math/s_ccoshf.c: Likewise.
24810         * math/s_ccoshl.c: Likewise.
24811         * math/s_cexp.c: Likewise.
24812         * math/s_cexpf.c: Likewise.
24813         * math/s_cexpl.c: Likewise.
24814         * math/s_clog.c: Likewise.
24815         * math/s_clog10.c: Likewise.
24816         * math/s_clog10f.c: Likewise.
24817         * math/s_clog10l.c: Likewise.
24818         * math/s_clogf.c: Likewise.
24819         * math/s_clogl.c: Likewise.
24820         * math/s_csin.c: Likewise.
24821         * math/s_csinf.c: Likewise.
24822         * math/s_csinh.c: Likewise.
24823         * math/s_csinhf.c: Likewise.
24824         * math/s_csinhl.c: Likewise.
24825         * math/s_csinl.c: Likewise.
24826         * math/s_csqrt.c: Likewise.
24827         * math/s_csqrtf.c: Likewise.
24828         * math/s_csqrtl.c: Likewise.
24829         * math/s_ctan.c: Likewise.
24830         * math/s_ctanf.c: Likewise.
24831         * math/s_ctanh.c: Likewise.
24832         * math/s_ctanhf.c: Likewise.
24833         * math/s_ctanhl.c: Likewise.
24834         * math/s_ctanl.c: Likewise.
24835         * math/s_ldexp.c: Likewise.
24836         * math/s_ldexpf.c: Likewise.
24837         * math/s_ldexpl.c: Likewise.
24838         * math/s_significand.c: Likewise.
24839         * math/s_significandf.c: Likewise.
24840         * math/s_significandl.c: Likewise.
24841         * math/w_acos.c: Likewise.
24842         * math/w_acosf.c: Likewise.
24843         * math/w_acosh.c: Likewise.
24844         * math/w_acoshf.c: Likewise.
24845         * math/w_acoshl.c: Likewise.
24846         * math/w_acosl.c: Likewise.
24847         * math/w_asin.c: Likewise.
24848         * math/w_asinf.c: Likewise.
24849         * math/w_asinl.c: Likewise.
24850         * math/w_atan2.c: Likewise.
24851         * math/w_atan2f.c: Likewise.
24852         * math/w_atan2l.c: Likewise.
24853         * math/w_atanh.c: Likewise.
24854         * math/w_atanhf.c: Likewise.
24855         * math/w_atanhl.c: Likewise.
24856         * math/w_cosh.c: Likewise.
24857         * math/w_coshf.c: Likewise.
24858         * math/w_coshl.c: Likewise.
24859         * math/w_dremf.c: Likewise.
24860         * math/w_exp10.c: Likewise.
24861         * math/w_exp10f.c: Likewise.
24862         * math/w_exp10l.c: Likewise.
24863         * math/w_exp2.c: Likewise.
24864         * math/w_exp2f.c: Likewise.
24865         * math/w_fmod.c: Likewise.
24866         * math/w_fmodf.c: Likewise.
24867         * math/w_fmodl.c: Likewise.
24868         * math/w_hypot.c: Likewise.
24869         * math/w_hypotf.c: Likewise.
24870         * math/w_hypotl.c: Likewise.
24871         * math/w_j0.c: Likewise.
24872         * math/w_j0f.c: Likewise.
24873         * math/w_j0l.c: Likewise.
24874         * math/w_j1.c: Likewise.
24875         * math/w_j1f.c: Likewise.
24876         * math/w_j1l.c: Likewise.
24877         * math/w_jn.c: Likewise.
24878         * math/w_jnf.c: Likewise.
24879         * math/w_jnl.c: Likewise.
24880         * math/w_lgamma.c: Likewise.
24881         * math/w_lgamma_r.c: Likewise.
24882         * math/w_lgammaf.c: Likewise.
24883         * math/w_lgammaf_r.c: Likewise.
24884         * math/w_lgammal.c: Likewise.
24885         * math/w_lgammal_r.c: Likewise.
24886         * math/w_log.c: Likewise.
24887         * math/w_log10.c: Likewise.
24888         * math/w_log10f.c: Likewise.
24889         * math/w_log10l.c: Likewise.
24890         * math/w_log2.c: Likewise.
24891         * math/w_log2f.c: Likewise.
24892         * math/w_log2l.c: Likewise.
24893         * math/w_logf.c: Likewise.
24894         * math/w_logl.c: Likewise.
24895         * math/w_pow.c: Likewise.
24896         * math/w_powf.c: Likewise.
24897         * math/w_powl.c: Likewise.
24898         * math/w_remainder.c: Likewise.
24899         * math/w_remainderf.c: Likewise.
24900         * math/w_remainderl.c: Likewise.
24901         * math/w_scalb.c: Likewise.
24902         * math/w_scalbf.c: Likewise.
24903         * math/w_scalbl.c: Likewise.
24904         * math/w_sinh.c: Likewise.
24905         * math/w_sinhf.c: Likewise.
24906         * math/w_sinhl.c: Likewise.
24907         * math/w_sqrt.c: Likewise.
24908         * math/w_sqrtf.c: Likewise.
24909         * math/w_sqrtl.c: Likewise.
24910         * math/w_tgamma.c: Likewise.
24911         * math/w_tgammaf.c: Likewise.
24912         * math/w_tgammal.c: Likewise.
24913
24914         * po/ja.po: Update from translation team.
24915
24916 2011-09-29  Andreas Jaeger  <aj@suse.de>
24917
24918         [BZ #13179]
24919         * sunrpc/netname.c (netname2host): Fix logic.
24920
24921         [BZ #6779]
24922         [BZ #6783]
24923         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24924         correctly.
24925         * math/w_remainder.c (__remainder): Likewise.
24926         * math/w_remainderf.c (__remainderf): Likewise.
24927         * math/libm-test.inc (remainder_test): Add test cases.
24928
24929 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24930
24931         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24932         sdiv_qrnnd.
24933
24934 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24935
24936         * string/test-memcmp.c: Avoid unncessary #defines.
24937         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24938
24939 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24940
24941         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24942         Use new sse2 version for core i3 - i7 as it's faster
24943         than sse42 version.
24944         (bit_Prefer_PMINUB_for_stringop): New.
24945         * sysdeps/x86_64/rawmemchr.S: Update.
24946         Replace with faster SSE2 version.
24947         * sysdeps/x86_64/memrchr.S: New file.
24948         * sysdeps/x86_64/memchr.S: Update.
24949         Replace with faster SSE2 version.
24950
24951 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24952
24953         * elf/dl-load.c (lose): Add cast to avoid warning.
24954
24955 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24956
24957         * po/ca.po: Update from translation team.
24958
24959         * inet/getnetgrent_r.c: Hook up nscd.
24960         * nscd/Makefile (routines): Add nscd_netgroup.
24961         (nscd-modules): Add netgroupcache.
24962         (CFLAGS-netgroupcache.c): Define.
24963         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24964         (cache_search): Add const to second parameter.
24965         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24966         INNETGR.
24967         (dbs): Add netgrdb entry.
24968         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24969         (verify_persistent_db): Handle netgrdb.
24970         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24971         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24972         GETFDNETGR.
24973         (netgroup_response_header): Define.
24974         (innetgroup_response_header): Define.
24975         (datahead): Add netgroup_response_header and innetgroup_response_header
24976         elements.
24977         * nscd/nscd.conf: Add entries for netgroup cache.
24978         * nscd/nscd.h (dbtype): Add netgrdb.
24979         (_PATH_NSCD_NETGROUP_DB): Define.
24980         (netgroup_iov_disabled): Declare.
24981         (xmalloc, xcalloc, xrealloc): Move declarations here.
24982         (cache_search): Adjust prototype.
24983         Add netgroup-related prototypes.
24984         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24985         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24986         (__nscd_innetgr): Declare.
24987         * nscd/selinux.c (perms): Use access_vector_t as element type and
24988         add netgroup-related initializers.
24989         * nscd/netgroupcache.c: New file.
24990         * nscd/nscd_netgroup.c: New file.
24991         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24992         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24993         For four parameters use innetgr.
24994         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24995         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24996         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24997         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24998
24999         * nscd/connections.c (register_traced_file): Don't register file
25000         for disabled databases.
25001
25002 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
25003
25004         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
25005
25006         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
25007         from tree and freeing node.
25008
25009 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
25010
25011         * nss/nsswitch.c (__nss_database_lookup): Handle
25012         nss_parse_service_list out of memory case.
25013
25014 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
25015
25016         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
25017         out of memory case.
25018
25019 2011-10-04  Andreas Schwab  <schwab@redhat.com>
25020
25021         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
25022         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
25023         pass it down.
25024         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
25025         elf_machine_rela, elf_machine_lazy_rel.
25026         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
25027         (ELF_DYNAMIC_DO_REL): Likewise.
25028         (ELF_DYNAMIC_DO_RELA): Likewise.
25029         (ELF_DYNAMIC_RELOCATE): Likewise.
25030         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
25031         to ELF_DYNAMIC_DO_REL.
25032         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
25033         (dl_main): In trace mode always set __RTLD_NOIFUNC.
25034         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
25035         elf_machine_rela.
25036         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
25037         skip_ifunc, don't call ifunc function if non-zero.
25038         (elf_machine_rela): Likewise.
25039         (elf_machine_lazy_rel): Likewise.
25040         (elf_machine_lazy_rela): Likewise.
25041         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
25042         (elf_machine_lazy_rel): Likewise.
25043         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25044         Likewise.
25045         (elf_machine_lazy_rel): Likewise.
25046         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25047         Likewise.
25048         (elf_machine_lazy_rel): Likewise.
25049         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
25050         (elf_machine_lazy_rel): Likewise.
25051         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
25052         (elf_machine_lazy_rel): Likewise.
25053         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
25054         (elf_machine_lazy_rel): Likewise.
25055         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25056         (elf_machine_lazy_rel): Likewise.
25057         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25058         (elf_machine_lazy_rel): Likewise.
25059         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
25060         (elf_machine_lazy_rel): Likewise.
25061
25062 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
25063
25064         * nss/nss_files/files-init.c (_nss_files_init): Use static
25065         initialization for all the *_traced_file variables.
25066
25067 2011-09-28  Andreas Schwab  <schwab@redhat.com>
25068
25069         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25070
25071 2011-09-27  Roland McGrath  <roland@hack.frob.com>
25072
25073         [BZ #13226]
25074         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
25075
25076 2011-09-27  Andreas Schwab  <schwab@redhat.com>
25077
25078         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
25079         Reread the line before reparsing it.
25080
25081 2011-09-26  Andreas Schwab  <schwab@redhat.com>
25082
25083         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
25084
25085 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
25086             Maxim Kuvyrkov  <maxim@codesourcery.com>
25087             Joseph Myers  <joseph@codesourcery.com>
25088
25089         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
25090         if needed for __stack_chk_guard.
25091
25092 2011-09-19  Roland McGrath  <roland@hack.frob.com>
25093
25094         * sysdeps/posix/spawni.c (script_execute): Always define it.
25095         It will be optimized away if unused.
25096         (maybe_script_execute): New function.
25097         (__spawni): Call it.
25098
25099         * Makerules: Don't include tls.make.
25100         (config-tls): Always set to thread.
25101         * tls.make.c: File removed.
25102
25103 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
25104
25105         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
25106         * config.make.in (CPPFLAGS-config): New substituted variable.
25107
25108 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25109
25110         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
25111
25112         [BZ #13192]
25113         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
25114         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
25115
25116 2011-09-15  Roland McGrath  <roland@hack.frob.com>
25117
25118         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
25119         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
25120         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25121         (CALL_FAIL): Likewise.
25122         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
25123         (CALL_FAIL): Macro removed.
25124         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
25125
25126 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
25127
25128         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
25129         for __FINITE_MATH_ONLY__ == 1.
25130
25131 2011-09-15  Andreas Schwab  <schwab@redhat.com>
25132
25133         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
25134         __ieee754_sqrt instead of sqrt.
25135         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
25136         __ieee754_sqrtf instead of sqrtf.
25137         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
25138         __floorf instead of floorf.
25139         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
25140         __floorf, __truncf instead of floorf, truncf.
25141
25142 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
25143
25144         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
25145
25146         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
25147         __extern_always_inline.
25148         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
25149         32-bit.
25150
25151 2011-09-14  Andreas Schwab  <schwab@redhat.com>
25152
25153         * elf/rtld.c (dl_main): Also relocate in dependency order when
25154         doing symbol dependency testing.
25155
25156 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
25157
25158         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25159         Always define `refsym'.
25160
25161 2011-09-13  Andreas Schwab  <schwab@redhat.com>
25162
25163         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
25164         (__FD_ELT): Renamed from __FDELT.
25165         * misc/bits/select2.h (__FD_ELT): Likewise.
25166         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
25167         __FD_MASK instead of __FDELT, __FDMASK.
25168         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25169         Likewise.
25170         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
25171         Likewise.
25172
25173         * elf/Makefile (gen-ldd): Fix pattern.
25174
25175         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
25176         (init_tls): Likewise.
25177
25178 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
25179
25180         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
25181
25182 2011-09-12  Andreas Schwab  <schwab@redhat.com>
25183
25184         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
25185         `struct cmsghdr *' instead of `void *'.
25186         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
25187         Likewise.
25188
25189 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
25190
25191         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
25192         if non-absolute.
25193         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
25194         ldd_rewrite_script.
25195
25196 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
25197
25198         * configure.in: Remove --with-tls option.
25199         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
25200         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
25201         out in case it is missing.
25202         * sysdeps/ia64/elf/configure.in: Likewise.
25203         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
25204         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
25205         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
25206         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
25207         * sysdeps/sh/elf/configure.in: Likewise.
25208         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
25209         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25210         * sysdeps/x86_64/elf/configure.in: Likewise.
25211         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
25212         * sysdeps/mach/hurd/tls.h: Likewise.
25213
25214         [BZ #13067]
25215         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
25216
25217         [BZ #13090]
25218         * configure.in: Fix use of AC_INIT.
25219
25220         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
25221
25222 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
25223
25224         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
25225         __set_errno.
25226         * malloc/hooks.c: Likewise.
25227
25228         [BZ #11929]
25229         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
25230         variables statically.
25231         (narenas): Initialize.
25232         (list_lock): Initialize.
25233         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
25234         initializtion of main_arena and list_lock.  Small cleanups.
25235         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
25236         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
25237         Add initializers to main_arena and mp_.
25238         (malloc_state): Remove pagesize member.  Change all users to use
25239         GLRO(dl_pagesize).
25240
25241         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
25242         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
25243         is always initialized.
25244
25245         * malloc/malloc.c: Removed unused configurations and dead code.
25246         * malloc/arena.c: Likewise.
25247         * malloc/hooks.c: Likewise.
25248         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
25249
25250         * include/tls.h: Removed.  USE___THREAD must always be defined.
25251         * bits/libc-tsd.h: Don't handle !USE___THREAD.
25252         * elf/dl-libc.c: Likewise.
25253         * elf/dl-tsd.c: Likewise.
25254         * include/errno.h: Likewise.
25255         * include/netdb.h: Likewise.
25256         * include/resolv.h: Likewise.
25257         * inet/herrno-loc.c: Likewise.
25258         * inet/herrno.c: Likewise.
25259         * malloc/arena.c: Likewise.
25260         * malloc/hooks.c: Likewise.
25261         * malloc/malloc.c: Likewise.
25262         * resolv/res-state.c: Likewise.
25263         * resolv/res_libc.c: Likewise.
25264         * sysdeps/i386/dl-machine.h: Likewise.
25265         * sysdeps/ia64/dl-machine.h: Likewise.
25266         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
25267         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
25268         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
25269         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
25270         * sysdeps/sh/dl-machine.h: Likewise.
25271         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25272         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25273         * sysdeps/unix/i386/sysdep.S: Likewise.
25274         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
25275         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
25276         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
25277         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25278         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
25279         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
25280         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
25281         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25282         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
25284         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25285         * sysdeps/x86_64/dl-machine.h: Likewise.
25286         * tls.make.c: Likewise.
25287
25288         * configure.in: Remove --with-__thread option.  Make tests for
25289         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
25290         tls_model attribute fail if no support is available.  Remove
25291         USE_IN_LIBIO.
25292         * Makeconfig: Adjust for dropped configure option.  All features are
25293         now mandatory.
25294         * Makerules: Likewise.
25295         * Versions.def: Likewise.
25296         * argp/argp-fmtstream.c: Likewise.
25297         * argp/argp-fmtstream.h: Likewise.
25298         * argp/argp-help.c: Likewise.
25299         * assert/assert.c: Likewise.
25300         * config.h.in: Likewise.
25301         * config.make.in: Likewise.
25302         * configure: Likewise.
25303         * configure.in: Likewise.
25304         * csu/Versions: Likewise.
25305         * csu/init.c: Likewise.
25306         * elf/tst-audit2.c: Likewise.
25307         * elf/tst-tls10.c: Likewise.
25308         * elf/tst-tls10.h: Likewise.
25309         * elf/tst-tls11.c: Likewise.
25310         * elf/tst-tls12.c: Likewise.
25311         * elf/tst-tls14.c: Likewise.
25312         * elf/tst-tlsmod11.c: Likewise.
25313         * elf/tst-tlsmod12.c: Likewise.
25314         * elf/tst-tlsmod13.c: Likewise.
25315         * elf/tst-tlsmod13a.c: Likewise.
25316         * elf/tst-tlsmod14a.c: Likewise.
25317         * elf/tst-tlsmod15b.c: Likewise.
25318         * elf/tst-tlsmod16a.c: Likewise.
25319         * elf/tst-tlsmod16b.c: Likewise.
25320         * elf/tst-tlsmod7.c: Likewise.
25321         * elf/tst-tlsmod8.c: Likewise.
25322         * elf/tst-tlsmod9.c: Likewise.
25323         * gmon/gmon.c: Likewise.
25324         * grp/fgetgrent_r.c: Likewise.
25325         * grp/putgrent.c: Likewise.
25326         * hurd/fopenport.c: Likewise.
25327         * include/libc-symbols.h: Likewise.
25328         * include/tls.h: Likewise.
25329         * intl/gettextP.h: Likewise.
25330         * intl/loadinfo.h: Likewise.
25331         * locale/global-locale.c: Likewise.
25332         * locale/localeinfo.h: Likewise.
25333         * mach/devstream.c: Likewise.
25334         * malloc/arena.c: Likewise.
25335         * malloc/set-freeres.c: Likewise.
25336         * misc/err.c: Likewise.
25337         * misc/getttyent.c: Likewise.
25338         * misc/mntent_r.c: Likewise.
25339         * posix/getopt.c: Likewise.
25340         * posix/wordexp.c: Likewise.
25341         * pwd/fgetpwent_r.c: Likewise.
25342         * resolv/Versions: Likewise.
25343         * resolv/res_hconf.c: Likewise.
25344         * shadow/fgetspent_r.c: Likewise.
25345         * shadow/putspent.c: Likewise.
25346         * stdio-common/printf_fphex.c: Likewise.
25347         * stdio-common/tmpfile.c: Likewise.
25348         * stdlib/abort.c: Likewise.
25349         * stdlib/fmtmsg.c: Likewise.
25350         * sunrpc/auth_unix.c: Likewise.
25351         * sunrpc/clnt_perr.c: Likewise.
25352         * sunrpc/clnt_tcp.c: Likewise.
25353         * sunrpc/clnt_udp.c: Likewise.
25354         * sunrpc/clnt_unix.c: Likewise.
25355         * sunrpc/openchild.c: Likewise.
25356         * sunrpc/svc_simple.c: Likewise.
25357         * sunrpc/svc_tcp.c: Likewise.
25358         * sunrpc/svc_udp.c: Likewise.
25359         * sunrpc/svc_unix.c: Likewise.
25360         * sunrpc/xdr.c: Likewise.
25361         * sunrpc/xdr_array.c: Likewise.
25362         * sunrpc/xdr_rec.c: Likewise.
25363         * sunrpc/xdr_ref.c: Likewise.
25364         * sunrpc/xdr_stdio.c: Likewise.
25365
25366 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25367
25368         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25369
25370 2011-07-03  Andreas Jaeger  <aj@suse.de>
25371
25372         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
25373         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
25374         regenerate with gen-libm-tests.pl.
25375
25376 2010-05-12  Petr Baudis  <pasky@suse.cz>
25377
25378         [BZ #11589]
25379         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
25380         around j0() zero points by switching to j1().
25381         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25382         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25383         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25384         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25385
25386 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25387
25388         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
25389         instead of 0.
25390         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
25391         instead of 0.
25392         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25393         Patch in part by Pavel Roskin <proski@gnu.org>.
25394
25395         [BZ #13138]
25396         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
25397         realloc.
25398         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
25399         Free memory block if necessary.
25400
25401         [BZ #12847]
25402         * libio/genops.c (INTDEF): For string streams the _lock pointer can
25403         be NULL.  Don't lock in this case.
25404
25405 2011-09-09  Roland McGrath  <roland@hack.frob.com>
25406
25407         * elf/elf.h (ELFOSABI_GNU): New macro.
25408         (ELFOSABI_LINUX): Define to that.
25409
25410 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
25411
25412         * string/strncat.c (strncat): Undef the symbol in case it has been
25413         defined in bits/string.h.
25414
25415 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25416
25417         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
25418
25419         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
25420         link map.
25421
25422 2011-08-17  Andreas Jaeger  <aj@suse.de>
25423
25424         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
25425
25426 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
25427             Ian Lance Taylor  <iant@google.com>
25428
25429         * math/libm-test.inc (lround_test): New testcase.
25430         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
25431
25432 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
25433
25434         * Makefile: Remove support for automatic cvs check-ins.
25435         * Makerules: Likewise.
25436         * config.make.in: Likewise.
25437         * configure.in: Likewise.
25438         * intl/Makefile: Likewise.
25439         * locale/Makefile: Likewise.
25440         * po/Makefile: Likewise.
25441         * posix/Makefile: Likewise.
25442         * sysdeps/gnu/Makefile: Likewise.
25443         * sysdeps/mach/hurd/Makefile: Likewise.
25444         * sysdeps/sparc/sparc32/Makefile: Likewise.
25445
25446         [BZ #13118]
25447         * posix/Makefile (bug-regex32-ENV): Define.
25448         Patch by John Stanley <jpsinthemix@verizon.net>.
25449
25450         * misc/Makefile (headers): Add bits/select2.h.
25451         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
25452         * misc/bits/select2.h: New file.
25453         * include/bits/select2.h: New file.
25454         * debug/Makefile (routines): Add fdelt_chk.
25455         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
25456         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
25457         FD_ISSET.
25458         * debug/fdelt_chk.c: New file.
25459
25460         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
25461         * wcsmbs/test-wmemcmp.c: Likewise.
25462         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
25463         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
25464
25465 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25466
25467         * string/Makefile (strop-tests): Add memcmp.
25468         * string/test-wmemcmp.c: New file.
25469         * string/test-memcmp.c: Add wmemcmp support.
25470
25471 2011-09-08  Roland McGrath  <roland@hack.frob.com>
25472
25473         [BZ #13153]
25474         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
25475         2011-07-19 change.
25476
25477         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
25478         garbage value in a __mach_port_mod_refs call in the cases of the
25479         task-self and thread-self ports.
25480
25481 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25482
25483         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
25484
25485 2011-09-08  Andreas Schwab  <schwab@redhat.com>
25486
25487         * elf/dl-load.c (lose): Check for non-null L.
25488
25489 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25490
25491         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
25492
25493         * elf/dl-libc.c (dlerror_run): Pass back error code from
25494         dl_catch_error.
25495
25496         [BZ #13123]
25497         * elf/dl-load.c (lose): Free l_origin if it is valid.
25498
25499         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
25500         names.
25501         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
25502         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25503         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25504         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25505         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
25506         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
25507
25508 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25509
25510         * sysdeps/powerpc/fpu/e_hypot.c: New file.
25511         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
25512         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
25513         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
25514         * sysdeps/powerpc/fpu/k_cosf.c: New file.
25515         * sysdeps/powerpc/fpu/k_sinf.c: New file.
25516         * sysdeps/powerpc/fpu/s_cosf.c: New file.
25517         * sysdeps/powerpc/fpu/s_sinf.c: New file.
25518         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
25519         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
25520
25521 2011-08-15  Alan Modra  <amodra@gmail.com>
25522
25523         [BZ #13092]
25524         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
25525         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
25526         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
25527         ppc_mcount to static-only-routines.
25528         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
25529         __mcount_internal.
25530         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
25531         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
25532
25533 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
25534
25535         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
25536         for finite and infinity parameters.
25537
25538 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25539
25540         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
25541         and add nop instructions for throughput optimization.
25542         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25543
25544 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
25545
25546         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
25547         aligned copy for power7 with vector-scalar instructions.
25548         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
25549
25550 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
25551
25552         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
25553         AVX check.
25554
25555 2011-09-07  Andreas Schwab  <schwab@redhat.com>
25556
25557         [BZ #13144]
25558         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
25559         last change.
25560
25561 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25562
25563         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25564         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
25565         syscall wrapper around clock_gettime in __vdso_clock_gettime.
25566         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
25567         clock_gettime.
25568
25569 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25570
25571         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
25572         Forgot to demangle the pointer.
25573
25574         * sysdeps/i386/sysdep.h: Define atom_text_section.
25575         * sysdeps/x86_64/sysdep.h: Likewise.
25576         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
25577         section with atom_text_section.
25578         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25579         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25580         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
25581         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25582         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
25583
25584         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
25585         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
25586         already be defined.  Change to take two parameters and don't assign
25587         result to variable.  Adjust all users.
25588         Define INTERNAL_GETTIME if not already defined.
25589         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
25590         call.
25591         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
25592         HAVE_CLOCK_GETTIME_VSYSCALL.
25593         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
25594
25595         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
25596         gettimeofday vsyscall, just use time.
25597
25598 2011-09-06  Andreas Schwab  <schwab@redhat.com>
25599
25600         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
25601         <errno.h>.
25602
25603 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25604
25605         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
25606         syscall on x86-64.
25607         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
25608         syscall.
25609         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
25610         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
25611         syscall if possible.
25612
25613 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25614
25615         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
25616         e_ident.  Don't pass to find_mapsXX.
25617         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
25618
25619 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25620
25621         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25622         strchr-sse2-no-bsf strrchr-sse2-no-bsf
25623         * sysdeps/x86_64/multiarch/strchr.S: Update.
25624         Check bit_slow_BSF bit.
25625         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25626         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25627         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25628
25629 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25630
25631         [BZ #13134]
25632         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25633         before glibc 2.15.
25634         (tryshell): Define.
25635         (__spawni): Change last parameter to be flag.  Test
25636         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25637         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25638         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25639         * posix/spawni.c: Likewise.
25640         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25641         * posix/spawnp.c: Likewise.  Change normal version to use
25642         SPAWN_XFLAGS_USE_PATH.
25643         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25644         SPAWN_XFLAGS_TRY_SHELL.
25645
25646         [BZ #13150]
25647         * posix/glob.h: Remove gcc 1.x support.
25648
25649         [BZ #13068]
25650         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25651
25652 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25653
25654         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25655         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25656         strrchr-sse2-bsf
25657         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25658         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25659         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25660         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25661         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25662         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25663
25664 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25665
25666         * sysdeps/x86_64/wcscmp.S: New file.
25667
25668         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25669         wcscmp-c wcscmp-sse2
25670         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25671         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25672         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25673         * wcsmbs/wcscmp.c: Allow renaming.
25674
25675 2011-09-05  David S. Miller  <davem@davemloft.net>
25676
25677         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25678         stack slot, rather than the struct return pointer slot.
25679         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25680         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25681         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25682         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25683
25684 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25685
25686         * po/ja.po: Update from translation team.
25687
25688         [BZ #13144]
25689         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25690         kernel in 64-bit binaries.
25691
25692 2011-09-01  David S. Miller  <davem@davemloft.net>
25693
25694         * elf/elf.h (HWCAP_SPARC_*): Move to..
25695         * sysdeps/sparc/sysdep.h: this new file and add new values.
25696         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25697         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25698         _DL_HWCAP_COUNT to 24.
25699         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25700         entries.
25701         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25702         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25703         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25704         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25705         instead of magic constants.
25706         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25707
25708 2011-08-31  David S. Miller  <davem@davemloft.net>
25709
25710         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25711         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25712         Reimplement to do errno handling inline.
25713         (SYSCALL_ERROR_HANDLER): New macro.
25714         (__SYSCALL_STRING): Do not do errno handling in asm.
25715         (__CLONE_SYSCALL_STRING): Delete.
25716         (__INTERNAL_SYSCALL_STRING): Delete.
25717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25718         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25719         (PSEUDO): Reimplement to do errno handling inline.
25720         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25721         (SYSCALL_ERROR_HANDLER): New macro.
25722         (__SYSCALL_STRING): Do not do errno handling in asm.
25723         (__CLONE_SYSCALL_STRING): Delete.
25724         (__INTERNAL_SYSCALL_STRING): Delete.
25725         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25726         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25727         i386.
25728         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25729         (inline_syscall*): Add 'err' argument.
25730         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25731         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25732         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25733         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25734
25735         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25736         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25737
25738 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25739
25740         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25741
25742 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25743
25744         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25745         directive.
25746
25747 2011-08-24  David S. Miller  <davem@davemloft.net>
25748
25749         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25750
25751 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25752
25753         * elf/Makefile: Add rules to build and run unload8 test.
25754         * elf/unload8.c: New file.
25755         * elf/unload8mod1.c: New file.
25756         * elf/unload8mod1x.c: New file.
25757         * elf/unload8mod2.c: New file.
25758         * elf/unload8mod3.c: New file.
25759
25760         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25761         it wasn't used.
25762
25763 2011-08-23  David S. Miller  <davem@davemloft.net>
25764
25765         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25766         subtract stack bias.
25767         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25768         %sp not %fp in calculations.
25769         (_JMPBUF_UNWINDS_ADJ): Likewise.
25770
25771         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25772         (aio_suspend): Call it to force an exception region around the
25773         AIO_MISC_WAIT() invocation.
25774
25775 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25776
25777         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25778         backslash.
25779
25780 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25781
25782         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25783         protection macro.
25784         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25785         and <dl-machine.h>.
25786         (Elf64_FuncDesc): Remove.
25787
25788 2011-08-22  David S. Miller  <davem@davemloft.net>
25789
25790         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25791         sigaltstack check, add missing cfi directives.
25792         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25793         missing cfi directives, and sigaltstack handling.
25794
25795 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25796
25797         [BZ #11724]
25798         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25799         object is seen twice.
25800         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25801
25802         * elf/Makefile (distribute): Add tst-initorder2.c.
25803         (tests): Add tst-initorder2.
25804         (modules-names): Add tst-initorder2a tst-initorder2b
25805         tst-initorder2c tst-initorder2d.  Add rules to build them.
25806         ($(objpfx)tst-initorder2.out): New rule.
25807         * elf/tst-initorder2.c: New file.
25808         * elf/tst-initorder2.exp: New file.
25809
25810 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25811
25812         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25813
25814         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25815         dependencies back to end of function.
25816
25817         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25818         $(elfobjdir)/ld.so.
25819
25820 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25821
25822         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25823         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25824         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25825         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25826         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25827         of __vdso_gettimeofday.
25828         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25829         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25830         attribute_hidden.
25831         (_libc_vdso_platform_setup): Remove initialization of
25832         __vdso_gettimeofday and __vdso_time.
25833
25834 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25835
25836         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25837         and fgetc_unlocked.
25838         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25839         getc_unlocked.
25840
25841         * elf/dl-open.c (add_to_global): Report additions to the global scope
25842         for LD_DEBUG=scopes.
25843         (dl_open_worker): Also print scope of newly loaded dependencies.
25844         (_dl_show_scope): Indicate if there is no scope.
25845
25846         [BZ #13114]
25847         * stdio-common/Makefile (tests): Add bug24.
25848         * stdio-common/bug24.c: New file.
25849
25850 2011-08-19  Andreas Jaeger  <aj@suse.de>
25851
25852         [BZ #13114]
25853         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25854         non-existant file when using close-on-exec mode.
25855
25856 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25857
25858         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25859         the very first instruction.
25860
25861         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25862         the CFI state in the end.
25863         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25864         inclusion of dl-trampoline.h.
25865         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25866
25867 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25868
25869         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25870         expectations for long double.
25871
25872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25873         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25874
25875 2011-08-14  David S. Miller  <davem@davemloft.net>
25876
25877         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25878         artificual limit depends upon the system page size.
25879
25880 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25881
25882         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25883         * resolv/Makefile: Define CFLAGS-libresolv.
25884
25885 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25886
25887         * nss/makedb.c (compute_tables): Make variables used in nested
25888         function static.
25889
25890 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25891
25892         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25893         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25894         if buffer was too small.
25895
25896         * elf/pldd.c (main): Attach to all threads in the process.
25897         Rewrite /proc handling to use *at functions.
25898
25899 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25900
25901         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25902         specifies first scope to show.
25903         (dl_open_worker): Update callers.  Move printing scope of new
25904         object to before the relocation.
25905         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25906         * sysdeps/generic/ldsodefs.h: Update declaration.
25907
25908         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25909         string for the scope number.
25910
25911 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25912
25913         * nscd/servicescache.c (cache_addserv): Make sure written is always
25914         initialized.
25915
25916 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25917
25918         * sysdeps/i386/i486/bits/atomic.h
25919         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25920         statement expression, so as to suppress "set but not used" warning.
25921         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25922
25923         * string/strncat.c (STRNCAT): Use prototype definition.
25924
25925         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25926         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25927         -Iprograms here.
25928         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25929         (localedef-modules): Add localedef.
25930         (locale-modules): Add locale.
25931
25932         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25933         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25934         to avoid a warning.
25935
25936 2011-08-14  David S. Miller  <davem@davemloft.net>
25937
25938         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25939         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25940
25941 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25942
25943         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25944         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25945         * elf/rtld.c (dl_main): Set l_name of vDSO.
25946         Call _dl_show_scope when DL_DEBUG_SCOPES.
25947         (process_dl_debug): Recognize scopes flag and also set it for all.
25948         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25949         Declare _dl_show_scope.
25950
25951         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25952         (do_dlopen): Pass caller_dlopen to dl_open.
25953         (__libc_dlopen_mode): Initialize caller_dlopen.
25954
25955         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25956         of libc.  Make tolower call locale-independent.  Optimize a bit by
25957         using isdigit instead of isalnum.
25958         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25959
25960 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25961
25962         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25963         was a dependency or dynamically loaded.
25964
25965 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25966
25967         * intl/l10nflist.c: Allow architecture-specific pop function.
25968         * sysdeps/x86_64/l10nflist.c: New file.
25969
25970         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25971         classification.
25972
25973 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25974
25975         * include/dirent.h: Add libc_hidden_proto for scandirat and
25976         scandirat64.  Don't declare __scandirat64.
25977         * dirent/scandirat.c: Add libc_hidden_def.
25978         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25979         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25980
25981 2011-08-10  David S. Miller  <davem@davemloft.net>
25982
25983         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25984         enum.
25985         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25986         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25987         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25988
25989 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25990
25991         * Versions.def [libc]: Add GLIBC_2.15.
25992         * dirent/Makefile (routines): Add scandirat and scandirat64.
25993         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25994         GLIBC_2.15.
25995         * dirent/dirent.h: Declare scandirat and scandirat64.
25996         * dirent/scandirat.c: New file.
25997         * dirent/scandirat64.c: New file.
25998         * sysdeps/wordsize-64/scandirat.c: New file.
25999         * sysdeps/wordsize-64/scandirat64.c: New file.
26000         * dirent/opendir.c: Define opendirat.
26001         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
26002         using scandirat.
26003         * dirent/scandir64.c: Adjust for scandir.c change.
26004         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
26005         __scandirat64, and __scandir_cancel_handler.
26006         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
26007         additional parameter and use openat instead of open (outside of ld.so).
26008         Add new __opendir as wrapper around __opendirat.
26009         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
26010         here without requiring old scandirat implementation.
26011
26012 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
26013
26014         * dirent/scandir.c (cancel_handler): Renamed to
26015         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
26016         defined.  Adjust users.
26017         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
26018         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
26019
26020 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
26021
26022         * string/test-string.h (IMPL): Use __STRING to expand name and then
26023         stringify it.
26024
26025         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
26026         of cleanups.
26027
26028 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26029
26030         * string/Makefile: Update.
26031         (strop-tests): Append strncat.
26032         * string/test-wcscmp.c: New file.
26033         New comprehensive test for wcscmp.
26034         * string/test-strcmp.c: Update.
26035         (WIDE): New define.
26036
26037 2011-07-22  Andreas Schwab  <schwab@redhat.com>
26038
26039         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
26040         line.
26041
26042 2011-07-26  Andreas Schwab  <schwab@redhat.com>
26043
26044         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26045         encoding to ACE if AI_IDN.
26046
26047 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
26048
26049         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
26050         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
26051
26052 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26053
26054         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
26055         Fix overflow bug in strncat.
26056         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
26057
26058         * string/test-strncat.c: Update.
26059         Add new tests for checking overflow bugs.
26060
26061 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26062
26063         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26064         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
26065         * sysdeps/i386/i686/multiarch/strcat.S: New file.
26066         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
26067         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
26068         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
26069         * sysdeps/i386/i686/multiarch/strncat.S: New file.
26070         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
26071         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
26072
26073         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
26074         (USE_AS_STRCAT): Define.
26075         Add strcat and strncat support.
26076         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
26077
26078 2011-07-25  Andreas Schwab  <schwab@redhat.com>
26079
26080         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
26081         __n bigger than INT_MAX+1.
26082         (__strncmp_g): Likewise.
26083
26084 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
26085
26086         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
26087         * libio/stido.h: Likewise.
26088
26089         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
26090         (AF_NFC): Define.
26091         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
26092         (AF_NFC): Define.
26093
26094         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
26095         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26096         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26097         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26098         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26099
26100         [BZ #13021]
26101         * scripts/test-installation.pl: Don't expect libnss_test1 to be
26102         installed.
26103
26104         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
26105         typo.
26106         (_dl_x86_64_save_sse): Likewise.
26107
26108 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
26109
26110         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
26111         OSXSAVE.
26112         (_dl_x86_64_save_sse): Likewise.
26113
26114         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
26115
26116         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
26117
26118 2011-07-21  Andreas Schwab  <schwab@redhat.com>
26119
26120         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
26121         change.
26122         (_dl_x86_64_save_sse): Use correct AVX check.
26123
26124 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26125
26126         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
26127         bug in strncpy/strncat.
26128         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
26129
26130 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
26131
26132         * string/tester.c (test_strcat): Add tests for different alignments
26133         of source and destination.
26134         (test_strncat): Likewise.
26135
26136 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26137
26138         [BZ #12852]
26139         * posix/glob.c (glob): Check passed in values before using them in
26140         expressions to avoid some overflows.
26141         (glob_in_dir): Likewise.
26142
26143         [BZ #13007]
26144         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
26145         check for AVX enablement so that we don't crash with old kernels and
26146         new hardware.
26147         * elf/tst-audit4.c: Add same checks here.
26148         * elf/tst-audit6.c: Likewise.
26149
26150         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
26151
26152 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
26153
26154         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
26155
26156 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
26157
26158         * po/cs.po: Update from translation team.
26159         * po/bg.po: Likewise.
26160
26161 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
26162
26163         * misc/sys/cdefs.h: Add support for const attribute.
26164         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
26165         to gnu_dev_{major,minor,makedev} functions.
26166
26167 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
26168
26169         * intl/dcigettext.c (get_output_charset): Add missing bracket.
26170
26171 2011-07-20  Andreas Schwab  <schwab@redhat.com>
26172
26173         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
26174         strlen results.
26175
26176 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26177
26178         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
26179         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
26180         register in order to avoid conflicts with the soft frame pointer
26181         being held in r11 when necessary.
26182         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26183         (INTERNAL_VSYSCALL_NCS): Likewise.
26184
26185 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
26186
26187         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
26188         * elf/dl-fini.c (_dl_fini): Adjust caller.
26189         * elf/dl-close.c (_dl_close_worker): Likewise.
26190         * sysdeps/generic/ldsodefs.h: Adjust declaration.
26191
26192 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26193
26194         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
26195         "aux_cache->nlibs < 0".
26196
26197         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
26198         in the reload-count case.
26199
26200 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
26201
26202         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26203         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
26204         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
26205         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
26206         * sysdeps/x86_64/multiarch/strcat.S: New file.
26207         * sysdeps/x86_64/multiarch/strncat.S: New file.
26208         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
26209         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
26210         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
26211         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
26212         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
26213         (USE_AS_STRCAT): Define.
26214         Add strcat and strncat support.
26215         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
26216         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
26217         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
26218         * string/strncat.c: Update.
26219         (USE_AS_STRNCAT): Define.
26220         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26221         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
26222         and i7.
26223         * sysdeps/x86_64/multiarch/init-arch.h
26224         (bit_Prefer_PMINUB_for_stringop): New.
26225         (index_Prefer_PMINUB_for_stringop): Likewise.
26226         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
26227         bit_Prefer_PMINUB_for_stringop.
26228
26229 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26230
26231         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
26232         buffer64.
26233         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
26234         of casting of buffer.
26235         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
26236         buffer32 and buffer64.
26237         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
26238         writes instead of casting of buffer.
26239         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
26240         buffer32.
26241         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
26242         casting of buffer.
26243
26244 2011-07-19  Andreas Schwab  <schwab@redhat.com>
26245
26246         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
26247
26248 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26249
26250         * nscd/nscd.c (termination_handler): Don't do anything for a database
26251         if it has not yet been initialized.
26252
26253 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26254
26255         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26256
26257 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26258
26259         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26260
26261 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26262
26263         * po/nl.po: Update from translation team.
26264         * po/sv.po: Likewise.
26265
26266 2011-07-16  Roland McGrath  <roland@hack.frob.com>
26267
26268         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
26269         now disallowed by GCC.
26270
26271         * configure.in (use-default-link): Default to yes if a test -shared
26272         link meets our qualifications.
26273         * configure: Regenerated.
26274
26275         * config.make.in (output-format): New variable.
26276         * configure.in: Check for ld --print-output-format support.
26277         * configure: Regenerated.
26278         * Makerules ($(common-objpfx)format.lds)
26279         [$(output-format) != unknown]: Just use $(output-format),
26280         instead of the linker-script munging.
26281
26282 2011-07-14  Roland McGrath  <roland@hack.frob.com>
26283
26284         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
26285         of $(common-objpfx)shlib.lds.
26286         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
26287
26288         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
26289         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
26290
26291         * configure.in (-z relro check): Adjust test code to add a large
26292         writable data section after it.
26293         * configure: Regenerated.
26294
26295 2011-07-11  Roland McGrath  <roland@hack.frob.com>
26296
26297         * configure.in (-z relro check): Fix test code to make the variable
26298         truly const.
26299         * configure: Regenerated.
26300
26301 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
26302
26303         * nscd/nscd.h (struct traced_file): Define.
26304         (struct database_dyn): Remove inotify_descr, reset_res, and filename
26305         elements.  Add traced_files.
26306         (inotify_fd): Declare.
26307         (register_traced_file): Declare.
26308         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
26309         (inotify_fd): Export.
26310         (resolv_conf_descr): Remove.
26311         (nscd_init): Move inotify descriptor creation to main.
26312         Don't register files for notification here.
26313         (register_traced_file): New function.
26314         (invalidate_cache): Don't use reset_res to determine whether to call
26315         res_init, go through the list of registered files.
26316         (main_loop_poll): The inotify descriptors are now stored in the
26317         structures for the traced files.
26318         (main_loop_epoll): Likewise
26319         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
26320         to __nss_disable_nscd.
26321         * nscd/cache.c (prune_cache): There is no single inotify descriptor
26322         for a database anymore.  Check the records for all the registered
26323         files instead.
26324         * nss/Makefile (libnss_files-routines): Add files-init.
26325         (libnss_db-routines): Add db-init.
26326         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
26327         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
26328         * nss/nss_db/db-init.c: New file.
26329         * nss/nss_files/files-init.c: New file.
26330         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
26331         __nss_lookup_function.
26332         (__nss_lookup_function): Call nss_load_library.
26333         (nss_load_all_libraries): New function.
26334         (__nss_disable_nscd): Take parameter with callback function for files
26335         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
26336         used for the cached services.
26337         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
26338         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
26339         options for features to all the files in nscd.
26340
26341         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
26342
26343 2011-07-10  Roland McGrath  <roland@hack.frob.com>
26344
26345         * csu/elf-init.c (__libc_csu_init): Comment typo.
26346
26347 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
26348
26349         * po/pl.po: Update from translation team.
26350         * po/ja.po: Likewise.
26351         * po/ru.po: Likewise.
26352         * po/ko.po: Likewise.
26353         * po/fr.po: Likewise.
26354
26355 2011-07-09  Roland McGrath  <roland@hack.frob.com>
26356
26357         * configure.in (.ctors/.dtors header and trailer check):
26358         Use an empirical test on a built program.
26359         * configure: Regenerated.
26360
26361         * configure.in (-z relro check): Use an empirical test on a built DSO.
26362         Detect, but do not require, on ia64.
26363         * configure: Regenerated.
26364
26365         * configure.in (READELF): Find it with AC_CHECK_TOOL.
26366         Update tests that use readelf to use $READELF instead.
26367         * configure: Regenerated.
26368
26369 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
26370
26371         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
26372         if the result is not used.
26373
26374 2011-07-05  Andreas Jaeger  <aj@suse.de>
26375
26376         [BZ#9696]
26377         * stdlib/tst-strtod.c: Add testcase.
26378
26379 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
26380
26381         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
26382         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
26383         The latter has a higher limit.  Take additional parameter to pass to
26384         the new function.
26385         (__pathconf): Pass file to __statfs_link_max.
26386         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
26387         __statfs_link_max.
26388         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
26389         __statfs_link_max.
26390
26391         [BZ #12868]
26392         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
26393         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26394         Handle Lustre.
26395         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
26396         (__statfs_filesize_max): Likewise.
26397         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
26398
26399 2011-07-05  Andreas Jaeger  <aj@suse.de>
26400
26401         * resolv/res_comp.c (dn_skipname): Remove unused variable.
26402
26403 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
26404
26405         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
26406         `status' variable.
26407         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
26408         Likewise.
26409
26410 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
26411
26412         * Makefile (strop-tests): Add strncat.
26413         * string/test-strncat.c: New file.
26414
26415 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
26416
26417         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
26418
26419 2011-06-21  Andreas Jaeger  <aj@suse.de>
26420
26421         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
26422         Copy rule from iconvdata/Makefile.
26423
26424 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26425
26426         [BZ #12922]
26427         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
26428         but no long options are defined, just return 'W'.
26429
26430 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
26431
26432         [BZ #9696]
26433         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
26434
26435 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26436
26437         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
26438         netgroups to read.
26439         (innetgr): Likewise.
26440
26441 2011-07-05  Roland McGrath  <roland@hack.frob.com>
26442
26443         * config.make.in (install_root): Default to $(DESTDIR).
26444
26445 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
26446
26447         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
26448
26449 2011-07-02  Roland McGrath  <roland@hack.frob.com>
26450
26451         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
26452
26453         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
26454         containing directory rather than embedding absolute directory names.
26455
26456         * scripts/check-local-headers.sh: Rewritten using awk.
26457         Match by word, not by line.  Print error messages for matches.
26458         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
26459
26460         * Makerules [shlib-lds-flags empty]:
26461         ($(common-objpfx)libc_pic.opts): New target.
26462         ($(common-objpfx)libc_pic.os.clean): New target.
26463         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
26464
26465         * config.make.in (OBJCOPY): New variable.
26466         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
26467         * configure: Regenerated.
26468
26469         * config.make.in (use-default-link): New variable.
26470         * configure.in (use_default_link): Grok --with-default-link to set it.
26471         * configure: Regenerated.
26472         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
26473         (shlib-lds, shlib-lds-flags): Define to empty.
26474
26475         * Makerules (shlib-lds): New variable.
26476         (shlib-lds-flags): New variable.
26477         (build-shlib, build-moduile, build-module-asneeded): Use it.
26478         ($(common-objpfx)libc.so): Use $(shlib-lds).
26479         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
26480         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
26481
26482         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
26483         DT_FLAGS/DT_FLAGS_1 with zero flags.
26484
26485         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
26486         linker script munging.
26487
26488 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
26489
26490         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
26491         as 128-bit value.
26492         * crypt/sha512.c (sha512_process_block): Perform total addition using
26493         128-bit if possible.
26494         (__sha512_finish_ctx): Likewise.
26495         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
26496         as 64-bit value.
26497         * crypt/sha256.c (SWAP64): Define.
26498         (sha256_process_block): Perform total addition using 64-bit if
26499         possible.
26500         (__sha256_finish_ctx): Likewise.
26501
26502 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
26503
26504         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
26505         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26506         * nscd/hstcache.c (cache_addhst): Likewise.
26507         * nscd/grpcache.c (cache_addgr): Likewise.
26508         * nscd/aicache.c (addhstaiX): Likewise
26509         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
26510
26511 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
26512
26513         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
26514         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26515         * nscd/hstcache.c (cache_addhst): Likewise.
26516         * nscd/grpcache.c (cache_addgr): Likewise.
26517         * nscd/aicache.c (addhstaiX): Likewise
26518
26519 2011-07-01  Andreas Schwab  <schwab@redhat.com>
26520
26521         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
26522         domain only when needed.
26523
26524 2011-06-30  Andreas Schwab  <schwab@redhat.com>
26525
26526         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
26527         is always restored.
26528
26529 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
26530
26531         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
26532         are re-adding the entry.
26533         * nscd/servicescache.c (cache_addserv): Likewise.
26534
26535 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
26536
26537         * sysdeps/generic/dl-irel.h: fix protection against multiple
26538         inclusions.
26539         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
26540
26541 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
26542
26543         [BZ #12935]
26544         * malloc/memusage.sh: Fix quoting in message.
26545         * debug/xtrace.sh: Likewise.
26546
26547         * configure.in: Remove support for --experimental-malloc option, make
26548         it the default.
26549         * config.make.in: Likewise.
26550         * malloc/Makefile: Likewise.
26551
26552 2011-06-27  Andreas Schwab  <schwab@redhat.com>
26553
26554         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
26555         two-byte characters.
26556
26557 2011-06-27  Roland McGrath  <roland@hack.frob.com>
26558
26559         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
26560         AC_CACHE_CHECK invocation.
26561         * configure: Regenerated.
26562
26563         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
26564
26565 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
26566
26567         [BZ #12350]
26568         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
26569         bit from old_res_options.
26570
26571         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
26572
26573         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
26574         value type for setfct.
26575
26576 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
26577
26578         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26579         __gettimeofday instead of gettimeofday.
26580
26581 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
26582
26583         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
26584
26585 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
26586
26587         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
26588
26589         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
26590         info.
26591
26592 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26593
26594         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26595         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26596         strcpy-sse2-unaligned strncpy-sse2-unaligned
26597         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
26598         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
26599         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
26600         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
26601         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
26602         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
26603         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
26604         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
26605         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
26606         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
26607         (STRCPY): Support SSE2 and SSSE3 versions.
26608
26609 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
26610
26611         [BZ #12874]
26612         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
26613         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
26614         kernels which artificially limit size of requests.
26615
26616 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26617
26618         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26619         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26620         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
26621         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
26622         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
26623         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
26624         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
26625         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26626         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26627         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26628         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26629         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26630         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26631         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26632         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26633         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26634         Enable unaligned load optimization for Intel Core i3, i5 and i7
26635         processors.
26636         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26637         Define.
26638         (index_Fast_Unaligned_Load): Define.
26639         (HAS_FAST_UNALIGNED_LOAD): Define.
26640
26641 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26642
26643         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26644
26645 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26646
26647         [BZ #12907]
26648         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26649         until it is clear that the information is realy needed.
26650         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26651
26652 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26653
26654         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26655
26656 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26657
26658         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26659         /sys/devices/system/cpu/online if it is usable.
26660
26661         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26662         reading the information from the /proc filesystem to once a second.
26663
26664 2011-06-21  Andreas Jaeger  <aj@suse.de>
26665
26666         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26667         NULL after inclusion of kernel headers.
26668
26669 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26670
26671         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26672         calls to internal_setent.
26673
26674         [BZ #12885]
26675         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26676         addresses using gethostbyname4_r ignore IPv4 addresses.
26677
26678         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26679         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26680
26681         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26682
26683 2011-06-20  David S. Miller  <davem@davemloft.net>
26684
26685         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26686         inclusions.
26687         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26688
26689         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26690         (elf_irel): Use it.
26691         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26692         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26693         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26694         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26695         * sysdeps/x86_64/dl-irel.h: Likewise.
26696
26697         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26698         * elf/dl-sym.c: Likewise.
26699
26700 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26701
26702         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26703         need to dereference resplen2.
26704
26705 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26706
26707         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26708
26709 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26710
26711         * Makeconfig: Define vardbdir and inst_vardbdir.
26712         * nss/Makefile: Add rules to install db-Makefile.
26713
26714         * nss/nss_db/db-XXX.c: Cleanup.
26715
26716         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26717         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26718         GLIBC_PRIVATE.
26719         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26720         * nss/makedb.c: Implement -g option to specify that value strings
26721         are generated and should not be added to table iterated over for
26722         get*ent calls.
26723         * nss/nss_db/db-initgroups.c: New file.
26724
26725         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26726         interface.
26727
26728         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26729         (internal_getgrouplist): Adjust to name change.
26730         Update use_initgroups_entry if this is not the first call.
26731         * nss/databases.def: Add initgroups entry.
26732
26733         * nss/makedb.c (compute_tables): Check result of multiple hash table
26734         sizes to minimize maximum chain length.
26735
26736 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26737
26738         * Versions.def: Add entry for libnss_db.
26739         * shlib-versions: Likewise.
26740         * nss/Makefile: Add rules to build libnss_db.
26741         * nss/Versions: Add libnss_db information.  Organize libnss_files
26742         entries better.
26743         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26744         makedb progra.  Some minor improvements to generate smaller files.
26745         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26746         here from...
26747         * nss/makedb.c: ...here.
26748         Improve database format to be smaller and require less memory at
26749         runtime.
26750         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26751         db anymore.
26752         * nss/nss_db/db-netgrp.c: Likewise.
26753         * nss/nss_db/db-open.c: Likewise.
26754         * nss/nss_files/flies-XXX.x: Adjust comments.
26755         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26756         * nss/nss_files/files-grp.c: Likewise.
26757         * nss/nss_files/files-hosts.c: Likewise.
26758         * nss/nss_files/files-network.c: Likewise.
26759         * nss/nss_files/files-proto.c: Likewise.
26760         * nss/nss_files/files-pwd.c: Likewise.
26761         * nss/nss_files/files-rpc.c: Likewise.
26762         * nss/nss_files/files-service.c: Likewise.
26763         * nss/nss_files/files-sgrp.c: Likewise.
26764         * nss/nss_files/files-spwd.c: Likewise.
26765         * nss/nss_db/db-alias.c: Removed.
26766         * nss/nss_db/dummy-db.h: Removed.
26767
26768 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26769
26770         * nss/makedb.c: Rewritten to not use database library.
26771         * nss/Makefile: Update to build new makedb program.
26772
26773 2011-06-14  Andreas Jaeger  <aj@suse.de>
26774
26775         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26776         memset declaration.
26777
26778 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26779
26780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26781         tmpbuf.
26782
26783 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26784
26785         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26786         * elf/Makefile ($(objpfx)ld.so): Likewise.
26787
26788         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26789         Don't list ld.so twice in dependencies.
26790
26791         * posix/bug-regex31.c: Include <stdlib.h>.
26792
26793         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26794
26795         * nis/nss_compat/compat-spwd.c
26796         (getspent_next_nss_netgr): Remove unused variable.
26797         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26798
26799         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26800         nonmembers" output to use the right array.
26801
26802         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26803
26804         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26805
26806         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26807         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26808         * catgets/gencat.c (read_input_file): Likewise.
26809         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26810
26811         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26812         variable definition inside #if's controlling its use.
26813
26814         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26815
26816         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26817
26818         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26819
26820         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26821         unreachable code.
26822
26823         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26824
26825         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26826         * configure: Regenerated.
26827
26828         * Makerules: Revert last change.
26829         * elf/Makefile: Likewise.
26830
26831 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26832
26833         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26834         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26835         (reloc-link): Likewise.
26836
26837 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26838
26839         * elf/Makefile: Add rules to build pldd.
26840         * elf/pldd.c: New file.
26841         * elf/pldd-xx.c: New file.
26842
26843 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26844
26845         * version.h: Update for 2.15 development version.
26846
26847 2011-06-07  David S. Miller  <davem@davemloft.net>
26848
26849         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26850         ifuncs.
26851         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26852         elf_machine_lazy_rel): Likewise.
26853         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26854         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26855         elf_machine_lazy_rel): Likewise.
26856         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26857         dl_hwcap via passed in argument.
26858         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26859         Likewise.
26860
26861 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26862
26863         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26864
26865 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26866
26867         [BZ #12849]
26868         * manual/fdl-1.1.texi: New file, verbatim from:
26869         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26870         * manual/lgpl-2.1.texi: New file, verbatim from:
26871         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26872         * manual/Makefile (licenses): New variable, list those new file names.
26873         (texis): Use it.
26874         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26875
26876         * manual/fdl.texi: File removed.
26877         * manual/lesser.texi: File removed.
26878         * manual/libc.texinfo (Copying, Documentation License):
26879         Use new @include file names, put @appendix directive before @include.
26880
26881 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26882
26883         [BZ #12841]
26884         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26885         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26886         (mq_open): Add __NTH.
26887
26888 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26889
26890         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26891         Assume Intel Core i3/i5/i7 processor if AVX is available.
26892
26893 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26894
26895         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26896         typo.
26897
26898 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26899
26900         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26901         memory.  Use alloca_account.  Fix memory leak when retrying.
26902
26903 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26904
26905         * version.h (RELEASE): Bump for 2.14 release.
26906         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26907
26908         * config.make.in (RANLIB): Remove entry.
26909
26910 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26911
26912         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26913         (libc.pot): Work around missing support for .ksh extension in xgettext.
26914
26915         [BZ #12684]
26916         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26917         if both request failed.
26918         (send_dg): In case of server errors clear resplen or *resplen2.
26919
26920         [BZ #12454]
26921         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26922         when there are multiple maps.
26923         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26924         (_dl_fini): Remove test here.
26925
26926         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26927
26928 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26929
26930         [BZ #12350]
26931         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26932         bit from old_res_options.
26933         (gaih_inet): Likewise.
26934
26935         [BZ #11099]
26936         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26937         as signed.
26938
26939         * resolv/res_init.c (res_setoptions): Make the code more compact.
26940
26941         [BZ #11558]
26942         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26943         set RES_USEVC.
26944
26945         [BZ #11634]
26946         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26947
26948         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26949
26950         [BZ #11781]
26951         * malloc/malloc.h: Declare malloc hook variables as volatile.
26952
26953         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26954         in last patch.
26955
26956         [BZ #11799]
26957         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26958         raise in the comment.
26959         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26960         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26961         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26962
26963 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26964
26965         [BZ #12811]
26966         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26967         grow the buffers more if it already has to be sufficient.
26968         (build_wcs_upper_buffer): Likewise.
26969         * posix/regexec.c (check_matching): Likewise.
26970         (clean_state_log_if_needed): Likewise.
26971         (extend_buffers): Don't enlarge buffers beyond size of the input
26972         buffer.
26973         Patches mostly by Emil Wojak <emil@wojak.eu>.
26974         * posix/bug-regex32.c: New file.
26975         * posix/Makefile (tests): Add bug-regex32.
26976
26977         * locale/findlocale.c (_nl_find_locale): Return right away if
26978         _nl_explode_name failed.
26979         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26980
26981         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26982
26983         * debug/xtrace.sh: Unify messages.
26984         * malloc/memusage.sh: Likewise.
26985
26986         [BZ #12813]
26987         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26988         time symbol from vDSO.  Substitute with vsyscall if not available.
26989         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26990         __vdso_time.
26991
26992         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26993         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26994         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26995         Add sendmmsg and internal_sendmmsg.
26996         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26997         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26998         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26999
27000         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
27001         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
27002         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
27003
27004 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
27005
27006         [BZ #12813]
27007         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
27008         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
27009         available.
27010         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
27011         __vdso_getcpu.
27012
27013         [BZ #12814]
27014         * iconvdata/Makefile (tests): Add bug-iconv9.
27015         * iconvdata/bug-iconv9.c: New file.
27016
27017 2011-05-27  Andreas Schwab  <schwab@redhat.com>
27018
27019         [BZ #12814]
27020         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
27021
27022 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
27023
27024         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27025         (struct user_regs_struct): Change intcs field back to cs.
27026
27027 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
27028
27029         * po/ja.po: Update from translation team.
27030
27031 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
27032
27033         [BZ #12795]
27034         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
27035         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
27036
27037 2011-05-20  Andreas Schwab  <schwab@redhat.com>
27038
27039         * stdlib/longlong.h: Update from GCC.
27040
27041 2011-05-23  Andreas Schwab  <schwab@redhat.com>
27042
27043         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
27044         parameter name.
27045         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
27046         Add parameter name.
27047         (__sysconf): Pass it down.
27048
27049 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
27050
27051         [BZ #12671]
27052         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
27053         some situations.
27054         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27055         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
27056         add in in __libc_use_alloca calls.  Adjust callers.
27057         (glob): Use malloc in some situations.
27058
27059         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
27060         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
27061         pltexit.
27062
27063 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
27064
27065         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
27066         and CLOCK_BOOTTIME_ALARM.
27067
27068         [BZ #12782]
27069         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
27070         is returned.
27071
27072         * string/_strerror.c (__strerror_r): Print negative errors as signed
27073         numbers.
27074
27075         [BZ #12777]
27076         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
27077         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
27078         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
27079
27080         * configure.in: Fix typo in redirection and correct removal of test
27081         files in two cases.
27082
27083         [BZ #12788]
27084         * locale/setlocale.c (new_composite_name): Fix test to check for
27085         identical name of all categories.
27086
27087         [BZ #12792]
27088         * libio/filedoalloc.c (local_isatty): New function.
27089         (_IO_file_doallocate): Use local_isatty.
27090         * stdio-common/perror.c (perror): In case a new stream is used
27091         forward the stream error.
27092         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
27093         error flag.
27094
27095 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
27096
27097         [BZ #11869]
27098         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
27099         alloca.
27100         * include/alloca.h (extend_alloca_account): Define.
27101
27102         [BZ #11857]
27103         * posix/regex.h: Fix comments with documentation of user-accessible
27104         fields after compilation and describe correct free'ing of pattern
27105         after re_compile_pattern.
27106         Patch by Reuben Thomas <rrt@sc3d.org>.
27107
27108 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
27109
27110         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
27111         and -mno-altivec to prevent the compiler from using Altivec and/or
27112         VSX instructions when the corresponding registers are not available.
27113
27114 2011-05-19  Andreas Schwab  <schwab@redhat.com>
27115
27116         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
27117
27118 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
27119
27120         * libio/freopen.c (freopen): Use __dup2, not dup2.
27121         * libio/freopen64.c (freopen64): Likewise.
27122
27123 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
27124
27125         [BZ #12775]
27126         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
27127         * math/Makefile (tests): Add test-powl.
27128         (CFLAGS-test-powl.c): Define.
27129         * math/test-powl.c: New file.
27130
27131 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
27132
27133         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
27134
27135 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
27136
27137         [BZ #11837]
27138         * iconvdata/gb18030.c: Update to GB18020-2005.
27139
27140 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
27141
27142         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
27143         RE_SYNTAX_POSIX_AWK): Update to match recent development.
27144         Patch by Aharon Robbins <arnold@skeeve.com>.
27145
27146         [BZ #11892]
27147         * stdlib/putenv.c (putenv): Don't always create copy of the variable
27148         on the stack.
27149
27150         [BZ #11895]
27151         * misc/pselect.c (__pselect): Handle timeout value errors hidden
27152         through underflows.
27153
27154         [BZ #12766]
27155         * misc/error.c (error_at_line): Ensure file_name and old_file_name
27156         point to strings before performing equality test for error_one_per_line
27157         mode.
27158
27159         [BZ #11697]
27160         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
27161
27162         [BZ #11820]
27163         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
27164         (struct user_fpregs_struct): Avoid __uint*_t types.
27165
27166         [BZ #6420]
27167         * malloc/mtrace.c (tr_where): Add additional parameter to point to
27168         symbol info.  Use it instead of calling _dl_addr locally.
27169         (lock_and_info): New function.
27170         (tr_freehook): Call lock_and_info and pass symbol info as additional
27171         parameter to tr_where.
27172         (tr_mallochook): Likewise.
27173         (tr_reallochook): Likewise.
27174         (tr_memalignhook): Likewise.
27175
27176         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
27177         used and couldn't be at all thread-safe.
27178
27179 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
27180
27181         * libio/freopen.c (freopen): Don't close old file descriptor
27182         before the new one is opened.  Instead dup the new file descriptor
27183         to the old one after the new stream is created.
27184         * libio/freopen64.c (freopen64): Likewise.
27185         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
27186         * libio/fileops.c (_IO_new_file_close_it): Handle new
27187         _IO_FLAGS2_NOCLOSE flag.
27188         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
27189         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
27190         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
27191         _IO_FLAGS2_NOCLOSE flag.
27192         * include/unistd.h: Add hidden_proto for dup3.
27193         Define __have_dup3.
27194         * io/dup3.c: Define hidden symbol.
27195         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
27196
27197         [BZ #7101]
27198         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
27199         when an incomplete long option is used.
27200         * posix/tst-getopt_long1.c: New file.
27201         * posix/Makefile (tests): Add tst-getopt_long1.
27202
27203         [BZ #10138]
27204         * scripts/config.guess: Update from autoconf-2.68.
27205         * scripts/config.sub: Likewise.
27206
27207         [BZ #10157]
27208         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
27209         tests into ...
27210         (has_cpuclock): ...this.  New function.
27211         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
27212         macro here based on has_cpuclock code.
27213
27214         [BZ #10149]
27215         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27216         First byte (not low byte) is now always NUL.
27217         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
27218
27219         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27220         Use non-cancelable interfaces.
27221
27222         [BZ #9809]
27223         * locale/iso-639.def: Add entry for Sorani.
27224
27225         [BZ #11901]
27226         * include/stdlib.h: Move include protection to the right place.
27227         Define abort_msg_s.  Declare __abort_msg with it.
27228         * stdlib/abort.c (__abort_msg): Adjust type.
27229         * assert/assert.c (__assert_fail_base): New function.  Majority
27230         of code from __assert_fail.  Allocate memory for __abort_msg with
27231         mmap.
27232         (__assert_fail): Now call __assert_fail_base.
27233         * assert/assert-perr.c: Remove bulk of implementation.  Use
27234         __assert_fail_base.
27235         * include/assert.hL Declare __assert_fail_base.
27236         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
27237         mmap.
27238         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
27239
27240 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
27241
27242         [BZ #11952]
27243         [BZ #12453]
27244         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
27245         until all modules are registered in the DTV.
27246         * elf/Makefile: Add rules to build and run tst-tls19.
27247         * elf/tst-tls19.c: New file.
27248         * elf/tst-tls19mod1.c: New file.
27249         * elf/tst-tls19mod2.c: New file.
27250         * elf/tst-tls19mod3.c: New file.
27251         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
27252
27253         [BZ #12083]
27254         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
27255         correctly.
27256
27257         [BZ #12601]
27258         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
27259         two-byte sequence errors.
27260         * iconvdata/Makefile (tests): Add bug-iconv8.
27261         * iconvdata/bug-iconv8.c: New file.
27262
27263         [BZ #12626]
27264         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
27265         buf2 definition.
27266
27267         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
27268
27269         [BZ #12432]
27270         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
27271         (dummy_getcfa): New function.
27272         (init): Get _Unwind_GetCFA address, use dummy if not found.
27273         (backtrace_helper): In recursion check, also check whether CFA changes.
27274         (__backtrace): Completely initialize arg.
27275
27276         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
27277         storing incomplete byte sequence in state object.  Avoid testing for
27278         guaranteed too small input if we know there is enough data available.
27279
27280 2011-05-11  Andreas Schwab  <schwab@redhat.com>
27281
27282         * Makeconfig (+link-pie): Indent.
27283         * Rules (binaries-pie): Define if $(have-fpie) and
27284         $(build-shared).
27285         (binaries-shared): Also filter out $(binaries-pie).
27286         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
27287         * nscd/Makefile (others-pie): Add nscd.
27288         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
27289         ($(objpfx)nscd): Remove command override.
27290         * login/Makefile (others-pie): Add pt_chown.
27291         ($(objpfx)pt_chown): Remove command override.
27292         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
27293         remove command overrides.
27294
27295 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
27296
27297         * libio/tst_putwc.c: Fix error messages.
27298
27299         [BZ #12724]
27300         * libio/fileops.c (_IO_new_file_close_it): Always flush when
27301         currently writing and seek to current position when not.
27302         * libio/Makefile (tests): Add bug-fclose1.
27303         * libio/bug-fclose1.c: New file.
27304
27305 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
27306
27307         [BZ #12511]
27308         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
27309         don't set DF_1_NODELETE here.
27310         (do_lookup_x): When entering new entry test for copy relocation
27311         and if necessary set DF_1_NODELETE flag.
27312         * elf/tst-unique4.cc: New file.
27313         * elf/tst-unique4.h: New file.
27314         * elf/tst-unique4lib.cc: New file.
27315         * elf/Makefile: Add rules to build and run tst-unique4.
27316         Patch by Piotr Bury <pbury@goahead.com>.
27317
27318 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
27319
27320         [BZ #12052]
27321         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
27322
27323         [BZ #12625]
27324         * misc/mntent_r.c (addmntent): Flush the stream after the output
27325
27326         [BZ #12393]
27327         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
27328         (is_trusted_path_normalize): Skip initial colon.  Append slash
27329         to empty buffer.  Duplicate is_trusted_path code but allow
27330         constructed patch to be prefix.
27331         (is_dst): Allow $ORIGIN followed by /.
27332         (_dl_dst_substitute): Correct clearing of check_for_trusted.
27333         Correct testing of result of is_trusted_path_normalize
27334         (decompose_rpath): Fix warning.
27335
27336 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
27337
27338         [BZ #11257]
27339         * grp/initgroups.c (internal_getgrouplist): When we found the service
27340         list through the initgroups entry in nsswitch.conf do not always
27341         continue on a successful lookup.  Don't always use the
27342         __nss_group_database value if it is set.
27343         * nss/nsswitch.conf (initgroups): Change action for successful db
27344         lookup to continue for compatibility.
27345
27346 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
27347
27348         [BZ #11532]
27349         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
27350         and CP774 modules.
27351         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
27352         and CP774 modules.
27353         * iconvdata/tst-tables.sh: Likewise.
27354         * iconvdata/cp770.c: New file.
27355         * iconvdata/cp771.c: New file.
27356         * iconvdata/cp772.c: New file.
27357         * iconvdata/cp773.c: New file.
27358         * iconvdata/cp774.c: New file.
27359         * iconvdata/testdata/CP770: New file.
27360         * iconvdata/testdata/CP770..UTF8: New file.
27361         * iconvdata/testdata/CP771: New file.
27362         * iconvdata/testdata/CP771..UTF8: New file.
27363         * iconvdata/testdata/CP772: New file.
27364         * iconvdata/testdata/CP772..UTF8: New file.
27365         * iconvdata/testdata/CP773: New file.
27366         * iconvdata/testdata/CP773..UTF8: New file.
27367         * iconvdata/testdata/CP774: New file.
27368         * iconvdata/testdata/CP774..UTF8: New file.
27369
27370         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
27371         END CHARMAP line.
27372         * iconvdata/gen-8bit-gap.sh: Likewise.
27373         * iconvdata/gen-8bit.sh: Likewise.
27374
27375         * locale/iso-639.def: Add ary entry.
27376
27377         [BZ #11258]
27378         * locale/C-translit.h.in: Add U20A1 transliteration.
27379
27380         [BZ #12178]
27381         * locale/iso-639.def: Add wae entry.
27382         Patch by Kevin Bortis <bortis@translate-wae.ch>.
27383
27384         [BZ #12545]
27385         * locale/programs/localedef.c (construct_output_path): Use ssize_t
27386         for n.
27387
27388         [BZ #12711]
27389         * locale/C-translit.h.in: Add entry for U20B9.
27390         Patch by pravin.d.s@gmail.com.
27391
27392 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
27393
27394         [BZ #12713]
27395         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
27396         ENAMETOOLONG use generic getcwd.
27397         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
27398         in rtld.  Use *stat64.
27399         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
27400         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
27401         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
27402         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
27403         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
27404         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
27405         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
27406         __fstatat64 macros.
27407         * include/dirent.h: Add libc_hidden_proto for rewinddir.
27408         * dirent/rewinddir.c: Add libc_hidden_def.
27409         * sysdeps/mach/hurd/rewinddir.c: Likewise.
27410         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
27411
27412         * include/dirent.h (__alloc_dir): Add flags parameter.
27413         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
27414         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
27415         __alloc_dir.
27416         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
27417         from fdopendir if O_CLOEXEC is already set.
27418
27419 2011-03-15  Alan Modra  <amodra@gmail.com>
27420
27421         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
27422         l_tls_firstbyte_offset non-zero.  Save padding offset in
27423         l_tls_firstbyte_offset for later use.
27424         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
27425         freeing static tls block.
27426
27427 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
27428
27429         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
27430         where #ifdef was intended.  The intent is to prevent ARG_MAX from
27431         being defined by the kernel headers.
27432
27433 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
27434
27435         [BZ #12734]
27436         * resolv/resolv.h: Define RES_NOTLDQUERY.
27437         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
27438         no-tld-query and set RES_NOTLDQUERY.
27439         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
27440         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
27441         modern BIND to search name as TLD unless forbidden.
27442
27443 2011-05-07  Petr Baudis  <pasky@suse.cz>
27444             Ulrich Drepper  <drepper@gmail.com>
27445
27446         [BZ #12393]
27447         * elf/dl-load.c (fillin_rpath): Move trusted path check...
27448         (is_trusted_path): ...to here.
27449         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
27450         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
27451         using is_trusted_path_normalize() in setuid scripts.
27452
27453 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27454
27455         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
27456         __BEGIN/__END_DECLS.
27457
27458 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
27459
27460         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
27461         NSS_STATUS_NOTFOUND if no record was found.
27462
27463 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27464
27465         * sunrpc/Makefile (headers): Add rpc/netdb.h.
27466         (headers-not-in-tirpc): Remove rpc/netdb.h
27467         * resolv/netdb.h: Revert last change.
27468
27469 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27470
27471         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
27472         circular dependency between libgcc.a and libc.a.
27473
27474 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27475
27476         * resolv/netdb.h: Don't include <rpc/netdb.h>.
27477         * nis/Makefile: Don't install rpcsvc/*.
27478         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
27479         instead of <rpc/types.h>.
27480         (MAXHOSTNAMELEN): Define.
27481
27482 2011-05-03  Andreas Schwab  <schwab@redhat.com>
27483
27484         * elf/ldconfig.c (add_dir): Don't crash on empty path.
27485
27486 2011-04-28  Maciej Babinski  <mbabinski@google.com>
27487
27488         [BZ #12714]
27489         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
27490         gethostbyname4_r when IPv6 results are possible.
27491
27492 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
27493
27494         [BZ #12723]
27495         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
27496         _PC_PIPE_BUF handling.
27497
27498 2011-04-30  Bruno Haible  <bruno@clisp.org>
27499
27500         [BZ #12717]
27501         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
27502         * resolv/netdb.h (getnameinfo): Change type of flags parameter
27503         to 'int'.
27504         * inet/getnameinfo.c (getnameinfo): Likewise.
27505
27506 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
27507
27508         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
27509         to groups setting in database lookup.
27510         * nss/nsswitch.conf: Add initgroups entry.
27511
27512 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
27513
27514         [BZ #12685]
27515         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
27516         mode string.
27517         Patch by Eric Blake <eblake@redhat.com>.
27518
27519 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
27520
27521         * sunrpc/Makefile (need-export-routines): Add svc_run.
27522         (routines): Remove svc_run.
27523         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
27524         * sunrpc/clnt_perr.c (clnt_perrno): Export.
27525         * sunrpc/svc_run.c (svc_run): Likewise.
27526         * sunrpc/svc_udp.c (svcudp_create): Likewise.
27527
27528 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
27529
27530         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
27531         problem in reallocation in last patch.
27532
27533 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
27534
27535         * sunrpc/Makefile: Move inclusion of Rules.
27536
27537 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27538
27539         * nss/nss_files/files-initgroups.c: New file.
27540         * nss/Makefile (libnss_files-routines): Add files-initgroups.
27541         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
27542         _nss_files_initgroups_dyn.
27543
27544 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
27545
27546         * elf/elf.h (R_ARM_IRELATIVE): Define.
27547
27548 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27549
27550         * po/ru.po: Update from translation team.
27551
27552 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27553
27554         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
27555         dependencies.
27556
27557 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
27558
27559         [BZ #12653]
27560         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
27561         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
27562         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27563         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27564         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27565
27566 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
27567
27568         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
27569         differing bytes.
27570         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
27571         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
27572         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
27573
27574 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27575
27576         [BZ #12420]
27577         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
27578         storing it.
27579         * stdlib/bug-getcontext.c: New file.
27580         * stdlib/Makefile: Add rules to build and run bug-getcontext.
27581
27582 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27583
27584         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
27585         instructions into .machine "z9-109".
27586         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
27587         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
27588
27589 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27590
27591         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
27592         between environment variables and auxiliary vector.
27593
27594 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
27595
27596         * Makefile: Add rules to build linkobj/libc.so.
27597         * include/libc-symbols.h: Define libc_hidden_nolink.
27598         * include/rpc/auth.h: Mark functions which are to be hidden.
27599         * include/rpc/auth_des.h: Likewise.
27600         * include/rpc/auth_unix.h: Likewise.
27601         * include/rpc/clnt.h: Likewise.
27602         * include/rpc/des_crypt.h: Likewise.
27603         * include/rpc/key_prot.h: Likewise.
27604         * include/rpc/pmap_clnt.h: Likewise.
27605         * include/rpc/pmap_prot.h: Likewise.
27606         * include/rpc/pmap_rmt.h: Likewise.
27607         * include/rpc/rpc_msg.h: Likewise.
27608         * include/rpc/svc.h: Likewise.
27609         * include/rpc/svc_auth.h: Likewise.
27610         * include/rpc/xdr.h: Likewise.
27611         * nis/Makefile: Link all DSOs against linkobj/libc.so.
27612         * nss/Makefile: Likewise.
27613         * sunrpc/Makefile: Don't install headers.  Build library with normal
27614         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
27615         * sunrpc/auth_des.c: Hide exported symbols by default, export some
27616         for the compat linking library.  Remove use of INTDEF/INTUSE.
27617         * sunrpc/auth_none.c: Likewise.
27618         * sunrpc/auth_unix.c: Likewise.
27619         * sunrpc/authdes_prot.c: Likewise.
27620         * sunrpc/authuxprot.c: Likewise.
27621         * sunrpc/clnt_gen.c: Likewise.
27622         * sunrpc/clnt_perr.c: Likewise.
27623         * sunrpc/clnt_raw.c: Likewise.
27624         * sunrpc/clnt_simp.c: Likewise.
27625         * sunrpc/clnt_tcp.c: Likewise.
27626         * sunrpc/clnt_udp.c: Likewise.
27627         * sunrpc/clnt_unix.c: Likewise.
27628         * sunrpc/des_crypt.c: Likewise.
27629         * sunrpc/des_soft.c: Likewise.
27630         * sunrpc/get_myaddr.c: Likewise.
27631         * sunrpc/key_call.c: Likewise.
27632         * sunrpc/key_prot.c: Likewise.
27633         * sunrpc/netname.c: Likewise.
27634         * sunrpc/pm_getmaps.c: Likewise.
27635         * sunrpc/pm_getport.c: Likewise.
27636         * sunrpc/pmap_clnt.c: Likewise.
27637         * sunrpc/pmap_prot.c: Likewise.
27638         * sunrpc/pmap_prot2.c: Likewise.
27639         * sunrpc/pmap_rmt.c: Likewise.
27640         * sunrpc/publickey.c: Likewise.
27641         * sunrpc/rpc_cmsg.c: Likewise.
27642         * sunrpc/rpc_common.c: Likewise.
27643         * sunrpc/rpc_dtable.c: Likewise.
27644         * sunrpc/rpc_prot.c: Likewise.
27645         * sunrpc/rpc_thread.c: Likewise.
27646         * sunrpc/rtime.c: Likewise.
27647         * sunrpc/svc.c: Likewise.
27648         * sunrpc/svc_auth.c: Likewise.
27649         * sunrpc/svc_authux.c: Likewise.
27650         * sunrpc/svc_raw.c: Likewise.
27651         * sunrpc/svc_run.c: Likewise.
27652         * sunrpc/svc_simple.c: Likewise.
27653         * sunrpc/svc_tcp.c: Likewise.
27654         * sunrpc/svc_udp.c: Likewise.
27655         * sunrpc/svc_unix.c: Likewise.
27656         * sunrpc/svcauth_des.c: Likewise.
27657         * sunrpc/xcrypt.c: Likewise.
27658         * sunrpc/xdr.c: Likewise.
27659         * sunrpc/xdr_array.c: Likewise.
27660         * sunrpc/xdr_float.c: Likewise.
27661         * sunrpc/xdr_intXX_t.c: Likewise.
27662         * sunrpc/xdr_mem.c: Likewise.
27663         * sunrpc/xdr_rec.c: Likewise.
27664         * sunrpc/xdr_ref.c: Likewise.
27665         * sunrpc/xdr_sizeof.c: Likewise.
27666         * sunrpc/xdr_stdio.c: Likewise.
27667
27668 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27669
27670         [BZ #12650]
27671         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27672         * sysdeps/ia64/dl-tls.h: Likewise.
27673         * sysdeps/powerpc/dl-tls.h: Likewise.
27674         * sysdeps/s390/dl-tls.h: Likewise.
27675         * sysdeps/sh/dl-tls.h: Likewise.
27676         * sysdeps/sparc/dl-tls.h: Likewise.
27677         * sysdeps/x86_64/dl-tls.h: Likewise.
27678         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27679
27680 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27681
27682         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27683         rpath element also skip the following colon.
27684         (expand_dynamic_string_token): Add is_path parameter and pass
27685         down to DL_DST_REQUIRED and _dl_dst_substitute.
27686         (decompose_rpath): Call expand_dynamic_string_token with
27687         non-zero is_path.  Ignore empty rpaths.
27688         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27689         with zero is_path.
27690
27691 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27692
27693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27694         Make cancelable.
27695
27696 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27697
27698         [BZ #12655]
27699         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27700         Patch by Filipe David Manana <fdmanana@apache.org>.
27701
27702 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27703
27704         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27705         Maintain aligned stack.
27706         (CHECK_RSP): Remove unused macro.
27707
27708 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27709
27710         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27711         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27712
27713 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27714
27715         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27716
27717         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27718
27719 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27720
27721         [BZ #12518]
27722         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27723         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27724         * sysdeps/x86_64/memmove.c: New file.
27725         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27726         (memcpy): Renamed to ...
27727         (__new_memcpy): This.
27728         (memcpy): Provide GLIBC_2_14 memcpy.
27729         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27730         (memcpy): Provide GLIBC_2_2_5 memcpy.
27731
27732 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27733
27734         [BZ #12631]
27735         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27736
27737 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27738
27739         * misc/syncfs.c: New file.
27740         * misc/Makefile (routines): Add syncfs.
27741         * posix/unistd.h: Declare syncfs.
27742         * sysdeps/unix/syscalls.list: Add syncfs.
27743
27744 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27745
27746         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27747         open_by_handle_at.
27748         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27749         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27750         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27751         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27752         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27753         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27754         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27755
27756 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27757
27758         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27759         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27760         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27761         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27762         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27763         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27764         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27765
27766         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27767         sync_file_range.c with -fexceptions.
27768         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27769         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27770         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27771         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27772         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27773         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27774         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27775         sync_file_range as cancellation point
27776         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27777         now a wrapper around __call_sync_file_range with cancellation handling.
27778         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27779         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27780         function name to __call_sync_file_range.
27781         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27782         Add call_sync_file_range.
27783
27784 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27785
27786         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27787         bits/timex.h.
27788
27789 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27790
27791         * iconv/iconv.h: Fix typo in comment.
27792         * io/fcntl.h: Likewise.
27793         * libio/stdio.h: Likewise.
27794         * posix/spawn.h: Likewise.
27795         * posix/unistd.h: Likewise.
27796         * stdlib/stdlib.h: Likewise.
27797         * time/time.h: Likewise.
27798         * wcsmbs/wchar.h: Likewise.
27799
27800         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27801         open_by_handle): Add.
27802         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27803         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27804         Augment a few comments.
27805         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27806         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27807         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27808         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27809         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27810         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27811         open_by_handle.
27812
27813         * io/fcntl.h (AT_EMPTY_PATH): Define.
27814
27815 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27816
27817         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27818         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27819         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27820         to...
27821         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27822         * Versions.def: Add GLIBC_2.14.
27823         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27824         Export.
27825
27826 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27827
27828         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27829         round counter.
27830         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27831
27832 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27833
27834         [BZ #12597]
27835         * string/test-strncmp.c (do_page_test): New function.
27836         (check2): Likewise.
27837         (test_main): Call check2.
27838         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27839
27840 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27841
27842         [BZ #12587]
27843         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27844         Handle cache information in CPU leaf 4.
27845         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27846
27847 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27848
27849         [BZ #12583]
27850         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27851         character representation.
27852         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27853
27854 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27855
27856         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27857         END(__isnan) to END(__isnanf) to match function entry point/label
27858         EALIGN(__isnanf,...).
27859
27860 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27861
27862         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27863
27864 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27865
27866         [BZ #12510]
27867         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27868         copy from the symbol referenced in the relocation to initialize the
27869         used variable.
27870         Patch by Piotr Bury <pbury@goahead.com>.
27871         * elf/Makefile: Add rules to build and tst-unique3.
27872         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27873         * elf/tst-unique3.cc: New file.
27874         * elf/tst-unique3.h: New file.
27875         * elf/tst-unique3lib.cc: New file.
27876         * elf/tst-unique3lib2.cc: New file.
27877
27878         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27879
27880 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27881
27882         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27883         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27884         to _start.
27885
27886 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27887
27888         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27889         to-be-loaded object along a path to loader is ld.so.
27890
27891 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27892             Ulrich Drepper  <drepper@gmail.com>
27893
27894         * sysdeps/x86_64/memset.S: After aligning destination, code
27895         branches to different locations depending on the value of
27896         misalignment, when multiarch is enabled. Fix this.
27897
27898 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27899
27900         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27901         Set _x86_64_preferred_memory_instruction for AMD processsors.
27902         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27903         Set bit_Prefer_SSE_for_memop for AMD processors.
27904
27905 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27906
27907         * libio/fmemopen.c (fmemopen): Optimize a bit.
27908
27909 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27910
27911         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27912
27913 2011-03-03  Roland McGrath  <roland@redhat.com>
27914
27915         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27916
27917 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27918
27919         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27920         __bzero_ultra1 instead of __memset_ultra1.
27921
27922 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27923             Ulrich Drepper  <drepper@gmail.com>
27924
27925         [BZ #12509]
27926         * include/link.h (struct link_map): Add l_orig_initfini.
27927         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27928         returning unsuccessfully.
27929         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27930         close of a file loaded at startup, restore the original l_initfini
27931         list.
27932         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27933         list, store the pointer.
27934         * elf/Makefile ($(objpfx)noload-mem): New rule.
27935         (noload-ENV): Define.
27936         (tests): Add $(objpfx)noload-mem.
27937         * elf/noload.c: Include <memcheck.h>.
27938         (main): Call mtrace.  Close all opened handles.
27939
27940 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27941
27942         [BZ #12454]
27943         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27944         dependencies are missing.
27945
27946 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27947
27948         Fix __if_freereq crash: Unlike the generic version which uses free,
27949         Hurd needs munmap.
27950         * sysdeps/mach/hurd/ifreq.h: New file.
27951
27952 2011-01-27  Petr Baudis  <pasky@suse.cz>
27953             Ulrich Drepper  <drepper@gmail.com>
27954
27955         [BZ 12445]#
27956         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27957         to extend_alloca().
27958         * stdio-common/bug23.c: New file.
27959         * stdio-common/Makefile (tests): Add bug23.
27960
27961 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27962             Ulrich Drepper  <drepper@gmail.com>
27963
27964         [BZ #12489]
27965         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27966         before performing relro protection.  At old place add assertion
27967         to make sure nothing changed.
27968
27969 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27970             Glauber de Oliveira Costa  <glommer@gmail.com>
27971
27972         * elf/elf.h: Add new ARM TLS relocs.
27973
27974 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27975
27976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27977         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27978         cast from r3.
27979         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27980         'tests' variable.
27981         * sysdeps/wordsize-64/tst-writev.c: New file.
27982
27983 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27984
27985         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27986         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27987         insns in _dl_start to prevent a TOC reference before relocs are
27988         resolved.
27989
27990 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27991
27992         [BZ #12469]
27993         * Makeconfig: Remove RANLIB definition.
27994         * Makerules: Don't use RANLIB.
27995         * aclocal.m4: Remove ranlib test.
27996         * configure.in: No need to check for ranlib.
27997         * elf/rtld-Rules: Don't use RANLIB.
27998
27999 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28000
28001         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
28002         protection macro.
28003         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
28004         inclusion protection macro.
28005
28006         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
28007         SIGRTMIN and SIGRTMAX and print information in that case only when
28008         SIGRTMIN is defined.
28009
28010 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28011
28012         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
28013         arginfo fn returning -1.
28014
28015         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
28016         and thousands string is zero terminated.
28017
28018 2011-02-03  Andreas Schwab  <schwab@redhat.com>
28019
28020         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
28021         sysdeps/unix/sysv/linux/bits/socket.h.
28022
28023 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28024
28025         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
28026         (__CPU_COUNT): Remove old macros.
28027         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
28028         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
28029         (__CPU_ALLOC, __CPU_FREE): Add macros.
28030         (__sched_cpualloc, __sched_cpufree): Add declarations.
28031
28032 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
28033
28034         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
28035         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
28036         * nscd/aicache.c (addhstaiX): Return timeout of added value.
28037         (readdhstai): Return value of addhstaiX call.
28038         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
28039         (addgrbyX): Return value returned by cache_addgr.
28040         (readdgrbyname): Return value returned by addgrbyX.
28041         (readdgrbygid): Likewise.
28042         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
28043         (addpwbyX): Return value returned by cache_addpw.
28044         (readdpwbyname): Return value returned by addhstbyX.
28045         (readdpwbyuid): Likewise.
28046         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
28047         (addservbyX): Return value returned by cache_addserv.
28048         (readdservbyname): Return value returned by addservbyX:
28049         (readdservbyport): Likewise.
28050         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
28051         (addhstbyX): Return value returned by cache_addhst.
28052         (readdhstbyname): Return value returned by addhstbyX.
28053         (readdhstbyaddr): Likewise.
28054         (readdhstbynamev6): Likewise.
28055         (readdhstbyaddrv6): Likewise.
28056         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
28057         (readdinitgroups): Return value returned by addinitgroupsX.
28058         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
28059         (prune_cache): Keep track of timeout value of re-added entries.
28060         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
28061         * nscd/nscd.h: Adjust prototypes of readd* functions.
28062
28063 2011-02-04  Roland McGrath  <roland@redhat.com>
28064
28065         * nis/nis_server.c (nis_servstate): Use the right name for 0.
28066         (nis_stats): Likewise.
28067         * nis/nis_modify.c (nis_modify): Likewise.
28068         * nis/nis_remove.c (nis_remove): Likewise.
28069         * nis/nis_add.c (nis_add): Likewise.
28070
28071         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
28072
28073         * posix/fnmatch_loop.c: Add some consts.
28074
28075         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
28076
28077 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
28078
28079         [BZ #12460]
28080         * config.make.in (config-cflags-novzeroupper): Define.
28081         * configure.in: Substitute libc_cv_cc_novzeroupper.
28082         * elf/Makefile (AVX-CFLAGS): Define.
28083         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
28084         (CFLAGS-tst-auditmod4a.c): Likewise.
28085         (CFLAGS-tst-auditmod4b.c): Likewise.
28086         (CFLAGS-tst-auditmod6b.c): Likewise.
28087         (CFLAGS-tst-auditmod6c.c): Likewise.
28088         (CFLAGS-tst-auditmod7b.c): Likewise.
28089         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
28090
28091 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
28092
28093         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
28094         function to the callback.
28095         Patch partly by Jiri Olsa <jolsa@redhat.com>.
28096
28097 2011-02-02  Andreas Schwab  <schwab@redhat.com>
28098
28099         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
28100         of errno.
28101
28102 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
28103
28104         [BZ #11724]
28105         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
28106         of constructors.
28107         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
28108         of destructors.
28109         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
28110
28111         [BZ #11724]
28112         * elf/Makefile: Add rules to build and run new test.
28113         * elf/tst-initorder.c: New file.
28114         * elf/tst-initorder.exp: New file.
28115         * elf/tst-initordera1.c: New file.
28116         * elf/tst-initordera2.c: New file.
28117         * elf/tst-initordera3.c: New file.
28118         * elf/tst-initordera4.c: New file.
28119         * elf/tst-initorderb1.c: New file.
28120         * elf/tst-initorderb2.c: New file.
28121         * elf/tst-order-a1.c: New file.
28122         * elf/tst-order-a2.c: New file.
28123         * elf/tst-order-a3.c: New file.
28124         * elf/tst-order-a4.c: New file.
28125         * elf/tst-order-b1.c: New file.
28126         * elf/tst-order-b2.c: New file.
28127         * elf/tst-order-main.c: New file.
28128         New test case by George Gensure <werkt0@gmail.com>.
28129
28130 2010-10-01  Andreas Schwab  <schwab@redhat.com>
28131
28132         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
28133         decoding ACE if AI_CANONIDN.
28134
28135 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
28136
28137         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
28138
28139 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
28140
28141         * version.h (RELEASE): Bump for 2.13 release.
28142         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
28143
28144         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
28145
28146         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
28147         MADV_NOHUGEPAGE.
28148         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
28149         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
28150         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
28151         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
28152         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
28153         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28154
28155         * posix/getconf.c: Update copyright year.
28156         * catgets/gencat.c: Likewise.
28157         * csu/version.c: Likewise.
28158         * debug/catchsegv.sh: Likewise.
28159         * debug/xtrace.sh: Likewise.
28160         * elf/ldconfig.c: Likewise.
28161         * elf/ldd.bash.in: Likewise.
28162         * elf/sprof.c (print_version): Likewise.
28163         * iconv/iconv_prog.c: Likewise.
28164         * iconv/iconvconfig.c: Likewise.
28165         * locale/programs/locale.c: Likewise.
28166         * locale/programs/localedef.c: Likewise.
28167         * malloc/memusage.sh: Likewise.
28168         * malloc/mtrace.pl: Likewise.
28169         * nscd/nscd.c (print_version): Likewise.
28170         * nss/getent.c: Likewise.
28171
28172         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
28173         PF_CAIF, and PF_ALG.
28174         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28175
28176 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
28177
28178         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
28179         (modules-names): Use them.
28180         (ifunc-test-modules, ifunc-pie-tests): Define.
28181         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
28182         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
28183         (test-extras): Likewise.
28184         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
28185         $(compile-command.c).
28186         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
28187         (all-built-dso): Define.
28188         (check-textrel.out, check-execstack.out): Depend on it.
28189
28190         * configure.in: Don't override --enable-multi-arch.
28191
28192 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
28193
28194         [BZ #6812]
28195         * nscd/hstcache.c (tryagain): Define.
28196         (cache_addhst): Return tryagain not notfound for temporary errors.
28197         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
28198         failed.
28199
28200 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
28201
28202         [BZ #10563]
28203         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
28204         to make the syscall.
28205         * sysdeps/unix/sysv/linux/setgroups.c: New file.
28206
28207         [BZ #12378]
28208         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
28209         and fall back to matching as normal character if the string ends before
28210         the matching ']' is found.  This is what POSIX requires.
28211         * posix/testfnm.c: Adjust test result.
28212         * posix/globtest.sh: Adjust test result.  Add new test.
28213         * posix/tst-fnmatch.input: Likewise.
28214         * posix/tst-fnmatch2.c: Add new test.
28215
28216 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
28217
28218         * elf/Makefile (check-execstack): Revert last change.  Depend on
28219         check-execstack.h.
28220         (check-execstack.h): New target.
28221         (generated): Add check-execstack.h.
28222         * elf/check-execstack.c: Include "check-execstack.h".
28223         (main): Revert last change.
28224         (handle_file): Return zero if GNU_STACK is absent and
28225         DEFAULT_STACK_PERMS doesn't include PF_X.
28226
28227 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
28228
28229         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
28230         in child fails because the descriptor is already closed.
28231         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
28232         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
28233         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
28234
28235         [BZ #12397]
28236         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
28237         syscall.
28238
28239         [BZ #10484]
28240         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
28241         temporary buffer used to handle multi lookups locally.
28242         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
28243
28244 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28245
28246         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
28247         loader is ld.so.
28248
28249 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
28250
28251         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
28252         alignment for SSE2.
28253
28254 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28255
28256         [BZ #12394]
28257         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
28258         characters.  When rounding increased number of integer digits recompute
28259         number of groups.
28260         * stdio-common/tst-grouping.c: New file.
28261         * stdio-common/Makefile: Add rules to build and run tst-grouping.
28262
28263 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
28264
28265         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
28266         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
28267
28268         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
28269         void.
28270         * bits/select.h: Likewise.
28271
28272 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
28273
28274         * po/ja.po: Update from translation team.
28275
28276 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
28277
28278         [BZ #11155]
28279         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
28280         implementation just like for lxstat, fxstatat, et al.
28281
28282 2010-12-27  Jim Meyering  <meyering@redhat.com>
28283
28284         [BZ #12348]
28285         * posix/regexec.c (build_trtable): Return failure indication upon
28286         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28287
28288 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
28289
28290         [BZ #12201]
28291         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
28292         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
28293         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
28294         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
28295
28296         [BZ #12207]
28297         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
28298
28299         [BZ #12204]
28300         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
28301         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
28302
28303 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
28304
28305         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
28306         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
28307         script has SORT_BY_INIT_PRIORITY.
28308         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
28309         NO_CTORS_DTORS_SECTIONS is defined.
28310         * elf/soinit.c: Likewise.
28311         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
28312         NO_CTORS_DTORS_SECTIONS is defined.
28313         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
28314         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
28315         * sysdeps/sh/init-first.c: Likewise.
28316         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
28317
28318 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
28319
28320         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
28321         always use the slow path.
28322
28323 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
28324
28325         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
28326         similar rule which adds the sysdep directories to the header search in
28327         order to pick up the correct platform stackinfo.h.
28328         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
28329         perform test if it is, otherwise return successfully without testing.
28330         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
28331         DEFAULT_STACK_PERMS define in stackinfo.h.
28332         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
28333         defined in stackinfo.h.
28334         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
28335         DEFAULT_STACK_PERMS defined in stackinfo.h.
28336         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
28337         * sysdeps/ia64/stackinfo.h: Likewise.
28338         * sysdeps/s390/stackinfo.h: Likewise.
28339         * sysdeps/sh/stackinfo.h: Likewise.
28340         * sysdeps/sparc/stackinfo.h: Likewise.
28341         * sysdeps/x86_64/stackinfo.h: Likewise.
28342         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
28343         PF_X for powerpc64.  Retain PF_X for powerpc32.
28344
28345 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
28346
28347         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
28348         accurately.
28349         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
28350         GETDENTS_64BIT_ALIGNED.
28351
28352 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
28353
28354         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
28355
28356 2010-12-10  Andreas Schwab  <schwab@redhat.com>
28357
28358         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
28359         _GNU_SOURCE.
28360
28361         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
28362         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
28363         Remove __restrict.
28364         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
28365         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
28366
28367 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
28368
28369         [BZ #11655]
28370         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
28371         are initialized.
28372
28373 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
28374
28375         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
28376
28377 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
28378
28379         * po/it.po: Update from translation team.
28380
28381 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
28382
28383         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
28384         unused codes.
28385
28386 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
28387
28388         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
28389
28390 2010-11-24  Andreas Schwab  <schwab@redhat.com>
28391
28392         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
28393         specially.
28394         (gaih_getanswer_slice): Likewise.
28395
28396 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
28397
28398         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
28399
28400 2010-05-31  Petr Baudis  <pasky@suse.cz>
28401
28402         [BZ #11149]
28403         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
28404         silently even in the chroot mode.
28405
28406 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
28407
28408         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
28409         last patch a bit.  Pretty printing
28410
28411 2010-05-31  Petr Baudis <pasky@suse.cz>
28412
28413         [BZ #10085]
28414         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
28415         initialization of skip_initgroups_dyn.
28416
28417 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
28418
28419         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
28420         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28421
28422 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
28423
28424         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
28425
28426 2010-11-11  Andreas Schwab  <schwab@redhat.com>
28427
28428         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
28429         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
28430         (tst-fnmatch-ENV): Set MALLOC_TRACE.
28431         ($(objpfx)tst-fnmatch-mem): New rule.
28432         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
28433         * posix/tst-fnmatch.c (main): Call mtrace.
28434
28435 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
28436
28437         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28438         Support Intel processor model 6 and model 0x2c.
28439
28440 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
28441
28442         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
28443           signed comparison.
28444
28445 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
28446
28447         [BZ #12205]
28448         * string/test-strncasecmp.c (check_result): New function.
28449         (do_one_test): Use it.
28450         (check1): New function.
28451         (test_main): Use it.
28452         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
28453         Support strcasecmp and strncasecmp.
28454
28455 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
28456
28457         [BZ #12194]
28458         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
28459         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28460
28461 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
28462
28463         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
28464         IFUNC support.
28465         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28466         memset-x86-64.
28467         * sysdeps/x86_64/multiarch/bzero.S: New file.
28468         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
28469         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
28470         * sysdeps/x86_64/multiarch/memset.S: New file.
28471         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
28472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28473         Set bit_Prefer_SSE_for_memop for Intel processors.
28474         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
28475         Define.
28476         (index_Prefer_SSE_for_memop): Define.
28477         (HAS_PREFER_SSE_FOR_MEMOP): Define.
28478
28479 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
28480
28481         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
28482         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
28483
28484 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
28485
28486         [BZ #12191]
28487         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28488         (__x86_64_raw_data_cache_size_half): Likewise.
28489         (__x86_64_raw_shared_cache_size): Likewise.
28490         (__x86_64_raw_shared_cache_size_half): Likewise.
28491
28492         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28493         (__x86_64_raw_data_cache_size_half): Likewise.
28494         (__x86_64_raw_shared_cache_size): Likewise.
28495         (__x86_64_raw_shared_cache_size_half): Likewise.
28496         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
28497         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
28498         and __x86_64_raw_shared_cache_size_half.  Round
28499         __x86_64_data_cache_size_half, __x86_64_data_cache_size
28500         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
28501         to multiple of 256 bytes.
28502
28503 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
28504
28505         [BZ #12167]
28506         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
28507         of inacessible symlinks.  Verify result of symlink before returning it.
28508         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28509         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
28510
28511 2010-10-28  Erich Ritz  <erichritz@gmail.com>
28512
28513         * math/math.h (isinf): Fix typo in comment.
28514
28515 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
28516
28517         * po/da.po: Update from translation team.
28518
28519 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
28520
28521         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
28522         is added to the list.
28523
28524 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28525             Ulrich Drepper  <drepper@gmail.com>
28526
28527         * elf/dl-object.c (_dl_new_object): Don't append the new object to
28528         the global list here.  Move code to...
28529         (_dl_add_to_namespace_list): ...here.  New function.
28530         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
28531         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
28532         * elf/dl-load.c (lose): Don't remove the element from the list.
28533         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
28534         (_dl_map_object): Likewise.
28535
28536 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
28537
28538         [BZ #12159]
28539         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
28540         into all bytes of SSE register.
28541         Patch by Richard Li <richardpku@gmail.com>.
28542
28543 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
28544
28545         [BZ #12140]
28546         * malloc/malloc.c (_int_free): Fill correct number of bytes when
28547         perturbing.
28548
28549 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
28550
28551         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
28552         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
28553         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
28554         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
28555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
28556         submachine.
28557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
28558
28559 2010-10-22  Andreas Schwab  <schwab@redhat.com>
28560
28561         * include/dlfcn.h (__RTLD_SECURE): Define.
28562         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
28563         mode & __RTLD_SECURE instead.
28564         (open_path): Rename preloaded parameter to secure.
28565         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
28566         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
28567         * elf/dl-deps.c (openaux): Likewise.
28568         * elf/rtld.c (struct map_args): Remove is_preloaded.
28569         (map_doit): Don't use it.
28570         (dl_main): Likewise.
28571         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
28572         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
28573
28574 2010-09-09  Andreas Schwab  <schwab@redhat.com>
28575
28576         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
28577         (sysd-rules-targets): Remove duplicates.
28578         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
28579         rtld-%.$o dependency.
28580
28581 2010-10-18  Andreas Schwab  <schwab@redhat.com>
28582
28583         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
28584         _dl_map_object do it.
28585
28586 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
28587
28588         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
28589         fast fma builtins, define the macros in the C99 standard.
28590         (FP_FAST_FMAF): Likewise.
28591         (FP_FAST_FMAL): Likewise.
28592         * sysdeps/x86_64/bits/mathdef.h: Likewise.
28593
28594         * bits/mathdef.h: Update copyright year.
28595         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28596
28597 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28598
28599         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
28600         builtins, define the macros in the C99 standard.
28601         (FP_FAST_FMAF): Likewise.
28602         (FP_FAST_FMAL): Likewise.
28603         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
28604         multiply/add.
28605         (FP_FAST_FMAF): Likewise.
28606
28607 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
28608
28609         [BZ #3268]
28610         * math/libm-test.inc (fma_test): Some new testcases.
28611         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
28612         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
28613         y and infinite z.  Do multiplication by C already in long double.
28614         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
28615         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
28616         y and infinite z.  Do bitwise or of inexact bit into u.d.
28617         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
28618         * sysdeps/i386/fpu/s_fmaf.S: Removed.
28619         * sysdeps/i386/fpu/s_fma.S: Removed.
28620         * sysdeps/i386/fpu/s_fmal.S: Removed.
28621
28622 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
28623
28624         [BZ #3268]
28625         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28626         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28627         computation is not scheduled after fetestexcept.  Fix value
28628         of minimum denormal long double.
28629
28630 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28631
28632         [BZ #3268]
28633         * math/libm-test.inc (fma_test): Add some more tests.
28634         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28635         correctly.
28636
28637 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28638
28639         * scripts/data/localplt-s390-linux-gnu.data: New file.
28640         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28641
28642 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28643
28644         [BZ #3268]
28645         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28646         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28647         instead of dbl-64.
28648         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28649         inlines.
28650         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28651         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28652         if one of x and y is very large and the other is subnormal.
28653         * sysdeps/s390/fpu/s_fmaf.c: New file.
28654         * sysdeps/s390/fpu/s_fma.c: New file.
28655         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28656         * sysdeps/powerpc/fpu/s_fma.S: New file.
28657         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28658         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28659         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28660
28661 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28662
28663         [BZ #3268]
28664         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28665         fma tests.
28666         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28667         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28668         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28669         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28670         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28671         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28672         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28673
28674 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28675
28676         [BZ #12078]
28677         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28678         * posix/bug-regex31.input: Add test case.
28679
28680 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28681
28682         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28683         * posix/bug-regex31.input: New file.
28684
28685         [BZ #12078]
28686         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28687         (parse_sub_exp): Fix last change, use postorder.
28688
28689         * posix/bug-regex31.c: New file.
28690         * posix/Makefile: Add rules to build and run bug-regex31.
28691
28692         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28693
28694         [BZ #12078]
28695         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28696
28697         [BZ #12108]
28698         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28699         to have entries in sys_siglist.
28700
28701         [BZ #12093]
28702         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28703         be NULL.
28704
28705 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28706
28707         [BZ #3268]
28708         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28709         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28710         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28711         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28712         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28713         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28714         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28715         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28716         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28717         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28718         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28719         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28720         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28721         * math/ftestexcept.c (fetestexcept): Likewise.
28722         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28723         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28724         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28725         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28726         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28727         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28728         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28729
28730 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28731
28732         [BZ #12107]
28733         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28734         newline.
28735
28736 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28737
28738         * string/bug-strstr1.c: New file.
28739         * string/Makefile: Add rules to build and run bug-strstr1.
28740
28741 2010-10-05  Eric Blake  <eblake@redhat.com>
28742
28743         [BZ #12092]
28744         * string/str-two-way.h (two_way_long_needle): Always clear memory
28745         when skipping input due to the shift table.
28746
28747 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28748
28749         [BZ #12005]
28750         * malloc/mcheck.c: Handle large requests.
28751
28752         [BZ #12077]
28753         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28754         for strncmp and strncasecmp.
28755         * string/stratcliff.c: Add tests for strcmp and strncmp.
28756         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28757
28758 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28759
28760         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28761         __set_fpscr.
28762
28763 2010-09-30  Andreas Jaeger  <aj@suse.de>
28764
28765         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28766         (CGROUP_SUPER_MAGIC): Define.
28767         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28768         Handle btrfs and cgroup file systems.
28769         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28770         Likewise.
28771
28772 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28773
28774         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28775         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28776
28777 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28778
28779         [BZ #12067]
28780         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28781         trying to locate the ELF header.
28782
28783 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28784
28785         [BZ #11611]
28786         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28787         Mask out sign-bit copies when constructing f_fsid.
28788
28789 2010-09-24  Petr Baudis <pasky@suse.cz>
28790
28791         * debug/stack_chk_fail_local.c: Add missing licence exception.
28792         * debug/warning-nop.c: Likewise.
28793
28794 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28795
28796         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28797         implementing getdents64 using getdents syscall, set d_type if
28798         __ASSUME_GETDENTS32_D_TYPE.
28799
28800 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28801
28802         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28803         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28804
28805 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28806
28807         [BZ #12037]
28808         * posix/unistd.h: Undo change of feature selection for ftruncate from
28809         2010-01-11.
28810
28811 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28812
28813         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28814         detection.
28815
28816 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28817
28818         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28819         fanotify_mark.
28820         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28821
28822 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28823
28824         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28825         variables after CHECK_SP call.
28826         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28827
28828 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28829             Ulrich Drepper  <drepper@redhat.com>
28830
28831         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28832         re-relocationg ld.so.
28833         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28834         _dl_init_paths call.
28835         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28836         here anymore.
28837
28838 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28839
28840         * resolv/res_init.c (__res_vinit): Count the default server we added.
28841
28842 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28843             Ulrich Drepper  <drepper@redhat.com>
28844
28845         [BZ #11968]
28846         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28847         (____longjmp_chk): Use %ebx for saving value across system call.
28848         Add unwind info.
28849
28850 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28851
28852         * manual/Makefile: Don't mix pattern rules with normal rules.
28853
28854 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28855
28856         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28857         operation.
28858         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28859         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28860         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28861         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28862         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28863         Likewise.
28864
28865 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28866
28867         [BZ #11979]
28868         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28869         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28870
28871 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28872
28873         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28874         * sysdeps/x86_64/addmul_1.S: Likewise.
28875         * sysdeps/x86_64/lshift.S: Likewise.
28876         * sysdeps/x86_64/mul_1.S: Likewise.
28877         * sysdeps/x86_64/rshift.S: Likewise.
28878         * sysdeps/x86_64/sub_n.S: Likewise.
28879         * sysdeps/x86_64/submul_1.S: Likewise.
28880
28881 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28882
28883         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28884         Define __sched_param instead of SCHED_* and sched_param when
28885         <bits/sched.h> is included with __need_schedparam defined.
28886         * bits/sched.h [__need_schedparam]
28887         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28888         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28889         (__defined_schedparam): Define to 1.
28890         (__sched_param): New structure, identical to sched_param.
28891         (__need_schedparam): Undefine.
28892
28893 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28894
28895         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28896         (epoll_create1): Declare.
28897
28898         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28899
28900 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28901
28902         [BZ #7066]
28903         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28904         shifting retval into place.
28905
28906 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28907
28908         * nis/rpcsvc/nis.h: Update copyright notice.
28909         * nis/rpcsvc/nis.x: Likewise.
28910         * nis/rpcsvc/nis_callback.h: Likewise.
28911         * nis/rpcsvc/nis_callback.x: Likewise.
28912         * nis/rpcsvc/nis_object.x: Likewise.
28913         * nis/rpcsvc/nis_tags.h: Likewise.
28914         * nis/rpcsvc/yp.h: Likewise.
28915         * nis/rpcsvc/yp.x: Likewise.
28916         * nis/rpcsvc/ypupd.h: Likewise.
28917         * nis/yp_xdr.c: Likewise.
28918         * nis/ypupdate_xdr.c: Likewise.
28919
28920         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28921         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28922         (pmap_getport): Use __libc_rpc_getport.
28923         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28924         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28925         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28926
28927 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28928
28929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28930         fanotify_mark.
28931
28932 2010-08-27  Roland McGrath  <roland@redhat.com>
28933
28934         * sysdeps/i386/i686/multiarch/Makefile
28935         (CFLAGS-varshift.c): New variable.
28936
28937 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28938
28939         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28940         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28941
28942         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28943
28944         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28945
28946 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28947
28948         * sysdeps/x86_64/strlen.S: Unroll the loop.
28949         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28950         strlen-sse2 strlen-sse2-bsf.
28951         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28952         __strlen_no_bsf if bit_Slow_BSF is set.
28953         (__strlen_sse42): Removed.
28954         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28955         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28956
28957 2010-08-25  Roland McGrath  <roland@redhat.com>
28958
28959         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28960         * sysdeps/x86_64/multiarch/varshift.c: New file.
28961         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28962         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28963         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28964         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28965
28966 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28967
28968         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28969         strlen-sse2 strlen-sse2-bsf.
28970         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28971         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28972         (__strlen_sse2): Removed.
28973         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28974         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28975         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28976         bit_Slow_BSF for Atom.
28977         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28978         (index_Slow_BSF): Define.
28979         (HAS_SLOW_BSF): Define.
28980
28981 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28982
28983         [BZ #10851]
28984         * resolv/res_init.c (__res_vinit): When no server address at all
28985         is given default to loopback.
28986
28987 2010-08-24  Roland McGrath  <roland@redhat.com>
28988
28989         * configure.in: Remove config-name.h generation.
28990         * configure: Regenerated.
28991         * config-name.in: File removed.
28992         * scripts/config-uname.sh: New file.
28993         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28994         ($(objdir)config-name.h): New target.
28995
28996         * sunrpc/rpc_parse.h: Avoid nested comment.
28997
28998 2010-08-24  Richard Henderson  <rth@redhat.com>
28999             Ulrich Drepper  <drepper@redhat.com>
29000             H.J. Lu  <hongjiu.lu@intel.com>
29001
29002         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
29003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
29004         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
29005         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
29006         _mm_alignr_epi8 with _mm_loadu_si128.
29007         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
29008         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
29009         (__m128i_shift_right): Removed.
29010         * sysdeps/i386/i686/multiarch/varshift.h: New file.
29011         * sysdeps/i386/i686/multiarch/varshift.S: New file.
29012         * sysdeps/x86_64/multiarch/varshift.h: New file.
29013         * sysdeps/x86_64/multiarch/varshift.S: New file.
29014
29015 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
29016
29017         * configure.in: Move assembler checks to before sysdep dir checking.
29018
29019 2010-08-20  Petr Baudis  <pasky@suse.cz>
29020
29021         * LICENSES: Sync the sunrpc license.
29022
29023 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
29024
29025         * sunrpc/auth_des.c: Update copyright notice once again.
29026         * sunrpc/auth_none.c: Likewise.
29027         * sunrpc/auth_unix.c: Likewise.
29028         * sunrpc/authdes_prot.c: Likewise.
29029         * sunrpc/authuxprot.c: Likewise.
29030         * sunrpc/bindrsvprt.c: Likewise.
29031         * sunrpc/clnt_gen.c: Likewise.
29032         * sunrpc/clnt_perr.c: Likewise.
29033         * sunrpc/clnt_raw.c: Likewise.
29034         * sunrpc/clnt_simp.c: Likewise.
29035         * sunrpc/clnt_tcp.c: Likewise.
29036         * sunrpc/clnt_udp.c: Likewise.
29037         * sunrpc/clnt_unix.c: Likewise.
29038         * sunrpc/des_crypt.c: Likewise.
29039         * sunrpc/des_soft.c: Likewise.
29040         * sunrpc/get_myaddr.c: Likewise.
29041         * sunrpc/getrpcport.c: Likewise.
29042         * sunrpc/key_call.c: Likewise.
29043         * sunrpc/key_prot.c: Likewise.
29044         * sunrpc/openchild.c: Likewise.
29045         * sunrpc/pm_getmaps.c: Likewise.
29046         * sunrpc/pm_getport.c: Likewise.
29047         * sunrpc/pmap_clnt.c: Likewise.
29048         * sunrpc/pmap_prot.c: Likewise.
29049         * sunrpc/pmap_prot2.c: Likewise.
29050         * sunrpc/pmap_rmt.c: Likewise.
29051         * sunrpc/rpc/auth.h: Likewise.
29052         * sunrpc/rpc/auth_unix.h: Likewise.
29053         * sunrpc/rpc/clnt.h: Likewise.
29054         * sunrpc/rpc/des_crypt.h: Likewise.
29055         * sunrpc/rpc/key_prot.h: Likewise.
29056         * sunrpc/rpc/netdb.h: Likewise.
29057         * sunrpc/rpc/pmap_clnt.h: Likewise.
29058         * sunrpc/rpc/pmap_prot.h: Likewise.
29059         * sunrpc/rpc/pmap_rmt.h: Likewise.
29060         * sunrpc/rpc/rpc.h: Likewise.
29061         * sunrpc/rpc/rpc_des.h: Likewise.
29062         * sunrpc/rpc/rpc_msg.h: Likewise.
29063         * sunrpc/rpc/svc.h: Likewise.
29064         * sunrpc/rpc/svc_auth.h: Likewise.
29065         * sunrpc/rpc/types.h: Likewise.
29066         * sunrpc/rpc/xdr.h: Likewise.
29067         * sunrpc/rpc_clntout.c: Likewise.
29068         * sunrpc/rpc_cmsg.c: Likewise.
29069         * sunrpc/rpc_common.c: Likewise.
29070         * sunrpc/rpc_cout.c: Likewise.
29071         * sunrpc/rpc_dtable.c: Likewise.
29072         * sunrpc/rpc_hout.c: Likewise.
29073         * sunrpc/rpc_main.c: Likewise.
29074         * sunrpc/rpc_parse.c: Likewise.
29075         * sunrpc/rpc_parse.h: Likewise.
29076         * sunrpc/rpc_prot.c: Likewise.
29077         * sunrpc/rpc_sample.c: Likewise.
29078         * sunrpc/rpc_scan.c: Likewise.
29079         * sunrpc/rpc_scan.h: Likewise.
29080         * sunrpc/rpc_svcout.c: Likewise.
29081         * sunrpc/rpc_tblout.c: Likewise.
29082         * sunrpc/rpc_util.c: Likewise.
29083         * sunrpc/rpc_util.h: Likewise.
29084         * sunrpc/rpcinfo.c: Likewise.
29085         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
29086         * sunrpc/rpcsvc/key_prot.x: Likewise.
29087         * sunrpc/rpcsvc/klm_prot.x: Likewise.
29088         * sunrpc/rpcsvc/mount.x: Likewise.
29089         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
29090         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
29091         * sunrpc/rpcsvc/rex.x: Likewise.
29092         * sunrpc/rpcsvc/rstat.x: Likewise.
29093         * sunrpc/rpcsvc/rusers.x: Likewise.
29094         * sunrpc/rpcsvc/sm_inter.x: Likewise.
29095         * sunrpc/rpcsvc/spray.x: Likewise.
29096         * sunrpc/rpcsvc/yppasswd.x: Likewise.
29097         * sunrpc/rtime.c: Likewise.
29098         * sunrpc/svc.c: Likewise.
29099         * sunrpc/svc_auth.c: Likewise.
29100         * sunrpc/svc_authux.c: Likewise.
29101         * sunrpc/svc_raw.c: Likewise.
29102         * sunrpc/svc_run.c: Likewise.
29103         * sunrpc/svc_simple.c: Likewise.
29104         * sunrpc/svc_tcp.c: Likewise.
29105         * sunrpc/svc_udp.c: Likewise.
29106         * sunrpc/svc_unix.c: Likewise.
29107         * sunrpc/svcauth_des.c: Likewise.
29108         * sunrpc/xcrypt.c: Likewise.
29109         * sunrpc/xdr.c: Likewise.
29110         * sunrpc/xdr_array.c: Likewise.
29111         * sunrpc/xdr_float.c: Likewise.
29112         * sunrpc/xdr_mem.c: Likewise.
29113         * sunrpc/xdr_rec.c: Likewise.
29114         * sunrpc/xdr_ref.c: Likewise.
29115         * sunrpc/xdr_sizeof.c: Likewise.
29116         * sunrpc/xdr_stdio.c: Likewise.
29117
29118         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
29119         handling.
29120
29121 2010-08-19  Andreas Schwab  <schwab@redhat.com>
29122
29123         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
29124
29125 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
29126
29127         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
29128         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
29129         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
29130         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
29131         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
29132         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
29133         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
29134         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
29135         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
29136         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
29137         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
29138         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
29139         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
29140         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
29141
29142 2010-07-26  Anton Blanchard  <anton@samba.org>
29143
29144         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
29145         * malloc/arena.c (heap_trim): Likewise.
29146
29147 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
29148
29149         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
29150         here.  Not...
29151         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
29152         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
29153
29154 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
29155
29156         * sysdeps/i386/elf/Makefile: New file.
29157
29158 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29159
29160         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
29161         from fanotify_init.
29162         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
29163         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29164
29165 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
29166
29167         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
29168         of strncasecmp_l.
29169         * sysdeps/multiarch/strcmp.S: Likewise.
29170
29171 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
29172
29173         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29174         strncase_l-nonascii.
29175         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29176         Add strncase_l-ssse3.
29177         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
29178         * sysdeps/x86_64/strcmp.S: Likewise.
29179         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
29180         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
29181         * sysdeps/x86_64/strncase.S: New file.
29182         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
29183         * sysdeps/x86_64/strncase_l.S: New file.
29184         * string/Makefile (strop-tests): Add strncasecmp.
29185         * string/test-strncasecmp.c: New file.
29186
29187         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
29188         warning.
29189
29190         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
29191         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
29192
29193 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
29194
29195         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
29196
29197 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
29198
29199         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
29200         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
29201         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
29202
29203 2010-05-01  Alan Modra  <amodra@gmail.com>
29204
29205         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
29206         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
29207         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
29208         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
29209         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
29210         tidying.  Don't tail-call __sigjmp_save for static lib.
29211         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
29212         save location.
29213         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
29214         (CALL_MCOUNT): Add eh info, and nop after bl.
29215         (TAIL_CALL_SYSCALL_ERROR): New macro.
29216         (PSEUDO_RET): Use it.
29217         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
29218         Correct save location of integer regs and cr.
29219         (_dl_profile_resolve): Correct cr save location.  Delete nops
29220         after bl when SHARED.  Reduce cfi size a little by better
29221         placement of cfi directives.
29222         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
29223         make a stack frame.  Instead use parm save area as a temp.
29224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
29225         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
29226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
29227         Don't make a stack frame for parent, use parm save area.
29228         Increase child stack frame to 112 bytes.  Don't save unused reg,
29229         and adjust reg usage.  Set up cfi on error recovery and
29230         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
29231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29232         (__makecontext): Add dummy nop after jump to exit.
29233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
29234         Use correct parm save area and cr save, reduce stack frame.
29235         Correct cfi for possible PSEUDO_RET frame setup.
29236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
29237         Branch to local label emitted by PSEUDO_RET rather than
29238         __syscall_error.
29239
29240 2010-08-12  Andreas Schwab  <schwab@redhat.com>
29241
29242         [BZ #11904]
29243         * locale/programs/locale.c (print_assignment): New function.
29244         (show_locale_vars): Use it.
29245
29246 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
29247
29248         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
29249         field.
29250         (struct statfs64): Likewise.
29251         (_STATFS_F_FLAGS): Define.
29252         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
29253         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29254         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
29255         (ST_VALID): Define locally.
29256         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
29257         __statvfs_getflags, use the provided value.
29258         * sysdeps/unix/sysv/linux/kernel-features.h: Define
29259         __ASSUME_STATFS_F_FLAGS.
29260
29261         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
29262
29263         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
29264         Add sys/fanotify.h.
29265         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
29266         fanotify_mask for GLIBC_2.13.
29267         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
29268         fanotify_init and fanotify_mark.
29269         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29270         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
29271
29272         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
29273         Add prlimit.
29274         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
29275         prlimit64 for GLIBC_2.13.
29276         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
29277         prlimit64.
29278         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
29279         syscall.
29280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
29281         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29282         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
29283         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
29284         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
29285         add prlimit alias.
29286         * sysdeps/unix/sysv/linux/prlimit.c: New file.
29287
29288         [BZ #11903]
29289         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
29290         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
29291
29292         * nss/Makefile: Add rules to build and run tst-nss-test1.
29293         * shlib-versions: Add entry for libnss_test1.
29294         * nss/nss_test1.c: New file.
29295         * nss/tst-nss-test1.c: New file.
29296
29297         * nss/nsswitch.c (__nss_database_custom): Define new variable.
29298         (__nss_configure_lookup): Set appropriate entry in
29299         __nss_configure_lookup to true.
29300         * nss/nsswitch.h: Define enum with indeces of databases in
29301         databases and __nss_database_custom arrays.  Declare
29302         __nss_database_custom.
29303         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
29304         to avoid using nscd when custom rules are installed.
29305         * nss/getXXbyYY_r.c: Likewise.
29306         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
29307
29308         * nss/nss_files/files-parse.c: Whitespace fixes.
29309
29310 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
29311
29312         [BZ #11883]
29313         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
29314         * posix/fnmatch_loop.c: Likewise.
29315
29316 2010-07-17  Andi Kleen  <ak@linux.intel.com>
29317
29318         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
29319         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
29320         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
29321         * Versions.def [GLIBC_2.13]: Add.
29322
29323 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
29324
29325         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29326         Also fail if tpwd after pwuid call is NULL.
29327
29328 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29329
29330         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
29331         when converting to ms.
29332
29333 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29334
29335         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
29336         EOPNOTSUPP errors with ENOTTY.
29337         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
29338         EOPNOTSUPP errors with ENOTTY.
29339
29340 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
29341
29342         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29343         Add strcasecmp_l-ssse3.
29344         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
29345         strcasecmp.
29346         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
29347         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
29348         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
29349
29350 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
29351
29352         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
29353
29354         * string/Makefile (strop-tests): Add strcasecmp.
29355         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29356         strcasecmp_l-nonascii.
29357         (gen-as-const-headers): Add locale-defines.sym.
29358         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
29359         * sysdeps/x86_64/strcasecmp.S: New file.
29360         * sysdeps/x86_64/strcasecmp_l.S: New file.
29361         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
29362         * sysdeps/x86_64/locale-defines.sym: New file.
29363         * string/test-strcasecmp.c: New file.
29364
29365         * string/test-strcasestr.c: Test both ends of the range of characters.
29366         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
29367
29368 2010-07-29  Roland McGrath  <roland@redhat.com>
29369
29370         [BZ #11856]
29371         * manual/locale.texi (Yes-or-No Questions): Fix example code.
29372
29373 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
29374
29375         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
29376         for ld.so.
29377
29378 2010-07-27  Andreas Schwab  <schwab@redhat.com>
29379
29380         * manual/memory.texi (Malloc Tunable Parameters): Document
29381         M_PERTURB.
29382
29383 2010-07-26  Roland McGrath  <roland@redhat.com>
29384
29385         [BZ #11840]
29386         * configure.in (-fgnu89-inline check): Set and substitute
29387         gnu89_inline, not libc_cv_gnu89_inline.
29388         * configure: Regenerated.
29389         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
29390
29391 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
29392
29393         * string/test-strnlen.c: New file.
29394         * string/Makefile (strop-tests): Add strnlen.
29395         * string/tester.c (test_strnlen): Add a few more test cases.
29396         * string/tst-strlen.c: Better error reporting.
29397
29398         * sysdeps/x86_64/strnlen.S: New file.
29399
29400 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
29401
29402         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
29403         lower-latency instructions.
29404
29405 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
29406
29407         * string/test-strcasestr.c: New file.
29408         * string/test-strstr.c: New file.
29409         * string/Makefile (strop-tests): Add strstr and strcasestr.
29410         * string/str-two-way.h: Don't undefine MAX.
29411         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
29412
29413 2010-07-21  Andreas Schwab  <schwab@redhat.com>
29414
29415         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29416         strcasestr-nonascii.
29417         (CFLAGS-strcasestr-nonascii.c): Define.
29418         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
29419         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
29420         Remove unused attribute.
29421
29422 2010-07-20  Roland McGrath  <roland@redhat.com>
29423
29424         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
29425         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
29426         ld.so.cache was broken.  With it, there is no way to disable dsocaps
29427         like LD_HWCAP_MASK can disable hwcaps.
29428
29429 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29430
29431         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
29432
29433 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
29434
29435         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
29436         call in strcasestr.
29437         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
29438         __strcasestr_sse42_nonascii.
29439         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
29440         strcasestr-nonascii.c.
29441         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
29442
29443 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
29444
29445         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
29446         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
29447         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
29448         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
29449
29450 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
29451
29452         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
29453         fcntl.
29454
29455 2010-07-06  Andreas Schwab  <schwab@redhat.com>
29456
29457         [BZ #11577]
29458         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
29459         dl_signal_cerror.
29460
29461 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
29462
29463         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
29464         _PC_PIPE_BUF using F_GETPIPE_SZ.
29465
29466 2010-07-05  Roland McGrath  <roland@redhat.com>
29467
29468         * manual/arith.texi (Rounding Functions): Fix rint description
29469         implicit in round description.
29470
29471 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
29472
29473         * elf/Makefile: Fix linking for a few tests to make recent linker
29474         happy.
29475
29476 2010-06-30  Andreas Schwab  <schwab@redhat.com>
29477
29478         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
29479         $(common-objpfx)libc_nonshared.a.
29480
29481 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
29482
29483         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
29484         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
29485         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29486         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29487         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
29488         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
29489         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29490         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
29492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
29493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
29494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
29496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
29498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
29499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
29500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
29501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
29503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
29505         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
29506         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
29507         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
29508         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
29509         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
29510         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
29511         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
29512         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
29513         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
29514         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
29515         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
29516         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
29517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
29518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
29519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
29520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
29521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
29522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
29523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
29524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
29525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
29526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
29527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
29528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
29529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
29530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
29531
29532 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29533
29534         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
29535         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
29536         * string/memmove.c (memmove): Renamed to ...
29537         (MEMMOVE): ...this.  Default to memmove.
29538         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
29539         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
29540         (END_CHK): Define.
29541         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29542         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
29543         mempcpy-ssse3-back memmove-ssse3-back.
29544         * sysdeps/x86_64/multiarch/bcopy.S: New file .
29545         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
29546         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
29547         * sysdeps/x86_64/multiarch/memcpy.S: New file.
29548         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
29549         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
29550         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
29551         * sysdeps/x86_64/multiarch/memmove.c: New file.
29552         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
29553         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
29554         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
29555         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
29556         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
29557         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
29558         Define.
29559         (index_Fast_Copy_Backward): Define.
29560         (HAS_ARCH_FEATURE): Define.
29561         (HAS_FAST_REP_STRING): Define.
29562         (HAS_FAST_COPY_BACKWARD): Define.
29563
29564 2010-06-21  Andreas Schwab  <schwab@redhat.com>
29565
29566         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29567         Restore proper fallback handling.
29568
29569 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
29570
29571         [BZ #11701]
29572         * posix/group_member.c (__group_member): Correct checking loop.
29573
29574         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
29575         OOM in getpwuid_r correctly.  Return error number when the caller
29576         should return, otherwise -1.
29577         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
29578         call returning > 0 value.
29579         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
29580
29581 2010-06-07  Andreas Schwab  <schwab@redhat.com>
29582
29583         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
29584         libc_nonshared.a from targets in modules-names.
29585
29586 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
29587
29588         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
29589         requires it.
29590
29591 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
29592
29593         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
29594         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
29595         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
29596         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
29597
29598 2010-06-02  Andreas Schwab  <schwab@redhat.com>
29599
29600         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
29601
29602 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
29603
29604         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
29605         and F_GETPIPE_SZ.
29606         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
29607         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
29608         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
29609         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
29610         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29611         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
29612
29613 2010-06-14  Roland McGrath  <roland@redhat.com>
29614
29615         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
29616
29617 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
29618
29619         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
29620         __REDIRECT followed by __THROW.
29621         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
29622         * posix/getopt.h (getopt): Likewise.
29623
29624 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29625
29626         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29627         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29628         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29629         in AT_FLAGS.
29630         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29631         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29632
29633 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29634
29635         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29636
29637 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29638
29639         [BZ #11640]
29640         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29641         Properly check family and model.
29642
29643 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29644
29645         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29646
29647 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29648
29649         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29650
29651 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29652
29653         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29654         symbol reference.
29655
29656 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29657
29658         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29659         symbol reference.
29660
29661 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29662
29663         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29664         and internal_recvmmsg.
29665         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29666         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29667         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29668         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29669
29670         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29671         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29672         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29673
29674 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29675
29676         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29677
29678 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29679
29680         POWER7 optimizations.
29681         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29682         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29683
29684 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29685
29686         * version.h: Update for 2.13 development version.
29687
29688 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29689
29690         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29691         exceptions.  Return 0.
29692
29693 2010-05-07  Roland McGrath  <roland@redhat.com>
29694
29695         * elf/ldconfig.c (main): Add a const.
29696
29697 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29698
29699         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29700         (args_options): Add no-idn option.
29701         (ahosts_keys_int): Add idn_flags to ai_flags.
29702         (parse_option): Handle 'i' option to clear idn_flags.
29703
29704         * malloc/malloc.c (_int_free): Possible race in the most recently
29705         added check.  Only act on the data if no current modification
29706         happened.
29707
29708 See ChangeLog.17 for earlier changes.