Remove libm-test support for TEST_* inside functions.
[jlayton/glibc.git] / ChangeLog
1 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/gen-libm-test.pl (adjust_arg): Remove function.
4         (special_function): Remove argument $in_func.  Only handle
5         generating output for tables of tests, not inside functions.
6         (parse_args): Likewise.
7         (generate_testfile): Remove variable $in_func.  Update call to
8         parse_args.
9         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
10         (MINUS_ZERO_INIT): Rename macro to minus_zero.
11         (PLUS_INFTY_INIT): Rename macro to plus_infty.
12         (MINUS_INFTY_INIT): Rename macro to minus_infty.
13         (QNAN_VALUE_INIT): Rename macro to qnan_value.
14         (MAX_VALUE_INIT): Rename macro to max_value.
15         (MIN_VALUE_INIT): Rename macro to min_value.
16         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17         (plus_zero): Remove variable.
18         (minus_zero): Likewise.
19         (plus_infty): Likewise.
20         (minus_infty): Likewise.
21         (qnan_value): Likewise.
22         (max_value): Likewise.
23         (min_value): Likewise.
24         (min_subnorm_value): Likewise.
25
26 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
27
28         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
29         uint64_t or uint32_t usage.
30         * crypt/sha256-block.c: Likewise.
31         * crypt/sha256-crypt.c: Likewise.
32         * crypt/sha256.c: Likewise.
33         * crypt/sha512-block.c: Likewise.
34         * crypt/sha512-crypt.c: Likewise.
35         * crypt/sha512.c: Likewise.
36         * debug/backtrace-tst.c: Likewise.
37         * debug/pcprofiledump.c: Likewise.
38         * elf/cache.c: Likewise.
39         * elf/dl-cache.c: Likewise.
40         * elf/dl-misc.c: Likewise.
41         * elf/dl-profile.c: Likewise.
42         * elf/dl-support.c: Likewise.
43         * elf/ldconfig.c: Likewise.
44         * elf/sprof.c: Likewise.
45         * iconv/dummy-repertoire.c: Likewise.
46         * iconv/iconv_charmap.c: Likewise.
47         * iconv/skeleton.c: Likewise.
48         * iconvdata/8bit-generic.c: Likewise.
49         * iconvdata/cp737.h: Likewise.
50         * iconvdata/cp775.h: Likewise.
51         * iconvdata/ibm1008.h: Likewise.
52         * iconvdata/ibm1025.h: Likewise.
53         * iconvdata/ibm1046.h: Likewise.
54         * iconvdata/ibm1097.h: Likewise.
55         * iconvdata/ibm1112.h: Likewise.
56         * iconvdata/ibm1122.h: Likewise.
57         * iconvdata/ibm1123.h: Likewise.
58         * iconvdata/ibm1124.h: Likewise.
59         * iconvdata/ibm1129.h: Likewise.
60         * iconvdata/ibm1130.h: Likewise.
61         * iconvdata/ibm1132.h: Likewise.
62         * iconvdata/ibm1133.h: Likewise.
63         * iconvdata/ibm1137.h: Likewise.
64         * iconvdata/ibm1140.h: Likewise.
65         * iconvdata/ibm1141.h: Likewise.
66         * iconvdata/ibm1142.h: Likewise.
67         * iconvdata/ibm1143.h: Likewise.
68         * iconvdata/ibm1144.h: Likewise.
69         * iconvdata/ibm1145.h: Likewise.
70         * iconvdata/ibm1146.h: Likewise.
71         * iconvdata/ibm1147.h: Likewise.
72         * iconvdata/ibm1148.h: Likewise.
73         * iconvdata/ibm1149.h: Likewise.
74         * iconvdata/ibm1153.h: Likewise.
75         * iconvdata/ibm1154.h: Likewise.
76         * iconvdata/ibm1155.h: Likewise.
77         * iconvdata/ibm1156.h: Likewise.
78         * iconvdata/ibm1157.h: Likewise.
79         * iconvdata/ibm1158.h: Likewise.
80         * iconvdata/ibm1160.h: Likewise.
81         * iconvdata/ibm1161.h: Likewise.
82         * iconvdata/ibm1162.h: Likewise.
83         * iconvdata/ibm1163.h: Likewise.
84         * iconvdata/ibm1164.h: Likewise.
85         * iconvdata/ibm1166.h: Likewise.
86         * iconvdata/ibm1167.h: Likewise.
87         * iconvdata/ibm12712.h: Likewise.
88         * iconvdata/ibm1390.h: Likewise.
89         * iconvdata/ibm1399.h: Likewise.
90         * iconvdata/ibm16804.h: Likewise.
91         * iconvdata/ibm4517.h: Likewise.
92         * iconvdata/ibm4899.h: Likewise.
93         * iconvdata/ibm4909.h: Likewise.
94         * iconvdata/ibm4971.h: Likewise.
95         * iconvdata/ibm5347.h: Likewise.
96         * iconvdata/ibm803.h: Likewise.
97         * iconvdata/ibm856.h: Likewise.
98         * iconvdata/ibm901.h: Likewise.
99         * iconvdata/ibm902.h: Likewise.
100         * iconvdata/ibm9030.h: Likewise.
101         * iconvdata/ibm9066.h: Likewise.
102         * iconvdata/ibm921.h: Likewise.
103         * iconvdata/ibm922.h: Likewise.
104         * iconvdata/ibm9448.h: Likewise.
105         * iconvdata/isiri-3342.h: Likewise.
106         * iconvdata/jis0201.h: Likewise.
107         * include/link.h: Likewise.
108         * include/netdb.h: Likewise.
109         * inet/check_native.c: Likewise.
110         * inet/check_pf.c: Likewise.
111         * inet/getipv4sourcefilter.c: Likewise.
112         * inet/getnameinfo.c: Likewise.
113         * inet/getsourcefilter.c: Likewise.
114         * inet/htonl.c: Likewise.
115         * inet/setipv4sourcefilter.c: Likewise.
116         * inet/setsourcefilter.c: Likewise.
117         * inet/test-inet6_opt.c: Likewise.
118         * inet/tst-network.c: Likewise.
119         * locale/C-collate.c: Likewise.
120         * locale/C-ctype.c: Likewise.
121         * locale/C-time.c: Likewise.
122         * locale/C-translit.h: Likewise.
123         * locale/loadarchive.c: Likewise.
124         * locale/programs/3level.h: Likewise.
125         * locale/programs/charmap.c: Likewise.
126         * locale/programs/charmap.h: Likewise.
127         * locale/programs/ld-address.c: Likewise.
128         * locale/programs/ld-collate.c: Likewise.
129         * locale/programs/ld-ctype.c: Likewise.
130         * locale/programs/ld-identification.c: Likewise.
131         * locale/programs/ld-measurement.c: Likewise.
132         * locale/programs/ld-messages.c: Likewise.
133         * locale/programs/ld-monetary.c: Likewise.
134         * locale/programs/ld-name.c: Likewise.
135         * locale/programs/ld-numeric.c: Likewise.
136         * locale/programs/ld-paper.c: Likewise.
137         * locale/programs/ld-telephone.c: Likewise.
138         * locale/programs/ld-time.c: Likewise.
139         * locale/programs/linereader.c: Likewise.
140         * locale/programs/locale.c: Likewise.
141         * locale/programs/locarchive.c: Likewise.
142         * locale/programs/locfile.h: Likewise.
143         * locale/programs/repertoire.c: Likewise.
144         * locale/programs/simple-hash.c: Likewise.
145         * locale/programs/simple-hash.h: Likewise.
146         * malloc/memusage.c: Likewise.
147         * malloc/memusagestat.c: Likewise.
148         * nis/nis_defaults.c: Likewise.
149         * nis/nis_hash.c: Likewise.
150         * nis/nis_print.c: Likewise.
151         * nis/nis_xdr.c: Likewise.
152         * nscd/connections.c: Likewise.
153         * nscd/hstcache.c: Likewise.
154         * nscd/nscd_gethst_r.c: Likewise.
155         * nscd/nscd_getserv_r.c: Likewise.
156         * nscd/nscd_helper.c: Likewise.
157         * nscd/servicescache.c: Likewise.
158         * nss/makedb.c: Likewise.
159         * nss/nss_db/db-XXX.c: Likewise.
160         * nss/nss_db/db-initgroups.c: Likewise.
161         * nss/nss_db/db-netgrp.c: Likewise.
162         * nss/nss_files/files-network.c: Likewise.
163         * nss/nss_files/files-parse.c: Likewise.
164         * posix/bug-regex5.c: Likewise.
165         * posix/fnmatch_loop.c: Likewise.
166         * posix/regcomp.c: Likewise.
167         * posix/regexec.c: Likewise.
168         * posix/tst-rfc3484-2.c: Likewise.
169         * posix/tst-rfc3484-3.c: Likewise.
170         * posix/tst-rfc3484.c: Likewise.
171         * resolv/nss_dns/dns-canon.c: Likewise.
172         * resolv/nss_dns/dns-network.c: Likewise.
173         * resolv/res_init.c: Likewise.
174         * resolv/res_mkquery.c: Likewise.
175         * resolv/tst-aton.c: Likewise.
176         * stdlib/cxa_atexit.c: Likewise.
177         * stdlib/cxa_finalize.c: Likewise.
178         * stdlib/gen-fpioconst.c: Likewise.
179         * stdlib/strtol_l.c: Likewise.
180         * string/tst-endian.c: Likewise.
181         * sunrpc/auth_des.c: Likewise.
182         * sunrpc/clnt_udp.c: Likewise.
183         * sunrpc/rtime.c: Likewise.
184         * sunrpc/svcauth_des.c: Likewise.
185         * sunrpc/xdr.c: Likewise.
186         * sunrpc/xdr_intXX_t.c: Likewise.
187         * sunrpc/xdr_rec.c: Likewise.
188         * sysdeps/generic/ldconfig.h: Likewise.
189         * sysdeps/generic/ldsodefs.h: Likewise.
190         * sysdeps/generic/memusage.h: Likewise.
191         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
192         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
193         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
194         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
195         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
196         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
197         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
198         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
199         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
200         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
201         * sysdeps/posix/getaddrinfo.c: Likewise.
202         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
203         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
204         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
205         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
206         * sysdeps/powerpc/test-gettimebase.c: Likewise.
207         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
208         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
209         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
210         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
211         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
212         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
213         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
214         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
215         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
216         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
217         * sysdeps/x86_64/dl-tls.h: Likewise.
218         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
219         * time/alt_digit.c: Likewise.
220         * time/era.c: Likewise.
221         * wcsmbs/tst-c16c32-1.c: Likewise.
222
223 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
224
225         * math/libm-test.inc (struct test_sincos_data): New type.
226         (RUN_TEST_LOOP_sincos): New macro.
227         (sincos_test_data): New variable.
228         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
229
230 2013-05-16  Richard Henderson  <rth@redhat.com>
231
232         * math/atest-exp2.c (LIMB64): New macro.
233         (CONSTSZ): New macro.
234         (mp_exp1, mp_exp_m1, mp_log2): New variables.
235         (hexdig): Move ...
236         (print_mpn_fp): ... to function scope.
237         (read_mpn_hex): Remove.
238         (get_log2): Remove.
239         (exp2_mpn): Use mp_log2.
240         (main): Use mp_exp1.
241
242 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
243
244         * math/libm-test.inc: Remove comment about not testing "inexact"
245         exceptions.
246         (INEXACT_EXCEPTION): New macro.
247         (NO_INEXACT_EXCEPTION): Likewise.
248         (INVALID_EXCEPTION_OK): Update value.
249         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
250         (OVERFLOW_EXCEPTION_OK): Likewise.
251         (UNDERFLOW_EXCEPTION_OK): Likewise.
252         (IGNORE_ZERO_INF_SIGN): Likewise.
253         (ERRNO_UNCHANGED): Likewise.
254         (ERRNO_EDOM): Likewise.
255         (ERRNO_ERANGE): Likewise.
256         (test_exceptions): Handle testing "inexact" exceptions.
257         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
258         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
259         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
260         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
261         INEXACT_EXCEPTION.
262         (rint_towardzero_test_data): Likewise.
263         (rint_downward_test_data): Likewise.
264         (rint_upward_test_data): Likewise.
265
266         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
267         with OVERFLOW_EXCEPTION.
268         (exp10_test_data): Likewise.
269         (exp2_test_data): Likewise.
270         (expm1_test_data): Likewise.
271         (lgamma_test_data): Likewise.
272         (pow_test_data): Likewise.
273         (tgamma_test_data): Likewise.
274         (yn_test_data): Remove duplicate test of overflow.
275
276         * math/libm-test.inc (struct test_cc_c_data): New type.
277         (RUN_TEST_LOOP_cc_c): New macro.
278         (cpow_test_data): New variable.
279         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
280
281         * math/libm-test.inc (struct test_f_L_data): New type.
282         (RUN_TEST_LOOP_f_L): New macro.
283         (llrint_test_data): New variable.
284         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
285         (llrint_tonearest_test_data): New variable.
286         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
287         (llrint_towardzero_test_data): New variable.
288         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
289         (llrint_downward_test_data): New variable.
290         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
291         (llrint_upward_test_data): New variable.
292         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
293         (llround_test_data): New variable.
294         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
295
296 2013-05-13  Peter Collingbourne  <pcc@google.com>
297
298         * math/atest-exp2.c (get_log2): Remove const attribute.
299
300 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
301
302         * math/libm-test.inc (struct test_f_l_data): New type.
303         (RUN_TEST_LOOP_f_l): New macro.
304         (lrint_test_data): New variable.
305         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
306         (lrint_tonearest_test_data): New variable.
307         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
308         (lrint_towardzero_test_data): New variable.
309         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
310         (lrint_downward_test_data): New variable.
311         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
312         (lrint_upward_test_data): New variable.
313         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
314         (lround_test_data): New variable.
315         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
316
317 2013-05-15  Peter Collingbourne  <pcc@google.com>
318
319         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
320         (EXTRACT_WORDS64) Use where appropriate.
321         (INSERT_WORDS64) Likewise.
322
323         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
324         constraints with x constraints.
325         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
326
327         * malloc/obstack.c (_obstack_compat): Add initializer.
328
329 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
330
331         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
332         si_trapno and add si_addr_lsb to _sifields.sigfault.
333         (si_trapno): Remove macro.
334         (si_addr_lsb): Define new macro.
335         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
336
337 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
338
339         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
340         instead of TEST_f_l.
341         (llrint_test_tonearest): Likewise.
342         (llrint_test_towardzero): Likewise.
343         (llrint_test_downward): Likewise.
344         (llrint_test_upward): Likewise.
345         (llround_test): Likewise.
346
347         * math/libm-test.inc (struct test_f_i_data): Add comment.
348         (RUN_TEST_LOOP_f_b): New macro.
349         (RUN_TEST_LOOP_f_b_tg): Likewise.
350         (finite_test_data): New variable.
351         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
352         (isfinite_test_data): New variable.
353         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
354         (isinf_test_data): New variable.
355         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
356         (isnan_test_data): New variable.
357         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
358         (isnormal_test_data): New variable.
359         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
360         (issignaling_test_data): New variable.
361         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
362         (signbit_test_data): New variable.
363         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
364
365         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
366         with INVALID_EXCEPTION.
367         (acosh_test_data): Likewise.
368         (asin_test_data): Likewise.
369         (atanh_test_data): Likewise.
370         (fmod_test_data): Likewise.
371         (log_test_data): Likewise.
372         (log10_test_data): Likewise.
373         (log2_test_data): Likewise.
374         (pow_test_data): Likewise.
375         (sqrt_test_data): Likewise.
376         (y0_test_data): Likewise.
377         (y1_test_data): Likewise.
378         (yn_test_data): Likewise.
379
380         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
381         function contents.
382
383         * math/libm-test.inc (struct test_ff_i_data): New type.
384         (RUN_TEST_LOOP_ff_i_tg): New macro.
385         (isgreater_test_data): New variable.
386         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
387         (isgreaterequal_test_data): New variable.
388         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
389         (isless_test_data): New variable.
390         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
391         (islessequal_test_data): New variable.
392         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
393         (islessgreater_test_data): New variable.
394         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
395         (isunordered_test_data): New variable.
396         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
397
398 2013-05-14  David S. Miller  <davem@davemloft.net>
399
400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
401
402 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
403
404         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
405
406         * math/libm-test.inc (struct test_fF_f1_data): Change type of
407         extra_test to int.
408         (struct test_f_i_data): Change type of max_ulp to int.
409
410         * math/libm-test.inc (test_ffI_f1_data): New type.
411         (RUN_TEST_LOOP_ffI_f1): New macro.
412         (remquo_test_data): New variable.
413         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
414
415         * setjmp/tst-setjmp-fp.c: New file.
416         * setjmp/Makefile (tests): Add tst-setjmp-fp.
417         (link-libm): New variable.
418         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
419
420         * math/libm-test.inc (struct test_f_i_data): New type.
421         (RUN_TEST_LOOP_f_i): New macro.
422         (RUN_TEST_LOOP_f_i_tg): Likewise.
423         (fpclassify_test_data): New variable.
424         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
425         (ilogb_test_data): New variable.
426         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
427
428         * math/libm-test.inc (scalbln_test): Correct function name in END
429         call.
430
431         * math/libm-test.inc (struct test_f_f1_data): Add comment.
432         (RUN_TEST_LOOP_fI_f1): New macro.
433         (frexp_test_data): New variable.
434         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
435
436         * math/libm-test.inc (struct test_fF_f1_data): New type.
437         (RUN_TEST_LOOP_fF_f1): New macro.
438         (modf_test_data): New variable.
439         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
440
441         * math/libm-test.inc (struct test_f_f1_data): New type.
442         (RUN_TEST_LOOP_f_f1): New macro.
443         (gamma_test_data): New variable.
444         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
445         (lgamma_test_data): New variable.
446         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
447
448 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
449
450         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
451         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
452         (main): Comment "tls" pseudo-hwcap.
453
454 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
455
456         * math/libm-test.inc (struct test_fl_f_data): New type.
457         (RUN_TEST_LOOP_fl_f): New variable.
458         (scalbln_test_data): New variable.
459         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
460
461         * math/libm-test.inc (struct test_fi_f_data): New type.
462         (RUN_TEST_LOOP_fi_f): New macro.
463         (ldexp_test_data): New variable.
464         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
465         (scalbn_test_data): New variable.
466         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
467
468         * math/libm-test.inc (struct test_c_f_data): New type.
469         (RUN_TEST_LOOP_c_f): New macro.
470         (cabs_test_data): New variable.
471         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
472         (carg_test_data): New variable.
473         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
474         (cimag_test_data): New variable.
475         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
476         (creal_test_data): New variable.
477         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
478
479         * math/libm-test.inc (struct test_if_f_data): New type.
480         (RUN_TEST_LOOP_if_f): New macro.
481         (jn_test_data): New variable.
482         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
483         (yn_test_data): New variable.
484         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
485
486         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
487
488 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
489
490         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
491         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
492
493 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
494
495         * benchtests/Makefile (CPPFLAGS-nonlib): Add
496         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
497         (bench-deps): Add bench-timing.h.
498         * benchtests-bench-skeleton.c: Include bench-timing.h.
499         (main): Use TIMING_* macros instead of clock_gettime.
500         * benchtests/bench-timing.h: New file.
501
502         [BZ #14582]
503         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
504         Renamed from _LIB_VERSION.
505         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
506
507 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
508
509         * math/libm-test.inc (struct test_fff_f_data): New type.
510         (RUN_TEST_LOOP_fff_f): New macro.
511         (fma_test_data): New variable.
512         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
513         (fma_towardzero_test_data): New variable.
514         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
515         (fma_downward_test_data): New variable.
516         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
517         (fma_upward_test_data): New variable.
518         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
519
520         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
521         (struct test_c_c_data): New type.
522         (RUN_TEST_LOOP_c_c): New macro.
523         (cacos_test_data): New variable.
524         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
525         (cacosh_test_data): New variable.
526         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
527         (casin_test_data): New variable.
528         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
529         (casinh_test_data): New variable.
530         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
531         (catan_test_data): New variable.
532         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
533         (catanh_test_data): New variable.
534         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
535         (ccos_test_data): New variable.
536         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
537         (ccosh_test_data): New variable.
538         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
539         (cexp_test_data): New variable.
540         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
541         (clog_test_data): New variable.
542         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
543         (clog10_test_data): New variable.
544         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
545         (conj_test_data): New variable.
546         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
547         (cproj_test_data): New variable.
548         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
549         (csin_test_data): New variable.
550         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
551         (csinh_test_data): New variable.
552         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
553         (csqrt_test_data): New variable.
554         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
555         (ctan_test_data): New variable.
556         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
557         (ctan_tonearest_test_data): New variable.
558         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
559         (ctan_towardzero_test_data): New variable.
560         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
561         (ctan_downward_test_data): New variable.
562         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
563         (ctan_upward_test_data): New variable.
564         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
565         (ctanh_test_data): New variable.
566         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
567         (ctanh_tonearest_test_data): New variable.
568         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
569         (ctanh_towardzero_test_data): New variable.
570         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
571         (ctanh_downward_test_data): New variable.
572         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
573         (ctanh_upward_test_data): New variable.
574         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
575         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
576         of BUILD_COMPLEX.
577
578         * math/libm-test.inc (struct test_ff_f_data): New type.
579         (struct test_ff_f_data_nexttoward): Likewise.
580         (RUN_TEST_LOOP_2_f): New macro.
581         (RUN_TEST_LOOP_ff_f): Likewise.
582         (atan2_test_data): New variable.
583         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
584         (copysign_test_data): New variable.
585         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
586         (fdim_test_data): New variable.
587         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
588         (fmax_test_data): New variable.
589         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
590         (fmin_test_data): New variable.
591         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
592         (fmod_test_data): New variable.
593         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
594         (hypot_test_data): New variable.
595         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
596         (nextafter_test_data): New variable.
597         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
598         (nexttoward_test_data): New variable.
599         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
600         (pow_test_data): New variable.
601         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
602         (pow_tonearest_test_data): New variable.
603         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
604         (pow_towardzero_test_data): New variable.
605         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
606         (pow_downward_test_data): New variable.
607         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
608         (pow_upward_test_data): New variable.
609         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
610         (remainder_test_data): New variable.
611         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
612         (scalb_test_data): New variable.
613         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
614         * sysdeps/i386/fpu/libm-test-ulps: Update.
615
616 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
617
618         * math/libm-test.inc (fma_test): Use max_value instead of local
619         variable fltmax.
620         (nextafter_test): Likewise.
621
622         * math/libm-test.inc (acos_towardzero_test_data): New variable.
623         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
624         (acos_downward_test_data): New variable.
625         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
626         (acos_upward_test_data): New variable.
627         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
628         (acosh_test_data): New variable.
629         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
630         (asin_test_data): New variable.
631         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
632         (asin_tonearest_test_data): New variable.
633         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
634         (asin_towardzero_test_data): New variable.
635         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
636         (asin_downward_test_data): New variable.
637         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
638         (asin_upward_test_data): New variable.
639         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
640         (asinh_test_data): New variable.
641         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
642         (atan_test_data): New variable.
643         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
644         (atanh_test_data): New variable.
645         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
646         (cbrt_test_data): New variable.
647         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
648         (ceil_test_data): New variable.
649         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
650         (cos_test_data): New variable.
651         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
652         (cos_tonearest_test_data): New variable.
653         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
654         (cos_towardzero_test_data): New variable.
655         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
656         (cos_downward_test_data): New variable.
657         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
658         (cos_upward_test_data): New variable.
659         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
660         (cosh_test_data): New variable.
661         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
662         (cosh_tonearest_test_data): New variable.
663         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
664         (cosh_towardzero_test_data): New variable.
665         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
666         (cosh_downward_test_data): New variable.
667         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
668         (cosh_upward_test_data): New variable.
669         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
670         (erf_test_data): New variable.
671         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
672         (erfc_test_data): New variable.
673         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
674         (exp_test_data): New variable.
675         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
676         (exp_tonearest_test_data): New variable.
677         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
678         (exp_towardzero_test_data): New variable.
679         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
680         (exp_downward_test_data): New variable.
681         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
682         (exp_upward_test_data): New variable.
683         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
684         (exp10_test_data): New variable.
685         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
686         (exp2_test_data): New variable.
687         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
688         (expm1_test_data): New variable.
689         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
690         (fabs_test_data): New variable.
691         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
692         (floor_test_data): New variable.
693         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
694         (j0_test_data): New variable.
695         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
696         (j1_test_data): New variable.
697         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
698         (log_test_data): New variable.
699         (log_test): Run tests with RUN_TEST_LOOP_f_f.
700         (log10_test_data): New variable.
701         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
702         (log1p_test_data): New variable.
703         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
704         (log2_test_data): New variable.
705         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
706         (logb_test_data): New variable.
707         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
708         (logb_downward_test_data): New variable.
709         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
710         (nearbyint_test_data): New variable.
711         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
712         (rint_test_data): New variable.
713         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
714         (rint_tonearest_test_data): New variable.
715         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
716         (rint_towardzero_test_data): New variable.
717         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
718         (rint_downward_test_data): New variable.
719         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
720         (rint_upward_test_data): New variable.
721         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
722         (round_test_data): New variable.
723         (round_test): Run tests with RUN_TEST_LOOP_f_f.
724         (sin_test_data): New variable.
725         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
726         (sin_tonearest_test_data): New variable.
727         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
728         (sin_towardzero_test_data): New variable.
729         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
730         (sin_downward_test_data): New variable.
731         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
732         (sin_upward_test_data): New variable.
733         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
734         (sinh_test_data): New variable.
735         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
736         (sinh_tonearest_test_data): New variable.
737         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
738         (sinh_towardzero_test_data): New variable.
739         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
740         (sinh_downward_test_data): New variable.
741         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
742         (sinh_upward_test_data): New variable.
743         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
744         (sqrt_test_data): New variable.
745         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
746         (tan_test_data): New variable.
747         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
748         (tan_tonearest_test_data): New variable.
749         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
750         (tan_towardzero_test_data): New variable.
751         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
752         (tan_downward_test_data): New variable.
753         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
754         (tan_upward_test_data): New variable.
755         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
756         (tanh_test_data): New variable.
757         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
758         (tgamma_test_data): New variable.
759         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
760         (trunc_test_data): New variable.
761         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
762         (y0_test_data): New variable.
763         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
764         (y1_test_data): New variable.
765         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
766         (significand_test_data): New variable.
767         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
768
769 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
770
771         [BZ #12387]
772         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
773
774 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
775
776         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
777
778 2013-05-10  Andreas Jaeger  <aj@suse.de>
779
780         [BZ #15448]
781         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
782         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
783
784 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
785
786         * math/gen-libm-test.pl (adjust_arg): New function.
787         (special_functions): Handle generating output in both functions
788         and arrays.
789         (parse_args): Likewise.
790         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
791         $in_func argument to parse_args.
792         * math/libm-test.inc (struct test_f_f_data): New type.
793         (IF_ROUND_INIT_): New macro.
794         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
795         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
796         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
797         (IF_ROUND_INIT_FE_UPWARD): Likewise.
798         (ROUND_RESTORE_): Likewise.
799         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
800         (ROUND_RESTORE_FE_TONEAREST): Likewise.
801         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
802         (ROUND_RESTORE_FE_UPWARD): Likewise.
803         (RUN_TEST_LOOP_f_f): New macro.
804         (acos_test_data): New variable.
805         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
806         (acos_tonearest_test_data): New variable.
807         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
808
809 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
810
811         * benchtests/bench-skeleton.c (startup): Fix coding style.
812
813 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
814
815         [BZ #6809]
816         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
817         negative infinity argument.
818         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
819         negative infinity argument.
820         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
821         negative infinity argument.
822         * math/libm-test.inc (tgamma_test): Expect errno to be set for
823         domain errors.
824
825 2013-05-10  Florian Weimer  <fweimer@redhat.com>
826
827         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
828         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
829         * iconv/iconv_prog.c (main): Likewise.
830         * locale/programs/charmap-dir.c (charmap_readdir)
831         (fopen_uncompressed): Likewise.
832         * locale/programs/locfile.c (siblings_uncached)
833         (write_locale_data): Use lstat64 instead of lstat.
834         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
835         stat.
836
837 2013-05-10  Andreas Jaeger  <aj@suse.de>
838
839         [BZ #15395]
840         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
841         localization.
842         Include <locale.h>.
843
844 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
845
846         * elf/dl-close.c (_dl_close_worker): Add comments.
847
848 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
849
850         [BZ #15359]
851         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
852         high part of pi/2.
853         (__ieee754_rem_pio2l): Update comments.
854
855         [BZ #15429]
856         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
857         high part of pi/2.
858         (__ieee754_rem_pio2l): Update comments.
859
860         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
861         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
862
863         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
864         M_PI_4l.
865
866         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
867         (M_PI_34_LOG10El): Likewise.
868         (M_PI2_LOG10El): Likewise.
869         (M_PI4_LOG10El): Likewise.
870         (M_PI_LOG10El): Likewise.
871
872 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
873
874         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
875
876 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
877
878         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
879         (MINUS_ZERO_INIT): Likewise.
880         (PLUS_INFTY_INIT): Likewise.
881         (MINUS_INFTY_INIT): Likewise.
882         (QNAN_VALUE_INIT): Likewise.
883         (MAX_VALUE_INIT): Likewise.
884         (MIN_VALUE_INIT): Likewise.
885         (MIN_SUBNORM_VALUE_INIT): Likewise.
886         (plus_zero): Initialize with PLUS_ZERO_INIT.
887         (minus_zero): Initialize with MINUS_ZERO_INIT.
888         (plus_infty): Initialize with PLUS_INFTY_INIT.
889         (minus_infty): Initialize with MINUS_INFTY_INIT.
890         (qnan_value): Initialize with QNAN_VALUE_INIT.
891         (max_value): Initialize with MAX_VALUE_INIT.
892         (min_value): Initialize with MIN_VALUE_INIT.
893         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
894
895         * math/libm-test.inc (RUN_TEST_if_f): New macro.
896         (jn_test): Use TEST_if_f instead of TEST_ff_f.
897         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
898         (yn_test): Use TEST_if_f instead of TEST_ff_f.
899
900         * math/libm-test.inc (RUN_TEST_f_f): New macro.
901         (RUN_TEST_2_f): Likewise.
902         (RUN_TEST_ff_f): Likewise.
903         (RUN_TEST_fi_f): Likewise.
904         (RUN_TEST_fl_f): Likewise.
905         (RUN_TEST_fff_f): Likewise.
906         (RUN_TEST_c_f): Likewise.
907         (RUN_TEST_f_f1): Likewise.
908         (RUN_TEST_fF_f1): Likewise.
909         (RUN_TEST_fI_f1): Likewise.
910         (RUN_TEST_ffI_f1): Likewise.
911         (RUN_TEST_c_c): Likewise.
912         (RUN_TEST_cc_c): Likewise.
913         (RUN_TEST_f_i): Likewise.
914         (RUN_TEST_f_i_tg): Likewise.
915         (RUN_TEST_ff_i_tg): Likewise.
916         (RUN_TEST_f_b): Likewise.
917         (RUN_TEST_f_b_tg): Likewise.
918         (RUN_TEST_f_l): Likewise.
919         (RUN_TEST_f_L): Likewise.
920         (RUN_TEST_sincos): Likewise.
921         * math/gen-libm-test.pl (new_test): Take new argument to indicate
922         whether to show exceptions.  Do not include ");\n" in return
923         value.
924         (special_functions): Output call to RUN_TEST_sincos instead of
925         check_float calls.  Update calls to new_test.
926         (parse_args): Output call to single RUN_TEST_* macro instead of
927         check_* calls and other assignments.  Update calls to new_test.
928
929         [BZ #2546]
930         [BZ #2560]
931         [BZ #5159]
932         [BZ #15426]
933         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
934         input to result for tgamma overflow.
935         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
936         (gamma_coeff): New variable.
937         (NCOEFF): New macro.
938         (gamma_positive): New function.
939         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
940         underflow here.  Use gamma_positive instead of exp (lgamma) for
941         other arguments.
942         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
943         (gamma_coeff): New variable.
944         (NCOEFF): New macro.
945         (gammaf_positive): New function.
946         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
947         underflow here.  Use gamma_positive instead of exp (lgamma) for
948         other arguments.
949         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
950         (gamma_coeff): New variable.
951         (NCOEFF): New macro.
952         (gammal_positive): New function.
953         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
954         underflow here.  Use gamma_positive instead of exp (lgamma) for
955         other arguments.
956         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
957         (gamma_coeff): New variable.
958         (NCOEFF): New macro.
959         (gammal_positive): New function.
960         (__ieee754_gammal_r): Handle positive infinity, overflow and
961         underflow here.  Handle NaN the same as positive infinity.  Remove
962         check x < 0xffffffff for negative integers.  Use gamma_positive
963         instead of exp (lgamma) for other arguments.
964         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
965         (gamma_coeff): New variable.
966         (NCOEFF): New macro.
967         (gammal_positive): New function.
968         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
969         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
970         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
971         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
972         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
973         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
974         * sysdeps/generic/math_private.h (__gamma_productf): New
975         prototype.
976         (__gamma_product): Likewise.
977         (__gamma_productl): Likewise.
978         * math/Makefile (libm-calls): Add gamma_product.
979         * math/libm-test.inc (tgamma_test): Add more tests.
980         * sysdeps/i386/fpu/libm-test-ulps: Update.
981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
982
983 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
984
985         * benchtests/bench-skeleton.c (main): Preheat CPU.
986
987 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
988
989         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
990
991 2013-05-07  Roland McGrath  <roland@hack.frob.com>
992
993         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
994         and _dl_skip_args_internal.
995
996 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
997
998         * manual/message.texi (Message Translation): Talk about users.
999         Message to key mapping impacts design.
1000
1001 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1002
1003         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
1004
1005         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
1006
1007         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
1008         * sysdeps/wordsize-64/glob64.c: ... here.
1009
1010         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
1011         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
1012         New macros.
1013
1014         * debug/getlogin_r_chk.c: Moved to ...
1015         * login/getlogin_r_chk.c: ... here.
1016         * debug/Makefile (routines): Move getlogin_r_chk to ...
1017         * login/Makefile (routines): ... here.
1018         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
1019         * login/Versions (libc: GLIBC_2.4): ... here.
1020
1021         * io/poll.c (__poll): Renamed from poll.
1022         Add libc_hidden_def.
1023         (poll): Define as weak alias.
1024
1025         * debug/ptsname_r_chk.c: Moved to ...
1026         * login/ptsname_r_chk.c: ... here.
1027         * debug/Makefile (routines): Move ptsname_r_chk to ...
1028         * login/Makefile (routines): ... here.
1029         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
1030         * login/Versions (libc: GLIBC_2.4): ... here.
1031
1032         * posix/getlogin.c: Moved to ...
1033         * login/getlogin.c: ... here.
1034         * posix/getlogin_r.c: Moved to ...
1035         * login/getlogin_r.c: ... here.
1036         * posix/getlogin_r.c: Moved to ...
1037         * login/getlogin_r.c: ... here.
1038         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
1039         * login/Makefile (routines): ... here.
1040         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
1041         * login/Versions (libc: GLIBC_2.0): ... here.
1042
1043         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
1044         (setrlimit): Define as weak alias.
1045
1046         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
1047         Call __ names for open, ftruncate, and close.
1048         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
1049         (truncate): Define as weak alias.
1050
1051 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
1052
1053         * math/gen-libm-test.pl (parse_args): Initialize x before each
1054         test of frexp, modf and remquo.
1055
1056         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
1057         test signgam value.
1058
1059 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1060
1061         [BZ #15418]
1062         [BZ #15419]
1063         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
1064         internal tests.
1065         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1066
1067 2013-05-06  Roland McGrath  <roland@hack.frob.com>
1068
1069         * elf/dl-writev.h: New file.
1070         * elf/dl-misc.c: Include it.
1071         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
1072         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
1073
1074 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
1075
1076         * math/libm-test.inc (noXFails): Remove variable.
1077         (noXPasses): Likewise.
1078         (BUILD_COMPLEX_INT): Remove macro.
1079         (print_screen): Remove xfail argument.
1080         (print_screen_max_error): Likewise.
1081         (update_stats): Likewise.
1082         (print_max_error): Likewise.  Update calls to other affected
1083         functions.
1084         (print_complex_max_error): Likewise.
1085         (test_single_exception): Update calls to print_screen.
1086         (test_single_errno): Likewise.
1087         (check_float_internal): Remove xfail argument.  Update calls to
1088         other affected functions.
1089         (check_float): Likewise.
1090         (check_complex): Likewise.
1091         (check_int): Likewise.
1092         (check_long): Likewise.
1093         (check_bool): Likewise.
1094         (check_longlong): Likewise.
1095         (main): Don't print noXFails and noXPasses.
1096         * math/gen-libm-test.pl (top level): Don't mention expected
1097         failure handling in comment.
1098         (new_test): Don't handle expected failures.
1099         (parse_args): Don't mention expected failure handling in comment.
1100         (generate_testfile): Don't handle expected failures.
1101         (parse_ulps): Likewise.
1102         (print_ulps_file): Likewise.
1103         (get_failure): Remove function.
1104         (output_test): Don't handle expected failures.
1105         * make/README.libm-test: Don't mention expected failure handling.
1106
1107         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
1108         (minus_zero): Likewise.
1109         (plus_infty): Likewise.
1110         (minus_infty): Likewise.
1111         (qnan_value): Likewise.
1112         (max_value): Likewise.
1113         (min_value): Likewise.
1114         (min_subnorm_value): Likewise.
1115         (initialize): Do not initialize those variables dynamically.
1116
1117 2013-05-03  Roland McGrath  <roland@hack.frob.com>
1118
1119         * io/open.c (__open_2): Moved to ...
1120         * io/open_2.c: ... this new file.
1121         * io/open64.c (__open64_2): Moved to ...
1122         * io/open64_2.c: ... this new file.
1123         * io/openat.c (__openat_2): Moved to ...
1124         * io/openat_2.c: ... this new file.
1125         * io/openat64.c (__openat64_2): Moved to ...
1126         * io/openat64_2.c: ... this new file.
1127         * io/Makefile (routines): Add them.
1128         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
1129         * sysdeps/unix/sysv/linux/open_2.c: File removed.
1130         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
1131         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
1132         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
1133         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
1134         (__openat64): Add hidden_ver.
1135         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
1136         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
1137
1138         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1139         Separately conditionalize setting of GLRO(dl_sysinfo) so
1140         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
1141         as well, but the actual setting is only under [NEED_DL_SYSINFO].
1142
1143 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1144
1145         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
1146         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
1147         definition.
1148         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
1149         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1150         (_libc_vdso_platform_setup): Add __vdso_time initialization.
1151         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
1152         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
1153
1154 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
1155
1156         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
1157         test signgam value.
1158
1159         * math/libm-test.inc (hypot_test): Do not use
1160         IGNORE_ZERO_INF_SIGN.
1161
1162 2013-05-03  Andreas Jaeger  <aj@suse.de>
1163
1164         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
1165         Linux 3.9.
1166         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
1167         (PF_MAX): Adjust for VSOCK change.
1168
1169 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1170
1171         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1172
1173 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
1174
1175         [BZ #15264]
1176         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
1177         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
1178         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
1179
1180 2013-05-02  David S. Miller  <davem@davemloft.net>
1181
1182         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1183
1184 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
1185
1186         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
1187
1188 2013-05-01  Roland McGrath  <roland@hack.frob.com>
1189
1190         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
1191
1192 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
1193
1194         [BZ #14952]
1195         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
1196         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1197         Use __attribute__ ((__gnu_inline__)).
1198         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
1199         Don't use __attribute__ ((__gnu_inline__)).
1200
1201 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
1202
1203         [BZ #15423]
1204         * math/s_catan.c (__catan): Handle small real or imaginary part of
1205         input specially to avoid spurious underflow.
1206         * math/s_catanf.c (__catanf): Likewise.
1207         * math/s_catanh.c (__catanh): Likewise.
1208         * math/s_catanhf.c (__catanhf): Likewise.
1209         * math/s_catanhl.c (__catanhl): Likewise.
1210         * math/s_catanl.c (__catanl): Likewise.
1211         * math/libm-test.inc (catan_test): Add more tests.
1212         (catanh_test): Likewise.
1213         * sysdeps/i386/fpu/libm-test-ulps: Update.
1214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1215
1216 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1217
1218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1219
1220 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
1221
1222         [BZ #15416]
1223         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
1224         accurately for denominator in atan2.
1225         * math/s_catanf.c (__catanf): Likewise.
1226         * math/s_catanh.c (__catanh): Likewise.
1227         * math/s_catanhf.c (__catanhf): Likewise.
1228         * math/s_catanhl.c (__catanhl): Likewise.
1229         * math/s_catanl.c (__catanl): Likewise.
1230         * math/libm-test.inc (catan_test): Add more tests.
1231         (catanh_test): Likewise.
1232         * sysdeps/i386/fpu/libm-test-ulps: Update.
1233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1234
1235 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1236
1237         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
1238
1239         * benchtests/Makefile (bench): Remove slow benchmarks.
1240         * benchtests/atan-inputs: Add slow benchmark inputs.
1241         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
1242         (BENCH_FUNC): Accept variant offset.
1243         (VARIANT): Define.
1244         * benchtests/bench-skeleton.c (main): Run benchmark for each
1245         variant.
1246         * benchtests/cos-inputs: Add slow benchmark inputs.
1247         * benchtests/exp-inputs: Likewise.
1248         * benchtests/pow-inputs: Likewise.
1249         * benchtests/sin-inputs: Likewise.
1250         * benchtests/slowatan-inputs: Remove.
1251         * benchtests/slowatan.c: Remove.
1252         * benchtests/slowcos-inputs: Remove.
1253         * benchtests/slowcos.c: Remove.
1254         * benchtests/slowexp-inputs: Remove.
1255         * benchtests/slowexp.c: Remove.
1256         * benchtests/slowpow-inputs: Remove.
1257         * benchtests/slowpow.c: Remove.
1258         * benchtests/slowsin-inputs: Remove.
1259         * benchtests/slowsin.c: Remove.
1260         * benchtests/slowtan-inputs: Remove.
1261         * benchtests/slowtan.c: Remove.
1262         * benchtests/tan-inputs: Add slow benchmark inputs.
1263         * scripts/bench.pl: Parse comments and directives.
1264
1265         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
1266         in CPPFLAGS.
1267         ($(objpfx)bench-%.c): Remove *-ITER.
1268         * benchtests/bench-modf.c: Remove definition of ITER.
1269         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
1270         (main): Loop for DURATION seconds instead of fixed number of
1271         iterations.
1272         * scripts/bench.pl: Don't expect iterations in parameters.
1273
1274 2013-04-29  Roland McGrath  <roland@hack.frob.com>
1275
1276         * io/fchdir.c (__fchdir): Renamed from fchdir.
1277         (fchdir): Define as weak alias.
1278
1279 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1280
1281         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
1282         (ERRNO_EDOM): Likewise.
1283         (ERRNO_ERANGE): Likewise.
1284         (noErrnoTests): New variable.
1285         (init_max_error): Set errno to 0.
1286         (test_single_errno): New function.
1287         (test_errno): Likewise.
1288         (check_float_internal): Call test_errno.  Set errno to 0.
1289         (check_complex): Refer to errno tests in comment.
1290         (check_int): Call test_errno.  Set errno to 0.
1291         (check_long): Likewise.
1292         (check_bool): Likewise.
1293         (check_longlong): Likewise.
1294         (cos_test): Use ERRNO_* flags for errno tests instead of
1295         check_int.
1296         (expm1_test): Likewise.
1297         (fmod_test): Likewise.
1298         (ilogb_test): Likewise.
1299         (lgamma_test): Likewise.
1300         (pow_test): Likewise.
1301         (remainder_test): Likewise.
1302         (sin_test): Likewise.
1303         (tan_test): Likewise.
1304         (yn_test): Likewise.
1305         (initialize): Set errno to 0.
1306         (main): Print number of errno tests.
1307         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
1308
1309 2013-04-29  Andreas Jaeger  <aj@suse.de>
1310
1311         [BZ #15084]
1312         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
1313         and RES_USEVC.
1314
1315         [BZ #15085]
1316         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
1317         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
1318         unimplemented.
1319
1320         [BZ #15380]
1321         * stdlib/random.c (__initstate): Return NULL if
1322         __initstate fails.
1323
1324         [BZ #15086]
1325         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
1326         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
1327         RES_SNGLKUPREOP.
1328
1329 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1330
1331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1332
1333 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
1334
1335         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
1336         of individual tests.
1337         (casin_test): Likewise.
1338         (casinh_test): Likewise.
1339
1340 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
1341
1342         [BZ #15409]
1343         * math/s_catan.c (__catan): Handle arguments with large real or
1344         imaginary part separately without squaring.
1345         * math/s_catanf.c (__catanf): Likewise.
1346         * math/s_catanh.c (__catanh): Likewise.
1347         * math/s_catanhf.c (__catanhf): Likewise.
1348         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1349         and redefine.
1350         (__catanhl): Handle arguments with large real or imaginary part
1351         separately without squaring.
1352         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
1353         and redefine.
1354         (__catanl): Handle arguments with large real or imaginary part
1355         separately without squaring.
1356         * math/libm-test.inc (catan_test): Add more tests.
1357         (catanh_test): Likewise.
1358         * sysdeps/i386/fpu/libm-test-ulps: Update.
1359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1360
1361 2013-04-27  Andreas Jaeger  <aj@suse.de>
1362
1363         [BZ #15007]
1364         * stdlib/stdlib.h: Update guards for qecvt.
1365         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
1366         <stdlib.h>.
1367
1368 2013-04-27  Allan McRae  <allan@archlinux.org>
1369
1370         * sysdeps/i386/fpu/libm-test-ulps: Update.
1371
1372 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
1373
1374         [BZ #15406]
1375         * math/s_catan.c: Include <float.h>.
1376         (__catan): Ensure underflow exception occurs for underflowed
1377         result.
1378         * math/s_catanf.c: Include <float.h>.
1379         (__catanf): Ensure underflow exception occurs for underflowed
1380         result.
1381         * math/s_catanh.c: Include <float.h>.
1382         (__catanh): Ensure underflow exception occurs for underflowed
1383         result.
1384         * math/s_catanhf.c: Include <float.h>.
1385         (__catanhf): Ensure underflow exception occurs for underflowed
1386         result.
1387         * math/s_catanhl.c: Include <float.h>.
1388         (__catanhl): Ensure underflow exception occurs for underflowed
1389         result.
1390         * math/s_catanl.c: Include <float.h>.
1391         (__catanl): Ensure underflow exception occurs for underflowed
1392         result.
1393         * math/libm-test.inc (catan_test): Add more tests.
1394         (catanh_test): Likewise.
1395
1396         [BZ #15405]
1397         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
1398         underflowed result.
1399         * math/s_ccoshf.c (__ccoshf): Likewise.
1400         * math/s_ccoshl.c (__ccoshl): Likewise.
1401         * math/s_csin.c (__csin): Likewise.
1402         * math/s_csinf.c (__csinf): Likewise.
1403         * math/s_csinh.c (__csinh): Likewise.
1404         * math/s_csinhf.c (__csinhf): Likewise.
1405         * math/s_csinhl.c (__csinhl): Likewise.
1406         * math/s_csinl.c (__csinl): Likewise.
1407         * math/libm-test.inc (ccos_test): Add more tests.
1408         (ccosh_test): Likewise.
1409         (csin_test): Likewise.
1410         (csinh_test): Likewise.
1411
1412 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1413
1414         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
1415         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
1416         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
1417         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
1418         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
1419         powerpc/power5+/fpu folders.
1420         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1421
1422
1423 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1424
1425         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1426
1427 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
1428
1429         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
1430         additions to variable.
1431         [$(config-machine) = x86_64] (modules-names): Likewise.
1432         ($(objpfx)tst-audit3): Remove dependency.
1433         ($(objpfx)tst-audit3.out): Likewise.
1434         ($(objpfx)tst-audit4): Likewise.
1435         ($(objpfx)tst-audit4.out): Likewise.
1436         ($(objpfx)tst-audit5): Likewise.
1437         ($(objpfx)tst-audit5.out): Likewise.
1438         ($(objpfx)tst-audit6): Likewise.
1439         ($(objpfx)tst-audit6.out): Likewise.
1440         ($(objpfx)tst-audit7): Likewise.
1441         ($(objpfx)tst-audit7.out): Likewise.
1442         (tst-audit3-ENV): Remove variable.
1443         (tst-audit4-ENV): Likewise.
1444         (tst-audit5-ENV): Likewise.
1445         (tst-audit6-ENV): Likewise.
1446         (tst-audit7-ENV): Likewise.
1447         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
1448         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
1449         addition to variable.
1450         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
1451         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
1452         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
1453         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
1454         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
1455         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
1456         tst-audit3, tst-audit4 and tst-audit5.
1457         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
1458         tst-audit6 and tst-audit7.
1459         [$(subdir) = elf] (modules-names): Add audit modules for those
1460         tests.
1461         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
1462         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
1463         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
1464         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
1465         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
1466         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
1467         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
1468         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
1469         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
1470         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
1471         [$(subdir) = elf] (tst-audit3-ENV): New variable.
1472         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
1473         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
1474         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
1475         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
1476         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
1477         Likewise.
1478         [$(subdir) = elf && $(config-cflags-avx) = yes]
1479         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
1480         [$(subdir) = elf && $(config-cflags-avx) = yes]
1481         (CFLAGS-tst-auditmod4a.c): Likewise.
1482         [$(subdir) = elf && $(config-cflags-avx) = yes]
1483         (CFLAGS-tst-auditmod4b.c): Likewise.
1484         [$(subdir) = elf && $(config-cflags-avx) = yes]
1485         (CFLAGS-tst-auditmod6b.c): Likewise.
1486         [$(subdir) = elf && $(config-cflags-avx) = yes]
1487         (CFLAGS-tst-auditmod6c.c): Likewise.
1488         [$(subdir) = elf && $(config-cflags-avx) = yes]
1489         (CFLAGS-tst-auditmod7b.c): Likewise.
1490         * elf/tst-audit3.c: Move to ...
1491         * sysdeps/x86_64/tst-audit3.c: ... here.
1492         * elf/tst-audit4.c: Move to ...
1493         * sysdeps/x86_64/tst-audit4.c: ... here.
1494         * elf/tst-audit5.c: Move to ...
1495         * sysdeps/x86_64/tst-audit5.c: ... here.
1496         * elf/tst-audit6.c: Move to ...
1497         * sysdeps/x86_64/tst-audit6.c: ... here.
1498         * elf/tst-audit7.c: Move to ...
1499         * sysdeps/x86_64/tst-audit7.c: ... here.
1500         * elf/tst-auditmod3a.c: Move to ...
1501         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
1502         * elf/tst-auditmod3b.c: Move to ...
1503         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
1504         * elf/tst-auditmod4a.c: Move to ...
1505         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
1506         * elf/tst-auditmod4b.c: Move to ...
1507         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
1508         * elf/tst-auditmod5a.c: Move to ...
1509         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
1510         * elf/tst-auditmod5b.c: Move to ...
1511         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
1512         * elf/tst-auditmod6a.c: Move to ...
1513         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
1514         * elf/tst-auditmod6b.c: Move to ...
1515         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
1516         * elf/tst-auditmod6c.c: Move to ...
1517         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
1518         * elf/tst-auditmod7a.c: Move to ...
1519         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
1520         * elf/tst-auditmod7b.c: Move to ...
1521         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
1522
1523 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1524
1525         [BZ #15366]
1526         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
1527         define unconditionally.
1528         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
1529         define unconditionally.
1530         (INT8_C, INT16_C, etc.): Likewise.
1531
1532 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
1533
1534         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
1535         __ehdr_start with hidden visibility.
1536
1537         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
1538
1539 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
1540
1541         * math/libm-test.inc (cos_test): Use accurate hex constants.
1542         (sincost_test): Likewise.
1543
1544 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * math/libm-test.inc (catan_test): Add more tests.
1547         (catanh_test): Likewise.
1548
1549         * math/s_catanf.c (__catanf): Use suffixed floating-point
1550         constants.
1551         * math/s_catanhf.c (__catanhf): Likewise.
1552         * math/s_catanhl.c (__catanhl): Likewise.
1553         * math/s_catanl.c (__catanl): Likewise.
1554
1555         [BZ #15394]
1556         * math/s_catan.c (__catan): Calculate imaginary part of result
1557         with log1p not log unless computing log of number close to 0.
1558         * math/s_catanf.c (__catanf): Likewise.
1559         * math/s_catanl.c (__catanl): Likewise.
1560         * math/s_catanh.c (__catanh): Calculate real part of result with
1561         log1p not log unless computing log of number close to 0.
1562         * math/s_catanhf.c (__catanhf): Likewise.
1563         * math/s_catanhl.c (__catanhl): Likewise.
1564         * math/libm-test.inc (catan_test): Add more tests.
1565         (catanh_test): Likewise.
1566         * sysdeps/i386/fpu/libm-test-ulps: Update.
1567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1568
1569 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1570
1571         * benchtests/Makefile: Mention files in which fast and slow
1572         paths of math functions are implemented.
1573
1574 2013-04-23  Roland McGrath  <roland@hack.frob.com>
1575
1576         * sysdeps/posix/timespec_get.c: New file.
1577
1578 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1579
1580         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
1581         POWER.
1582         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
1583         for POWER.
1584         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
1585         powerpc/power5/fpu folders.
1586         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
1587         * benchtests/Makefile: Add modf testcase.
1588         * benchtests/bench-modf.c: New file: Benchmark test for mo
1589
1590 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1591
1592         [BZ #14888]
1593         * time/Makefile (tests): Add tst-strptime-whitespace.
1594         * time/strptime_l.c (get_number): Use ISSPACE.
1595         (__strptime_internal): Likewise.
1596         * time/tst-strptime-whitespace.c: New test case.
1597
1598 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1599
1600         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
1601         member.
1602         (_nss_files_init): Set it here.
1603
1604 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
1605
1606         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
1607         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
1608         unsigned.
1609
1610 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
1611
1612         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
1613
1614 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1615
1616         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
1617         size just once.
1618
1619 2013-04-21  David S. Miller  <davem@davemloft.net>
1620
1621         * po/ru.po: Update Russion translation from translation project.
1622
1623 2013-04-17  Adam Conrad  <adconrad@0c3.net>
1624
1625         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
1626         and setfsgid.
1627
1628 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
1629
1630         * configure.in: Remove i386 configure warning. Remove i386 case.
1631         * configure: Regenerate.
1632         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
1633         Add example to error message.
1634         * sysdeps/i386/configure: Regenerate.
1635
1636 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1637
1638         * benchtests/Makefile (bench): Add cos, tan, slowcos and
1639         slowtan.
1640         * benchtests/cos-inputs: New file.
1641         * benchtests/slowcos-inputs: New file.
1642         * benchtests/slowcos.c: New file.
1643         * benchtests/slowtan-inputs: New file.
1644         * benchtests/slowtan.c: New file.
1645         * benchtests/tan-inputs: New file.
1646
1647 2013-04-16  Roland McGrath  <roland@hack.frob.com>
1648
1649         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
1650         considered kosher.
1651
1652 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
1653
1654         * benchtests/Makefile: Include cppflags-iterator.mk to add
1655         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
1656
1657         * Makefile.in (bench-clean): New target.
1658         * benchtests/Makefile (bench-clean): Likewise.
1659
1660 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
1661
1662         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
1663
1664 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1665
1666         * stdio-common/tstdiomisc.c: Fix coding-style violation.
1667
1668 2013-04-15  Andreas Schwab  <schwab@suse.de>
1669
1670         * nscd/grpcache.c (cache_addgr): Properly check for short write.
1671         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1672         * nscd/pwdcache.c (cache_addpw): Likewise.
1673         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
1674         more than recsize.
1675
1676 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1677
1678         * benchtests/Makefile (bench): Write all output to
1679         bench-out.tmp together.
1680
1681 2013-04-15  Andreas Schwab  <schwab@suse.de>
1682
1683         * nscd/nscd.c (main): Don't fork again after closing files.
1684
1685 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1686
1687         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
1688
1689         * benchtests/Rules (bench-deps): Collect dependencies into a
1690         single variable.  Add Makefile to dependencies.
1691         ($(objpfx)bench-%.c): Depend on bench-deps.
1692
1693 2013-04-12  Roland McGrath  <roland@hack.frob.com>
1694             Xavier Roche  <roche+kml2@exalead.com>
1695
1696         [BZ #15361]
1697         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
1698         just that it's a file descriptor.
1699         * manual/llio.texi (Synchronizing AIO Operations): Update description
1700         for EBADF error from aio_fsync.
1701
1702 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1703
1704         * Rules (bench): Move target definition...
1705         * benchtests/Makefile: ... here.
1706
1707 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
1708
1709         * math/libm-test.inc (cos_test): Fix PI/2 test.
1710         (sincos_test): Likewise.
1711         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
1712         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
1713
1714 2013-04-11  Andreas Schwab  <schwab@suse.de>
1715
1716         [BZ #13988]
1717         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
1718         accept exponent character only when digits were seen.
1719         * stdio-common/Makefile (tests): Add bug26.
1720         * stdio-common/bug26.c: New file.
1721
1722         [BZ #14293]
1723         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
1724         non-freeable.
1725
1726 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1727
1728         * Makeconfig (rtld-prefix): Define built linker prefix.
1729         * Rules (run-bench): Use it.
1730         * math/Makefile (run-regen-ulps): Likewise.
1731
1732         * Rules (bench): Remove eval.
1733
1734 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1735             Roland McGrath  <roland@hack.frob.com>
1736             Ondrej Bilka  <neleai@seznam.cz>
1737
1738         [BZ #15346]
1739         * time/getdate.c: Include ctype.h and alloca.h.
1740         (__getdate_r): Trim leading and trailing spaces of input.
1741         * time/tst-getdate.c (tests): Add tests with leading and
1742         trailing spaces.
1743
1744 2013-04-08  Roland McGrath  <roland@hack.frob.com>
1745
1746         [BZ #14280]
1747         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
1748         when computing value.
1749
1750 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1751
1752         * math/README.libm-test (How can I generate "libm-test-ulps"?):
1753         Use testrun.sh to run libm tests.
1754
1755         [BZ #15309]
1756         * elf/dl-open.c (dl_open_worker): memset all of seen array.
1757
1758 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
1759
1760         [BZ #15264]
1761         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
1762
1763 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1764
1765         * Makefile.in (regen-ulps): New target.
1766         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
1767         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
1768         [ifneq (no,$(PERL)] (regen-ulps): New target.
1769         [ifeq (no,$(PERL)] (regen-ulps): New target.
1770         * math/libm-test.inc (ulps_file_name): Define.
1771         (output_dir): New variable.
1772         (options): Add "output-dir" option.
1773         (parse_opt): Handle 'o' case.
1774         (main): If output_dir is non-NULL use it as a prefix
1775         otherwise use "".
1776         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
1777
1778 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1779
1780         [BZ #10060, #10062]
1781         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
1782         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
1783         fail configure if __sync_val_compare_and_swap is not inlined.
1784         * sysdeps/i386/configure: Regenerate.
1785         * configure.in: Build for i686 when configured for i386.
1786         * configure: Regenerate.
1787         * README: Remove i386 reference.
1788
1789 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
1790
1791         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
1792         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1793
1794 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
1795
1796         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
1797         (lmsnanval): New variables.
1798         (F): Add conversion tests.
1799         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
1800         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
1801
1802         * stdio-common/tstdiomisc.c (F): Properly collect individual
1803         tests' results.
1804
1805         [BZ #14686, #15336]
1806         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
1807         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
1808         Instead, use input NaN values or generate a qNaN by arithmetic
1809         operation.  Also fix bugs to comply with the standard.
1810         * math/libm-test.inc (remainder_test): Add more tests.
1811
1812         [BZ #15335, #15342]
1813         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
1814         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
1815         input NaN values or generate a qNaN by arithmetic operation.
1816
1817         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
1818         unreachable code.
1819
1820         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
1821         definitions.
1822
1823 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
1824
1825         [BZ #14478]
1826         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
1827         underflowed result.
1828         * math/s_cexpf.c (__cexpf): Likewise.
1829         * math/s_cexpl.c (__cexpl): Likewise.
1830         * math/libm-test.inc (cexp_test): Add more tests.
1831
1832 2013-04-03  Andreas Schwab  <schwab@suse.de>
1833
1834         [BZ #15330]
1835         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
1836         order arrays from heap if bigger than alloca cutoff.
1837
1838 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1839
1840         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
1841         (SNAN_TESTS_double): Refer to GCC PR56831.
1842         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
1843         GCC PR56828.
1844
1845 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1846
1847         * Rules (bench): Move bench.out after the run is complete.
1848
1849         * Rules (bench): Echo currently running benchmark.
1850
1851         * benchtests/Makefile (bench): Add atan and slowatan.
1852         * benchtests/atan-inputs: New file.
1853         * benchtests/slowatan-inputs: New file.
1854         * benchtests/slowatan.c: New file.
1855
1856         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
1857         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
1858         its value.
1859
1860         [BZ #15305]
1861         * sysdeps/unix/sysv/linux/kernel-features.h
1862         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
1863         __ASSUME_XFS_RESTRICTED_CHOWN.
1864         * sysdeps/unix/sysv/linux/pathconf.c
1865         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1866         Save and restore errno.
1867
1868 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
1869
1870         [BZ #15327]
1871         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
1872         arguments using __kernel_casinh.
1873         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
1874         arguments using __kernel_casinhf.
1875         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
1876         arguments using __kernel_casinhl.
1877         * math/libm-test.inc (cacosh_test): Add more tests.
1878         * sysdeps/i386/fpu/libm-test-ulps: Update.
1879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1880
1881 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1882
1883         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
1884         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
1885
1886         * bench/Makefile (bench): Add sin and slowsin.
1887         * benchtests/sin-inputs: New file.
1888         * benchtests/slowsin-inputs: New file.
1889         * benchtests/slowsin.c: New file.
1890
1891         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
1892         (bench): Add slowexp and slowpow.
1893         (exp-ITER): Increase iterations.
1894         (pow-ITER): Likewise.
1895         * benchtests/exp-inputs: Change input.
1896         * benchtests/pow-inputs: Likewise.
1897         * benchtests/slowexp-inputs: New file.
1898         * benchtests/slowexp.c: New file.
1899         * benchtests/slowpow-inputs: New file.
1900         * benchtests/slowpow.c: New file.
1901
1902 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1903
1904         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
1905         instructions.
1906         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1907         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
1908         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1909         * benchtests/Makefile: Add rint benchtest.
1910         * benchtests/rint-inputs: Input for rint benchtest.
1911
1912 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
1913
1914         * Versions.def (libm): Add GLIBC_2.18.
1915         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
1916         hidden libm prototypes.
1917         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
1918         * math/Makefile (libm-calls): Add s_issignaling.
1919         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
1920         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
1921         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
1922         declaration.
1923         * math/math.h [__USE_GNU] (issignaling): New macro.
1924         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
1925         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
1926         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
1927         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
1928         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
1929         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
1930         * manual/arith.texi (issignaling): New section.
1931         * manual/libm-err-tab.pl (@all_functions): Update comment.
1932         * math/gen-libm-test.pl (parse_args): Apply special handling for
1933         issignaling.
1934         * math/libm-test.inc (print_float, issignaling_test): New
1935         functions.
1936         (check_float_internal): Add issignaling checks.
1937         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
1938         default definition.
1939         * sysdeps/powerpc/math-tests.h: New file.
1940         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
1941         tests.
1942         * math/test-snan.c (TEST_FUNC): Likewise.
1943
1944 2013-03-30  David S. Miller  <davem@davemloft.net>
1945
1946         * po/de.po: Update from translation team.
1947
1948 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
1949
1950         [BZ #10357]
1951         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1952         imaginary part less than 1.0 and real part less than 0.5
1953         specially.
1954         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1955         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1956         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
1957         (cacos_test): Add more tests.
1958         (casin_test): Likewise.
1959         (casinh_test): Likewise.
1960         * sysdeps/i386/fpu/libm-test-ulps: Update.
1961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1962
1963 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1964
1965         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
1966         ONE with its value.
1967
1968         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
1969         (__pow_mp): Replace ONE and MONE with their values.
1970         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1971         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
1972         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1973         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
1974         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1975         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1976
1977         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
1978
1979         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
1980         (__pow_mp): Replace ZERO and MZERO with their values.
1981         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1982         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1983         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
1984         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1985         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1986         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
1987         (__sqr): Likewise.
1988
1989         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
1990
1991         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
1992
1993 2013-03-28  Roland McGrath  <roland@hack.frob.com>
1994
1995         * include/stdlib.h [!SHARED] (__call_tls_dtors):
1996         Declare with __attribute__ ((weak)).
1997         * stdlib/exit.c (__libc_atexit) [!SHARED]:
1998         Call __call_tls_dtors only if it's not NULL.
1999
2000 2013-03-28  Roland McGrath  <roland@hack.frob.com>
2001
2002         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
2003         didn't do it already, then set _dl_phdr and _dl_phnum based on the
2004         magic __ehdr_start linker symbol if it's defined.
2005         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
2006         them up here if it was already done.
2007
2008         * elf/dl-support.c (_dl_phdr): Make pointer to const.
2009         (_dl_aux_init): Use const in cast when setting it.
2010         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
2011         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
2012         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
2013
2014         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
2015         Declare them here.
2016         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
2017         * csu/libc-tls.c: Nor here.
2018         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
2019
2020         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
2021         (__libc_message): Never call vsyslog.
2022
2023 2013-03-28  Alan Modra  <amodra@gmail.com>
2024
2025         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
2026         Define as empty.
2027         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
2028         Likewise.
2029
2030 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2031
2032         [BZ #15214]
2033         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
2034         underflow.
2035         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2036
2037 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2038
2039         [BZ #15304]
2040         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
2041         Don't add gid passed as argument.
2042
2043         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
2044
2045 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
2046
2047         [BZ #15307]
2048         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2049         imaginary part between 1.0 and 1.5 and real part less than 0.5
2050         specially.
2051         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2052         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2053         * math/libm-test.inc (cacos_test): Add more tests.
2054         (casin_test): Likewise.
2055         (casinh_test): Likewise.
2056         * sysdeps/i386/fpu/libm-test-ulps: Update.
2057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2058
2059 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2060
2061         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
2062         constants.
2063         (norm): Likewise.
2064         (denorm): Likewise.
2065         (__dbl_mp): Likewise.
2066         (add_magnitudes): Likewise.
2067         (sub_magnitudes): Likewise.
2068         (__add): Likewise.
2069         (__sub): Likewise.
2070         (__mul): Likewise.
2071         (__sqr): Likewise.
2072         (__inv): Likewise.
2073         (__dvd): Likewise.
2074
2075         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
2076         commented code.
2077         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
2078         (__dubcos): Likewise.
2079         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
2080         (__ieee754_acos): Likewise.
2081         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
2082         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
2083         (__exp1): Likewise.
2084         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
2085         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
2086         (log1): Likewise.
2087         (my_log2): Likewise.
2088         (checkint): Likewise.
2089         * sysdeps/ieee754/dbl-64/e_remainder.c
2090         (__ieee754_remainder): Likewise.
2091         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
2092         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
2093         (bsloww): Likewise.
2094         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
2095
2096         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2097         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
2098         MANTISSA_STORE_T to store computations on mantissa.  Use
2099         macros for rounding and division.
2100         (denorm): Likewise.
2101         (__dbl_mp): Likewise.
2102         (add_magnitudes): Likewise.
2103         (sub_magnitudes): Likewise.
2104         (__mul): Likewise.
2105         (__sqr): Likewise.
2106         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2107         powers of two in terms of TWOPOW macro.
2108         (mp_no): Make type of mantissa as MANTISSA_T.
2109         [!RADIXI]: Define RADIXI.
2110         [!TWO52]: Define TWO52.
2111         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2112
2113 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2114
2115         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
2116         llroundl symbol when building for PPC32.
2117
2118 2013-03-24  Mark H Weaver  <mhw@netris.org>
2119
2120         * manual/arith.texi (Normalization Functions): Fix prototypes for
2121         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
2122
2123 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2124
2125         [BZ #13889]
2126         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
2127         high value to check if expl overflow.
2128         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
2129         to check for underflow and overflow.
2130         * math/libm-test.inc: Add exp test.
2131
2132 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
2133
2134         [BZ #11120]
2135         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
2136         with NOT_IN_libc.
2137
2138 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2139
2140         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
2141         symbol.
2142
2143 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2144
2145         * math/gen-libm-test.pl (parse_args, special_functions): Properly
2146         wrap blocks consisting of several statements.
2147
2148         * sysdeps/generic/math-tests.h: New file.
2149         * sysdeps/i386/fpu/math-tests.h: Likewise.
2150         * math/test-snan.c: Include it.
2151         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
2152
2153 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2154
2155         [BZ #15285]
2156         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
2157         (__ieee754_j0l): Do not improve calculations using cos of twice
2158         input for inputs above LDBL_MAX / 2.0L.
2159         (__ieee754_y0l): Likewise.
2160         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
2161         (__ieee754_j1l): Do not improve calculations using cos of twice
2162         input for inputs above LDBL_MAX / 2.0L.
2163         (__ieee754_y1l): Likewise.
2164         * math/libm-test.inc (j0_test): Add another test.
2165         (j1_test): Likewise.
2166         (y0_test): Likewise.
2167         (y1_test): Likewise.
2168         * sysdeps/i386/fpu/libm-test-ulps: Update.
2169
2170 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2171
2172         * Rules ($(objpfx)bench-%.c): Include code from a C source
2173         file.
2174
2175 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
2176
2177         [BZ #15287]
2178         * math/k_casinh.c (__kernel_casinh): Handle arguments with
2179         imaginary part 1.0 and real part less than 0.5 specially.
2180         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2181         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2182         * math/libm-test.inc (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-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2189
2190         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
2191         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
2192
2193 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
2194
2195         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
2196         * config.make.in (config-cflags-sse4): Remove variable.
2197         (config-cflags-avx): Likewise.
2198         (config-cflags-sse2avx): Likewise.
2199         (config-cflags-novzeroupper): Likewise.
2200         (config-asflags-i686): Likewise.
2201         (have-mfma4): Likewise.
2202         (have-as-vis3): Likewise.
2203         (MIG): Likewise.
2204         * configure.in (MIG): Do not AC_SUBST.
2205         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
2206         (libc_cv_cc_sse4): Do not AC_SUBST.
2207         (libc_cv_cc_avx): Likewise.
2208         (libc_cv_cc_sse2avx): Likewise.
2209         (libc_cv_cc_novzeroupper): Likewise.
2210         (libc_cv_cc_fma4): Likewise.
2211         (libc_cv_as_i686): Likewise.
2212         (libc_cv_sparc_as_vis3): Likewise.
2213         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
2214         LIBC_CONFIG_VAR.
2215         (config-asflags-i686): Likewise.
2216         (config-cflags-avx): Likewise.
2217         (config-cflags-sse2avx): Likewise.
2218         (have-mfma4): Likewise.
2219         (config-cflags-novzeroupper): Likewise.
2220         * sysdeps/mach/configure.in (MIG): Likewise.
2221         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
2222         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
2223         LIBC_CONFIG_VAR.
2224         (config-cflags-avx): Likewise.
2225         (config-cflags-sse2avx): Likewise.
2226         (have-mfma4): Likewise.
2227         (config-cflags-novzeroupper): Likewise.
2228         * configure: Regenerated.
2229         * sysdeps/i386/configure: Likewise.
2230         * sysdeps/mach/configure: Likewise.
2231         * sysdeps/sparc/configure: Likewise.
2232         * sysdeps/x86_64/configure: Likewise.
2233
2234 2013-03-20  Roland McGrath  <roland@hack.frob.com>
2235
2236         [BZ #14812]
2237         * locale/programs/localedef.c (options): Put N_ translation marker
2238         on argument names, not just descriptions.
2239
2240 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2241
2242         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
2243
2244 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
2245
2246         [BZ #14176]
2247         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
2248
2249 2013-03-19  Roland McGrath  <roland@hack.frob.com>
2250
2251         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
2252         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
2253         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
2254         [!BEFORE_ABORT] (before_abort): New function.
2255         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
2256         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
2257         (writev_for_fatal): New function.
2258         (WRITEV_FOR_FATAL): New macro; call that.
2259         (backtrace_and_maps): New function.
2260         (BEFORE_ABORT): New macro; call that.
2261         (struct str_list): Type removed.
2262         (__libc_message, __libc_fatal): Functions removed.
2263         Include <sysdeps/posix/libc_fatal.c> instead.
2264
2265 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
2266
2267         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
2268         constants.
2269         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
2270         double constants.
2271
2272 2013-03-19  Andreas Schwab  <schwab@suse.de>
2273
2274         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
2275         * sysdeps/gnu/configure: Regenerate.
2276
2277         * configure.in: Substitute libc_cv_rtlddir.
2278         * configure: Regenerate.
2279         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
2280         * Makeconfig (rtlddir, inst_rtlddir): New variables.
2281         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
2282         * elf/Makefile (install-others, CFLAGS-interp.c)
2283         (ldso_install, common-ldd-rewrite): Likewise.
2284         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
2285         $(inst_slibdir)/$(rtld-installed-name).
2286         * scripts/rellns-sh: Add -p option.
2287         * Makerules (make-shlib-link): Use rellns-sh to get relative name
2288         for source.
2289
2290 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2291
2292         * manual/nptl.texi: Renamed to ...
2293         * manual/threads.texi: ... this.
2294         * manual/Makefile (chapters): Update.
2295
2296 2013-03-18  Roland McGrath  <roland@hack.frob.com>
2297
2298         [BZ #14812]
2299         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
2300         on argument names, not just descriptions.
2301         * malloc/memusagestat.c (options): Likewise.
2302         * nss/getent.c (options): Likewise.
2303
2304 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
2305
2306         [BZ #14812]
2307         * iconv/iconv_prog.c (options): Put N_ translation marker
2308         on argument names, not just descriptions.
2309         * iconv/iconvconfig.c (options): Likewise.
2310
2311 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
2312
2313         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
2314         implementation which is faster on all x86_64 architectures.
2315         Tested on AMD, Intel Nehalem, SNB, IVB.
2316         * sysdeps/x86_64/strnlen.S: Likewise.
2317
2318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2319         Remove all multiarch strlen and strnlen versions.
2320         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
2321         Remove strlen and strnlen related parts.
2322
2323         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
2324         Inline strlen part.
2325         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
2326
2327         * sysdeps/x86_64/multiarch/strlen.S: Remove.
2328         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
2329         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
2330         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
2331         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2332         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
2333
2334 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
2335
2336         * manual/memory.texi (Malloc Tunable Parameters):
2337         Sort parameters alphabetically. Add comments for missing entries.
2338
2339 2013-03-17  David S. Miller  <davem@davemloft.net>
2340
2341         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2342
2343 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
2344
2345         [BZ #15283]
2346         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
2347         for arguments at most half maximum finite value.
2348         * math/libm-test.inc (j0_test): Add more tests.
2349         (j1_test): Likewise.
2350         (y0_test): Likewise.
2351         (y1_test): Likewise.
2352         * sysdeps/i386/fpu/libm-test-ulps: Update.
2353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2354
2355         [BZ #14155]
2356         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
2357         1 / x and functions P and Q for arguments above 0x1p256L.
2358         (__ieee754_y0l): Likewise.
2359         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2360         (__ieee754_y1l): Likewise.
2361         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
2362         (j1_test): Likewise.
2363         (y0_test): Likewise.
2364         (y1_test): Likewise.
2365
2366 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
2367
2368         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
2369         variable.
2370
2371 2013-03-15  Roland McGrath  <roland@hack.frob.com>
2372
2373         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
2374         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
2375         zero since it's initialized to EXEC_PAGESIZE.
2376
2377         * sysdeps/unix/sysv/linux/ldsodefs.h
2378         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
2379         * sysdeps/generic/ldsodefs.h: ... here.
2380
2381 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
2382
2383         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
2384
2385         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
2386         math/test-snan.c.
2387         * math/test-snan.c: Renamed from
2388         sysdeps/powerpc/fpu/test-powerpc-snan.c.
2389         * math/Makefile (tests): Add test-snan.
2390         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
2391         test-powerpc-snan.
2392
2393         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
2394         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
2395         functions.
2396         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
2397         __builtin_nan family of functions.
2398         * math/libm-test.inc (initialize): Initialize qnan_value with
2399         __builtin_nan family of functions.
2400         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
2401         Remove variables.
2402         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
2403         Remove functions.
2404         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
2405         storage class.  Initialize qNaN_var and sNaN_var with
2406         __builtin_nan and __builtin_nans families of functions,
2407         respectively.
2408
2409         * math/libm-test.inc (acosh_test): Also test with qNaN input.
2410         (sqrt_test): Remove duplicate test with qNaN input.
2411         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
2412         (round_test, signbit_test, significand_test): Note missing +/-Inf
2413         as well as qNaN tests.
2414
2415         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
2416         qNaN_var.  Fix a few strings, too.
2417         * math/libm-test.inc (nan_value): Rename to qnan_value.
2418         * math/gen-libm-test.pl (%beautify): Adjust to that.
2419         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
2420         * math/test-misc.c (main): Likewise.
2421         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
2422         to __qnan_bytes, and __qnan_union, respectively.
2423         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
2424         Likewise.
2425         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
2426         and lqnanval, respectively.
2427         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
2428         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
2429         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
2430         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
2431
2432         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
2433         * math/test-misc.c (main) [__x86_64__]: Enable test for long
2434         doubles.
2435
2436         * math/test-misc.c (main): Fix copy'n'pastos.
2437         * misc/tst-efgcvt.c (special): Likewise.
2438
2439         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
2440         Remove declarations.
2441
2442 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2443
2444         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
2445         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
2446         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
2447         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
2448
2449 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2450
2451         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
2452         macro to return vdso values correctly in IFUNC implementations.
2453         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2454         Optimization by using IFUNC.
2455
2456 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2457             Richard Henderson  <rth@redhat.com>
2458             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2459
2460         * Makefile.in (bench): New target.
2461         * NEWS: Mention the benchmark framework.
2462         * Rules (bench): Likewise.
2463         (binaries-bench): Generate binaries for functions to
2464         benchmark.
2465         * benchtests/Makefile: New makefile for benchmark tests.
2466         * benchtests/bench-skeleton.c: New skeleton file for benchmark
2467         programs.
2468         * benchtests/exp-inputs: New input file for EXP function.
2469         * benchtests/pow-inputs: New input file for POW function.
2470         * scripts/bench.pl: New script to generate source files for
2471         benchmark programs.
2472
2473 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2474
2475         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
2476         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
2477         computations on mantissa.  Use macros for rounding and
2478         division.
2479         (denorm): Likewise.
2480         (__dbl_mp): Likewise.
2481         (add_magnitudes): Likewise.
2482         (sub_magnitudes): Likewise.
2483         (__mul): Likewise.
2484         (__sqr): Likewise.
2485         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
2486         powers of two in terms of TWOPOW macro.
2487         (mp_no): Make type of mantissa as MANTISSA_T.
2488         [!RADIXI]: Define RADIXI.
2489         [!TWO52]: Define TWO52.
2490         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
2491
2492         * manual/nptl.texi (cindex): Modify threads to pthreads.
2493
2494 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
2495
2496         * sysdeps/x86_64/preconfigure: Regenerated.
2497
2498 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
2499
2500         [BZ #14155]
2501         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
2502         0x1p28 and above.
2503         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
2504         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
2505         0x1p28 and above.
2506         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
2507         * math/libm-test.inc (j0_test): Do not allow one spurious
2508         underflow exception.
2509         (y1_test): Likewise.
2510
2511 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2512
2513         * manual/Makefile (chapters): Add nptl.
2514         * manual/debug.texi (Debugging Support): Add link to Threads
2515         chapter.
2516         * manual/nptl.texi: New file.
2517
2518         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
2519
2520 2013-03-14  Petr Baudis  <pasky@ucw.cz>
2521
2522         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
2523         for non-NULL pointer before the memory validity test. Pointed
2524         out by Holger Brunck <holger.brunck@keymile.com>.
2525
2526 2013-03-13  Andreas Schwab  <schwab@suse.de>
2527
2528         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
2529         instead of .os.
2530
2531 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
2532
2533         * timezone/zic.c: Update from tzcode 2013b.
2534
2535 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
2536
2537         * manual/install.texi (Configuring and compiling):
2538         Mention i686 and i586.
2539         * INSTALL: Regenerate.
2540
2541 2013-03-12  Roland McGrath  <roland@hack.frob.com>
2542
2543         * sysdeps/init_array/elf-init.c: New file.
2544         * csu/elf-init.c
2545         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
2546         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
2547
2548         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
2549         __gmon_start__ as global, but as static with a .preinit_array pointer.
2550         * sysdeps/init_array/gmon-start.c: New file.  Use that.
2551         * sysdeps/init_array/crti.S: New file, empty except for comments.
2552         * sysdeps/init_array/crtn.S: Likewise.
2553
2554 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
2555
2556         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
2557         definining bcopy.
2558         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2559         Remove Prefer_SSE_for_memop.
2560         * sysdeps/x86_64/multiarch/init-arch.h: Remove
2561         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
2562         HAS_PREFER_SSE_FOR_MEMOP.
2563         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2564         memset-x86-64.
2565         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2566         Remove bzero, memset ifunc support.
2567         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
2568         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
2569         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2570         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2571
2572 2013-03-11  Andreas Schwab  <schwab@suse.de>
2573
2574         [BZ #15234]
2575         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
2576         by SHLIB_COMPAT.
2577         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
2578         (GLIBC_2.16): Remove pthread_atfork.
2579
2580 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
2581
2582         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
2583         (ptestcases.h): Likewise.
2584
2585 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2586
2587         * Makeconfig ($(common-objpfx)config.status): Depend on
2588         sysdeps/*/preconfigure{,.in} too.
2589
2590 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
2591
2592         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
2593         (__free_hook): Use void * instead of __malloc_ptr_t.
2594         (__malloc_hook): Likewise.
2595         (__realloc_hook): Likewise.
2596         (__memalign_hook): Likewise.
2597         (__after_morecore_hook): Likewise.
2598         * malloc/arena.c (save_malloc_hook): Likewise.
2599         (save_free_hook): Likewise.
2600         * malloc/hooks.c (malloc_hook_ini): Likewise.
2601         (realloc_hook_ini): Likewise.
2602         (memalign_hook_ini): Likewise.
2603         * malloc/malloc.c (malloc_hook_ini): Likewise.
2604         (realloc_hook_ini): Likewise.
2605         (memalign_hook_ini): Likewise.
2606         (__free_hook): Likewise.
2607         (__malloc_hook): Likewise.
2608         (__realloc_hook): Likewise.
2609         (__memalign_hook): Likewise.
2610         (__libc_malloc): Likewise.
2611         (__libc_free): Likewise.
2612         (__libc_realloc): Likewise.
2613         (__libc_memalign): Likewise.
2614         (__libc_valloc): Likewise.
2615         (__libc_pvalloc): Likewise.
2616         (__libc_calloc): Likewise.
2617         (__posix_memalign): Likewise.
2618         * malloc/morecore.c (__sbrk): Likewise.
2619         (__default_morecore): Likewise.
2620
2621         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
2622
2623         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
2624         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
2625         __malloc_ptrdiff_t.
2626
2627         * malloc/malloc.h (__malloc_size_t): Remove macro.
2628         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
2629         __malloc_size_t.
2630         (old_memalign_hook): Likewise.
2631         (old_realloc_hook): Likewise.
2632         (struct hdr): Likewise.
2633         (flood): Likewise.
2634         (mallochook): Likewise.
2635         (memalignhook): Likewise.
2636         (reallochook): Likewise.
2637         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
2638         (tr_old_realloc_hook): Likewise.
2639         (tr_old_memalign_hook): Likewise.
2640         (tr_mallochook): Likewise.
2641         (tr_reallochook): Likewise.
2642         (tr_memalignhook): Likewise.
2643
2644 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2645
2646         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
2647         default_ldbl_pack and using as default implementation.
2648         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
2649         implementation.
2650         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
2651         redundant definition.
2652         (ldbl_insert_mantissa): Likewise.
2653         (ldbl_canonicalize): Likewise.
2654         (ldbl_nearbyint): Likewise.
2655         (ldbl_pack): Rename to ldbl_pack_ppc.
2656         (ldbl_unpack): Rename to ldbl_unpack_ppc.
2657         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
2658         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
2659
2660 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2661
2662         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
2663         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
2664         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
2665         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
2666         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
2667         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
2668         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
2669         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
2670
2671 2013-03-07  Andreas Jaeger  <aj@suse.de>
2672
2673         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2674         bits/mman-linux.h.
2675
2676 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2677
2678         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
2679         Include mpa.h and declare __MPEXP.
2680         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
2681         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2682         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2683         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
2684         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2685         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
2686         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
2687
2688         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
2689         (__slowpow): Use long double EXPL and LOGL functions to
2690         compute POW.
2691         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
2692         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2693         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
2694         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
2695         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
2696         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
2697
2698         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
2699         intermediate variable to calculate exponent.
2700         (__sqr): Likewise.
2701         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2702         Likewise.
2703         (__sqr): Likewise.
2704
2705         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
2706         [!NO__SQR]: Define __sqr.
2707         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
2708         and NO__SQR.  Remove all code except __mul and __sqr.  Include
2709         sysdeps/ieee754/dbl-64/mpa.c.
2710         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2711
2712         [BZ #12723]
2713         * posix/Makefile (tests): Add tst-pathconf.
2714         * posix/tst-pathconf.c: New test case.
2715         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
2716         _PC_PIPE_BUF.
2717         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2718
2719 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
2720
2721         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
2722
2723 2013-03-06  Andreas Jaeger  <aj@suse.de>
2724
2725         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
2726         definition via __MAP_ANONYMOUS.
2727
2728         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
2729         it's not part of Linux headers.
2730
2731         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
2732         (MAP_HUGE_MASK): Define.
2733
2734         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2735         Define.
2736         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2737         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2738         Define.
2739         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2740         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
2741         Define.
2742         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2743         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
2744         Define.
2745         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
2746
2747         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
2748         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
2749         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
2750         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
2751         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
2752         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
2753
2754         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
2755         Handle f2fs.
2756
2757         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2758         Handle f2fs and efivarfs.
2759
2760         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
2761         f2fs.
2762
2763         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
2764         (EFIVARFS_MAGIC): Add.
2765         (F2FS_LINK_MAX): Add.
2766
2767 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2768
2769         * stdio-common/vfprintf.c: Replace __builtin_expect with
2770         __glibc_unlikely.
2771
2772 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
2773
2774         [BZ #13550]
2775         * sysdeps/generic/bp-sym.h: Remove file.
2776         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
2777         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
2778         <bp-sym.h> and <bp-asm.h>.
2779         (__longjmp): Don't use BP_SYM.
2780         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
2781         and <bp-asm.h>.
2782         (memcpy): Don't use BP_SYM.
2783         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
2784         <bp-sym.h> and <bp-asm.h>.
2785         (memcpy): Don't use BP_SYM.
2786         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
2787         <bp-asm.h>.
2788         (memcpy): Don't use BP_SYM.
2789         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
2790         <bp-asm.h>.
2791         (memset): Don't use BP_SYM.
2792         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2793         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2794         (__bzero): Don't use BP_SYM.
2795         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2796         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2797         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
2798         <bp-sym.h> and <bp-asm.h>.
2799         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2800         pointers.
2801         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
2802         <bp-sym.h> and <bp-asm.h>.
2803         (memcpy): Don't use BP_SYM.
2804         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
2805         <bp-sym.h> and <bp-asm.h>.
2806         (memset): Don't use BP_SYM.
2807         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2808         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2809         (__bzero): Don't use BP_SYM.
2810         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2811         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2812         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
2813         <bp-sym.h> and <bp-asm.h>.
2814         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2815         pointers.
2816         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
2817         <bp-sym.h> and <bp-asm.h>.
2818         (memcpy): Don't use BP_SYM.
2819         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
2820         <bp-sym.h> and <bp-asm.h>.
2821         (memset): Don't use BP_SYM.
2822         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2823         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2824         (__bzero): Don't use BP_SYM.
2825         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
2826         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
2827         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
2828         <bp-sym.h> and <bp-asm.h>.
2829         (__memchr): Don't use BP_SYM.
2830         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
2831         <bp-sym.h> and <bp-asm.h>.
2832         (memcmp): Don't use BP_SYM.  Remove comment about bounded
2833         pointers.
2834         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
2835         <bp-sym.h> and <bp-asm.h>.
2836         (memcpy): Don't use BP_SYM.
2837         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
2838         <bp-sym.h> and <bp-asm.h>.
2839         (__mempcpy): Don't use BP_SYM.
2840         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
2841         <bp-sym.h> and <bp-asm.h>.
2842         (__memrchr): Don't use BP_SYM.
2843         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
2844         <bp-sym.h> and <bp-asm.h>.
2845         (memset): Don't use BP_SYM.
2846         (__bzero): Likewise.
2847         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
2848         <bp-sym.h> and <bp-asm.h>.
2849         (__rawmemchr): Don't use BP_SYM.
2850         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
2851         <bp-sym.h> and <bp-asm.h>.
2852         (__STRCMP): Don't use BP_SYM.
2853         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
2854         <bp-sym.h> and <bp-asm.h>.
2855         (strchr): Don't use BP_SYM.
2856         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
2857         <bp-sym.h> and <bp-asm.h>.
2858         (__strchrnul): Don't use BP_SYM.
2859         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
2860         <bp-sym.h> and <bp-asm.h>.
2861         (strlen): Don't use BP_SYM.
2862         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
2863         <bp-sym.h> and <bp-asm.h>.
2864         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2865         pointers.
2866         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
2867         <bp-sym.h> and <bp-asm.h>.
2868         (__strnlen): Don't use BP_SYM.
2869         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
2870         <bp-sym.h> and <bp-asm.h>.
2871         (__GI__setjmp): Don't use BP_SYM.
2872         (_setjmp): Likewise.
2873         (__sigsetjmp): Likewise.
2874         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
2875         (L(start_addresses)): Don't use BP_SYM.
2876         (_start): Likewise.
2877         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
2878         <bp-asm.h>.
2879         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
2880         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
2881         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2882         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2883         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
2884         <bp-asm.h>.
2885         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
2886         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
2887         about bounded pointers.
2888         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2889         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2890         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
2891         <bp-asm.h>.
2892         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2893         about bounded pointers.  Remove GKM FIXME comments.
2894         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2895         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
2896         <bp-asm.h>.
2897         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
2898         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
2899         Remove GKM FIXME comments.
2900         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2901         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2902         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
2903         <bp-asm.h>.
2904         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
2905         about bounded pointers.  Remove GKM FIXME comment.
2906         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
2907         and <bp-asm.h>.
2908         (strncmp): Don't use BP_SYM.  Remove comment about bounded
2909         pointers.
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
2911         <bp-sym.h> and <bp-asm.h>.
2912         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
2914         <bp-sym.h> and <bp-asm.h>.
2915         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2916         comment.
2917
2918 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2919
2920         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
2921         call free(NULL).
2922
2923 2013-03-05  David S. Miller  <davem@davemloft.net>
2924
2925         * po/es.po: Update from translation team.
2926
2927 2013-03-05  Andreas Jaeger  <aj@suse.de>
2928
2929         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
2930         <bits/mman-linux.h>.
2931         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2932         is fine.
2933         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
2934         <bits/mman-linux.h> to end of file.
2935         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2936         is fine.
2937         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
2938         <bits/mman-linux.h> to end of file.
2939         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
2940         is fine.
2941         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
2942         <bits/mman-linux.h> to end of file.
2943
2944         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
2945         (MCL_CURRENT, MCL_FUTURE): Define here.
2946
2947 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2948
2949         [BZ #15232]
2950         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
2951         attribute_hidden.
2952         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2953
2954 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2955
2956         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
2957         fourth parameter needed for rt_sigprocmask syscall.
2958         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
2959         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2960         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
2961         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2962         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2963         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
2964
2965 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
2966
2967         [BZ #13550]
2968         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
2969         comment about bounded pointers.
2970         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
2971         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
2972
2973 2013-03-04  Andreas Jaeger  <aj@suse.de>
2974
2975         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
2976         common definitions.
2977
2978         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
2979         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2980         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
2981         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2982         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2983         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2984
2985 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2986
2987         [BZ #15055]
2988         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
2989         __ieee754_sqrl instead of __sqrl.
2990
2991 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
2992
2993         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
2994         * sysdeps/powerpc/fpu_control.h: ... here.
2995         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
2996         * sysdeps/powerpc/bits/fenvinline.h: ... here.
2997         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
2998         * sysdeps/powerpc/bits/mathinline.h: ... here.
2999
3000 2013-03-01  Roland McGrath  <roland@hack.frob.com>
3001
3002         * elf/dl-hwcaps.c (_dl_important_hwcaps):
3003         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
3004         to just [NEED_DL_SYSINFO_DSO].
3005         * elf/dl-support.c: Likewise.
3006         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
3007         * elf/rtld.c (dl_main): Likewise.
3008         * elf/setup-vdso.h (setup_vdso): Likewise.
3009         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
3010         * sysdeps/unix/sysv/linux/dl-sysdep.c
3011         (_dl_discover_osversion): Likewise.
3012
3013 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
3014
3015         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
3016         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3017
3018 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
3019
3020         * NEWS: Mention libm performance improvements and non-x86 PI
3021         futex support.
3022
3023         * csu/libc-start.c (__pthread_initialize_minimal): Change
3024         function arguments.
3025         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
3026
3027 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
3028
3029         [BZ #13550]
3030         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
3031         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
3032         <bp-sym.h> and <bp-asm.h>.
3033         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3034         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
3035         and <bp-asm.h>.
3036         (memcpy): Don't use BP_SYM.
3037         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
3038         <bp-asm.h>.
3039         (__mpn_add_n): Don't use BP_SYM.
3040         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
3041         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
3042         and <bp-asm.h>.
3043         (__mpn_addmul_1): Don't use BP_SYM.
3044         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3045         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
3046         <bp-sym.h>.
3047         (_setjmp): Don't use BP_SYM.
3048         (__novmx_setjmp): Likewise.
3049         (__GI__setjmp): Likewise.
3050         (__vmx_setjmp): Likewise.
3051         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
3052         <bp-sym.h>.
3053         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
3054         (__bzero): Don't use BP_SYM.
3055         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
3056         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
3057         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
3058         <bp-sym.h> and <bp-asm.h>.
3059         (memcpy): Don't use BP_SYM.
3060         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
3061         <bp-sym.h> and <bp-asm.h>.
3062         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3063         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
3064         <bp-sym.h> and <bp-asm.h>.
3065         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
3066         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
3067         <bp-asm.h>.
3068         (__mpn_lshift): Don't use BP_SYM.
3069         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3070         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
3071         <bp-asm.h>.
3072         (memset): Don't use BP_SYM.
3073         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
3074         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
3075         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
3076         <bp-asm.h>.
3077         (__mpn_mul_1): Don't use BP_SYM.
3078         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3079         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
3080         <bp-sym.h> and <bp-asm.h>.
3081         (memcmp): Don't use BP_SYM.
3082         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
3083         <bp-sym.h> and <bp-asm.h>.
3084         (memcpy): Don't use BP_SYM.
3085         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
3086         <bp-sym.h> and <bp-asm.h>.
3087         (memset): Don't use BP_SYM.
3088         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
3089         <bp-sym.h> and <bp-asm.h>.
3090         (strncmp): Don't use BP_SYM.
3091         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
3092         <bp-sym.h> and <bp-asm.h>.
3093         (memcpy): Don't use BP_SYM.
3094         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
3095         <bp-sym.h> and <bp-asm.h>.
3096         (memset): Don't use BP_SYM.
3097         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
3098         <bp-sym.h> and <bp-asm.h>.
3099         (__memchr): Don't use BP_SYM.
3100         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
3101         <bp-sym.h> and <bp-asm.h>.
3102         (memcmp): Don't use BP_SYM.
3103         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
3104         <bp-sym.h> and <bp-asm.h>.
3105         (memcpy): Don't use BP_SYM.
3106         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
3107         <bp-sym.h> and <bp-asm.h>.
3108         (__mempcpy): Don't use BP_SYM.
3109         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
3110         <bp-sym.h> and <bp-asm.h>.
3111         (__memrchr): Don't use BP_SYM.
3112         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
3113         <bp-sym.h> and <bp-asm.h>.
3114         (memset): Don't use BP_SYM.
3115         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
3116         <bp-sym.h> and <bp-asm.h>.
3117         (__rawmemchr): Don't use BP_SYM.
3118         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
3119         <bp-sym.h> and <bp-asm.h>.
3120         (__STRCMP): Don't use BP_SYM.
3121         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
3122         <bp-sym.h> and <bp-asm.h>.
3123         (strchr): Don't use BP_SYM.
3124         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
3125         <bp-sym.h> and <bp-asm.h>.
3126         (__strchrnul): Don't use BP_SYM.
3127         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
3128         <bp-sym.h> and <bp-asm.h>.
3129         (strlen): Don't use BP_SYM.
3130         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
3131         <bp-sym.h> and <bp-asm.h>.
3132         (strncmp): Don't use BP_SYM.
3133         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
3134         <bp-sym.h> and <bp-asm.h>.
3135         (__strnlen): Don't use BP_SYM.
3136         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
3137         <bp-asm.h>.
3138         (__mpn_rshift): Don't use BP_SYM.
3139         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3140         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
3141         <bp-sym.h> and <bp-asm.h>.
3142         (__sigsetjmp): Don't use BP_SYM.
3143         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
3144         (L(start_addresses)): Don't use BP_SYM.
3145         (_start): Likewise.
3146         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
3147         <bp-asm.h>.
3148         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
3149         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3150         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3151         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
3152         <bp-asm.h>.
3153         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
3154         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3155         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3156         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
3157         <bp-asm.h>.
3158         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3159         comments.
3160         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3161         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
3162         <bp-asm.h>.
3163         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
3164         FIXME comments.
3165         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3166         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
3167         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
3168         <bp-asm.h>.
3169         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
3170         comment.
3171         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
3172         and <bp-asm.h>.
3173         (strncmp): Don't use BP_SYM,
3174         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
3175         <bp-asm.h>.
3176         (__mpn_sub_n): Don't use BP_SYM.
3177         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3178         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
3179         and <bp-asm.h>.
3180         (__mpn_submul_1): Don't use BP_SYM.
3181         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
3183         <bp-sym.h> and <bp-asm.h>.
3184         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
3185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
3186         <bp-sym.h> and <bp-asm.h>.
3187         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
3188         comment.
3189
3190 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3191
3192         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
3193         Use ZK to minimize writes to Z.
3194         (sub_magnitudes): Simplify code a bit.
3195         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
3196         Use ZK to minimize writes to Z.
3197         (sub_magnitudes): Simplify code a bit.
3198
3199 2013-02-27  Roland McGrath  <roland@hack.frob.com>
3200
3201         * csu/gmon-start.c: Add special exception to license text.
3202
3203 2013-02-27  Richard Henderson  <rth@redhat.com>
3204
3205         * scripts/config.guess: Update from config.git.
3206         * scripts/config.sub: Likewise.
3207
3208 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3209
3210         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
3211
3212         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
3213
3214         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
3215
3216         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
3217
3218         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
3219
3220 2013-02-26  Roland McGrath  <roland@hack.frob.com>
3221
3222         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
3223         [$(build-shared = yes].
3224
3225 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3226
3227         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
3228         (__mul): Reduce iterations for calculating mantissa.
3229
3230         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
3231         MPTWO.
3232         (__mpranred): Likewise.
3233
3234         [BZ #15160]
3235         * malloc/memusagestat.c (main): Draw graphs for heap and stack
3236         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
3237
3238 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
3241         Define __attribute__.
3242
3243 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3244
3245         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
3246         unused.
3247         * posix/regex_internal.h (__attribute): Remove.
3248         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
3249         (re_string_context_at): Likewise.
3250         (bitset_not): Use __attribute__ and mark function as possibly
3251         unused.
3252         (bitset_merge): Likewise.
3253         (bitset_mask): Likewise.
3254         (re_string_char_size_at): Likewise.
3255         (re_string_wchar_at): Likewise.
3256         (re_string_elem_size_at): Likewise.
3257
3258 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3259
3260         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
3261         code.
3262         (cc32): Likewise.
3263
3264         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
3265         (__acr): Likewise.
3266         (__cpy): Likewise.
3267         (norm): Likewise.
3268         (denorm): Likewise.
3269         (__dbl_mp): Likewise.
3270         (add_magnitudes): Likewise.
3271         (sub_magnitudes): Likewise.
3272         (__mul): Likewise.
3273         (__inv): Likewise.
3274
3275         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
3276         style.
3277
3278         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
3279         style.
3280
3281         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
3282         code.
3283
3284         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
3285         up changes with default code.
3286         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
3287         Likewise.
3288
3289 2013-02-24  Allan McRae  <allan@archlinux.org>
3290
3291         * manual/socket.texi (The Internet Namespace): Order menu items
3292         to match that in the file.
3293
3294         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
3295         node listing of the info page menu.
3296
3297 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
3298
3299         [BZ #13550]
3300         * sysdeps/i386/bp-asm.h: Remove file.
3301         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3302         (PARMS): Do not use macros from bp-asm.h.
3303         (S1): Likewise.
3304         (S2): Likewise.
3305         (SIZE): Likewise.
3306         (__mpn_add_n): Do not use BP_SYM
3307         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
3308         "bp-asm.h".
3309         (PARMS): Do not use macros from bp-asm.h.
3310         (S1): Likewise.
3311         (SIZE): Likewise.
3312         (__mpn_addmul_1): Do not use BP_SYM
3313         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
3314         "bp-asm.h".
3315         (PARMS): Do not use macros from bp-asm.h.
3316         (SIGMSK): Likewise.
3317         (_setjmp): Likewise.  Do not use BP_SYM.
3318         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
3319         "bp-asm.h".
3320         (PARMS): Do not use macros from bp-asm.h.
3321         (SIGMSK): Likewise.
3322         (setjmp): Likewise.  Do not use BP_SYM.
3323         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
3324         "bp-asm.h".
3325         (PARMS): Do not use macros from bp-asm.h.
3326         (__frexp): Do not use BP_SYM.
3327         (frexp): Likewise.
3328         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
3329         "bp-asm.h".
3330         (PARMS): Do not use macros from bp-asm.h.
3331         (__frexpf): Do not use BP_SYM.
3332         (frexpf): Likewise.
3333         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
3334         "bp-asm.h".
3335         (PARMS): Do not use macros from bp-asm.h.
3336         (__frexpl): Do not use BP_SYM.
3337         (frexpl): Likewise.
3338         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
3339         "bp-asm.h".
3340         (PARMS): Do not use macros from bp-asm.h.
3341         (__remquo): Do not use BP_SYM.
3342         (remquo): Likewise.
3343         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
3344         "bp-asm.h".
3345         (PARMS): Do not use macros from bp-asm.h.
3346         (__remquof): Do not use BP_SYM.
3347         (remquof): Likewise.
3348         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
3349         "bp-asm.h".
3350         (PARMS): Do not use macros from bp-asm.h.
3351         (__remquol): Do not use BP_SYM.
3352         (remquol): Likewise.
3353         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
3354         "bp-asm.h".
3355         (PARMS): Do not use macros from bp-asm.h.
3356         (DEST): Likewise.
3357         (SRC): Likewise.
3358         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
3359         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
3360         "bp-asm.h".
3361         (PARMS): Do not use macros from bp-asm.h.
3362         (strlen): Do not use BP_SYM.
3363         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
3364         "bp-asm.h".
3365         (PARMS): Do not use macros from bp-asm.h.
3366         (S1): Likewise.
3367         (S2): Likewise.
3368         (SIZE): Likewise.
3369         (__mpn_add_n): Do not use BP_SYM.
3370         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
3371         "bp-asm.h".
3372         (PARMS): Do not use macros from bp-asm.h.
3373         (S1): Likewise.
3374         (SIZE): Likewise.
3375         (__mpn_addmul_1): Do not use BP_SYM.
3376         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
3377         weak_alias.
3378         (bzero): Likewise.
3379         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
3380         "bp-asm.h".
3381         (PARMS): Do not use macros from bp-asm.h.
3382         (S): Likewise.
3383         (SIZE): Likewise.
3384         (__mpn_lshift): Do not use BP_SYM.
3385         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
3386         "bp-asm.h".
3387         (PARMS): Do not use macros from bp-asm.h.
3388         (DEST): Likewise.
3389         (SRC): Likewise.
3390         (LEN): Likewise.
3391         (memcpy): Likewise.  Do not use BP_SYM.
3392         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
3393         libc_hidden_def and weak_alias.
3394         (mempcpy): Do not use BP_SYM in weak_alias.
3395         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
3396         "bp-asm.h".
3397         (PARMS): Do not use macros from bp-asm.h.
3398         (DEST): Likewise.
3399         (LEN): Likewise.
3400         [!BZERO_P] (CHR): Likewise.
3401         (memset): Likewise.  Do not use BP_SYM.
3402         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
3403         "bp-asm.h".
3404         (PARMS): Do not use macros from bp-asm.h.
3405         (S1): Likewise.
3406         (SIZE): Likewise.
3407         (__mpn_mul_1): Do not use BP_SYM.
3408         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
3409         "bp-asm.h".
3410         (PARMS): Do not use macros from bp-asm.h.
3411         (S): Likewise.
3412         (SIZE): Likewise.
3413         (__mpn_rshift): Do not use BP_SYM.
3414         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
3415         "bp-asm.h".
3416         (PARMS): Do not use macros from bp-asm.h.
3417         (STR): Likewise.
3418         (CHR): Likewise.
3419         (strchr): Likewise.  Do not use BP_SYM.
3420         (index): Do not use BP_SYM in weak_alias.
3421         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
3422         "bp-asm.h".
3423         (PARMS): Do not use macros from bp-asm.h.
3424         (DEST): Likewise.
3425         (SRC): Likewise.
3426         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
3427         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
3428         "bp-asm.h".
3429         (PARMS): Do not use macros from bp-asm.h.
3430         (strlen): Do not use BP_SYM.
3431         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
3432         "bp-asm.h".
3433         (PARMS): Do not use macros from bp-asm.h.
3434         (S1): Likewise.
3435         (S2): Likewise.
3436         (SIZE): Likewise.
3437         (__mpn_sub_n): Do not use BP_SYM.
3438         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
3439         "bp-asm.h".
3440         (PARMS): Do not use macros from bp-asm.h.
3441         (S1): Likewise.
3442         (SIZE): Likewise.
3443         (__mpn_submul_1): Do not use BP_SYM.
3444         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
3445         "bp-asm.h".
3446         (PARMS): Do not use macros from bp-asm.h.
3447         (S1): Likewise.
3448         (S2): Likewise.
3449         (SIZE): Likewise.
3450         (__mpn_add_n): Do not use BP_SYM.
3451         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
3452         weak_alias.
3453         (bzero): Likewise.
3454         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
3455         "bp-asm.h".
3456         (PARMS): Do not use macros from bp-asm.h.
3457         (BLK2): Likewise.
3458         (LEN): Likewise.
3459         (memcmp): Do not use BP_SYM.
3460         (bcmp): Do not use BP_SYM in weak_alias.
3461         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
3462         "bp-asm.h".
3463         (PARMS): Do not use macros from bp-asm.h.
3464         (DEST): Likewise.
3465         (SRC): Likewise.
3466         (LEN): Likewise.
3467         (memcpy): Likewise.  Do not use BP_SYM.
3468         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
3469         "bp-asm.h".
3470         (PARMS): Do not use macros from bp-asm.h.
3471         (DEST): Likewise.
3472         (SRC): Likewise.
3473         (LEN): Likewise.
3474         (memmove): Likewise.  Do not use BP_SYM.
3475         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
3476         "bp-asm.h".
3477         (PARMS): Do not use macros from bp-asm.h.
3478         (DEST): Likewise.
3479         (SRC): Likewise.
3480         (LEN): Likewise.
3481         (__mempcpy): Likewise.  Do not use BP_SYM.
3482         (mempcpy): Do not use BP_SYM in weak_alias.
3483         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
3484         "bp-asm.h".
3485         (PARMS): Do not use macros from bp-asm.h.
3486         (DEST): Likewise.
3487         (LEN): Likewise.
3488         [!BZERO_P] (CHR): Likewise.
3489         (memset): Likewise.  Do not use BP_SYM.
3490         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
3491         "bp-asm.h".
3492         (PARMS): Do not use macros from bp-asm.h.
3493         (STR2): Likewise.
3494         (strcmp): Do not use BP_SYM.
3495         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
3496         "bp-asm.h".
3497         (PARMS): Do not use macros from bp-asm.h.
3498         (STR): Likewise.
3499         (DELIM): Likewise.
3500         [USE_AS_STRTOK_R] (SAVE): Likewise.
3501         (FUNCTION): Likewise.  Do not use BP_SYM.
3502         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
3503         aliases.
3504         (strtok_r): Likewise.
3505         (__GI___strtok_r): Likewise.
3506         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3507         (PARMS): Do not use macros from bp-asm.h.
3508         (S): Likewise.
3509         (SIZE): Likewise.
3510         (__mpn_lshift): Do not use BP_SYM.
3511         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3512         (PARMS): Do not use macros from bp-asm.h.
3513         (STR): Likewise.
3514         (CHR): Likewise.
3515         (__memchr): Do not use BP_SYM.
3516         (memchr): Do not use BP_SYM in weak_alias.
3517         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3518         (PARMS): Do not use macros from bp-asm.h.
3519         (BLK2): Likewise.
3520         (LEN): Likewise.
3521         (memcmp): Do not use BP_SYM.
3522         (bcmp): Do not use BP_SYM in weak_alias.
3523         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
3524         (PARMS): Do not use macros from bp-asm.h.
3525         (S1): Likewise.
3526         (SIZE): Likewise.
3527         (__mpn_mul_1): Do not use BP_SYM.
3528         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
3529         "bp-asm.h".
3530         (PARMS): Do not use macros from bp-asm.h.
3531         (STR): Likewise.
3532         (CHR): Likewise.
3533         (__rawmemchr): Do not use BP_SYM.
3534         (rawmemchr): Do not use BP_SYM in weak_alias.
3535         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
3536         (PARMS): Do not use macros from bp-asm.h.
3537         (S): Likewise.
3538         (SIZE): Likewise.
3539         (__mpn_rshift): Do not use BP_SYM.
3540         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
3541         (PARMS): Do not use macros from bp-asm.h.
3542         (SIGMSK): Likewise.
3543         (__sigsetjmp): Likewise.  Do not use BP_SYM.
3544         * sysdeps/i386/start.S: Do not include "bp-sym.h".
3545         (_start): Do not use BP_SYM.
3546         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
3547         (PARMS): Do not use macros from bp-asm.h.
3548         (DEST): Likewise.
3549         (SRC): Likewise.
3550         (__stpcpy): Likewise.  Do not use BP_SYM.
3551         (stpcpy): Do not use BP_SYM in weak_alias.
3552         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
3553         "bp-asm.h".
3554         (PARMS): Do not use macros from bp-asm.h.
3555         (DEST): Likewise.
3556         (SRC): Likewise.
3557         (LEN): Likewise.
3558         (__stpncpy): Likewise.  Do not use BP_SYM.
3559         (stpncpy): Do not use BP_SYM in weak_alias.
3560         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
3561         (PARMS): Do not use macros from bp-asm.h.
3562         (STR): Likewise.
3563         (CHR): Likewise.
3564         (strchr): Likewise.  Do not use BP_SYM.
3565         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
3566         "bp-asm.h".
3567         (PARMS): Do not use macros from bp-asm.h.
3568         (STR): Likewise.
3569         (CHR): Likewise.
3570         (__strchrnul): Likewise.  Do not use BP_SYM.
3571         (strchrnul): Do not use BP_SYM in weak_alias.
3572         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
3573         "bp-asm.h".
3574         (PARMS): Do not use macros from bp-asm.h.
3575         (STOP): Likewise.
3576         (strcspn): Do not use BP_SYM.
3577         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
3578         "bp-asm.h".
3579         (PARMS): Do not use macros from bp-asm.h.
3580         (STR): Likewise.
3581         (STOP): Likewise.
3582         (strpbrk): Likewise.  Do not use BP_SYM.
3583         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
3584         "bp-asm.h".
3585         (PARMS): Do not use macros from bp-asm.h.
3586         (STR): Likewise.
3587         (CHR): Likewise.
3588         (strrchr): Likewise.  Do not use BP_SYM.
3589         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
3590         (PARMS): Do not use macros from bp-asm.h.
3591         (SKIP): Likewise.
3592         (strspn): Do not use BP_SYM.
3593         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
3594         (PARMS): Do not use macros from bp-asm.h.
3595         (STR): Likewise.
3596         (DELIM): Likewise.
3597         (SAVE): Likewise.
3598         (FUNCTION): Likewise.  Do not use BP_SYM.
3599         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
3600         aliases.
3601         (strtok_r): Likewise.
3602         (__GI___strtok_r): Likewise.
3603         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
3604         (PARMS): Do not use macros from bp-asm.h.
3605         (S1): Likewise.
3606         (S2): Likewise.
3607         (SIZE): Likewise.
3608         (__mpn_sub_n): Do not use BP_SYM.
3609         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
3610         "bp-asm.h".
3611         (PARMS): Do not use macros from bp-asm.h.
3612         (S1): Likewise.
3613         (SIZE): Likewise.
3614         (__mpn_submul_1): Do not use BP_SYM.
3615         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
3616         <bp-sym.h>.
3617         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
3618         and <bp-asm.h>.
3619         (PARMS): Do not use macros from bp-asm.h.
3620         (FLAGS): Likewise.
3621         (PTID): Likewise.
3622         (TLS): Likewise.
3623         (CTID): Likewise.
3624         (__clone): Do not use BP_SYM.
3625         (clone): Do not use BP_SYM in weak_alias.
3626         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
3627         and <bp-asm.h>.
3628         (PARMS): Do not use macros from bp-asm.h.
3629         (LEN): Likewise.
3630         (__mmap64): Do not use BP_SYM.
3631         (mmap64): Do not use BP_SYM in weak_alias.
3632         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3633         <bp-sym.h> and <bp-asm.h>.
3634         (PARMS): Do not use macros from bp-asm.h.
3635         (__posix_fadvise64_l64): Do not use BP_SYM.
3636         * sysdeps/unix/sysv/linux/i386/semtimedop.S
3637         (PARMS): Do not use macros from bp-asm.h.
3638         (NSOPS): Likewise.
3639         (semtimedop): Do not use BP_SYM.
3640         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
3641         and <bp-asm.h>.
3642
3643 2013-02-21  Allan McRae  <allan@archlinux.org>
3644
3645         * manual/message.texi (Charset conversion in gettext):
3646         Move @end statement to beginning of line.
3647
3648 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3649
3650         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
3651         static.
3652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
3653         Likewise.
3654
3655         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
3656         (denorm): Likewise.
3657         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
3658         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
3659
3660 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3661
3662         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
3663         tail-call to the resolved function if pltexit isn't needed.
3664
3665 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3666
3667         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
3668         or Y being zero as being unlikely.
3669         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
3670         Likewise.
3671
3672 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
3673
3674         * manual/nss.texi (System Databases and Name Service Switch):
3675         Remove frobnicate @pxref.
3676
3677 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3678
3679         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3680         __attribute__ ((unused)) to __attribute__ ((__unused__)).
3681
3682 2013-02-20  Petr Machata  <pmachata@redhat.com>
3683
3684         * elf/elf.h (R_ARM_TARGET1): New macro.
3685         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
3686         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
3687         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
3688         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
3689         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
3690         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
3691         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
3692         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
3693         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
3694         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
3695         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
3696         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
3697         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
3698         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
3699         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
3700         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
3701         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
3702         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
3703         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
3704         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
3705         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
3706         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
3707         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
3708         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
3709         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
3710         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
3711         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
3712         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
3713         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
3714         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
3715         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
3716         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
3717         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
3718         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
3719         (R_ARM_THM_GOT_BREL12): Likewise.
3720         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
3721         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
3722         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
3723         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
3724         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
3725         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
3726         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
3727         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
3728         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
3729
3730 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
3731
3732         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
3733         __attribute_used__ to __attribute__ ((unused)).
3734
3735 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3736
3737         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
3738         powerpc mpa.c.
3739         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
3740         comment formatting.
3741         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
3742
3743 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
3744
3745         [BZ #13550]
3746         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
3747         Remove macro.
3748         (ENTER): Remove both macro definitions.
3749         (LEAVE): Likewise.
3750         (CHECK_BOUNDS_LOW): Likewise.
3751         (CHECK_BOUNDS_HIGH): Likewise.
3752         (CHECK_BOUNDS_BOTH): Likewise.
3753         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
3754         (RETURN_BOUNDED_POINTER): Likewise.
3755         (RETURN_NULL_BOUNDED_POINTER): Likewise.
3756         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
3757         (POP_ERRNO_LOCATION_RETURN): Likewise.
3758         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
3759         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3760         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
3761         macros.
3762         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3763         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
3764         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
3765         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
3766         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
3767         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
3768         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
3769         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
3770         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
3771         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
3772         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
3773         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
3774         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3775         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
3776         removed macros.
3777         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3778         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
3779         macros.
3780         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3781         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
3782         * sysdeps/i386/i586/memset.S (memset): Likewise.
3783         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
3784         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3785         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
3786         macros.
3787         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3788         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
3789         Change uses of L(2) to L(out).
3790         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
3791         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
3792         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
3793         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3794         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
3795         removed macros.
3796         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3797         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
3798         macros.
3799         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3800         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
3801         (RETURN): Do not use macro LEAVE.
3802         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
3803         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
3804         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
3805         * sysdeps/i386/i686/memset.S (memset): Likewise.
3806         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
3807         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
3808         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
3809         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
3810         Likewise.
3811         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3812         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
3813         L(1_2) and L(1_3) into L(1).
3814         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3815         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
3816         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3817         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
3818         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
3819         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
3820         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
3821         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3822         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
3823         macros.
3824         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
3825         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
3826         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
3827         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
3828         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
3829         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
3830         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
3831         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
3832         * sysdeps/i386/strcspn.S (strcspn): Likewise.
3833         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
3834         * sysdeps/i386/strrchr.S (strrchr): Likewise.
3835         * sysdeps/i386/strspn.S (strspn): Likewise.
3836         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
3837         conditional code.
3838         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
3839         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
3840         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
3841         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
3842         L(1_3) into L(1_1).
3843         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
3844         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
3845         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
3846         macros.
3847         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
3848
3849 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3850
3851         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
3852         macro.
3853
3854 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
3855
3856         * math/atest-exp.c (exp_mpn): Remove ROUND.
3857         * math/atest-exp2.c (exp_mpn): Likewise.
3858         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
3859
3860         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
3861         * stdlib/tst-tls-atexit-lib.c: Likewise.
3862         * stdlib/tst-tls-atexit.c: Likewise.
3863
3864 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3865
3866         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
3867         and __attribute_alloc_size__.
3868
3869 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3870
3871         * include/programs/xmalloc.h: Change __attribute_alloc_size to
3872         __attribute_alloc_size__.
3873         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
3874         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
3875
3876 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
3877
3878         * include/programs/xmalloc.h: New file.
3879         * catgets/gencat.c: Include it.
3880         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
3881         * elf/pldd.c: Likewise.
3882         * iconv/iconv_charmap.c: Likewise.
3883         * iconv/iconvconfig.c: Likewise.
3884         * iconv/strtab.c: Likewise.
3885         * locale/programs/locale.c: Likewise.
3886         * locale/programs/localedef.h: Likewise.
3887         * locale/programs/simple-hash.c: Likewise.
3888         * nscd/nscd.h: Likewise.
3889         * nss/makedb.c: Likewise.
3890         * sysdeps/generic/ldconfig.h: Likewise.
3891
3892 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3893
3894         * Versions.def: Add GLIBC_2.18.
3895         * include/link.h (struct link_map): New member l_tls_dtor_count.
3896         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
3897         (__call_tls_dtors): Likewise.
3898         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
3899         __cxa_thread_atexit_impl.
3900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3901         Likewise.
3902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3903         Likewise.
3904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
3905         Likewise.
3906         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
3907         Likewise.
3908         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
3910         Likewise.
3911         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
3912         Likewise.
3913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3914         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3915         Likewise.
3916         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
3917         (tests): Add test case tst-tls-atexit.
3918         (modules-names): Add shared library for tst-tls-atexit.
3919         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
3920         (GLIBC_PRIVATE): Add __call_tls_dtors.
3921         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
3922         for libstdc++.
3923         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
3924         * stdlib/tst-tls-atexit.c: New test case.
3925         * stdlib/tst-tls-atexit-lib.c: New test case.
3926
3927         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
3928
3929         * elf/Versions (ld): Add _dl_find_dso_for_object.
3930         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
3931         * elf/dl-open.c (_dl_find_dso_for_object): New function.
3932         (dl_open_worker): Use _dl_find_dso_for_object.
3933         * elf/dl-sym.c (do_sym): Likewise.
3934         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
3935
3936 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3937
3938         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
3939         Syntactic changes only.
3940         (_dl_runtime_profile): Do a tail-call to the resolved function.
3941
3942 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
3943
3944         [BZ #13550]
3945         * sysdeps/x86_64/bp-asm.h: Remove file.
3946         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
3947         <bp-sym.h> and <bp-asm.h>.
3948         (__clone): Do not use BP_SYM.
3949         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
3950         <bp-sym.h> and <bp-asm.h>.
3951         * sysdeps/unix/x86_64/sysdep.S: Likewise.
3952         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
3953         "bp-asm.h".
3954         (_setjmp): Do not use BP_SYM.
3955         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
3956         "bp-asm.h".
3957         (setjmp): Do not use BP_SYM.
3958         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
3959         libc_hidden_def.
3960         (mempcpy): Do not use BP_SYM in weak_alias.
3961         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
3962         "bp-asm.h".
3963         (strchr): Do not use BP_SYM.
3964         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
3965         "bp-asm.h".
3966         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
3967         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
3968         (_start): Do not use BP_SYM.
3969         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
3970         "bp-asm.h".
3971         (strcat): Do not use BP_SYM.
3972         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
3973         "bp-asm.h".
3974         (STRCMP): Do not use BP_SYM.
3975         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
3976         "bp-asm.h".
3977         (STRCPY): Do not use BP_SYM.
3978         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
3979         "bp-asm.h".
3980         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
3981         "bp-asm.h".
3982         (FUNCTION): Do not use BP_SYM.
3983         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
3984         weak_alias.
3985         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
3986
3987 2013-02-17  Andreas Jaeger  <aj@suse.de>
3988
3989         * time/Versions: Sort entries.
3990         * string/Versions: Likewise.
3991         * resolv/Versions: Likewise.
3992         * posix/Versions: Likewise.
3993         * iconv/Versions: Likewise.
3994         * elf/Versions: Likewise.
3995         * wcsmbs/Versions: Likewise.
3996
3997 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3998
3999         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
4000         loop termination condition.
4001
4002         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
4003         variable to calculate EZ.
4004         (__sqr): Likewise.
4005
4006         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
4007         the lower precision input.
4008
4009 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
4010
4011         [BZ #13550]
4012         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
4013         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
4014         (run-via-rtld-prefix): Do not handle %-bp tests.
4015         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
4016         (all-object-suffixes): Remove .ob.
4017         (bppfx): Remove variable.
4018         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
4019         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
4020         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
4021         [$(build-bounded) = yes] (libtype.ob): Likewise.
4022         * Makerules (elide-routines.ob): Remove variable.
4023         (do-tests-clean): Do not handle *-bp.out.
4024         (common-mostlyclean): Do not handle *-bp and *-bp.out.
4025         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
4026         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
4027         (tests): Do not include $(tests-bp.out).
4028         (xtests): Do not include $(xtests-bp.out).
4029         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
4030         [$(build-bounded) = yes] ($(addprefix
4031         $(objpfx),$(binaries-bounded))): Remove rule.
4032         ($(objpfx)%-bp.out): Remove rule.
4033         * config.make.in (build-bounded): Remove variable.
4034         * crypt/Makefile [$(build-bounded) = yes]
4035         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
4036         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
4037         append to variable.
4038         [$(build-bounded) = yes] (install-lib): Likewise.
4039         [$(build-bounded) = yes] (generated): Likewise.
4040         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
4041         Remove rule.
4042         * intl/Makefile [$(build-bounded) = yes]
4043         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
4044         * math/Makefile [$(build-bounded) = yes]
4045         ($(tests:%=$(objpfx)%-bp): Likewise.
4046         * misc/Makefile [$(build-bounded) = yes]
4047         ($(objpfx)tst-tsearch-bp): Likewise.
4048         * nptl/Makeconfig (bounded-thread-library): Remove variable.
4049         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
4050         Remove dependency.
4051         * string/Makefile (o-objects.ob): Remove variable.
4052         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
4053         (CFLAGS-.ob): Remove variable.
4054         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
4055         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
4056         both definitions of variable.
4057         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
4058         (ASFLAGS-.ob): Remove variable.
4059
4060 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
4061
4062         [BZ #13550]
4063         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
4064         Remove __BOUNDED_POINTERS__ from condition.
4065         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
4066         * string/bits/string2.h [!__NO_STRING_INLINES &&
4067         !__BOUNDED_POINTERS__]: Likewise.
4068         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
4069         Likewise.
4070         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
4071         Remove conditional code.
4072         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
4073         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
4074         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
4075         condition.
4076
4077         [BZ #13550]
4078         * csu/libc-start.c: Do not include <bp-sym.h>.
4079         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
4080         * elf/dl-open.c: Do not include <bp-sym.h>.
4081         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
4082         * math/fegetenv.c: Do not include <bp-sym.h>.
4083         (fegetenv): Do not use BP_SYM in versioned symbols.
4084         * nptl/sysdeps/pthread/bits/libc-lockP.h
4085         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
4086         <bp-sym.h>.
4087         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4088         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
4089         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4090         (__pthread_mutex_destroy): Likewise.
4091         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4092         (__pthread_mutex_lock): Likewise.
4093         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4094         (__pthread_mutex_trylock): Likewise.
4095         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4096         (__pthread_mutex_unlock): Likewise.
4097         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4098         (__pthread_mutexattr_init): Likewise.
4099         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4100         (__pthread_mutexattr_destroy): Likewise.
4101         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4102         (__pthread_mutexattr_settype): Likewise.
4103         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4104         (__pthread_rwlock_init): Likewise.
4105         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4106         (__pthread_rwlock_destroy): Likewise.
4107         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4108         (__pthread_rwlock_rdlock): Likewise.
4109         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4110         (__pthread_rwlock_tryrdlock): Likewise.
4111         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4112         (__pthread_rwlock_wrlock): Likewise.
4113         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4114         (__pthread_rwlock_trywrlock): Likewise.
4115         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4116         (__pthread_rwlock_unlock): Likewise.
4117         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4118         (__pthread_key_create): Likewise.
4119         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4120         (__pthread_setspecific): Likewise.
4121         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4122         (__pthread_getspecific): Likewise.
4123         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
4124         Likewise.
4125         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4126         (_pthread_cleanup_push_defer): Likewise.
4127         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4128         (_pthread_cleanup_pop_restore): Likewise.
4129         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
4130         (pthread_setcancelstate): Likewise.
4131         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
4132         <bp-sym.h>.
4133         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
4134         (memchr): Do not use BP_SYM in weak_alias.
4135         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
4136         (fegetenv): Do not use BP_SYM in versioned symbols.
4137         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
4138         (fesetenv): Do not use BP_SYM in versioned symbols.
4139         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4140         (feupdateenv): Do not use BP_SYM in versioned symbols.
4141         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4142         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4143         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
4144         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
4145         (open64): Do not use BP_SYM in weak_alias.
4146         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
4147         (fegetenv): Do not use BP_SYM in versioned symbols.
4148         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
4149         (fesetenv): Do not use BP_SYM in versioned symbols.
4150         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
4151         (feupdateenv): Do not use BP_SYM in versioned symbols.
4152         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
4153         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
4154         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
4155         (feraiseexcept): Do not use BP_SYM in versioned symbols.
4156         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
4157         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
4158         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
4159         <bp-sym.h>.
4160         (__libc_start_main): Do not use BP_SYM.
4161
4162 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4163
4164         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
4165         redundant return line.
4166         (norm): Likewise.
4167         (denorm): Likewise.
4168         (dbl_mp): Likewise.
4169         (sub_magnitudes): Likewise.
4170         (__add): Likewise.
4171         (__sub): Likewise.
4172         (__mul): Likewise.
4173         (__inv): Likewise.
4174         (__dvd): Likewise.
4175         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
4176         (norm): Likewise.
4177         (denorm): Likewise.
4178         (dbl_mp): Likewise.
4179         (sub_magnitudes): Likewise.
4180         (__add): Likewise.
4181         (__sub): Likewise.
4182         (__mul): Likewise.
4183         (__inv): Likewise.
4184         (__dvd): Likewise.
4185
4186         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
4187         instead of __mul.
4188         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
4189         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
4190         (cc32): Likewise.
4191
4192         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
4193         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
4194         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
4195         of __mul for squares.
4196         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
4197         function
4198         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
4199         Likewise.
4200         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
4201         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4202
4203 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
4204
4205         [BZ #13550]
4206         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
4207         code.
4208         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
4209         prototype or function definition.  Rename ubp_* variables and
4210         parameters.  Remove argv definitions conditional on
4211         [__BOUNDED_POINTERS__].
4212         * debug/backtrace.c (__backtrace): Do not use __unbounded.
4213         * elf/dl-runtime.c (_dl_fixup): Likewise.
4214         * include/set-hooks.h (RUN_HOOK): Likewise.
4215         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
4216         definition.
4217         * string/strcpy.c (strcpy): Do not use __unbounded.
4218         * sysdeps/generic/frame.h (struct layout): Likewise.
4219         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
4220         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
4221         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
4222         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
4223         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
4224         (__backtrace): Likewise.
4225         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
4226         use __ptrvalue.
4227         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
4228         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
4229         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4230         Likewise.
4231         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4232         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
4233         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
4234         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4235         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
4236         Do not use __unbounded.
4237         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
4238         Rename __unboundedrlimits parameter to rlimits in prototype.
4239         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
4240         Do not use __unbounded.
4241         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
4242         not use __ptrvalue.
4243         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4244         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
4245         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4246         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
4247         __ptrvalue or __unbounded.
4248         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
4249         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
4250         use __unbounded.
4251         (__new_msgctl): Do not use __ptrvalue.
4252         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
4253         __unbounded.
4254         (__libc_msgrcv): Do not use __ptrvalue.
4255         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
4256         startup_info): Do not use __unbounded.
4257         (__libc_start_main): Likewise.  Rename ubp_* variables and
4258         parameters.  Remove argv definitions conditional on
4259         [__BOUNDED_POINTERS__].
4260         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
4261         __ptrvalue.
4262         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
4263         use __unbounded.
4264         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
4265         or __ptrvalue.
4266         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
4267         use __unbounded.
4268         (__new_shmctl): Do not use __ptrvalue.
4269         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
4270         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
4271         Likewise.
4272         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
4273         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
4274         (__libc_sigaction): Likewise.
4275         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4276         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
4277         Likewise.
4278         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4279
4280 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
4281
4282         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
4283
4284         * string/mempcpy.c: Implement by calling memcpy.
4285
4286 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4287
4288         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
4289
4290         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
4291         evaluation.
4292
4293         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
4294         values in the mantissa.
4295
4296         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
4297         minimize writes to Z.
4298         (sub_magnitudes): Simplify code a bit.
4299
4300 2013-02-12  Roland McGrath  <roland@hack.frob.com>
4301
4302         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
4303         from the message.  The linker prefixes all warnings with that already.
4304
4305 2013-02-12  Andreas Schwab  <schwab@suse.de>
4306
4307         [BZ #15078]
4308         * posix/regexec.c (extend_buffers): Add parameter min_len.
4309         (check_matching): Pass minimum needed length.
4310         (clean_state_log_if_needed): Likewise.
4311         (get_subexp): Likewise.
4312         * posix/Makefile (tests): Add bug-regex34.
4313         (bug-regex34-ENV): Define.
4314         * posix/bug-regex34.c: New file.
4315
4316         [BZ #11561]
4317         * posix/regcomp.c (parse_bracket_exp): When looking up collating
4318         elements compare against the byte sequence of it, not its name.
4319         * posix/Makefile (tests): Add bug-regex35.
4320         (bug-regex35-ENV): Define.
4321         * posix/bug-regex35.c: New file.
4322
4323 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4324
4325         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
4326         comment.
4327         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
4328         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
4329         (CHECK_EOL): Add undef.
4330
4331 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
4332
4333         * bits/stdlib-bsearch.h: New file.
4334         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
4335         * stdlib/stdlib.h: Likewise.
4336
4337 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4338
4339         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
4340         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
4341         declaration.
4342         * manual/search.texi (Array Search Function): Add missing const in
4343         lfind prototype.
4344         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
4345         declaration to use rlim_t.
4346         (Basic Scheduling Functions): Remove erroneous const from
4347         sched_getparam prototype.  Remove erroneous * from
4348         sched_get_priority_max and sched_get_priority_min prototypes.
4349         (Resource Usage): Fix summary @comment on vtimes to refer to
4350         sys/vtimes.h rather than vtimes.h.
4351         Add missing *s in vtimes prototype.
4352         (Limits on Resources): Fix ulimit prototype to return long int.
4353         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
4354         prototypes to use long int rather than double.
4355         (BSD Random): Fix initstate and setstate to use char *, not void *.
4356         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
4357         prototype to make second argument 'struct aiocb64 *const[]'.
4358         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
4359         (Status of AIO Operations): Remove erroneous const in aio_return and
4360         aio_return64 prototypes.
4361         (Synchronizing I/O): Fix sync prototype to return void.
4362         * manual/startup.texi (Suboptions): Remove an erroneous const in
4363         getsubopt prototype.
4364         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
4365         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
4366         use size_t rather than int.
4367         (Scanning All Users): Likewise for getpwent_r.
4368         (Setting Groups): Add missing const to setgroups prototype.
4369         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
4370         * manual/socket.texi (Host Names): Fix gethostbyaddr and
4371         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
4372         'const void *' rather than 'const char *'.
4373         (Host Address Functions): Likewise for inet_ntop.
4374         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
4375         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
4376         ssize_t for return value.
4377         (Sending Data): Likewise for send, sendto, sendmsg.
4378         (Socket Option Functions): Add a missing const in setsockopt prototype.
4379         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
4380         use wchar_t for the argument.
4381         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
4382         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
4383         take no arguments.
4384         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
4385         double/float/long double for second argument.
4386         Fix return types of significand, significandf, significandl.
4387         * manual/filesys.texi (Setting Permissions): Use mode_t for second
4388         argument in fchmod prototype.
4389         (File Owner): Use uid_t and gid_t in fchown prototype.
4390         (File Times): Add const to utimes, futimes, and lutimes prototypes.
4391         (Making Special Files): Use mode_t and dev_t in mknod prototype.
4392         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
4393         use 'const struct dirent **' as argument types to CMP function pointer
4394         argument.
4395         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
4396         (File Times): Fix summary magic @comment for struct utimbuf and utime
4397         to refer to utime.h, not time.h.
4398         * manual/string.texi (Argz Functions): Add missing const in
4399         argz_extract and argz_next prototypes.
4400         (Finding Tokens in a String): Likewise for basename.
4401         (String/Array Comparison): Fix typo in wcscasecmp prototype.
4402         (Copying and Concatenation): Fix typo in wmemmove prototype.
4403         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
4404         (Signal Stack): Remove erroneous const in sigstack prototype.
4405         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
4406         prototype.
4407         (Simple Calendar Time): Likewise for stime.
4408         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
4409         prototype.
4410         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
4411         say sys/sysctl.h instead.
4412         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
4413         and vsyslog prototypes.
4414
4415 2013-02-11  Tom de Vries  <tom@codesourcery.com>
4416
4417         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
4418         Remove.
4419
4420 2013-02-11  Roland McGrath  <roland@hack.frob.com>
4421
4422         * misc/sys/mman.h: Fix typo in mremap comment.
4423
4424 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4425
4426         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
4427         the '\0' terminator.
4428
4429 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4430
4431         [BZ #13550]
4432         * debug/segfault.c: Don't include <bp-checks.h>.
4433         * sysdeps/generic/bp-checks.h: Remove file.
4434         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
4435         (__GETDENTS): Don't use CHECK_N.
4436         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
4437         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4438         (__getgroups): Don't use CHECK_N.
4439         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4440         (setgroups): Don't use CHECK_N.
4441         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
4442         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4443         (__libc_msgrcv): Don't use CHECK_N.
4444         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
4445         (__libc_msgsnd): Don't use CHECK_N.
4446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
4447         <bp-checks.h>.
4448         (__libc_pread): Don't use CHECK_N.
4449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
4450         include <bp-checks.h>.
4451         (__libc_pread64): Don't use CHECK_N.
4452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
4453         include <bp-checks.h>.
4454         (__libc_pwrite): Don't use CHECK_N.
4455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
4456         include <bp-checks.h>.
4457         (__libc_pwrite64): Don't use CHECK_N.
4458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
4459         <bp-checks.h>.
4460         (__libc_pread): Don't use CHECK_N.
4461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
4462         include <bp-checks.h>.
4463         (__libc_pread64): Don't use CHECK_N.
4464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
4465         include <bp-checks.h>.
4466         (__libc_pwrite): Don't use CHECK_N.
4467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
4468         include <bp-checks.h>.
4469         (__libc_pwrite64): Don't use CHECK_N.
4470         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
4471         (do_pread): Don't use CHECK_N.
4472         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
4473         (do_pread64): Don't use CHECK_N.
4474         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
4475         (do_pwrite): Don't use CHECK_N.
4476         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
4477         (do_pwrite64): Don't use CHECK_N.
4478         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
4479         (__libc_readv): Don't use CHECK_N.
4480         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
4481         (semop): Don't use CHECK_N.
4482         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
4483         <bp-checks.h>.
4484         (semtimedop): Don't use CHECK_N.
4485         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
4486         (__libc_pread): Don't use CHECK_N.
4487         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
4488         <bp-checks.h>.
4489         (__libc_pread64): Don't use CHECK_N.
4490         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
4491         <bp-checks.h>.
4492         (__libc_pwrite): Don't use CHECK_N.
4493         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
4494         <bp-checks.h>.
4495         (__libc_pwrite64): Don't use CHECK_N.
4496         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
4497         <bp-checks.h>.
4498         (__libc_msgrcv): Don't use CHECK_N.
4499         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
4500         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
4501         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
4502         (__libc_writev): Don't use CHECK_N.
4503
4504 2013-02-08  Roland McGrath  <roland@hack.frob.com>
4505
4506         * string/strcpy.c: Removed unused variable.
4507
4508         * Makeconfig (+sysdep-includes): Define with := rather than =.
4509         Use an existing include/ subdir of each sysdeps dir before it.
4510
4511 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4512
4513         * nscd/connection.c (register_traced_file): Comment function.
4514         [HAVE_INOTIFY] (union __inev): Define.
4515         [HAVE_INOTIFY] (inotify_check_files): New function.
4516         [HAVE_INOTIFY] (clear_db_cache): Likewise.
4517         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
4518         clear_db_cache.
4519         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
4520
4521 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4522
4523         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
4524         loaded if not already and that a failure is permanent.
4525
4526 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
4527
4528         [BZ #15006]
4529         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
4530         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
4531
4532 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
4533
4534         [BZ #13550]
4535         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
4536         (CHECK_1_NULL_OK): Likewise.
4537         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
4538         (__fxstat): Do not use CHECK_1.
4539         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4540         <bp-checks.h>.
4541         (___fxstat64): Do not use CHECK_1.
4542         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
4543         <bp-checks.h>.
4544         (__fxstatat): Do not use CHECK_1.
4545         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
4546         <bp-checks.h>.
4547         (__fxstatat64): Do not use CHECK_1.
4548         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
4549         <bp-checks.h>.
4550         (__fxstat): Do not use CHECK_1.
4551         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
4552         <bp-checks.h>.
4553         (__fxstatat): Do not use CHECK_1.
4554         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4555         <bp-checks.h>.
4556         (__getresgid): Do not use CHECK_1.
4557         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4558         <bp-checks.h>.
4559         (__getresuid): Do not use CHECK_1.
4560         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
4561         <bp-checks.h>.
4562         (__lxstat): Do not use CHECK_1.
4563         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4564         <bp-checks.h>.
4565         (__old_msgctl): Do not use CHECK_1.
4566         (__new_msgctl): Likewise.
4567         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
4568         <bp-checks.h>.
4569         (__new_setrlimit): Do not use CHECK_1.
4570         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4571         <bp-checks.h>.
4572         (__old_shmctl): Do not use CHECK_1.
4573         (__new_shmctl): Likewise.
4574         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
4575         <bp-checks.h>.
4576         (__xstat): Do not use CHECK_1.
4577         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
4578         (__lxstat): Do not use CHECK_1.
4579         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4580         <bp-checks.h>.
4581         (___lxstat64): Do not use CHECK_1.
4582         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
4583         (__old_msgctl): Do not use CHECK_1.
4584         (__new_msgctl): Likewise.
4585         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
4586         <bp-checks.h>.
4587         (__gettimeofday): Do not use CHECK_1.
4588         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
4589         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
4590         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
4591         <bp-checks.h>.
4592         (__gettimeofday): Do not use CHECK_1.
4593         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
4594         (__old_shmctl): Do not use CHECK_1_NULL_OK.
4595         (__new_shmctl): Do not use CHECK_1.
4596         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
4597         <bp-checks.h>.
4598         (do_sigtimedwait): Do not use CHECK_1.
4599         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
4600         <bp-checks.h>.
4601         (do_sigwaitinfo): Do not use CHECK_1.
4602         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
4603         <bp-checks.h>.
4604         (msgctl): Do not use CHECK_1.
4605         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
4606         <bp-checks.h>.
4607         (shmctl): Do not use CHECK_1.
4608         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
4609         (ustat): Do not use CHECK_1.
4610         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
4611         <bp-checks.h>.
4612         (__fxstat): Do not use CHECK_1.
4613         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
4614         <bp-checks.h>.
4615         (__fxstatat): Do not use CHECK_1.
4616         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
4617         <bp-checks.h>.
4618         (__lxstat): Do not use CHECK_1.
4619         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
4620         <bp-checks.h>.
4621         (__xstat): Do not use CHECK_1.
4622         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
4623         (__xstat): Do not use CHECK_1.
4624         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
4625         (___xstat64): Do not use CHECK_1.
4626
4627         [BZ #13550]
4628         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
4629         definitions.
4630         (CHECK_BOUNDS_HIGH): Likewise.
4631         * string/strcpy.c: Do not include <bp-checks.h>.
4632         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
4633
4634 2013-02-07  Roland McGrath  <roland@hack.frob.com>
4635
4636         * nscd/nscd-client.h (__nscd_drop_map_ref):
4637         Add __attribute__ ((unused)).
4638         * nis/nss-nisplus.h (niserr2nss): Likewise.
4639
4640         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
4641         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
4642
4643         * csu/libc-tls.c (init_static_tls, init_slotinfo):
4644         Remove inline keyword.
4645         * include/rounding-mode.h (round_away): Likewise.
4646         * libio/wfileops.c (adjust_wide_data): Likewise.
4647         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
4648         (__m128i_strloadu_tolower): Likewise.
4649         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
4650         (__m128i_strloadu_tolower): Likewise.
4651         * time/mktime.c (ydhms_diff): Likewise.
4652         * locale/elem-hash.h (elem_hash): Likewise.
4653         * locale/setlocale.c (setdata): Likewise.
4654         * posix/regex_internal.h (re_string_char_size_at): Likewise.
4655         (re_string_wchar_at): Likewise.
4656         (bitset_not, bitset_merge, bitset_mask): Likewise.
4657         [!(__GNUC__ > 3)] (inline): Remove macro.
4658         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
4659         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
4660         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
4661         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4662         * string/memcmp.c (memcmp_bytes): Likewise.
4663         * locale/programs/locarchive.c (compute_hashval): Likewise.
4664         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
4665         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4666         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
4667         * nss/getent.c (print_rpc, print_protocols): Likewise.
4668         (print_passwd, print_group, print_aliases): Likewise.
4669         * nis/nss-nisplus.h (niserr2nss): Likewise.
4670         * nscd/connections.c (restart_p): Likewise.
4671         Change return type to bool.
4672
4673 2013-02-05  Roland McGrath  <roland@hack.frob.com>
4674
4675         * Makeconfig (all-Depend-files): Add existing
4676         $(sorted-subdirs:=/Depend) files.
4677         (all-subdirs): Remove nss.
4678         * sysdeps/unix/inet/Subdirs: Add it here instead.
4679         * hesiod/Depend: New file.
4680
4681         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
4682         instead of calling alloca.
4683
4684         * io/lseek.c (__lseek): Rename to __libc_lseek.
4685         Define __lseek as an alias.
4686
4687         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
4688
4689 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
4690
4691         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
4692         else clause and remove check for non-standard endianness.
4693
4694 2013-02-04  David S. Miller  <davem@davemloft.net>
4695
4696         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4697
4698 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
4699
4700         [BZ #13550]
4701         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
4702         (__ubp_memchr): Remove prototype.
4703         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
4704         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4705         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
4706         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
4707         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4708         Remove alias.
4709         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
4710         (__ubp_memchr): Likewise.
4711         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
4712         (__ubp_memchr): Likewise.
4713         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
4714         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
4715         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
4716         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
4717         CHECK_STRING.
4718         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
4719         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
4720         (__getcwd): Do not use CHECK_STRING.
4721         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4722         <bp-checks.h>.
4723         (__real_chown): Do not use CHECK_STRING.
4724         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
4725         <bp-checks.h>.
4726         (fchownat): Do not use CHECK_STRING.
4727         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
4728         CHECK_STRING.
4729         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4730         <bp-checks.h>.
4731         (__lchown): Do not use CHECK_STRING.
4732         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
4733         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
4734         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
4735         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
4736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4737         include <bp-checks.h>.
4738         (truncate64): Do not use CHECK_STRING.
4739         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4740         <bp-checks.h>.
4741         (__real_chown): Do not use CHECK_STRING.
4742         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4743         <bp-checks.h>.
4744         (__lchown): Do not use CHECK_STRING.
4745         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4746         <bp-checks.h>.
4747         (__chown): Do not use CHECK_STRING.
4748         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
4749         <bp-checks.h>.
4750         (truncate64): Do not use CHECK_STRING.
4751         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
4752         Likewise.
4753         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
4754         (__xmknod): Do not use CHECK_STRING.
4755         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
4756         <bp-checks.h>.
4757         (__xmknodat): Do not use CHECK_STRING.
4758         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
4759         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
4760
4761 2013-02-04  Andreas Schwab  <schwab@suse.de>
4762
4763         [BZ #14142]
4764         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
4765         * include/netdb.h: Likewise for h_errno.
4766         * elf/tst-stackguard1.c: Include <tls.h>.
4767
4768 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4769
4770         * elf/link.h (struct link_map): Extend the l_addr comment.
4771         * include/link.h (struct link_map): Likewise.
4772
4773 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
4774
4775         [BZ #13550]
4776         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
4777         (BOUNDED_1): Remove macro.
4778         * debug/backtrace.c: Don't include <bp-checks.h>.
4779         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
4780         (__backtrace): Likewise.
4781         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
4782         <bp-checks.h>.
4783         (__backtrace): Don't use BOUNDED_1.
4784         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
4785         <bp-checks.h>.
4786         (__backtrace): Don't use BOUNDED_1.
4787         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
4788         (__backtrace): Don't use BOUNDED_1.
4789         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
4790         (shmat): Don't use BOUNDED_N.
4791
4792 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
4793
4794         [BZ #13550]
4795         * sysdeps/generic/bp-start.h: Remove file.
4796         * csu/libc-start.c: Don't include <bp-start.h>.
4797         (LIBC_START_MAIN): Set up __environ directly instead of using
4798         INIT_ARGV_and_ENVIRON.
4799         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
4800         <bp-start.h>.
4801
4802         [BZ #13550]
4803         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
4804         definitions.
4805         (CHECK_FCNTL): Likewise.
4806         (CHECK_N_PAGES): Likewise.
4807
4808         [BZ #13550]
4809         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
4810         definitions.
4811         (CHECK_SIGSET_NULL_OK): Likewise.
4812         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
4813         <bp-checks.h>.
4814         (sigpending): Don't use CHECK_SIGSET.
4815         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
4816         <bp-checks.h>.
4817         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4818         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
4819         <bp-checks.h>.
4820         (do_sigsuspend): Don't use CHECK_SIGSET.
4821         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
4822         use CHECK_SIGSET.
4823         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
4824         (do_sigwait): Don't use CHECK_SIGSET.
4825         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
4826         use CHECK_SIGSET.
4827         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
4828         include <bp-checks.h>.
4829         (sigpending): Don't use CHECK_SIGSET.
4830         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
4831         include <bp-checks.h>.
4832         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4833         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
4834         <bp-checks.h>.
4835         (sigpending): Don't use CHECK_SIGSET.
4836         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
4837         <bp-checks.h>.
4838         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
4839
4840         [BZ #13550]
4841         * sysdeps/generic/bp-semctl.h: Remove file.
4842         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
4843         <bp-checks.h> and <bp-semctl.h>.
4844         (__old_semctl): Don't use CHECK_SEMCTL.
4845         (__new_semctl): Likewise.
4846         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
4847         and <bp-semctl.h>.
4848         (__old_semctl): Don't use CHECK_SEMCTL.
4849         (__new_semctl): Likewise.
4850         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
4851         <bp-checks.h> and <bp-semctl.h>.
4852         (__old_semctl): Don't use CHECK_SEMCTL.
4853         (__new_semctl): Likewise.
4854         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
4855         <bp-checks.h> and <bp-semctl.h>.
4856         (semctl): Don't use CHECK_SEMCTL.
4857
4858         [BZ #13550]
4859         * Makerules (elide-bp-thunks): Remove variable.
4860         (elide-routines.oS): Don't use $(elide-bp-thunks).
4861         (elide-routines.os): Likewise.
4862         (elide-routines.o): Likewise.
4863         (elide-routines.op): Likewise.
4864         (elide-routines.og): Likewise.
4865         (objects): Don't use $(bp-thunks).
4866         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
4867         include.
4868         (common-generated): Do not add s-proto-bp.d.
4869         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
4870         (int): Likewise.
4871         (typ): Likewise.
4872         Do not generate makefile rules for bounded-pointer thunks.
4873         * sysdeps/generic/bp-thunks.h: Remove file.
4874         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
4875         * sysdeps/unix/s-proto-bp.S: Likewise.
4876
4877         [BZ #15062]
4878         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
4879         parts of result separately when argument is not close to line from
4880         -i to i and one part of argument is small.
4881         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4882         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4883         * math/libm-test.inc (cacos_test): Add more tests.
4884         (casin_test): Likewise.
4885         (casinh_test): Likewise.
4886         * sysdeps/i386/fpu/libm-test-ulps: Update.
4887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4888
4889 2013-01-31  David S. Miller  <davem@davemloft.net>
4890
4891         * po/de.po: Update from translation team.
4892
4893 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
4894
4895         * time/tzfile.c: Include stdint.h for SIZE_MAX.
4896
4897 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
4898
4899         * configure.in (_AC_PROG_CC_C89): New definition.
4900         * configure: Regenerate.
4901
4902         * configure.in (AC_PROG_CPP): New definition.
4903         * configure: Regenerate.
4904
4905 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4906
4907         * debug/tst-backtrace.h: New file.
4908         * debug/tst-backtrace2.c: Include tst-backtrace.h.
4909         (ret): Remove variable.
4910         (x): Likewise.
4911         (FAIL): Remove macro.
4912         (NO_INLINE): Likewise.
4913         (fn1): Use match function instead of strstr.
4914         * debug/tst-backtrace3.c: Include tst-backtrace.h.
4915         (ret): Remove variable.
4916         (x): Likewise.
4917         (FAIL): Remove macro.
4918         (NO_INLINE): Likewise.
4919         (fn): Use match function instead of strstr.
4920         * debug/tst-backtrace4.c: Include tst-backtrace.h.
4921         (ret): Remove variable.
4922         (x): Likewise.
4923         (FAIL): Remove macro.
4924         (NO_INLINE): Likewise.
4925         (handle_signal): Use match function instead of strstr.
4926         * debug/tst-backtrace5.c: Include tst-backtrace.h.
4927         (ret): Remove variable.
4928         (x): Likewise.
4929         (FAIL): Remove macro.
4930         (NO_INLINE): Likewise.
4931         (handle_signal): Use match function instead of strstr.
4932
4933 2013-01-23  Roland McGrath  <roland@hack.frob.com>
4934
4935         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
4936
4937 2013-01-23  David S. Miller  <davem@davemloft.net>
4938
4939         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
4940         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
4941         argument of CAS if possible.
4942         * sysdeps/sparc/sparc64/bits/atomic.h
4943         (__arch_compare_and_exchange_val_32_acq): Likewise.
4944         (__arch_compare_and_exchange_val_64_acq): Likewise.
4945
4946 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
4947
4948         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
4949         * sysdeps/posix/ulimit.c: ... this.
4950         Include <limits.h>.
4951         * sysdeps/unix/bsd/ulimit.c: Remove file.
4952
4953 2013-01-23  Adam Conrad  <adconrad@0c3.net>
4954
4955         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
4956         (LDFLAGS-tst-array5): Likewise.
4957
4958 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
4959
4960         [BZ #15036]
4961         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
4962         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
4963         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
4964         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
4965
4966 2013-01-21  David S. Miller  <davem@davemloft.net>
4967
4968         * sysdeps/sparc/backtrace.c: New file.
4969         * sysdeps/sparc/sparc32/backtrace.h: New file.
4970         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
4971         * sysdeps/sparc/sparc64/backtrace.h: New file.
4972         * sysdeps/sparc/sparc64/backtrace.c: Delete.
4973         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
4974         -funwind-tables.
4975
4976 2013-01-21  Andreas Schwab  <schwab@suse.de>
4977
4978         [BZ #15020]
4979         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
4980         closed its stdout.
4981
4982 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
4983
4984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
4985         "mpa2.h".
4986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4987
4988 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
4989             Mark Mitchell  <mark@codesourcery.com>
4990             Tom de Vries  <tom@codesourcery.com>
4991             Paul Pluzhnikov  <ppluzhnikov@google.com>
4992
4993         * debug/tst-backtrace2.c: New file.
4994         * debug/tst-backtrace3.c: Likewise.
4995         * debug/tst-backtrace4.c: Likewise.
4996         * debug/tst-backtrace5.c: Likewise.
4997         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
4998         (CFLAGS-tst-backtrace3.c): Likewise.
4999         (CFLAGS-tst-backtrace4.c): Likewise.
5000         (CFLAGS-tst-backtrace5.c): Likewise.
5001         (LDFLAGS-tst-backtrace2): Likewise.
5002         (LDFLAGS-tst-backtrace3): Likewise.
5003         (LDFLAGS-tst-backtrace4): Likewise.
5004         (LDFLAGS-tst-backtrace5): Likewise.
5005         (tests): Add new tests tst-backtrace2, tst-backtrace3,
5006         tst-backtrace4 and tst-backtrace5.
5007
5008 2013-01-18  Anton Blanchard  <anton@samba.org>
5009             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5010
5011         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
5012         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
5013         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
5014         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
5015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5016         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
5017         "+r" and remove output regs list as redundant.  Add explicit inline
5018         asm to specify register of return val to work around compiler codegen
5019         bug.  Remove (int) cast on return value.  Add return type parameter to
5020         use in macro so that this macro does not truncate return value for
5021         64-bit values.
5022         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
5023         pass to INTERNAL_VSYSCALL_NCS.
5024         (INLINE_VSYSCALL): Add 'long int' as return type to
5025         INTERNAL_VSYSCALL_NCS macro invocation.
5026         (INTERNAL_VSYSCALL): Add 'long int' as return type to
5027         INTERNAL_VSYSCALL_NCS macro invocation.
5028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
5029
5030 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
5031
5032         [BZ #14496]
5033         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
5034         Fix application of SIMD FP exception mask.
5035
5036         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
5037         mp_no from a power of two.
5038         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
5039         __mpexp_twomm1.  Use __pow_mp.
5040
5041         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
5042         multiplication.
5043
5044 2013-01-17  David S. Miller  <davem@davemloft.net>
5045
5046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5047
5048 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5049
5050         [BZ #15023]
5051         * include/complex.h: Condition contents on [!_COMPLEX_H].
5052         (__kernel_casinhf): New prototype.
5053         (__kernel_casinh): Likewise.
5054         (__kernel_casinhl): Likewise.
5055         * math/Makefile (libm_calls): Add k_casinh.
5056         * math/k_casinh.c: New file.
5057         * math/k_casinhf.c: Likewise.
5058         * math/k_casinhl.c: Likewise.
5059         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
5060         finite nonzero arguments.
5061         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
5062         finite nonzero arguments.
5063         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
5064         finite nonzero arguments.
5065         * math/s_casinh.c: Do not include <float.h>.
5066         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
5067         * math/s_casinhf.c: Do not include <float.h>.
5068         (__casinhf): Move code for finite nonzero arguments to
5069         k_casinhf.c.
5070         * math/s_casinhl.c: Do not include <float.h>.
5071         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
5072         redefine.
5073         (__casinhl): Move code for finite nonzero arguments to
5074         k_casinhl.c.
5075         * math/libm-test.inc (cacos_test): Add more tests.
5076         * sysdeps/i386/fpu/libm-test-ulps: Update.
5077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5078
5079 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
5080
5081         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
5082         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
5083         [!HAVE_MREMAP]: Remove [defined linux] case.
5084         * malloc/arena.c: Do not include <malloc-sysdep.h>.
5085
5086 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5087
5088         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
5089
5090 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
5091
5092         * elf/elf.h (R_386_SIZE32): New relocation.
5093         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
5094         R_386_SIZE32.
5095         (elf_machine_rela): Likewise.
5096         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5097         R_X86_64_SIZE64 and R_X86_64_SIZE32.
5098
5099 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
5100
5101         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
5102         (FP_FAST_FMA): Do not define.
5103         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
5104         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
5105         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
5106         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
5107         !_SOFT_FLOAT]: Likewise.
5108         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
5109         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
5110         value.
5111         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
5112         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
5113         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
5114         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
5115         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
5116         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
5117         file.
5118
5119 2013-01-16  Andreas Schwab  <schwab@suse.de>
5120
5121         [BZ #14327]
5122         * include/stdlib.h (__mktemp): Add declaration.
5123         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
5124         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
5125
5126 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5127
5128         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
5129         definitions.
5130         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5131         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
5132         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
5133         definitions here.
5134         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
5135         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
5136         definitions.
5137         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
5138         and ONE.
5139         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
5140         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
5141         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
5142         definitions.
5143         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
5144         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
5145         definitions.
5146         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5147
5148         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
5149
5150 2013-01-15  David S. Miller  <davem@davemloft.net>
5151
5152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5153         trunc{,f} to libm-sysdep_routes.
5154         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
5156         file.
5157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
5158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
5159         file.
5160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
5161         file.
5162         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
5163         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
5164         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
5165         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
5166         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
5167         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
5168         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
5169         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
5170
5171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5172         nearbyint{,f} to libm-sysdep_routes.
5173         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
5175         New file.
5176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
5177         file.
5178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
5179         New file.
5180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
5181         file.
5182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
5183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
5184         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
5185         file.
5186         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
5187         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
5188         file.
5189         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
5190         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
5191         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
5192
5193         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5194         libc_feholdexcept and libc_fesetenv.
5195
5196 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
5197
5198         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
5199
5200 2013-01-14  David S. Miller  <davem@davemloft.net>
5201
5202         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
5203         (SPARC_ASM_VIS2_IFUNC): Likewise.
5204         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
5205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
5206         use of 'siam' instruction.
5207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
5208         Likewise.
5209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
5210         Likewise.
5211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
5212         Likewise.
5213         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5214         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5215         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5216         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
5218         file.
5219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
5220         file.
5221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
5222         file.
5223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
5224         file.
5225         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
5226         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
5227         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
5228         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
5229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
5230         new VIS2 routines.
5231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5234         Likewise.
5235         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5236         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5237         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5238         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
5240         routines to libm-sysdep_routines.
5241         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5242
5243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
5244         fdim/fdimf to libm-sysdep_routines.
5245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
5246         file.
5247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
5248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
5249         file.
5250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
5251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
5252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
5253         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
5254         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
5255         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
5256         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
5257
5258 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5259
5260         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
5261         to optimize copies.
5262
5263         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
5264         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5265         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5266
5267         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
5268         local variable MPTWO.
5269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
5270         Likewise.
5271
5272 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5273
5274         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
5275         GLOB_NOESCAPE.
5276
5277 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5278
5279         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
5280
5281 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
5282
5283         * manual/pattern.texi (glob_t): Document gl_flags.
5284         (glob64_t): Likewise.
5285
5286 2013-01-11  David S. Miller  <davem@davemloft.net>
5287
5288         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
5289         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
5290         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
5291         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
5292         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
5293         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
5294         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
5295         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
5296         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
5297         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
5298         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
5299         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
5300         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
5301
5302         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5303         sparc V9 rather than using V8 code.
5304         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5305         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5306
5307         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5308         Move to...
5309         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
5310         Here.
5311
5312 2013-01-11  Roland McGrath  <roland@hack.frob.com>
5313
5314         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
5315         not in the main loop.
5316         * configure: Regenerated.
5317
5318 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
5321         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
5322         to just #else.
5323         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
5324         [!__GLIBC_HAVE_LONG_LONG] case.
5325         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
5326         condition to just #else.
5327         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
5328         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
5329         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
5330         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
5331         unconditional.
5332         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
5333         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5334         #elif condition to just #else.
5335         * sysdeps/unix/sysv/linux/sys/sysmacros.h
5336         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
5337         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
5338         #elif condition to just #else.
5339
5340 2013-01-11  Steve Ellcey  <sellcey@mips.com>
5341
5342         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
5343         (EF_MIPS_ARCH_64): Fix value.
5344         (EF_MIPS_ARCH_32R2): New.
5345         (EF_MIPS_ARCH_64R2): New.
5346
5347 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5348
5349         * Makeconfig (+link-pie-before-libc): New.
5350         (+link-pie-after-libc): Likewise.
5351         (+link-pie-tests): Likewise.
5352         (+link-pie): Rewritten.
5353         (link-before-libc): Remove $(config-LDFLAGS).
5354         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
5355         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
5356         (config-LDFLAGS): Renamed to ...
5357         (rtld-LDFLAGS): This.
5358         (rtld-tests-LDFLAGS): New macro.
5359         (link-libc-rpath-link): Likewise.
5360         (link-libc-tests-rpath-link): Likewise.
5361         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
5362         (link-libc): Prepand $(link-libc-rpath-link).
5363         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
5364         (test-program-prefix): New macro.
5365         (test-via-rtld-prefix): Likewise.
5366         (test-program-cmd): Likewise.
5367         (host-test-program-cmd): Likewise.
5368         * Makefile ($(common-objpfx)testrun.sh): Replace
5369         $(run-program-prefix) with $(test-program-prefix).
5370         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
5371         $(rtld-LDFLAGS).
5372         ($(common-objpfx)shlib.lds): Likewise.
5373         (build-module-helper): Likewise.
5374         ($(common-objpfx)format.lds): Likewise.
5375         * Rules (binaries-pie-tests): New.
5376         (binaries-pie-notests): Likewise.
5377         (binaries-pie): Rewritten.
5378         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
5379         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
5380         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
5381         (make-test-out): Replace $(host-built-program-cmd) with
5382         $(host-test-program-cmd).
5383         * config.make.in (build-hardcoded-path-in-tests): New variable.
5384         * configure.in (--enable-hardcoded-path-in-tests): New configure
5385         option.
5386         (hardcoded_path_in_tests): New AC_SUBST.
5387         * configure: Regenerated.
5388         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
5389         $(built-program-cmd) with $(test-program-cmd).
5390         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
5391         (test_program_cmd): This.
5392         * elf/Makefile ($(objpfx)order.out): Run test with
5393         $(test-program-prefix).
5394         ($(objpfx)order2.out): Likewise.
5395         ($(objpfx)tst-initorder.out): Likewise.
5396         ($(objpfx)tst-initorder2.out): Likewise.
5397         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
5398         $(test-program-cmd).
5399         ($(objpfx)tst-array1-static.out): Likewise.
5400         ($(objpfx)tst-array2.out): Likewise.
5401         ($(objpfx)tst-array3.out): Likewise.
5402         ($(objpfx)tst-array4.out): Likewise.
5403         ($(objpfx)tst-array5.out): Likewise.
5404         ($(objpfx)tst-array5-static.out): Likewise.
5405         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
5406         $(test-program-cmd).
5407         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
5408         $(run-program-prefix) with $(test-program-prefix).
5409         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
5410         (test_program_prefix): This.
5411         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
5412         $(run-program-prefix) with $(test-program-prefix).
5413         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
5414         (test_program_prefix): This.
5415         * iconvdata/tst-tables.sh: Likewise.
5416         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
5417         $(run-program-prefix) with $(test-program-prefix).
5418         ($(objpfx)tst-translit.out): Likewise.
5419         ($(objpfx)tst-gettext2.out): Likewise.
5420         ($(objpfx)tst-gettext4.out): Likewise.
5421         ($(objpfx)tst-gettext6.out): Likewise.
5422         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
5423         (test_program_prefix): This.
5424         * intl/tst-gettext2.sh: Likewise.
5425         * intl/tst-gettext4.sh  Likewise.
5426         * intl/tst-gettext6.sh: Likewise.
5427         * intl/tst-translit.sh: Likewise.
5428         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
5429         with $(test-program-cmd).
5430         * libio/Makefile ($(objpfx)test-freopen.out): Replace
5431         $(run-program-prefix) with $(test-program-prefix).
5432         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
5433         (test_program_prefix): This.
5434         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
5435         $(run-program-prefix) with $(test-program-prefix).
5436         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
5437         (test_program_prefix): This.
5438         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
5439         * posix/Makefile ($(objpfx)globtest.out): Replace
5440         $(run-via-rtld-prefix) and $(test-wrapper) with
5441         $(test-program-prefix) and $(test-via-rtld-prefix).
5442         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
5443         $(test-program-prefix).
5444         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
5445         $(host-test-program-cmd).
5446         (tst-spawn-ARGS): Likewise.
5447         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
5448         $(test-program-prefix).
5449         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
5450         (test_via_rtld_prefix): This.
5451         (test_wrapper): Renamed to ...
5452         (test_program_prefix): This.
5453         (run_program_prefix): Replaced by test_program_prefix.
5454         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
5455         (test_program_prefix): This.
5456         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
5457         with $(host-test-program-cmd).
5458         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
5459         $(run-program-prefix) with $(test-program-prefix).
5460         ($(objpfx)tst-printf.out): Likewise.
5461         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
5462         $(test-program-cmd).
5463         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
5464         (test_program_prefix): This.
5465         * stdio-common/tst-unbputc.sh: Likewise.
5466         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
5467         $(run-program-prefix) with $(test-program-prefix).
5468         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
5469         (test_program_prefix): This.
5470         * string/Makefile ($(objpfx)tst-svc.out):  Replace
5471         $(built-program-cmd) with $(test-program-cmd).
5472
5473 2013-01-11  Andreas Jaeger  <aj@suse.de>
5474
5475         [BZ #15003]
5476         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
5477         value. Sync with Linux 3.7.
5478
5479 2013-01-10  David S. Miller  <davem@davemloft.net>
5480
5481         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
5482         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5483         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5484
5485 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5486
5487         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
5488         never set.
5489         * configure: Regenerated.
5490
5491 2013-01-10  David S. Miller  <davem@davemloft.net>
5492
5493         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
5494         sparc V9 rather than using V8 code.
5495         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
5496         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
5497
5498 2013-01-10  Roland McGrath  <roland@hack.frob.com>
5499
5500         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
5501         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
5502         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
5503         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
5504         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
5505         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
5506         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
5507         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
5508         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
5509         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
5510         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
5511         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
5512         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
5513         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
5514         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
5515         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
5516         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
5517         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
5518         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
5519         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
5520         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
5521         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
5522         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
5523         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
5524         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
5525         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
5526         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
5527
5528 2013-01-10  David S. Miller  <davem@davemloft.net>
5529
5530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5531
5532 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5533
5534         * posix/Makefile (tests-static): New variable.
5535         (tests): Add $(tests-static).
5536         (tst-exec-static-ARGS): New variable.
5537         (tst-spawn-static-ARGS): Likewise.
5538         * posix/tst-exec-static.c: New file.
5539         * posix/tst-spawn-static.c: Likewise.
5540         * posix/tst-exec.c: Support run directly.
5541         * posix/tst-spawn.c: Likewise.
5542
5543 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
5544
5545         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
5546         long.
5547         * math/bits/mathcalls.h (llrint): Likewise.
5548         (llround): Likewise.
5549         * stdlib/stdlib.h (struct drand48_data): Likewise.
5550         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
5551         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
5552         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
5553         Likewise.
5554         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
5555         Likewise.
5556         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
5557         (elf_greg_t): Likewise.
5558         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
5559         (__jmp_buf): Likewise.
5560         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
5561         definitions.
5562         (llrint): Likewise, for all definitions.
5563         (llrintl): Likewise.
5564
5565         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
5566         Remove [__GNUC__] condition.
5567         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
5568         condition to just [__USE_ISOC99].
5569         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
5570
5571 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         [BZ #14200]
5574         * sysdeps/unix/sysv/linux/x86/bits/environments.h
5575         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
5576         defined.
5577         (_POSIX_V6_ILP32_OFF32): Likewise.
5578         (_XBS5_ILP32_OFF32): Likewise.
5579         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
5580         (__ILP32_OFFBIG_LDFLAGS): Likewise.
5581
5582 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5583
5584         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
5585
5586         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
5587         doubles __mpexp_twomm1.  Adjust usage.
5588         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
5589         Remove.
5590
5591 2013-01-10  Andreas Schwab  <schwab@suse.de>
5592
5593         [BZ #14964]
5594         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
5595         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
5596
5597 2013-01-09  David S. Miller  <davem@davemloft.net>
5598
5599         [BZ #15003]
5600         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
5601         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
5602         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
5603         TCP_FASTOPEN): Define.
5604         (tcp_repair_opt): New structure.
5605         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
5606         enum values.
5607         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
5608         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
5609         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
5610         (tcp_cookie_transactions): New structure.
5611
5612 2013-01-09  Anton Blanchard  <anton@samba.org>
5613
5614         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
5615         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
5616         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
5617         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
5618
5619 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
5620
5621         * include/features.h (__USE_ANSI): Remove.
5622
5623 2013-01-09  Roland McGrath  <roland@hack.frob.com>
5624
5625         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
5626
5627         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
5628
5629 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5630
5631         * sysdeps/s390/fpu/libm-test-ulps: Update.
5632
5633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5634
5635         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
5636         (__acr): Likewise.
5637         (__cpy): Likewise.
5638         (norm): Likewise.
5639         (denorm): Likewise.
5640         (__mp_dbl): Likewise.
5641         (__dbl_mp): Likewise.
5642         (add_magnitudes): Likewise.
5643         (sub_magnitudes): Likewise.
5644         (__add): Likewise.
5645         (__sub): Likewise.
5646         (__mul): Likewise.
5647         (__inv): Likewise.
5648         (__dvd): Likewise.
5649         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
5650         (__acr): Likewise.
5651         (__cpy): Likewise.
5652         (norm): Likewise.
5653         (denorm): Likewise.
5654         (__mp_dbl): Likewise.
5655         (__dbl_mp): Likewise.
5656         (add_magnitudes): Likewise.
5657         (sub_magnitudes): Likewise.
5658         (__add): Likewise.
5659         (__sub): Likewise.
5660         (__mul): Likewise.
5661         (__inv): Likewise.
5662         (__dvd): Likewise.
5663         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
5664         (__acr): Likewise.
5665         (__cpy): Likewise.
5666         (norm): Likewise.
5667         (denorm): Likewise.
5668         (__mp_dbl): Likewise.
5669         (__dbl_mp): Likewise.
5670         (add_magnitudes): Likewise.
5671         (sub_magnitudes): Likewise.
5672         (__add): Likewise.
5673         (__sub): Likewise.
5674         (__mul): Likewise.
5675         (__inv): Likewise.
5676         (__dvd): Likewise.
5677
5678 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
5679
5680         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
5681         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
5682         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
5683         2 && __USE_EXTERN_INLINES]: Likewise.
5684
5685 2013-01-08  Andreas Jaeger  <aj@suse.de>
5686
5687         [BZ# 14985]
5688         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
5689         Remove.
5690         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5691         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
5692
5693 2013-01-07  Anton Blanchard  <anton@samba.org>
5694
5695         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
5696         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5697         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
5698         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
5699         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5700         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5701         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5702         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
5703         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5704         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
5705         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5706         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5707         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5708         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5709         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
5710         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5711         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5712         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5713         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
5714         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5715         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
5716         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
5717         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
5718         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
5719         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
5720         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5721         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5722         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
5723         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
5724         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5725         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
5726         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5727         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
5728         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5729         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5730         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
5731         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5732         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
5733         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
5734         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
5735         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
5736         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
5737         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
5738
5739 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
5740
5741         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
5742         (__MALLOC_PMT): Likewise.
5743         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
5744         [__GNUC__], only on [_LIBC].
5745         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5746         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
5747         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
5748         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
5749         forward declaration.
5750         (realloc_hook_ini): Likewise.
5751         (memalign_hook_ini): Likewise.
5752         (__libc_memalign): Do not use __MALLOC_PMT in variable
5753         declaration.
5754         (__libc_valloc): Likewise.
5755         (__libc_pvalloc): Likewise.
5756         (__libc_calloc): Likewise.
5757         (__posix_memalign): Likewise.
5758
5759         [BZ #14996]
5760         * math/s_casinh.c: Include <float.h>.
5761         (__casinh): Do not do computation with squaring and square root
5762         for large arguments.
5763         * math/s_casinhf.c: Include <float.h>.
5764         (__casinhf): Do not do computation with squaring and square root
5765         for large arguments.
5766         * math/s_casinhl.c: Include <float.h>.
5767         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
5768         (__casinhl): Do not do computation with squaring and square root
5769         for large arguments.
5770         * math/libm-test.inc (casin_test): Add more tests.
5771         (casinh_test): Likewise.
5772         * sysdeps/i386/fpu/libm-test-ulps: Update.
5773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5774
5775 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
5778         (__x86_64_raw_data_cache_size): Likewise.
5779         (__x86_64_data_cache_size_half): Likewise.
5780         (__x86_64_raw_data_cache_size_half): Likewise.
5781         (__x86_64_shared_cache_size): Likewise.
5782         (__x86_64_raw_shared_cache_size): Likewise.
5783         (__x86_64_shared_cache_size_half): Likewise.
5784         (__x86_64_raw_shared_cache_size_half): Likewise.
5785         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
5786         to ...
5787         (__x86_data_cache_size): This.
5788         (__x86_64_raw_data_cache_size): Renamed to ...
5789         (__x86_raw_data_cache_size): This.
5790         (__x86_64_data_cache_size_half): Renamed to ...
5791         (__x86_data_cache_size_half): This.
5792         (__x86_64_raw_data_cache_size_half): Renamed to ...
5793         (__x86_raw_data_cache_size_half): This.
5794         (__x86_64_shared_cache_size): Renamed to ...
5795         (__x86_shared_cache_size): This.
5796         (__x86_64_raw_shared_cache_size): Renamed to ...
5797         (__x86_raw_shared_cache_size): This.
5798         (__x86_64_shared_cache_size_half): Renamed to ...
5799         (__x86_shared_cache_size_half): This.
5800         (__x86_64_raw_shared_cache_size_half): Renamed to ...
5801         (__x86_raw_shared_cache_size_half): This.
5802         * sysdeps/x86_64/memcpy.S: Updated.
5803         * sysdeps/x86_64/memset.S: Likewise.
5804         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
5805         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
5806         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5807
5808 2013-01-04  David S. Miller  <davem@davemloft.net>
5809
5810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5811
5812 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
5813
5814         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
5815         1 to avoid redefinition warning.
5816         (__USE_GNU): Don't define.
5817         (init_signaling_nan): Protoize.
5818
5819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5820
5821 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5822
5823         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
5824         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
5825         (__cpymn): Likewise.
5826         (norm): Remove commented code.
5827         (denorm): Likewise.
5828         (__mp_dbl): Likewise.
5829         (__inv): Likewise.
5830         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
5831         (__cpymn): Likewise.
5832         (norm): Remove commented code.
5833         (denorm): Likewise.
5834         (__mp_dbl): Likewise.
5835         (__inv): Likewise.
5836
5837         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
5838         mp_no value for 1.0 and 2.0.
5839         (norm): Use RADIXI instead of radixi.d.
5840         (denorm): Likewise.
5841         (__mul): Use 0.0 instead of zero.d.
5842         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
5843         mp_no value for 1.0 and 2.0.
5844         (norm): Use RADIXI instead of radixi.d.
5845         (denorm): Likewise.
5846         (__mul): Use 0.0 instead of zero.d.
5847
5848 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
5849
5850         [BZ #14994]
5851         * math/s_casinh.c (__casinh): Reduce finite argument to first
5852         quadrant then set signs of results at the end.
5853         * math/s_casinhf.c (__casinhf): Likewise.
5854         * math/s_casinhl.c (__casinhl): Likewise.
5855         * math/libm-test.inc (casin_test): Add more tests.
5856         (casinh_test): Likewise.
5857         * sysdeps/i386/fpu/libm-test-ulps: Update.
5858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5859
5860 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5861
5862         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
5863
5864         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
5865
5866         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
5867         declarations.
5868         (denorm): Likewise.
5869         (__mp_dbl): Likewise.
5870         (__inv): Likewise.
5871
5872         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
5873         and adjust the header comment.
5874
5875         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
5876         variable name from declaration.
5877
5878 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
5879
5880         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5881         Initialize COMMON_CPUID_INDEX_7 element.
5882         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
5883         (CPUID_RTM): Likewise.
5884         (HAS_RTM): Likewise.
5885         (COMMON_CPUID_INDEX_7): New enum.
5886
5887 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
5888
5889         [BZ #14981]
5890         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
5891         size is zero, record memory as freed.
5892
5893 2013-01-03  Andreas Jaeger  <aj@suse.de>
5894
5895         * po/ia.po: Add new Interlingua translation.
5896
5897 2012-01-03  Allan McRae  <allan@archlinux.org>
5898
5899         * locale/programs/localedef.c: Fix description of '--posix' flag.
5900
5901 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
5902
5903         * NEWS: Update dates in second copyright notice.
5904         * README: Update copyright dates in example.
5905         * manual/libc.texinfo: Update copyright dates.
5906         * scripts/test-installation.pl: Update copyright date in --version
5907         output.
5908
5909         * hurd/ctty-input.c: Fix copyright notice formatting.
5910         * hurd/ctty-output.c: Likewise.
5911         * hurd/dtable.c: Likewise.
5912         * hurd/hurd-raise.c: Likewise.
5913         * hurd/hurdprio.c: Likewise.
5914         * hurd/msgportdemux.c: Likewise.
5915         * misc/sys/file.h: Likewise.
5916         * misc/sys/ioctl.h: Likewise.
5917         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
5918         * sysdeps/mach/hurd/chdir.c: Likewise.
5919         * sysdeps/mach/hurd/fchdir.c: Likewise.
5920         * sysdeps/mach/hurd/rename.c: Likewise.
5921         * sysdeps/mach/hurd/rmdir.c: Likewise.
5922         * sysdeps/mach/hurd/seekdir.c: Likewise.
5923         * sysdeps/mach/hurd/setsid.c: Likewise.
5924         * sysdeps/posix/wait3.c: Likewise.
5925
5926         * All files with FSF copyright notices: Update copyright dates
5927         using scripts/update-copyrights.
5928         * intl/plural.c: Regenerated.
5929         * locale/programs/charmap-kw.h: Likewise.
5930         * locale/programs/locfile-kw.h: Likewise.
5931
5932 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5933
5934         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
5935         four values.
5936
5937         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
5938         calculation loop and add branch prediction.
5939
5940         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
5941         check access beyond bounds of m1np.
5942
5943         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5944         MPTWO.
5945         (__inv): Remove local variable MPTWO to use the global
5946         constant.
5947         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
5948         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5949         variable MPTWO.
5950         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
5951         MP3HALFS static const.
5952
5953 2013-01-01  David S. Miller  <davem@davemloft.net>
5954
5955         * po/ca.po: Update from translation team.
5956
5957 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
5958
5959         * scripts/update-copyrights: New file.
5960         * Makeconfig: Reformat copyright notice.
5961         * ctype/ctype.h: Likewise.
5962         * debug/swprintf_chk.c: Likewise.
5963         * elf/dl-cache.c: Likewise.
5964         * elf/dl-debug.c: Likewise.
5965         * elf/dl-object.c: Likewise.
5966         * grp/initgroups.c: Likewise.
5967         * hurd/Makefile: Likewise.
5968         * hurd/hurd/signal.h: Likewise.
5969         * hurd/hurdfault.c: Likewise.
5970         * hurd/hurdioctl.c: Likewise.
5971         * hurd/hurdlookup.c: Likewise.
5972         * hurd/intr-msg.c: Likewise.
5973         * iconv/gconv_open.c: Likewise.
5974         * libio/swprintf.c: Likewise.
5975         * locale/lc-ctype.c: Likewise.
5976         * locale/nl_langinfo.c: Likewise.
5977         * mach/Machrules: Likewise.
5978         * mach/Makefile: Likewise.
5979         * malloc/obstack.h: Likewise.
5980         * manual/Makefile: Likewise.
5981         * manual/tsort.awk: Likewise.
5982         * misc/bits/stab.def: Likewise.
5983         * nis/nis_print_group_entry.c: Likewise.
5984         * nis/nis_table.c: Likewise.
5985         * nis/nss_compat/compat-pwd.c: Likewise.
5986         * nis/nss_compat/compat-spwd.c: Likewise.
5987         * po/Makefile: Likewise.
5988         * posix/fnmatch.c: Likewise.
5989         * posix/regex.h: Likewise.
5990         * resolv/Makefile: Likewise.
5991         * resolv/nss_dns/dns-network.c: Likewise.
5992         * resolv/res_hconf.c: Likewise.
5993         * scripts/gen-sorted.awk: Likewise.
5994         * soft-fp/soft-fp.h: Likewise.
5995         * stdio-common/printf.h: Likewise.
5996         * stdlib/monetary.h: Likewise.
5997         * stdlib/random.c: Likewise.
5998         * stdlib/random_r.c: Likewise.
5999         * sysdeps/generic/Makefile: Likewise.
6000         * sysdeps/gnu/Makefile: Likewise.
6001         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6002         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6003         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6004         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6005         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6006         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6007         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6008         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6009         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6010         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6011         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6012         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6013         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6014         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6015         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
6016         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6017         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6018         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6019         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6020         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6021         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6022         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6023         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6024         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6025         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
6026         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6027         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
6028         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
6029         * sysdeps/mach/hurd/errnos.awk: Likewise.
6030         * sysdeps/mach/hurd/fork.c: Likewise.
6031         * sysdeps/mach/hurd/getcwd.c: Likewise.
6032         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
6033         * sysdeps/mach/hurd/mmap.c: Likewise.
6034         * sysdeps/mach/hurd/utimes.c: Likewise.
6035         * sysdeps/mach/hurd/xmknod.c: Likewise.
6036         * sysdeps/posix/profil.c: Likewise.
6037         * sysdeps/posix/readdir_r.c: Likewise.
6038         * sysdeps/powerpc/bits/mathdef.h: Likewise.
6039         * sysdeps/powerpc/bits/setjmp.h: Likewise.
6040         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
6041         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
6042         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6043         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6044         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6045         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6046         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6047         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6048         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6049         * sysdeps/pthread/lio_listio.c: Likewise.
6050         * sysdeps/sparc/dl-procinfo.h: Likewise.
6051         * sysdeps/unix/i386/sysdep.S: Likewise.
6052         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
6053         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
6054         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
6055         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
6056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
6057         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
6058         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
6059         * sysdeps/unix/sysv/linux/speed.c: Likewise.
6060         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
6061         * sysdeps/wordsize-32/divdi3.c: Likewise.
6062         * time/sys/time.h: Likewise.
6063         * wcsmbs/Makefile: Likewise.
6064
6065 2013-01-01  David S. Miller  <davem@davemloft.net>
6066
6067         * po/fr.po: Update from translation team.
6068
6069         * catgets/gencat.c: Update copyright year.
6070         * csu/version.c: Likewise.
6071         * debug/catchsegv.sh: Likewise.
6072         * debug/pcprofiledump.c: Likewise.
6073         * debug/xtrace.sh: Likewise.
6074         * elf/ldconfig.c: Likewise.
6075         * elf/ldd.bash.in: Likewise.
6076         * elf/pldd.c: Likewise.
6077         * elf/sotruss.ksh: Likewise.
6078         * elf/sprof.c: Likewise.
6079         * iconv/iconv_prog.c: Likewise.
6080         * iconv/iconvconfig.c: Likewise.
6081         * locale/programs/locale.c: Likewise.
6082         * locale/programs/localedef.c: Likewise.
6083         * login/programs/pt_chown.c: Likewise.
6084         * malloc/memusage.sh: Likewise.
6085         * malloc/memusagestat.c: Likewise.
6086         * malloc/mtrace.pl: Likewise.
6087         * nscd/nscd.c: Likewise.
6088         * nss/getent.c: Likewise.
6089         * nss/makedb.c: Likewise.
6090         * posix/getconf.c: Likewise.
6091
6092 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
6093
6094         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
6095         numbers.
6096
6097 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
6098
6099         * math/bits/mathcalls.h (modf): Use __nonnull.
6100
6101 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6102
6103         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
6104         (split): Use macro CN instead of the bare value.
6105         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
6106         could be used.
6107         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
6108         instead of the bare value.
6109         (power1): Likewise.
6110
6111 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6112
6113         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
6114         __ATAN_TWOM.
6115         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6116
6117         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
6118         their values.
6119         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
6120         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6121         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
6122         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
6123
6124 2012-12-28  Andreas Jaeger  <aj@suse.de>
6125
6126         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
6127         values are from Linux 3.7.
6128
6129         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
6130         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
6131
6132 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6133
6134         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
6135         TRUE case.
6136
6137         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
6138         (norm): Likewise.
6139         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
6140         variables with preprocessor constants.
6141         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6142         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6143         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6144
6145 2012-12-27  Bruno Haible  <bruno@clisp.org>
6146
6147         [BZ #14317]
6148         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
6149         only if needed.
6150
6151 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6152
6153         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
6154         and use variable directly.
6155         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
6156
6157         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
6158         MPONE.
6159         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
6160         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
6161         variable MPONE.
6162         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6163         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6164         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
6165         include directive.  Remove local variable MPONE.
6166         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
6167         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
6168         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6169
6170 2012-12-25  David S. Miller  <davem@davemloft.net>
6171
6172         * version.h (RELEASE): Set to "development".
6173         (VERSION): Set to "2.17.90".
6174         * NEWS: Add 2.18 section.
6175
6176 2012-12-21  David S. Miller  <davem@davemloft.net>
6177
6178         * po/hr.po: Update from translation team.
6179
6180 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6181
6182         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
6183
6184 2012-12-19  Steve Ellcey  <sellcey@mips.com>
6185
6186         * NEWS:  Mention new memcpy for MIPS.
6187
6188 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6189
6190         * manual/contrib.texi (Contributors): Spelling correction.
6191
6192 2012-12-15  David S. Miller  <davem@davemloft.net>
6193
6194         * po/ru.po: Update from translation team.
6195
6196 2012-12-13  David S. Miller  <davem@davemloft.net>
6197
6198         * NEWS: Mention IFUNC testsuite enhancements.
6199
6200         * po/pl.po: Update from translation team.
6201         * po/bg.po: Likewise.
6202
6203         * manual/contrib.texi (Contributors): Update entries for Hongjiu
6204         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
6205
6206 2012-12-11  David S. Miller  <davem@davemloft.net>
6207
6208         * po/sv.po: Update from translation team.
6209
6210         * po/vi.po: Update from translation team.
6211
6212         * po/cs.po: Update from translation team.
6213
6214         * po/de.po: Update from translation team.
6215         * po/eo.po: Likewise.
6216         * po/nl.po: Likewise.
6217
6218 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6219
6220         [BZ #14246]
6221         * manual/argp.texi (Argp Helper Functions): Move node to follow
6222         Argp Parsing State.
6223
6224         [BZ #14872]
6225         * manual/conf.texi (Limits on File System Capacity): Mention if
6226         terminating null is included in the max size.
6227
6228 2012-12-10  Andreas Jaeger  <aj@suse.de>
6229
6230         * po/cs.po: Update from translation team.
6231
6232 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
6233
6234         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
6235         void pointer and cast to uintptr_t.
6236         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
6237         path.
6238         * sysdeps/s390/s390-64/memcpy.S: Likewise.
6239         * sysdeps/s390/s390-64/memset.S: Likewise.
6240
6241 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
6242
6243         [BZ #14833]
6244         * menual/message.texi (Message Translation): Fix typos.
6245         (Helper programs for gettext): Likewise.
6246
6247 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
6248
6249         [BZ #14898]
6250         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
6251         Change to -1.
6252
6253 2012-12-07  David S. Miller  <davem@davemloft.net>
6254
6255         * po/libc.pot: Update.
6256
6257 2012-12-07  Richard Henderson  <rth@redhat.com>
6258
6259         [BZ #10114]
6260         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
6261         normal/normal case to before the switch.
6262         (_FP_DIV): Likewise.
6263
6264 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
6265             Mike Frysinger  <vapier@gentoo.org>
6266
6267         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
6268         check for __NR_fadvise64_64.
6269
6270 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
6271
6272         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
6273         0, not just to plain "0" as a statement.
6274         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
6275         with cw.
6276
6277 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
6278
6279         * NEWS: Use sourceware.org in Bugzilla URL.
6280
6281 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6282
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6284         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6285
6286         * stdio-common/tst-put-error.c (do_test): Add newline to the
6287         padded test to ensure flush.
6288
6289 2012-12-05  Jeff Law  <law@redhat.com>
6290
6291         * sunrpc/etc.rpc (fedfs_admin): Add entry.
6292
6293 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
6294
6295         * README: Don't refer to ports add-on as distributed separately.
6296         Mention AArch64 in list of systems supported in the ports add-on.
6297
6298         * LICENSES: Add more non-FSF copyright and license notices.
6299
6300         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
6301         ((unused)).
6302
6303         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
6304
6305         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
6306         10000 as width of padded output.
6307
6308 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6309
6310         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
6311
6312         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
6313         variable LX with __attribute__ ((unused)).
6314         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6315         Likewise.
6316         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
6317         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6318         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
6319         with __attribute__ ((unused)).
6320
6321 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
6322
6323         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
6324
6325 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
6328         (CFLAGS-nldbl-acos.c): New variable.
6329         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
6330         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
6331         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
6332         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
6333         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
6334         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
6335         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
6336         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
6337         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
6338         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
6339         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
6340         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
6341         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
6342         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
6343         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
6344         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
6345         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
6346         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
6347         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
6348         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
6349         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
6350         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
6351         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
6352         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
6353         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
6354         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
6355         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
6356         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
6357         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
6358         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
6359         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
6360         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
6361         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
6362         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
6363         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
6364         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
6365         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
6366         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
6367         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
6368         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
6369         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
6370         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
6371         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
6372         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
6373         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
6374         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
6375         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
6376         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
6377         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
6378         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
6379         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
6380         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
6381         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
6382         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
6383         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
6384         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
6385         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
6386         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
6387         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
6388         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
6389         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
6390         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
6391         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
6392         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
6393         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
6394         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
6395         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
6396         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
6397         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
6398         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
6399         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
6400         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
6401         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
6402         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
6403         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
6404         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
6405         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
6406         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
6407         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
6408         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
6409         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
6410         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
6411         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
6412         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
6413         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
6414         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
6415         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
6416         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
6417         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
6418         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
6419         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
6420         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
6421         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
6422         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
6423         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
6424         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
6425         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
6426
6427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
6428         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
6429
6430         [BZ #14914]
6431         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
6432         whole low double instead of just low 47 bits when splitting values
6433         into two parts.
6434
6435 2012-12-03  Allan McRae  <allan@archlinux.org>
6436
6437         * manual/stdio.texi (Predefined Printf Handlers): Remove
6438         @hsep and @vsep usage.
6439
6440 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
6441
6442         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
6443         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
6444
6445 2012-12-03  Jeff Law  <law@redhat.com>
6446
6447         * time/sys/time.h (settimeofday): Do not mark TV argument
6448         as __nonnull.
6449
6450 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
6451
6452         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
6453         when currently writing and seek to current position when not.
6454         * libio/Makefile (tests): Remove bug-fclose1.
6455         * libio/bug-fclose1.c: Delete.
6456
6457 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
6458
6459         * manual/arith.texi (feenableexcept): Fix typo.
6460         (fedisableexcept): Likewise.
6461
6462 2012-11-30  Roland McGrath  <roland@hack.frob.com>
6463
6464         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
6465         second, differently-typed declaration, rather than a cast.
6466
6467 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6468
6469         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
6470         * include/rpc/svc.h: ... here.
6471
6472 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
6473
6474         [BZ #13013]
6475         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
6476         depending n and resplen2 to catch cases where answer
6477         equals answerp2.
6478
6479 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
6480
6481         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
6482         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
6483
6484 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
6485
6486         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
6487
6488 2012-11-29  Roland McGrath  <roland@hack.frob.com>
6489
6490         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
6491
6492 2012-11-28  Jeff Law  <law@redhat.com>
6493
6494         [BZ #13761]
6495         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
6496         dataset_temporary.  Track alloca usage into alloca_used.
6497         If dataset is large allocate and release it via malloc/free.
6498
6499 2012-06-04  Florian Weimer  <fweimer@redhat.com>
6500
6501         [BZ #14197]
6502         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
6503
6504 2012-11-28  David S. Miller  <davem@davemloft.net>
6505
6506         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6507
6508 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6509
6510         [BZ #14803]
6511         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
6512         of pi/2 rounded to nearest to 64 bits.
6513         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
6514         nearest to 64 bits.
6515         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
6516         bits.
6517
6518 2012-11-28  Jeff Law <law@redhat.com>
6519             Martin Osvald <mosvald@redhat.com>
6520
6521         [BZ #14889]
6522         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
6523         * sunrpc/svc.c: Include time.h.
6524         (__svc_accept_failed): New function.
6525         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
6526         any reason other than EINTR, call __svc_accept_failed.
6527         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
6528         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
6529
6530 2012-11-28  Andreas Schwab  <schwab@suse.de>
6531
6532         * scripts/abilist.awk: Also handle indirect functions in .opd
6533         section.
6534
6535 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
6536
6537         [BZ #13881]
6538         * sysdeps/x86/fpu/powl_helper.c: New file.
6539         * sysdeps/x86/fpu/Makefile: Likewise.
6540         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
6541         (p3): New object.
6542         (__ieee754_powl): Use __powl_helper for finite arguments except
6543         integer exponents below 8.
6544         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
6545         (p3): New object.
6546         (__ieee754_powl): Use __powl_helper for finite arguments except
6547         integer exponents below 8.
6548         * math/libm-test.inc (pow_test): Add more tests and enable some
6549         previously disabled tests.
6550         * sysdeps/i386/fpu/libm-test-ulps: Update.
6551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6552
6553 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6554             Carlos O'Donell  <carlos_odonell@mentor.com>
6555
6556         * nss/makedb.c (is_prime): Assert that input is odd and greater
6557         than 4.  Note that fact in a comment too.
6558         (next_prime): Add 4 to input.
6559
6560 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6561
6562         [BZ #11741]
6563         * libio/Makefile (tests): Add test case tst-fwrite-error.
6564         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
6565         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6566         * libio/tst-fwrite-error.c: New test case.
6567
6568 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
6569
6570         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
6571         before casting to void *.
6572         * include/libc-internal.h (__pointer_type): New macro.
6573         (__integer_if_pointer_type_sub): Likewise.
6574         (__integer_if_pointer_type): Likewise.
6575         (cast_to_integer): Likewise.
6576         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
6577         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
6578         before casting to atomic64_t.
6579         (atomic_exchange_acq): Likewise.
6580         (__arch_exchange_and_add_body): Likewise.
6581         (__arch_add_body): Likewise.
6582         (atomic_add_negative): Likewise.
6583         (atomic_add_zero): Likewise.
6584
6585 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
6586
6587         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
6588         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
6589         (add_fdes): Likewise.
6590         (linear_search_fdes): Likewise.
6591         (binary_search_unencoded_fdes): Likewise.
6592
6593 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
6594
6595         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
6596
6597 2012-11-24  Adam Conrad  <adconrad@0c3.net>
6598
6599         * configure.in: Autodetect C++ header directories.
6600         * configure: Regenerated.
6601
6602 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
6603
6604         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
6605
6606 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
6607
6608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6609
6610 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
6611
6612         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
6613         LDBL_MANT_DIG == 106]: Disable some tests.
6614         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6615         Likewise.
6616         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
6617         Likewise.
6618
6619         [BZ #14871]
6620         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
6621         input for small inputs.  Return +/- pi/2 for large inputs.
6622         * math/libm-test.inc (atan_test): Add more tests.
6623
6624         * sysdeps/generic/unwind-dw2-fde-glibc.c
6625         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
6626         __attribute__ ((unused)).
6627
6628         [BZ #14645]
6629         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
6630         x * y if x and y are nonzero and z is zero.
6631
6632         [BZ #14811]
6633         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
6634         nonzero exponents with absolute value below 0x1p-117 to +/-
6635         0x1p-117.
6636
6637         [BZ #14869]
6638         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
6639         up arguments below 2**-450, not just those below 2**-500.
6640         * math/libm-test.inc (hypot_test): Add another test.
6641
6642         [BZ #14868]
6643         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
6644         Return a+b for ratio over 2**120, not 2**60.
6645         * math/libm-test.inc (hypot_test): Add another test.
6646
6647         * math/libm-test.inc (clog_test): Use
6648         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
6649         (clog10_test): Likewise.
6650
6651         [BZ #6778]
6652         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
6653
6654 2012-11-22  Andreas Schwab  <schwab@suse.de>
6655
6656         * sysdeps/i386/fpu/libm-test-ulps: Update.
6657
6658 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
6659
6660         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
6661         printf output with newline.
6662
6663 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         [BZ #14865]
6666         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
6667         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
6668         -z nodlopen, -z initfirst and -z execstack support.
6669         * configure: Regenerated.
6670
6671         * elf/elf.h (DF_1_NODIRECT): New macro.
6672         (DF_1_IGNMULDEF): Likewise.
6673         (DF_1_NOKSYMS): Likewise.
6674         (DF_1_NOHDR): Likewise.
6675         (DF_1_EDITED): Likewise.
6676         (DF_1_NORELOC): Likewise.
6677         (DF_1_SYMINTPOSE): Likewise.
6678         (DF_1_GLOBAUDIT): Likewise.
6679         (DF_1_SINGLETON): Likewise.
6680         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
6681         DT_1_SUPPORTED_MASK bits.
6682         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
6683
6684 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
6685
6686         * sysdeps/unix/make-syscalls.sh: Document prefixes.
6687
6688 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
6689
6690         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
6691         macro.
6692
6693         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
6694         (sendmmsg): Move declarations...
6695         * socket/sys/socket.h: ... here.
6696         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
6697         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
6698         include it from...
6699         * socket/recvmmsg.c: ... this new file.
6700         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
6701         (sendmmsg): Rename to __sendmmsg, create weak alias and make
6702         definition of __sendmmsg hidden.
6703         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
6704         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
6705         Move ENOSYS stub into and include it from...
6706         * socket/sendmmsg.c: ... this new file.
6707         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
6708         (sysdep_routines): Move recvmmsg and sendmmsg...
6709         * socket/Makefile (routines): ... here.
6710         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
6711         (GLIBC_PRIVATE): Add __sendmmsg.
6712         * include/sys/socket.h (__sendmmsg): Add declarations.
6713         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
6714         sendmmsg.
6715
6716 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
6717
6718         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
6719         variable I1 with __attribute__ ((unused)).
6720         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6721
6722 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6723
6724         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
6725         DUMMY variables with __attribute__ ((unused)).
6726
6727         * bits/byteswap.h: Include <bits/types.h>.
6728         (__bswap_64): Use __uint64_t instead of unsigned long long int.
6729
6730 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6731
6732         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
6733         string_t.  Do not manually set errno.
6734         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
6735         length with __strnlen.  Make sure to both set errno and return it on
6736         failure.
6737
6738 2012-11-19  David S. Miller  <davem@davemloft.net>
6739
6740         With help from Joseph Myers.
6741         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
6742         very large arguments properly.
6743         * math/libm-test.inc (atan_test): New tests.
6744         (atan2_test): New tests.
6745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6747
6748 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
6749
6750         [BZ #14856]
6751         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
6752         Define to 3.
6753
6754         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
6755         [POSIX] (EADDRNOTAVAIL): Likewise.
6756         [POSIX] (EAFNOSUPPORT): Likewise.
6757         [POSIX] (EALREADY): Likewise.
6758         [POSIX] (ECONNABORTED): Likewise.
6759         [POSIX] (ECONNREFUSED): Likewise.
6760         [POSIX] (ECONNRESET): Likewise.
6761         [POSIX] (EDESTADDRREQ): Likewise.
6762         [POSIX] (EDQUOT): Likewise.
6763         [POSIX] (EHOSTUNREACH): Likewise.
6764         [POSIX] (EIDRM): Likewise.
6765         [POSIX] (EISCONN): Likewise.
6766         [POSIX] (ELOOP): Likewise.
6767         [POSIX] (EMULTIHOP): Likewise.
6768         [POSIX] (ENETDOWN): Likewise.
6769         [POSIX] (ENETUNREACH): Likewise.
6770         [POSIX] (ENOBUFS): Likewise.
6771         [POSIX] (ENODATA): Likewise.
6772         [POSIX] (ENOLINK): Likewise.
6773         [POSIX] (ENOMSG): Likewise.
6774         [POSIX] (ENOPROTOOPT): Likewise.
6775         [POSIX] (ENOSR): Likewise.
6776         [POSIX] (ENOSTR): Likewise.
6777         [POSIX] (ENOTCONN): Likewise.
6778         [POSIX] (ENOTSOCK): Likewise.
6779         [POSIX] (EOPNOTSUPP): Likewise.
6780         [POSIX] (EOVERFLOW): Likewise.
6781         [POSIX] (EPROTO): Likewise.
6782         [POSIX] (EPROTONOSUPPORT): Likewise.
6783         [POSIX] (EPROTOTYPE): Likewise.
6784         [POSIX] (ESTALE): Likewise.
6785         [POSIX] (ETIME): Likewise.
6786         [POSIX] (ETXTBSY): Likewise.
6787         [POSIX] (EWOULDBLOCK): Likewise.
6788         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
6789         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
6790         [POSIX] (SEEK_CUR): Likewise.
6791         [POSIX] (SEEK_END): Likewise.
6792         [POSIX || UNIX98] (mode_t): Do not require.
6793         [POSIX] (off_t): Likewise.
6794         [POSIX] (pid_t): Likewise.
6795         [POSIX] (sys/stat.h): Do not allow header.
6796         [POSIX] (unistd.h): Likewise.
6797         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
6798         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
6799         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
6800         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
6801         require.
6802         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
6803         sigevent): Specify elements.
6804         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
6805         entry.
6806         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
6807         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
6808
6809         * conform/data/cpio.h-data [POSIX]: Disable whole file.
6810         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
6811         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
6812         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
6813         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
6814         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
6815         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
6816         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
6817         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
6818         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
6819         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
6820         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
6821         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
6822         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
6823         Likewise.
6824         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
6825         Likewise.
6826         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
6827         Likewise.
6828         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
6829         Likewise.
6830         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
6831         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
6832         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
6833         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
6834         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
6835         Specify lower bound on value.
6836         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
6837         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
6838         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
6839         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
6840         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
6841         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
6842         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
6843         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
6844         value.
6845         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
6846         as optional.
6847         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
6848         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
6849         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
6850         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
6851         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
6852         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
6853         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
6854         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
6855         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
6856         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
6857         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
6858         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
6859         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
6860         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
6861         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
6862         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
6863         entry.
6864         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
6865         optional.
6866         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
6867         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
6868         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
6869         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
6870         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
6871         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
6872         Likewise.
6873         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
6874         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
6875         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
6876         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
6877         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
6878         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
6879         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
6880         as optional.
6881         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
6882         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
6883         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
6884         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
6885         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
6886         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
6887         specify as optional.
6888         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
6889         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
6890         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
6891         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
6892         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
6893         [XPG3] (NL_LANGMAX): Likewise.
6894         [POSIX || XPG3] (NL_MSGMAX): Likewise.
6895         [POSIX || XPG3] (NL_NMAX): Likewise.
6896         [POSIX || XPG3] (NL_SETMAX): Likewise.
6897         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
6898         [XPG3] (NZERO): Likewise.
6899         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
6900         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
6901         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
6902         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
6903         (REG_ERANGE): Expect.
6904         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
6905         optional-constant.
6906         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
6907         Use (void) in prototype.
6908         [POSIX] (*_t): Allow.
6909         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
6910         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
6911         (WRDE_BADVAL): Expect.
6912
6913         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
6914         expect.
6915         [XPG3 || XPG4] (O_RSYNC): Likewise.
6916         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
6917         Likewise.
6918         [XPG3 || XPG4] (pthread_sigmask): Likewise.
6919         [XPG3 || XPG4] (sigqueue): Likewise.
6920         [XPG3 || XPG4] (sigtimedwait): Likewise.
6921         [XPG3 || XPG4] (sigwaitinfo): Likewise.
6922         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
6923         [XPG3 || XPG4] (vsnprintf): Likewise.
6924         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
6925         Likewise.
6926         [XPG3 || XPG4] (blksize_t): Likewise.
6927         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
6928         Likewise.
6929         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
6930         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
6931         [XPG3 || XPG4] (struct itimerspec): Likewise.
6932         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
6933         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
6934         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
6935         [XPG3 || XPG4] (clockid_t): Likewise.
6936         [XPG3 || XPG4] (timer_t): Likewise.
6937         [XPG3 || XPG4] (clock_getres): Likewise.
6938         [XPG3 || XPG4] (clock_gettime): Likewise.
6939         [XPG3 || XPG4] (clock_settime): Likewise.
6940         [XPG3 || XPG4] (nanosleep): Likewise.
6941         [XPG3 || XPG4] (timer_create): Likewise.
6942         [XPG3 || XPG4] (timer_delete): Likewise.
6943         [XPG3 || XPG4] (timer_gettime): Likewise.
6944         [XPG3 || XPG4] (timer_getoverrun): Likewise.
6945         [XPG3 || XPG4] (timer_settime): Likewise.
6946         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
6947         [XPG3 || XPG4] (getlogin_r): Likewise.
6948         [XPG3 || XPG4] (pread): Likewise.
6949         [XPG3 || XPG4] (pthread_atfork): Likewise.
6950         [XPG3 || XPG4] (pwrite): Likewise.
6951
6952         [BZ #14835]
6953         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
6954         <bits/siginfo.h>.
6955
6956 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
6957
6958         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
6959         finalizing MALLSTREAM.
6960
6961         * sysdeps/mach/hurd/syncfs.c: New file.
6962
6963 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6964
6965         [BZ #14719]
6966         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
6967         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
6968         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
6969         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
6970         (_nss_dns_gethostbyname4_r): Likewise.
6971         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
6972         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
6973
6974 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
6975
6976         [BZ #13763]
6977         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
6978
6979 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
6980
6981         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
6982         * elf/cache.c (print_entry): Print ",AArch64" for
6983         FLAG_AARCH64_LIB64
6984
6985         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
6986         * elf/cache.c (print_entry): Print ",hard-float" for
6987         FLAG_ARM_LIBHF.
6988
6989 2012-11-18  David S. Miller  <davem@davemloft.net>
6990
6991         With help from Joseph Myers.
6992         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
6993         cutoff to 2**-13.
6994         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
6995         cutoff to 2**-25.
6996         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
6997         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
6998         small.
6999         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
7000         * math/libm-test.inc (y0_test): New tests.
7001         (y1_test): New tests.
7002         * sysdeps/i386/fpu/libm-test-ulps: Update.
7003         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7005
7006 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
7007
7008         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
7009         64-bit targets.
7010         * configure: Regenerated.
7011
7012 2012-11-17  David S. Miller  <davem@davemloft.net>
7013
7014         [BZ #14811]
7015         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
7016         nonzero exponents with absolute value below 0x1p-128 to +/-
7017         0x1p-128.
7018
7019 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
7020
7021         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
7022
7023         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
7024
7025         * posix/getconf-speclist.c: New file.
7026         * posix/posix-envs.def: Likewise.
7027         * posix/confstr.c (START_ENV_GROUP): New macro.
7028         (END_ENV_GROUP): Likewise.
7029         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7030         (KNOWN_PRESENT_ENV_STRING): Likewise.
7031         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7032         (UNKNOWN_ENVIRONMENT): Likewise.
7033         (confstr): Include posix-envs.def instead of handling
7034         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
7035         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
7036         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
7037         (END_ENV_GROUP): Likewise.
7038         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
7039         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
7040         (UNKNOWN_ENVIRONMENT): Likewise.
7041         (__sysconf): Include posix-envs.def instead of handling associated
7042         cases directly here.
7043         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
7044         preprocessing getconf-speclist.c rather than running getconf or
7045         generating empty file.
7046
7047 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
7048
7049         * scripts/check-local-headers.sh: Ignore 'mach' headers.
7050
7051 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
7052
7053         [BZ #14672]
7054         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
7055
7056 2012-11-16  David S. Miller  <davem@davemloft.net>
7057
7058         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
7059         smaller than LDBL_EPSILON/2.0L, just return xm1.
7060
7061 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
7062
7063         * elf/tst-array1.c (init): Set constructor priority to 1000.
7064         (fini): Set destructor priority to 1000.
7065         * elf/tst-array2dep.c: Likewise.
7066
7067 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7068
7069         [BZ #11741]
7070         * libio/fileops.c (_IO_new_file_write): Correctly return error.
7071         (_IO_new_file_xsputn): Also return EOF if none of the input
7072         data was written when overflow failed.
7073         * libio/iopadn.c (_IO_padn): Likewise.
7074         * libio/iowpadn.c (_IO_wpadn): Likewise.
7075         * stdio-common/tst-put-error.c: Add copyright notice.
7076         (do_test): Add case for printing padded string.
7077         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
7078         _IO_padn returned error.
7079         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
7080         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
7081         return EOF.
7082
7083 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7084
7085         * libio/libioP.h: Add comment note that the references to C++
7086         bits are now obsolete.
7087
7088 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7089
7090         * math/libm-test.inc (check_complex): Use asprintf.
7091
7092 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
7093
7094         * debug/pcprofiledump.c (print_version): Update copyright year.
7095         * malloc/memusagestat.c (print_version): Likewise.
7096
7097 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7098
7099         [BZ #14831]
7100         * elf/Makefile (tests): Add tst-audit8.
7101         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
7102         ($(objpfx)tst-audit8.out): New target.
7103         (tst-audit8-ENV): New variable.
7104         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
7105         audit if l_reloc_result is NULL.
7106         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
7107         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
7108         * elf/tst-audit8.c: New file.
7109
7110 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7111
7112         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
7113         * misc/Makefile (CFLAGS-select.c): Define.
7114         * posix/Makefile (CFLAGS-pause.c): Define.
7115
7116 2012-11-13  David S. Miller  <davem@davemloft.net>
7117
7118         * crypt/Makefile: Move test targets after toplevel Rules
7119         inclusion.  Grab any necessary sysdep routines when linking.
7120         * crypt/md5.c (md5_process_block): Remove define, we will always
7121         name it __md5_process_block.
7122         (md5_finish_ctx): Update md5_process_block call.
7123         (md5_stream): Likewise.
7124         (md5_process_bytes): Likewise.
7125         (md5_process_block): Rename to __md5_process_block and move to ...
7126         * crypt/md5-block.c: ... here.
7127         * crypt/sha256.c (sha256_process_block): Move to ...
7128         * crypt/sha256-block.c: ... here.
7129         * crypt/sha512.c (sha512_process_block): Move to ...
7130         * crypt/sha512-block.c: ... here.
7131         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
7132         path.
7133         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
7134         * sysdeps/sparc/sparc64/multiarch/Makefile
7135         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
7136         crypt subdir.
7137         (localedef-aux): Add md5 crypto assembler when in locale subdir.
7138         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
7139         multiarch changes.
7140         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
7141         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
7142         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
7143         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
7144         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
7145         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
7146         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
7147         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
7148         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
7149         file.
7150         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
7151         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
7152         file.
7153         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
7154
7155 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
7156
7157         * timezone/tzselect.ksh: Update from tzcode git revision
7158         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
7159         * timezone/zdump.c: Likewise.
7160         * timezone/zic.c: Likewise.
7161         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
7162         in TZVERSION setting, not $(PKGVERSION).
7163         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
7164         REPORT_BUGS_TO settings.
7165
7166         [BZ #14838]
7167         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
7168         macro.
7169
7170 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7171
7172         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
7173         detection to immediately after _FP_ROUND().
7174         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
7175         bits are 0.
7176
7177 2012-11-11  David S. Miller  <davem@davemloft.net>
7178
7179         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
7180         inttypes.h
7181         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
7182         __close rather than their public counterparts.
7183
7184 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
7185
7186         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
7187         file.
7188         [UNIX98] (sem_timedwait): Do not expect.
7189         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
7190         [XPG4 || UNIX98] (sockatmark): Do not expect.
7191         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
7192         (clock_getcpuclockid): Do not expect.
7193         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
7194         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
7195         Do not expect.
7196         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
7197         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
7198         [UNIX98] (vwscanf): Likewise.
7199         [UNIX98] (vswscanf): Likewise.
7200
7201 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
7202
7203         * timezone/version.h: Remove file.
7204         * timezone/README: Do not refer to version.h.
7205         * timezone/Makefile ($(objpfx)zic.o): New dependency on
7206         $(objpfx)version.h.
7207         ($(objpfx)zdump.o): Likewise.
7208         ($(objpfx)version.h): New target.
7209
7210         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
7211         2012i.
7212         * timezone/README: Don't mention modification to tzselect.ksh.
7213         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
7214         work on unmodified tzselect.ksh.  Substitute version numbers in
7215         tzselect.ksh.
7216
7217         * Makefile (format-me): Remove.
7218         (INSTALL): Adjust indentation.  Use commands directly instead of
7219         using $(format-me).
7220
7221         * aclocal.m4 (ACX_PKGVERSION): New macro.
7222         (ACX_BUGURL): Likewise.
7223         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
7224         (PKGVERSION): New AC_DEFINE_UNQUOTED.
7225         (REPORT_BUGS_TO): Likewise.
7226         * configure: Regenerated.
7227         * config.h.in (PKGVERSION): New macro.
7228         (REPORT_BUGS_TO): Likewise.
7229         * config.make.in (PKGVERSION): New variable.
7230         (PKGVERSION_TEXI): Likewise.
7231         (REPORT_BUGS_TO): Likewise.
7232         (REPORT_BUGS_TEXI): Likewise.
7233         * Makefile (format-me): Use -I$(common-objpfx)manual.
7234         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
7235         ($(common-objpfx)manual/%): New target.
7236         (manual/%): Remove target.
7237         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
7238         (print_version): Use PKGVERSION.
7239         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
7240         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
7241         and REPORT_BUGS_TO.
7242         ($(objpfx)xtrace): Likewise.
7243         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
7244         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
7245         (print_version): Use PKGVERSION.
7246         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
7247         (do_version): Use PKGVERSION.
7248         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
7249         REPORT_BUGS_TO.
7250         (common-ldd-rewrite): Likewise.
7251         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
7252         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
7253         (print_version): Use PKGVERSION.
7254         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
7255         * elf/pldd.c (argp_program_bug_address): Remove variable.
7256         (more_help): New function.
7257         (argp): Use more_help.
7258         (print_version): Use PKGVERSION.
7259         * elf/sln.c (main): Use PKGVERSION.
7260         (usage): Use REPORT_BUGS_TO.
7261         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
7262         (top level): Use PKGVERSION.
7263         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
7264         (print_version): Use PKGVERSION.
7265         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
7266         (print_version): Use PKGVERSION.
7267         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
7268         (print_version): Use PKGVERSION.
7269         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
7270         (print_version): Use PKGVERSION.
7271         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
7272         (print_version): Use PKGVERSION.
7273         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
7274         (print_version): Use PKGVERSION.
7275         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
7276         and BUGURL.
7277         ($(objpfx)memusage): Likewise.
7278         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
7279         (do_version): Use PKGVERSION.
7280         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
7281         (print_version): Use PKGVERSION.
7282         * malloc/mtrace.pl ($PACKAGE): Remove variable.
7283         ($PKGVERSION): New variable.
7284         ($REPORT_BUGS_TO): Likewise.
7285         (usage): Use $REPORT_BUGS_TO.
7286         (top level): Use $PKGVERSION.
7287         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
7288         ($(objpfx)pkgvers.texi): New rule.
7289         ($(objpfx)stamp-pkgvers): Likewise.
7290         * manual/install.texi: Include pkgvers.texi.
7291         (--with-pkgversion): Document new configure option.
7292         (--with-bugurl): Likewise.
7293         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
7294         than necessarily for this particular distribution.  Use
7295         REPORT_BUGS_TO for where to report bugs.
7296         * INSTALL: Regenerated.
7297         * manual/libc.texinfo: Include pkgvers.texi.
7298         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
7299         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
7300         (print_version): Use PKGVERSION.
7301         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
7302         (print_version): Use PKGVERSION.
7303         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
7304         (print_version): Use PKGVERSION.
7305         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
7306         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
7307         macro.
7308         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
7309         (print_version): Use PKGVERSION.
7310         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
7311         (print_version): Use PKGVERSION.
7312         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
7313         and PKGVERSION.
7314
7315         * timezone/checktab.awk: Update from tzcode 2012i.
7316         * timezone/ialloc.c: Likewise.
7317         * timezone/private.h: Likewise.
7318         * timezone/scheck.c: Likewise.
7319         * timezone/tzfile.h: Likewise.
7320         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
7321         (TZVERSION): Hardcode tzcode version number.
7322         * timezone/zdump.c: Update from tzcode 2012i.
7323         * timezone/zic.c: Likewise.
7324         * timezone/version.h: New file.
7325         * timezone/README: Describe version.h.  Update upstream location.
7326
7327         [BZ #14824]
7328         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
7329         (mktemp): Enable declaration.
7330         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
7331         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
7332         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
7333         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
7334         Likewise.
7335         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
7336         Likewise.
7337         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
7338         Likewise.
7339         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
7340         Likewise.
7341         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
7342         Likewise.
7343         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
7344         Likewise.
7345
7346         [BZ #14821]
7347         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
7348         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
7349         for copies of such integer values.
7350         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
7351         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
7352
7353 2012-11-09  Andreas Jaeger  <aj@suse.de>
7354
7355         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
7356         definitions and declarations that are provided by
7357         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7358
7359 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7360
7361         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
7362         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
7363         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
7364         definition.
7365
7366 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7367
7368         * elf/elf.h: Update comment before AArch64 relocations.
7369
7370 2012-11-07  David S. Miller  <davem@davemloft.net>
7371
7372         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
7373         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
7374         (__start_context): Declare.
7375         (__makecontext_ret): Delete.
7376         (__makecontext): Hook up __start_context instead of
7377         __makecontext_ret.
7378         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7379         (sysdep_routines): Add __start_context when in stdlib.
7380
7381 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7382
7383         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
7384         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
7385         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
7386         hardcoded "nm".
7387         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
7388         (READELF): New variable.  Use it instead of hardcoded "readelf".
7389
7390 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7391
7392         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
7393         * sysdeps/x86/Makefile: Here.
7394         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
7395         * sysdeps/x86/tst-xmmymm.sh: This.
7396
7397 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7398
7399         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
7400         expectations.
7401         [UNIX98] (pthread_barrier_t): Do not expect.
7402         [UNIX98] (pthread_barrierattr_t): Likewise.
7403         [UNIX98] (pthread_spinlock_t): Likewise.
7404         [UNIX98] (pthread_barrier_destroy): Likewise.
7405         [UNIX98] (pthread_barrier_init): Likewise.
7406         [UNIX98] (pthread_barrier_wait): Likewise.
7407         [UNIX98] (pthread_barrierattr_destroy): Likewise.
7408         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
7409         [UNIX98] (pthread_barrierattr_init): Likewise.
7410         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
7411         [UNIX98] (pthread_getcpuclockid): Likewise.
7412         [UNIX98] (pthread_mutex_timedlock): Likewise.
7413         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
7414         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
7415         [UNIX98] (pthread_sigmask): Likewise.
7416         [UNIX98] (pthread_spin_destroy): Likewise.
7417         [UNIX98] (pthread_spin_init): Likewise.
7418         [UNIX98] (pthread_spin_lock): Likewise.
7419         [UNIX98] (pthread_spin_trylock): Likewise.
7420         [UNIX98] (pthread_spin_unlock): Likewise.
7421         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
7422         Do not expect.
7423         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
7424         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
7425         [XPG3 || XPG4] (pthread_cond_t): Likewise.
7426         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
7427         [XPG3 || XPG4] (pthread_key_t): Likewise.
7428         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
7429         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
7430         [XPG3 || XPG4] (pthread_once_t): Likewise.
7431         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
7432         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
7433         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
7434         [XPG3 || XPG4] (pthread_t): Likewise.
7435
7436         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
7437         not expect.
7438         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
7439
7440         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
7441         Change function return type to int.
7442
7443         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
7444         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
7445         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
7446         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
7447         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
7448         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
7449         [!POSIX] (posix_madvise): Likewise.
7450         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
7451         && !UNIX98].
7452         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
7453         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
7454         (mode_t): Likewise.
7455         (posix_mem_offset): Likewise.
7456         (posix_typed_mem_get_info): Likewise.
7457         (posix_typed_mem_open): Likewise.
7458
7459         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
7460         Change condition to [XOPEN2K8].
7461
7462         * conform/conformtest.pl: Preprocess allow-header data with -x c
7463         instead of from stdin.
7464         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
7465         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
7466         [C99-based standards] (cerfc): Likewise.
7467         [C99-based standards] (cexp2): Likewise.
7468         [C99-based standards] (cexpm1): Likewise.
7469         [C99-based standards] (clog10): Likewise.
7470         [C99-based standards] (clog1p): Likewise.
7471         [C99-based standards] (clog2): Likewise.
7472         [C99-based standards] (clgamma): Likewise.
7473         [C99-based standards] (ctgamma): Likewise.
7474         [C99-based standards] (cerff): Likewise.
7475         [C99-based standards] (cerfcf): Likewise.
7476         [C99-based standards] (cexp2f): Likewise.
7477         [C99-based standards] (cexpm1f): Likewise.
7478         [C99-based standards] (clog10f): Likewise.
7479         [C99-based standards] (clog1pf): Likewise.
7480         [C99-based standards] (clog2f): Likewise.
7481         [C99-based standards] (clgammaf): Likewise.
7482         [C99-based standards] (ctgammaf): Likewise.
7483         [C99-based standards] (cerfl): Likewise.
7484         [C99-based standards] (cerfcl): Likewise.
7485         [C99-based standards] (cexp2l): Likewise.
7486         [C99-based standards] (cexpm1l): Likewise.
7487         [C99-based standards] (clog10l): Likewise.
7488         [C99-based standards] (clog1pl): Likewise.
7489         [C99-based standards] (clog2l): Likewise.
7490         [C99-based standards] (clgammal): Likewise.
7491         [C99-based standards] (ctgammal): Likewise.
7492         * conform/data/inttypes.h-data [C99-based standards]: Include
7493         stdint.h-data.  Remove all expectations for stdint.h contents.
7494         [C99-based standards] (PRI*): Do not allow.
7495         [C99-based standards] (SCN*): Likewise.
7496         [C99-based standards] (*_t): Likewise.
7497         [C99-based-standards] (PRId8): Expect macro.
7498         [C99-based-standards] (PRIi8): Likewise.
7499         [C99-based-standards] (PRIo8): Likewise.
7500         [C99-based-standards] (PRIu8): Likewise.
7501         [C99-based-standards] (PRIx8): Likewise.
7502         [C99-based-standards] (PRIX8): Likewise.
7503         [C99-based-standards] (SCNd8): Likewise.
7504         [C99-based-standards] (SCNi8): Likewise.
7505         [C99-based-standards] (SCNo8): Likewise.
7506         [C99-based-standards] (SCNu8): Likewise.
7507         [C99-based-standards] (SCNx8): Likewise.
7508         [C99-based-standards] (PRIdLEAST8): Likewise.
7509         [C99-based-standards] (PRIiLEAST8): Likewise.
7510         [C99-based-standards] (PRIoLEAST8): Likewise.
7511         [C99-based-standards] (PRIuLEAST8): Likewise.
7512         [C99-based-standards] (PRIxLEAST8): Likewise.
7513         [C99-based-standards] (PRIXLEAST8): Likewise.
7514         [C99-based-standards] (SCNdLEAST8): Likewise.
7515         [C99-based-standards] (SCNiLEAST8): Likewise.
7516         [C99-based-standards] (SCNoLEAST8): Likewise.
7517         [C99-based-standards] (SCNuLEAST8): Likewise.
7518         [C99-based-standards] (SCNxLEAST8): Likewise.
7519         [C99-based-standards] (PRIdFAST8): Likewise.
7520         [C99-based-standards] (PRIiFAST8): Likewise.
7521         [C99-based-standards] (PRIoFAST8): Likewise.
7522         [C99-based-standards] (PRIuFAST8): Likewise.
7523         [C99-based-standards] (PRIxFAST8): Likewise.
7524         [C99-based-standards] (PRIXFAST8): Likewise.
7525         [C99-based-standards] (SCNdFAST8): Likewise.
7526         [C99-based-standards] (SCNiFAST8): Likewise.
7527         [C99-based-standards] (SCNoFAST8): Likewise.
7528         [C99-based-standards] (SCNuFAST8): Likewise.
7529         [C99-based-standards] (SCNxFAST8): Likewise.
7530         [C99-based-standards] (PRId16): Likewise.
7531         [C99-based-standards] (PRIi16): Likewise.
7532         [C99-based-standards] (PRIo16): Likewise.
7533         [C99-based-standards] (PRIu16): Likewise.
7534         [C99-based-standards] (PRIx16): Likewise.
7535         [C99-based-standards] (PRIX16): Likewise.
7536         [C99-based-standards] (SCNd16): Likewise.
7537         [C99-based-standards] (SCNi16): Likewise.
7538         [C99-based-standards] (SCNo16): Likewise.
7539         [C99-based-standards] (SCNu16): Likewise.
7540         [C99-based-standards] (SCNx16): Likewise.
7541         [C99-based-standards] (PRIdLEAST16): Likewise.
7542         [C99-based-standards] (PRIiLEAST16): Likewise.
7543         [C99-based-standards] (PRIoLEAST16): Likewise.
7544         [C99-based-standards] (PRIuLEAST16): Likewise.
7545         [C99-based-standards] (PRIxLEAST16): Likewise.
7546         [C99-based-standards] (PRIXLEAST16): Likewise.
7547         [C99-based-standards] (SCNdLEAST16): Likewise.
7548         [C99-based-standards] (SCNiLEAST16): Likewise.
7549         [C99-based-standards] (SCNoLEAST16): Likewise.
7550         [C99-based-standards] (SCNuLEAST16): Likewise.
7551         [C99-based-standards] (SCNxLEAST16): Likewise.
7552         [C99-based-standards] (PRIdFAST16): Likewise.
7553         [C99-based-standards] (PRIiFAST16): Likewise.
7554         [C99-based-standards] (PRIoFAST16): Likewise.
7555         [C99-based-standards] (PRIuFAST16): Likewise.
7556         [C99-based-standards] (PRIxFAST16): Likewise.
7557         [C99-based-standards] (PRIXFAST16): Likewise.
7558         [C99-based-standards] (SCNdFAST16): Likewise.
7559         [C99-based-standards] (SCNiFAST16): Likewise.
7560         [C99-based-standards] (SCNoFAST16): Likewise.
7561         [C99-based-standards] (SCNuFAST16): Likewise.
7562         [C99-based-standards] (SCNxFAST16): Likewise.
7563         [C99-based-standards] (PRId32): Likewise.
7564         [C99-based-standards] (PRIi32): Likewise.
7565         [C99-based-standards] (PRIo32): Likewise.
7566         [C99-based-standards] (PRIu32): Likewise.
7567         [C99-based-standards] (PRIx32): Likewise.
7568         [C99-based-standards] (PRIX32): Likewise.
7569         [C99-based-standards] (SCNd32): Likewise.
7570         [C99-based-standards] (SCNi32): Likewise.
7571         [C99-based-standards] (SCNo32): Likewise.
7572         [C99-based-standards] (SCNu32): Likewise.
7573         [C99-based-standards] (SCNx32): Likewise.
7574         [C99-based-standards] (PRIdLEAST32): Likewise.
7575         [C99-based-standards] (PRIiLEAST32): Likewise.
7576         [C99-based-standards] (PRIoLEAST32): Likewise.
7577         [C99-based-standards] (PRIuLEAST32): Likewise.
7578         [C99-based-standards] (PRIxLEAST32): Likewise.
7579         [C99-based-standards] (PRIXLEAST32): Likewise.
7580         [C99-based-standards] (SCNdLEAST32): Likewise.
7581         [C99-based-standards] (SCNiLEAST32): Likewise.
7582         [C99-based-standards] (SCNoLEAST32): Likewise.
7583         [C99-based-standards] (SCNuLEAST32): Likewise.
7584         [C99-based-standards] (SCNxLEAST32): Likewise.
7585         [C99-based-standards] (PRIdFAST32): Likewise.
7586         [C99-based-standards] (PRIiFAST32): Likewise.
7587         [C99-based-standards] (PRIoFAST32): Likewise.
7588         [C99-based-standards] (PRIuFAST32): Likewise.
7589         [C99-based-standards] (PRIxFAST32): Likewise.
7590         [C99-based-standards] (PRIXFAST32): Likewise.
7591         [C99-based-standards] (SCNdFAST32): Likewise.
7592         [C99-based-standards] (SCNiFAST32): Likewise.
7593         [C99-based-standards] (SCNoFAST32): Likewise.
7594         [C99-based-standards] (SCNuFAST32): Likewise.
7595         [C99-based-standards] (SCNxFAST32): Likewise.
7596         [C99-based-standards] (PRId64): Likewise.
7597         [C99-based-standards] (PRIi64): Likewise.
7598         [C99-based-standards] (PRIo64): Likewise.
7599         [C99-based-standards] (PRIu64): Likewise.
7600         [C99-based-standards] (PRIx64): Likewise.
7601         [C99-based-standards] (PRIX64): Likewise.
7602         [C99-based-standards] (SCNd64): Likewise.
7603         [C99-based-standards] (SCNi64): Likewise.
7604         [C99-based-standards] (SCNo64): Likewise.
7605         [C99-based-standards] (SCNu64): Likewise.
7606         [C99-based-standards] (SCNx64): Likewise.
7607         [C99-based-standards] (PRIdLEAST64): Likewise.
7608         [C99-based-standards] (PRIiLEAST64): Likewise.
7609         [C99-based-standards] (PRIoLEAST64): Likewise.
7610         [C99-based-standards] (PRIuLEAST64): Likewise.
7611         [C99-based-standards] (PRIxLEAST64): Likewise.
7612         [C99-based-standards] (PRIXLEAST64): Likewise.
7613         [C99-based-standards] (SCNdLEAST64): Likewise.
7614         [C99-based-standards] (SCNiLEAST64): Likewise.
7615         [C99-based-standards] (SCNoLEAST64): Likewise.
7616         [C99-based-standards] (SCNuLEAST64): Likewise.
7617         [C99-based-standards] (SCNxLEAST64): Likewise.
7618         [C99-based-standards] (PRIdFAST64): Likewise.
7619         [C99-based-standards] (PRIiFAST64): Likewise.
7620         [C99-based-standards] (PRIoFAST64): Likewise.
7621         [C99-based-standards] (PRIuFAST64): Likewise.
7622         [C99-based-standards] (PRIxFAST64): Likewise.
7623         [C99-based-standards] (PRIXFAST64): Likewise.
7624         [C99-based-standards] (SCNdFAST64): Likewise.
7625         [C99-based-standards] (SCNiFAST64): Likewise.
7626         [C99-based-standards] (SCNoFAST64): Likewise.
7627         [C99-based-standards] (SCNuFAST64): Likewise.
7628         [C99-based-standards] (SCNxFAST64): Likewise.
7629         [C99-based-standards] (PRIdMAX): Likewise.
7630         [C99-based-standards] (PRIiMAX): Likewise.
7631         [C99-based-standards] (PRIoMAX): Likewise.
7632         [C99-based-standards] (PRIuMAX): Likewise.
7633         [C99-based-standards] (PRIxMAX): Likewise.
7634         [C99-based-standards] (PRIXMAX): Likewise.
7635         [C99-based-standards] (SCNdMAX): Likewise.
7636         [C99-based-standards] (SCNiMAX): Likewise.
7637         [C99-based-standards] (SCNoMAX): Likewise.
7638         [C99-based-standards] (SCNuMAX): Likewise.
7639         [C99-based-standards] (SCNxMAX): Likewise.
7640         [C99-based-standards] (PRIdPTR): Likewise.
7641         [C99-based-standards] (PRIiPTR): Likewise.
7642         [C99-based-standards] (PRIoPTR): Likewise.
7643         [C99-based-standards] (PRIuPTR): Likewise.
7644         [C99-based-standards] (PRIxPTR): Likewise.
7645         [C99-based-standards] (PRIXPTR): Likewise.
7646         [C99-based-standards] (SCNdPTR): Likewise.
7647         [C99-based-standards] (SCNiPTR): Likewise.
7648         [C99-based-standards] (SCNoPTR): Likewise.
7649         [C99-based-standards] (SCNuPTR): Likewise.
7650         [C99-based-standards] (SCNxPTR): Likewise.
7651         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
7652         allow.
7653         * conform/data/stdint.h-data: Update comments to clarify
7654         requirements.
7655         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
7656         type.
7657         [C99-based standards] (INT8_MAX): Likewise.
7658         [C99-based standards] (INT16_MIN): Likewise.
7659         [C99-based standards] (INT16_MAX): Likewise.
7660         [C99-based standards] (INT32_MIN): Likewise.
7661         [C99-based standards] (INT32_MAX): Likewise.
7662         [C99-based standards] (INT64_MIN): Likewise.
7663         [C99-based standards] (INT64_MAX): Likewise.
7664         [C99-based standards] (UINT8_MAX): Likewise.
7665         [C99-based standards] (UINT16_MAX): Likewise.
7666         [C99-based standards] (UINT32_MAX): Likewise.
7667         [C99-based standards] (UINT64_MAX): Likewise.
7668         [C99-based standards] (INT_LEAST8_MIN): Likewise.
7669         [C99-based standards] (INT_LEAST8_MAX): Likewise.
7670         [C99-based standards] (INT_LEAST16_MIN): Likewise.
7671         [C99-based standards] (INT_LEAST16_MAX): Likewise.
7672         [C99-based standards] (INT_LEAST32_MIN): Likewise.
7673         [C99-based standards] (INT_LEAST32_MAX): Likewise.
7674         [C99-based standards] (INT_LEAST64_MIN): Likewise.
7675         [C99-based standards] (INT_LEAST64_MAX): Likewise.
7676         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
7677         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
7678         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
7679         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
7680         [C99-based standards] (INT_FAST8_MIN): Likewise.
7681         [C99-based standards] (INT_FAST8_MAX): Likewise.
7682         [C99-based standards] (INT_FAST16_MIN): Likewise.
7683         [C99-based standards] (INT_FAST16_MAX): Likewise.
7684         [C99-based standards] (INT_FAST32_MIN): Likewise.
7685         [C99-based standards] (INT_FAST32_MAX): Likewise.
7686         [C99-based standards] (INT_FAST64_MIN): Likewise.
7687         [C99-based standards] (INT_FAST64_MAX): Likewise.
7688         [C99-based standards] (UINT_FAST8_MAX): Likewise.
7689         [C99-based standards] (UINT_FAST16_MAX): Likewise.
7690         [C99-based standards] (UINT_FAST32_MAX): Likewise.
7691         [C99-based standards] (UINT_FAST64_MAX): Likewise.
7692         [C99-based standards] (INTPTR_MIN): Likewise.
7693         [C99-based standards] (INTPTR_MAX): Likewise.
7694         [C99-based standards] (UINTPTR_MAX): Likewise.
7695         [C99-based standards] (INTMAX_MIN): Likewise.
7696         [C99-based standards] (INTMAX_MAX): Likewise.
7697         [C99-based standards] (UINTMAX_MAX): Likewise.
7698         [C99-based standards] (PTRDIFF_MIN): Likewise.
7699         [C99-based standards] (PTRDIFF_MAX): Likewise.
7700         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
7701         [C99-based standards] (SIZE_MAX): Likewise.
7702         [C99-based standards] (WCHAR_MAX): Likewise.
7703         [C99-based standards] (WINT_MAX): Likewise.
7704         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
7705         constraint on value.
7706         [C99-based standards] (WCHAR_MIN): Likewise.
7707         [C99-based standards] (WINT_MIN): Likewise.
7708         [C99-based standards] (*_t): Allow.
7709         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
7710         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
7711         Include math.h-data and complex.h-data.  Remove all expectations
7712         of math.h and complex.h contents.
7713         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
7714         at end of line.
7715         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
7716         (struct tm): Expect tag.
7717         [C99-based-standards] (wcstof): Expect function.
7718         [C99-based-standards] (wcstold): Likewise.
7719         [C99-based-standards] (wcstoll): Likewise.
7720         [C99-based-standards] (wcstoull): Likewise.
7721         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
7722         macro-int-constant.  Specify type.
7723         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
7724         constraint on value.
7725         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7726         Specify type.
7727         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
7728         Specify value.
7729         [ISO C standards]: Do not allow headers.
7730         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
7731         wcs[abcdefghijklmnopqrstuvwxyz]*.
7732         [ISO C standards] (*_t): Do not allow.
7733         * conform/data/wctype.h-data [C99-based standards] (iswblank):
7734         Expect function.
7735         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
7736         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
7737         Specify type.
7738         [ISO C standards]: Do not allow headers.
7739         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
7740         is[abcdefghijklmnopqrstuvwxyz]*.
7741         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
7742         to[abcdefghijklmnopqrstuvwxyz]*.
7743         [ISO C standards] (*_t): Do not allow.
7744         * conform/data/stdalign.h-data: New file.
7745         * conform/data/stdbool.h-data: Likewise.
7746         * conform/data/stdnoreturn.h-data: Likewise.
7747
7748 2012-11-07  Roland McGrath  <roland@hack.frob.com>
7749
7750         [BZ #14815]
7751         * manual/filesys.texi (Directory Entries): Typo fix.
7752         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
7753
7754 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7755
7756         * elf/elf.h (EM_AARCH64): New macro.
7757         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
7758         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
7759         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
7760         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
7761         (R_AARCH64_TLSDESC): Likewise.
7762         (NT_ARM_TLS): Likewise.
7763         (NT_ARM_HW_BREAK): Likewise.
7764         (NT_ARM_HW_WATCH): Likewise.
7765
7766 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7767
7768         [BZ #14811]
7769         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
7770         (__ieee754_powl): Saturate nonzero exponents with absolute value
7771         below 0x1p-79 to +/- 0x1p-79.
7772         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
7773         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
7774         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
7775         nonzero exponents with absolute value below 0x1p-32 to +/-
7776         0x1p-32.
7777         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
7778         (__ieee754_powl): Saturate nonzero exponents with absolute value
7779         below 0x1p-79 to +/- 0x1p-79.
7780         * math/libm-test.inc (pow_test): Add more tests.
7781
7782 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7783
7784         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
7785         _dl_s390_cap_flags with kernel. Increase string length.
7786         (_dl_s390_platforms): Add z196 and zEC12.
7787
7788 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
7789
7790         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
7791         Change XOPEN21K to XOPEN2K.
7792
7793 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7794
7795         * string/memmove.c: Use memcpy when possible.
7796
7797 2012-11-06  Andreas Jaeger  <aj@suse.de>
7798
7799         * po/eo.po: Update from translation team.
7800
7801 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
7802
7803         [BZ #14793]
7804         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
7805         exponent and small x and y exponents, scale x or y up.  Increase
7806         by 2 the exponent used in scaling up.
7807         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7808         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7809         * math/libm-test.inc (fma_test): Add more tests.
7810         (fma_test_towardzero): Likewise.
7811         (fma_test_downward): Likewise.
7812         (fma_test_upward): Likewise.
7813
7814 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
7815
7816         [BZ #14805]
7817         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
7818         fenv_t *.
7819
7820         [BZ #14801]
7821         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
7822         namespace for names of struct fields.
7823         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
7824         fenv_t fields.
7825         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
7826         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
7827
7828 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7829
7830         [BZ #3665]
7831         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
7832
7833 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7834
7835         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
7836         PTR_DEMANGLE.
7837
7838         [BZ #5246]
7839         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
7840         PTR_DEMANGLE.
7841
7842 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
7843
7844         [BZ #14797]
7845         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
7846         definitely overflow as x * y not x * y + z.
7847         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7848         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7849         * math/libm-test.inc (fma_test): Add more tests.
7850         (fma_test_towardzero): Likewise.
7851         (fma_test_downward): Likewise.
7852         (fma_test_upward): Likewise.
7853
7854 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7855
7856         [BZ #157]
7857
7858         * include/stub-tag.h: Remove file.
7859         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7860         '#include' of it.
7861         * manual/maint.texi (Porting): Don't reference it.
7862         * Makerules ($(objpfx)stubs): Likewise.
7863         * dirent/closedir.c: Don't include <stub-tag.h>.
7864         * dirent/dirfd.c: Likewise.
7865         * dirent/fdopendir.c: Likewise.
7866         * dirent/getdents.c: Likewise.
7867         * dirent/getdents64.c: Likewise.
7868         * dirent/opendir.c: Likewise.
7869         * dirent/readdir.c: Likewise.
7870         * dirent/readdir64.c: Likewise.
7871         * dirent/readdir64_r.c: Likewise.
7872         * dirent/readdir_r.c: Likewise.
7873         * dirent/rewinddir.c: Likewise.
7874         * dirent/seekdir.c: Likewise.
7875         * dirent/telldir.c: Likewise.
7876         * gmon/profil.c: Likewise.
7877         * grp/setgroups.c: Likewise.
7878         * inet/if_index.c: Likewise.
7879         * io/access.c: Likewise.
7880         * io/chdir.c: Likewise.
7881         * io/chmod.c: Likewise.
7882         * io/chown.c: Likewise.
7883         * io/close.c: Likewise.
7884         * io/dup.c: Likewise.
7885         * io/dup2.c: Likewise.
7886         * io/dup3.c: Likewise.
7887         * io/euidaccess.c: Likewise.
7888         * io/faccessat.c: Likewise.
7889         * io/fchdir.c: Likewise.
7890         * io/fchmod.c: Likewise.
7891         * io/fchmodat.c: Likewise.
7892         * io/fchown.c: Likewise.
7893         * io/fchownat.c: Likewise.
7894         * io/fcntl.c: Likewise.
7895         * io/flock.c: Likewise.
7896         * io/fstatfs.c: Likewise.
7897         * io/fstatfs64.c: Likewise.
7898         * io/fstatvfs.c: Likewise.
7899         * io/fstatvfs64.c: Likewise.
7900         * io/futimens.c: Likewise.
7901         * io/fxstat.c: Likewise.
7902         * io/fxstat64.c: Likewise.
7903         * io/fxstatat.c: Likewise.
7904         * io/fxstatat64.c: Likewise.
7905         * io/getcwd.c: Likewise.
7906         * io/isatty.c: Likewise.
7907         * io/lchmod.c: Likewise.
7908         * io/lchown.c: Likewise.
7909         * io/link.c: Likewise.
7910         * io/linkat.c: Likewise.
7911         * io/lseek.c: Likewise.
7912         * io/lseek64.c: Likewise.
7913         * io/lxstat64.c: Likewise.
7914         * io/mkdir.c: Likewise.
7915         * io/mkdirat.c: Likewise.
7916         * io/mkfifo.c: Likewise.
7917         * io/mkfifoat.c: Likewise.
7918         * io/open.c: Likewise.
7919         * io/open64.c: Likewise.
7920         * io/openat.c: Likewise.
7921         * io/openat64.c: Likewise.
7922         * io/pipe.c: Likewise.
7923         * io/pipe2.c: Likewise.
7924         * io/poll.c: Likewise.
7925         * io/posix_fadvise.c: Likewise.
7926         * io/posix_fadvise64.c: Likewise.
7927         * io/posix_fallocate.c: Likewise.
7928         * io/posix_fallocate64.c: Likewise.
7929         * io/read.c: Likewise.
7930         * io/readlink.c: Likewise.
7931         * io/readlinkat.c: Likewise.
7932         * io/rmdir.c: Likewise.
7933         * io/sendfile.c: Likewise.
7934         * io/sendfile64.c: Likewise.
7935         * io/statfs.c: Likewise.
7936         * io/statfs64.c: Likewise.
7937         * io/statvfs.c: Likewise.
7938         * io/statvfs64.c: Likewise.
7939         * io/symlink.c: Likewise.
7940         * io/symlinkat.c: Likewise.
7941         * io/ttyname.c: Likewise.
7942         * io/ttyname_r.c: Likewise.
7943         * io/umask.c: Likewise.
7944         * io/unlink.c: Likewise.
7945         * io/unlinkat.c: Likewise.
7946         * io/utime.c: Likewise.
7947         * io/utimensat.c: Likewise.
7948         * io/write.c: Likewise.
7949         * io/xmknod.c: Likewise.
7950         * io/xmknodat.c: Likewise.
7951         * io/xstat.c: Likewise.
7952         * io/xstat64.c: Likewise.
7953         * login/getpt.c: Likewise.
7954         * login/grantpt.c: Likewise.
7955         * login/unlockpt.c: Likewise.
7956         * math/e_acoshl.c: Likewise.
7957         * math/e_acosl.c: Likewise.
7958         * math/e_asinl.c: Likewise.
7959         * math/e_atan2l.c: Likewise.
7960         * math/e_atanhl.c: Likewise.
7961         * math/e_coshl.c: Likewise.
7962         * math/e_expl.c: Likewise.
7963         * math/e_fmodl.c: Likewise.
7964         * math/e_gammal_r.c: Likewise.
7965         * math/e_hypotl.c: Likewise.
7966         * math/e_j0l.c: Likewise.
7967         * math/e_j1l.c: Likewise.
7968         * math/e_jnl.c: Likewise.
7969         * math/e_lgammal_r.c: Likewise.
7970         * math/e_log10l.c: Likewise.
7971         * math/e_log2l.c: Likewise.
7972         * math/e_logl.c: Likewise.
7973         * math/e_powl.c: Likewise.
7974         * math/e_rem_pio2l.c: Likewise.
7975         * math/e_sinhl.c: Likewise.
7976         * math/e_sqrtl.c: Likewise.
7977         * math/fclrexcpt.c: Likewise.
7978         * math/fedisblxcpt.c: Likewise.
7979         * math/feenablxcpt.c: Likewise.
7980         * math/fegetenv.c: Likewise.
7981         * math/fegetexcept.c: Likewise.
7982         * math/fegetround.c: Likewise.
7983         * math/feholdexcpt.c: Likewise.
7984         * math/fesetenv.c: Likewise.
7985         * math/fesetround.c: Likewise.
7986         * math/feupdateenv.c: Likewise.
7987         * math/fgetexcptflg.c: Likewise.
7988         * math/fraiseexcpt.c: Likewise.
7989         * math/fsetexcptflg.c: Likewise.
7990         * math/ftestexcept.c: Likewise.
7991         * math/k_cosl.c: Likewise.
7992         * math/k_rem_pio2l.c: Likewise.
7993         * math/k_sinl.c: Likewise.
7994         * math/k_tanl.c: Likewise.
7995         * math/s_asinhl.c: Likewise.
7996         * math/s_atanl.c: Likewise.
7997         * math/s_cbrtl.c: Likewise.
7998         * math/s_erfl.c: Likewise.
7999         * math/s_expm1l.c: Likewise.
8000         * math/s_log1pl.c: Likewise.
8001         * math/s_tanhl.c: Likewise.
8002         * misc/acct.c: Likewise.
8003         * misc/brk.c: Likewise.
8004         * misc/chflags.c: Likewise.
8005         * misc/chroot.c: Likewise.
8006         * misc/fchflags.c: Likewise.
8007         * misc/fgetxattr.c: Likewise.
8008         * misc/flistxattr.c: Likewise.
8009         * misc/fremovexattr.c: Likewise.
8010         * misc/fsetxattr.c: Likewise.
8011         * misc/fsync.c: Likewise.
8012         * misc/ftruncate.c: Likewise.
8013         * misc/futimes.c: Likewise.
8014         * misc/futimesat.c: Likewise.
8015         * misc/getdomain.c: Likewise.
8016         * misc/getdtsz.c: Likewise.
8017         * misc/gethostid.c: Likewise.
8018         * misc/gethostname.c: Likewise.
8019         * misc/getloadavg.c: Likewise.
8020         * misc/getpagesize.c: Likewise.
8021         * misc/getsysstats.c: Likewise.
8022         * misc/getxattr.c: Likewise.
8023         * misc/gtty.c: Likewise.
8024         * misc/ioctl.c: Likewise.
8025         * misc/lgetxattr.c: Likewise.
8026         * misc/listxattr.c: Likewise.
8027         * misc/llistxattr.c: Likewise.
8028         * misc/lremovexattr.c: Likewise.
8029         * misc/lsetxattr.c: Likewise.
8030         * misc/lutimes.c: Likewise.
8031         * misc/madvise.c: Likewise.
8032         * misc/mincore.c: Likewise.
8033         * misc/mlock.c: Likewise.
8034         * misc/mlockall.c: Likewise.
8035         * misc/mmap.c: Likewise.
8036         * misc/mprotect.c: Likewise.
8037         * misc/msync.c: Likewise.
8038         * misc/munlock.c: Likewise.
8039         * misc/munlockall.c: Likewise.
8040         * misc/munmap.c: Likewise.
8041         * misc/preadv.c: Likewise.
8042         * misc/preadv64.c: Likewise.
8043         * misc/ptrace.c: Likewise.
8044         * misc/pwritev.c: Likewise.
8045         * misc/pwritev64.c: Likewise.
8046         * misc/readv.c: Likewise.
8047         * misc/reboot.c: Likewise.
8048         * misc/remap_file_pages.c: Likewise.
8049         * misc/removexattr.c: Likewise.
8050         * misc/revoke.c: Likewise.
8051         * misc/select.c: Likewise.
8052         * misc/setdomain.c: Likewise.
8053         * misc/setegid.c: Likewise.
8054         * misc/seteuid.c: Likewise.
8055         * misc/sethostid.c: Likewise.
8056         * misc/sethostname.c: Likewise.
8057         * misc/setregid.c: Likewise.
8058         * misc/setreuid.c: Likewise.
8059         * misc/setxattr.c: Likewise.
8060         * misc/sstk.c: Likewise.
8061         * misc/stty.c: Likewise.
8062         * misc/swapoff.c: Likewise.
8063         * misc/swapon.c: Likewise.
8064         * misc/sync.c: Likewise.
8065         * misc/syncfs.c: Likewise.
8066         * misc/syscall.c: Likewise.
8067         * misc/truncate.c: Likewise.
8068         * misc/ualarm.c: Likewise.
8069         * misc/usleep.c: Likewise.
8070         * misc/ustat.c: Likewise.
8071         * misc/utimes.c: Likewise.
8072         * misc/vhangup.c: Likewise.
8073         * misc/writev.c: Likewise.
8074         * posix/_exit.c: Likewise.
8075         * posix/alarm.c: Likewise.
8076         * posix/execve.c: Likewise.
8077         * posix/fexecve.c: Likewise.
8078         * posix/fork.c: Likewise.
8079         * posix/fpathconf.c: Likewise.
8080         * posix/getaddrinfo.c: Likewise.
8081         * posix/getegid.c: Likewise.
8082         * posix/geteuid.c: Likewise.
8083         * posix/getgid.c: Likewise.
8084         * posix/getgroups.c: Likewise.
8085         * posix/getlogin.c: Likewise.
8086         * posix/getlogin_r.c: Likewise.
8087         * posix/getpgid.c: Likewise.
8088         * posix/getpid.c: Likewise.
8089         * posix/getppid.c: Likewise.
8090         * posix/getresgid.c: Likewise.
8091         * posix/getresuid.c: Likewise.
8092         * posix/getsid.c: Likewise.
8093         * posix/getuid.c: Likewise.
8094         * posix/glob64.c: Likewise.
8095         * posix/nanosleep.c: Likewise.
8096         * posix/pathconf.c: Likewise.
8097         * posix/pause.c: Likewise.
8098         * posix/posix_madvise.c: Likewise.
8099         * posix/pread.c: Likewise.
8100         * posix/pread64.c: Likewise.
8101         * posix/pwrite.c: Likewise.
8102         * posix/pwrite64.c: Likewise.
8103         * posix/sched_getaffinity.c: Likewise.
8104         * posix/sched_getp.c: Likewise.
8105         * posix/sched_gets.c: Likewise.
8106         * posix/sched_primax.c: Likewise.
8107         * posix/sched_primin.c: Likewise.
8108         * posix/sched_rr_gi.c: Likewise.
8109         * posix/sched_setaffinity.c: Likewise.
8110         * posix/sched_setp.c: Likewise.
8111         * posix/sched_sets.c: Likewise.
8112         * posix/sched_yield.c: Likewise.
8113         * posix/setgid.c: Likewise.
8114         * posix/setlogin.c: Likewise.
8115         * posix/setpgid.c: Likewise.
8116         * posix/setresgid.c: Likewise.
8117         * posix/setresuid.c: Likewise.
8118         * posix/setsid.c: Likewise.
8119         * posix/setuid.c: Likewise.
8120         * posix/sleep.c: Likewise.
8121         * posix/spawni.c: Likewise.
8122         * posix/sysconf.c: Likewise.
8123         * posix/times.c: Likewise.
8124         * posix/wait.c: Likewise.
8125         * posix/wait3.c: Likewise.
8126         * posix/wait4.c: Likewise.
8127         * posix/waitpid.c: Likewise.
8128         * resolv/gai_sigqueue.c: Likewise.
8129         * resource/getpriority.c: Likewise.
8130         * resource/getrlimit.c: Likewise.
8131         * resource/getrusage.c: Likewise.
8132         * resource/nice.c: Likewise.
8133         * resource/setpriority.c: Likewise.
8134         * resource/setrlimit.c: Likewise.
8135         * resource/ulimit.c: Likewise.
8136         * rt/aio_cancel.c: Likewise.
8137         * rt/aio_fsync.c: Likewise.
8138         * rt/aio_read.c: Likewise.
8139         * rt/aio_sigqueue.c: Likewise.
8140         * rt/aio_suspend.c: Likewise.
8141         * rt/aio_write.c: Likewise.
8142         * rt/clock_getres.c: Likewise.
8143         * rt/clock_gettime.c: Likewise.
8144         * rt/clock_nanosleep.c: Likewise.
8145         * rt/clock_settime.c: Likewise.
8146         * rt/lio_listio.c: Likewise.
8147         * rt/mq_close.c: Likewise.
8148         * rt/mq_getattr.c: Likewise.
8149         * rt/mq_notify.c: Likewise.
8150         * rt/mq_open.c: Likewise.
8151         * rt/mq_receive.c: Likewise.
8152         * rt/mq_send.c: Likewise.
8153         * rt/mq_setattr.c: Likewise.
8154         * rt/mq_timedreceive.c: Likewise.
8155         * rt/mq_timedsend.c: Likewise.
8156         * rt/mq_unlink.c: Likewise.
8157         * rt/shm_open.c: Likewise.
8158         * rt/shm_unlink.c: Likewise.
8159         * rt/timer_create.c: Likewise.
8160         * rt/timer_delete.c: Likewise.
8161         * rt/timer_getoverr.c: Likewise.
8162         * rt/timer_gettime.c: Likewise.
8163         * rt/timer_settime.c: Likewise.
8164         * setjmp/__longjmp.c: Likewise.
8165         * setjmp/setjmp.c: Likewise.
8166         * signal/kill.c: Likewise.
8167         * signal/killpg.c: Likewise.
8168         * signal/raise.c: Likewise.
8169         * signal/sigaction.c: Likewise.
8170         * signal/sigaltstack.c: Likewise.
8171         * signal/sigblock.c: Likewise.
8172         * signal/sigignore.c: Likewise.
8173         * signal/sigintr.c: Likewise.
8174         * signal/signal.c: Likewise.
8175         * signal/sigpause.c: Likewise.
8176         * signal/sigpending.c: Likewise.
8177         * signal/sigqueue.c: Likewise.
8178         * signal/sigreturn.c: Likewise.
8179         * signal/sigset.c: Likewise.
8180         * signal/sigsetmask.c: Likewise.
8181         * signal/sigstack.c: Likewise.
8182         * signal/sigsuspend.c: Likewise.
8183         * signal/sigtimedwait.c: Likewise.
8184         * signal/sigvec.c: Likewise.
8185         * signal/sigwait.c: Likewise.
8186         * signal/sigwaitinfo.c: Likewise.
8187         * signal/sysv_signal.c: Likewise.
8188         * socket/accept.c: Likewise.
8189         * socket/accept4.c: Likewise.
8190         * socket/bind.c: Likewise.
8191         * socket/connect.c: Likewise.
8192         * socket/getpeername.c: Likewise.
8193         * socket/getsockname.c: Likewise.
8194         * socket/getsockopt.c: Likewise.
8195         * socket/isfdtype.c: Likewise.
8196         * socket/listen.c: Likewise.
8197         * socket/recv.c: Likewise.
8198         * socket/recvfrom.c: Likewise.
8199         * socket/recvmsg.c: Likewise.
8200         * socket/send.c: Likewise.
8201         * socket/sendmsg.c: Likewise.
8202         * socket/sendto.c: Likewise.
8203         * socket/setsockopt.c: Likewise.
8204         * socket/shutdown.c: Likewise.
8205         * socket/sockatmark.c: Likewise.
8206         * socket/socket.c: Likewise.
8207         * socket/socketpair.c: Likewise.
8208         * stdio-common/ctermid.c: Likewise.
8209         * stdio-common/cuserid.c: Likewise.
8210         * stdio-common/remove.c: Likewise.
8211         * stdio-common/rename.c: Likewise.
8212         * stdio-common/renameat.c: Likewise.
8213         * stdio-common/tempname.c: Likewise.
8214         * stdlib/getcontext.c: Likewise.
8215         * stdlib/makecontext.c: Likewise.
8216         * stdlib/setcontext.c: Likewise.
8217         * stdlib/swapcontext.c: Likewise.
8218         * stdlib/system.c: Likewise.
8219         * streams/fattach.c: Likewise.
8220         * streams/fdetach.c: Likewise.
8221         * streams/getmsg.c: Likewise.
8222         * streams/getpmsg.c: Likewise.
8223         * streams/putmsg.c: Likewise.
8224         * streams/putpmsg.c: Likewise.
8225         * sysdeps/unix/bsd/getpt.c: Likewise.
8226         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
8227         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
8228         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
8229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
8230         Likewise.
8231         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
8232         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
8233         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
8234         * sysvipc/msgctl.c: Likewise.
8235         * sysvipc/msgget.c: Likewise.
8236         * sysvipc/msgrcv.c: Likewise.
8237         * sysvipc/msgsnd.c: Likewise.
8238         * sysvipc/semctl.c: Likewise.
8239         * sysvipc/semget.c: Likewise.
8240         * sysvipc/semop.c: Likewise.
8241         * sysvipc/semtimedop.c: Likewise.
8242         * sysvipc/shmat.c: Likewise.
8243         * sysvipc/shmctl.c: Likewise.
8244         * sysvipc/shmdt.c: Likewise.
8245         * sysvipc/shmget.c: Likewise.
8246         * termios/tcdrain.c: Likewise.
8247         * termios/tcflow.c: Likewise.
8248         * termios/tcflush.c: Likewise.
8249         * termios/tcgetattr.c: Likewise.
8250         * termios/tcgetpgrp.c: Likewise.
8251         * termios/tcsendbrk.c: Likewise.
8252         * termios/tcsetattr.c: Likewise.
8253         * termios/tcsetpgrp.c: Likewise.
8254         * time/adjtime.c: Likewise.
8255         * time/clock.c: Likewise.
8256         * time/getitimer.c: Likewise.
8257         * time/gettimeofday.c: Likewise.
8258         * time/setitimer.c: Likewise.
8259         * time/settimeofday.c: Likewise.
8260         * time/stime.c: Likewise.
8261         * time/time.c: Likewise.
8262
8263 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
8264
8265         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
8266         /usr/old/bin.
8267
8268         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
8269         instead of spaces.
8270         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
8271
8272 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
8273
8274         [BZ #14796]
8275         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
8276         FE_TONEAREST before applying Dekker multiplication and Knuth
8277         addition.  Clear inexact exceptions and check for exact zero
8278         results afterwards.
8279         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8280         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8281         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8282         * math/libm-test.inc (fma_test): Add more tests.
8283         (fma_test_towardzero): Likewise.
8284         (fma_test_downward): Likewise.
8285         (fma_test_upward): Likewise.
8286         * sysdeps/generic/math_private.h (default_libc_fesetround): New
8287         function.
8288         (libc_fesetround): New macro.
8289         (libc_fesetroundf): Likewise.
8290         (libc_fesetroundl): Likewise.
8291         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
8292         function.
8293         (libc_fesetround_387): Likewise.
8294         (libc_fesetroundf): New macro.
8295         (libc_fesetround): Likewise.
8296         (libc_fesetroundl): Likewise.
8297         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
8298         function.
8299         (libc_fesetroundf): New macro.
8300         (libc_fesetround): Likewise.
8301         (libc_fesetroundl): Likewise.
8302         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
8303         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
8304         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
8305         libm_hidden_ver.
8306         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
8307         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
8308         libm_hidden_def.
8309         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
8310         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
8311         libm_hidden_ver.
8312         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
8313         libm_hidden_def.
8314
8315         [BZ #3439]
8316         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
8317         integer constant usable in #if and use that to give value to enum
8318         constant.
8319         (FE_DIVBYZERO): Likewise.
8320         (FE_UNDERFLOW): Likewise.
8321         (FE_OVERFLOW): Likewise.
8322         (FE_INVALID): Likewise.
8323         (FE_INVALID_SNAN): Likewise.
8324         (FE_INVALID_ISI): Likewise.
8325         (FE_INVALID_IDI): Likewise.
8326         (FE_INVALID_ZDZ): Likewise.
8327         (FE_INVALID_IMZ): Likewise.
8328         (FE_INVALID_COMPARE): Likewise.
8329         (FE_INVALID_SOFTWARE): Likewise.
8330         (FE_INVALID_SQRT): Likewise.
8331         (FE_INVALID_INTEGER_CONVERSION): Likewise.
8332         (FE_TONEAREST): Likewise.
8333         (FE_TOWARDZERO): Likewise.
8334         (FE_UPWARD): Likewise.
8335         (FE_DOWNWARD): Likewise.
8336         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
8337         (FE_DIVBYZERO): Likewise.
8338         (FE_OVERFLOW): Likewise.
8339         (FE_UNDERFLOW): Likewise.
8340         (FE_INEXACT): Likewise.
8341         (FE_TONEAREST): Likewise.
8342         (FE_DOWNWARD): Likewise.
8343         (FE_UPWARD): Likewise.
8344         (FE_TOWARDZERO): Likewise.
8345         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
8346         (FE_UNDERFLOW): Likewise.
8347         (FE_OVERFLOW): Likewise.
8348         (FE_DIVBYZERO): Likewise.
8349         (FE_INVALID): Likewise.
8350         (FE_TONEAREST): Likewise.
8351         (FE_TOWARDZERO): Likewise.
8352         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
8353         (FE_OVERFLOW): Likewise.
8354         (FE_UNDERFLOW): Likewise.
8355         (FE_DIVBYZERO): Likewise.
8356         (FE_INEXACT): Likewise.
8357         (FE_TONEAREST): Likewise.
8358         (FE_TOWARDZERO): Likewise.
8359         (FE_UPWARD): Likewise.
8360         (FE_DOWNWARD): Likewise.
8361         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
8362         (FE_DIVBYZERO): Likewise.
8363         (FE_OVERFLOW): Likewise.
8364         (FE_UNDERFLOW): Likewise.
8365         (FE_INEXACT): Likewise.
8366         (FE_TONEAREST): Likewise.
8367         (FE_DOWNWARD): Likewise.
8368         (FE_UPWARD): Likewise.
8369         (FE_TOWARDZERO): Likewise.
8370
8371 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
8372
8373         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
8374
8375 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
8376
8377         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8378         commands.  Quote $PWD.
8379         (blacklist_exports): Don't use remove_newlines.  Replace "declare
8380         -x" by "export".
8381         (remove_newlines): Remove.
8382
8383 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
8384
8385         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
8386         * stdlib/stdlib.h (atof): Moved to ...
8387         * include/bits/stdlib-float.h: Here.  New file.
8388         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
8389         * stdlib/bits/stdlib-float.h: New file.
8390         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
8391         -mno-sse -mno-mmx.
8392         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
8393         <xmmintrin.h>.
8394
8395 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8396
8397         * conform/conformtest.pl (@headers): Add fenv.h.
8398         * conform/data/fenv.h-data: New file.
8399         * include/fenv.h [_ISOMAC]: Disable all contents of file except
8400         include of <math/fenv.h>.
8401
8402         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
8403         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
8404         && !UNIX98].  Enables tests for XOPEN2K8.
8405         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
8406         POSIX2008]: Likewise.
8407
8408         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
8409         (struct rusage): Do not expect type or its members.
8410
8411         [BZ #3439]
8412         * math/math.h (FP_NAN): Define macro to integer constant usable in
8413         #if and use that to give value to enum constant.
8414         (FP_INFINITE): Likewise.
8415         (FP_ZERO): Likewise.
8416         (FP_SUBNORMAL): Likewise.
8417         (FP_NORMAL): Likewise.
8418
8419 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
8420
8421         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
8422         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
8423         arguments.
8424
8425 2012-11-02  Roland McGrath  <roland@hack.frob.com>
8426
8427         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
8428         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
8429         autoconf-time if not.
8430         * configure.in: Remove AC_PREREQ.
8431
8432 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8433
8434         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
8435         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
8436         of the internal implementation.
8437
8438 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
8439
8440         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
8441         except include of <misc/sys/syslog.h>.
8442
8443 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8444
8445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
8446         function returns with a NULL context exit with zero.
8447
8448 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8449
8450         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
8451
8452 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
8453
8454         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8455         (run_program_cmd): This.
8456         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
8457         (tst_langinfo): New variable.  Use it.
8458
8459 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
8460
8461         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
8462         floating point opcodes.
8463
8464 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8465
8466         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
8467         variable.
8468
8469         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
8470
8471         * sysdeps/mach/hurd/powerpc: Remove directory.
8472         * sysdeps/mach/powerpc: Likewise.
8473
8474 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
8475
8476         * scripts/check-local-headers.sh: Ignore c++ headers.
8477
8478 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8479
8480         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
8481         __libc_cleanup_region_start argument.
8482
8483 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
8484
8485         [BZ #14784]
8486         [BZ #14785]
8487         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
8488         x * y using scaling, not as x * y + z.
8489         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8490         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8491         * math/libm-test.inc (fma_test): Add more tests.
8492         (fma_test_towardzero): Likewise.
8493         (fma_test_downward): Likewise.
8494         (fma_test_upward): Likewise.
8495
8496 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
8497
8498         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
8499
8500 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8501
8502         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8503         New variable.
8504
8505 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
8506
8507         * rt/tst-shm.c (worker): Correct checking for mmap failure.
8508
8509 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8510
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8512         Fix sort order.
8513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8514         Likewise.
8515
8516 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8517
8518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8519         Fix the order of the list for glibc 2.17.
8520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8521         Likewise.
8522
8523 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
8524
8525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8526
8527 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
8528
8529         [BZ #14610]
8530         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
8531         for low part of x being zero before using __atanl (y).
8532         * math/libm-test.inc (atan2_test): Add another test.
8533
8534         * manual/install.texi (Configuring and compiling): Document
8535         general use of test-wrapper and test-wrapper-env.
8536         * INSTALL: Regenerated.
8537
8538         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8539         (__fma): Do not extract and scale down low bits on after-rounding
8540         systems when result rounded to normal precision would have normal
8541         exponent.
8542         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8543         (__fmal): Do not extract and scale down low bits on after-rounding
8544         systems when result rounded to normal precision would have normal
8545         exponent.
8546         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
8547         (__fmal): Do not extract and scale down low bits on after-rounding
8548         systems when result rounded to normal precision would have normal
8549         exponent.
8550         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
8551         macro.
8552         (fma_test): Add more tests.
8553         (fma_test_towardzero): Likewise.
8554         (fma_test_downward): Likewise.
8555         (fma_test_upward): Likewise.
8556
8557 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
8558
8559         * sysdeps/i386/tininess.h: Renamed to ...
8560         * sysdeps/x86/tininess.h: This.
8561         * sysdeps/x86_64/tininess.h: Removed.
8562
8563 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8564
8565         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
8566         input.  Use $(build-program-cmd).
8567         ($(objpfx)tst-array1-static.out): Likewise.
8568         ($(objpfx)tst-array2.out): Likewise.
8569         ($(objpfx)tst-array3.out): Likewise.
8570         ($(objpfx)tst-array4.out): Likewise.
8571         ($(objpfx)tst-array5.out): Likewise.
8572         ($(objpfx)tst-array5-static.out): Likewise.
8573
8574 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
8575
8576         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
8577         if defined.
8578
8579         * nss/nsswitch.h (nss_interface_function): Provide new
8580         macro for use with NSS functions.
8581         * grp/initgroups.c: Use new macro.
8582         * nss/getXXbyYY.c: Likewise.
8583         * nss/getXXbyYY_r.c: Likewise.
8584         * nss/getXXent.c: Likewise.
8585         * nss/getXXent_r.c: Likewise.
8586         * sysdeps/posix/getaddrinfo.c: Likewise.
8587
8588 2012-10-30  Andreas Jaeger  <aj@suse.de>
8589
8590         * po/ru.po: Update Russion translation from translation project.
8591
8592 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
8593
8594         [BZ #14152]
8595         [BZ #14783]
8596         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
8597         result and shift together with sticky bit instead of replicating
8598         round-to-nearest rounding.
8599         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8600         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8601         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
8602         missing underflow exceptions.
8603         (fma_test_towardzero): Add more tests.
8604         (fma_test_downward): Likewise.
8605         (fma_test_upward): Likewise.
8606
8607         [BZ #14047]
8608         * sysdeps/generic/tininess.h: New file.
8609         * sysdeps/i386/tininess.h: Likewise.
8610         * sysdeps/sh/tininess.h: Likewise.
8611         * sysdeps/x86_64/tininess.h: Likewise.
8612         * stdlib/tst-strtod-underflow.c: Likewise.
8613         * stdlib/tst-tininess.c: Likewise.
8614         * stdlib/strtod_l.c: Include <tininess.h>.
8615         (round_and_return): Do not set errno for exact underflow cases.
8616         Force an underflow exception when setting errno for underflow.
8617         Determine underflow based on rounding to normal precision if
8618         TININESS_AFTER_ROUNDING.
8619         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
8620         ERANGE for exact underflow cases.
8621         * stdlib/Makefile (tests): Add tst-tininess and
8622         tst-strtod-underflow.
8623         ($(objpfx)tst-tininess): Use $(link-libm).
8624         ($(objpfx)tst-strtod-underflow): Likewise.
8625
8626 2012-10-30  Andreas Jaeger  <aj@suse.de>
8627
8628         [BZ#14767]
8629         * elf/Makefile (tests): Remove conditional for have-initfini-array
8630         since this is now always required and the variable does not exist
8631         anymore.
8632         (tests-static): Likewise.
8633         (modules-names): Likewise.
8634
8635         * po/eo.po: Add Esperanto translation from translation project.
8636
8637         * elf/tst-array1.c (fini_array): Make writeable so that it can be
8638         merged with constructor/destructor.
8639         (init_array): Likewise.
8640         * elf/tst-array2dep.c (fini_array): Likewise.
8641         (init_array): Likewise.
8642
8643 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
8644
8645         * manual/message.texi: Delete @cartouche tags.
8646
8647 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
8648
8649         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
8650         EOPNOTSUPP.
8651         * sysdeps/mach/hurd/fsync.c: Likewise.
8652
8653         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
8654         [_POSIX_REALTIME_SIGNALS]: Change condition to
8655         [_POSIX_REALTIME_SIGNALS > 0].
8656
8657 2012-10-27  Andreas Jaeger  <aj@suse.de>
8658
8659         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
8660         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
8661         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
8662         [__WORDSIZE != 64]: Likewise.
8663
8664 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8665
8666         *  iconvdata/tst-table.sh: Remove ${SHELL}.
8667         *  iconvdata/tst-tables.sh: Likewise.
8668
8669 2012-10-25  David S. Miller  <davem@davemloft.net>
8670
8671         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8672         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
8673         of strtoull.
8674
8675         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
8676         ifunc-impl-list.c
8677         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8678         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
8679         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
8680         file.
8681
8682 2012-10-25  Roland McGrath  <roland@hack.frob.com>
8683
8684         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8685         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
8686         __getdirentries.
8687
8688 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8689             Jim Blandy  <jimb@codesourcery.com>
8690
8691         * scripts/cross-test-ssh.sh: New file.
8692         * manual/install.texi (Configuring and compiling): Document use of
8693         cross-test-ssh.sh.
8694         * INSTALL: Regenerated.
8695
8696 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
8697
8698         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
8699         EOPNOTSUPP.
8700
8701 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8702
8703         * Makeconfig (run-program-prefix): Fix comment.
8704
8705 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8706             Jim Blandy  <jimb@codesourcery.com>
8707
8708         * Makeconfig (test-wrapper): New variable,
8709         (test-wrapper-env): Likewise.
8710         [$(cross-compiling) = yes && $(test-wrapper) != ""]
8711         (run-built-tests): Define to yes.
8712         (run-program-prefix): Use $(test-wrapper).
8713         (built-program-cmd): Likewise.
8714         * Rules (make-test-out): Use $(test-wrapper-env) and
8715         $(host-built-program-cmd).
8716         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
8717         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
8718         tst-pathopt.sh.
8719         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
8720         $(test-wrapper-env) to tst-rtld-load-self.sh.
8721         ($(objpfx)order2.out): Use $(test-wrapper).
8722         ($(objpfx)tst-initorder.out): Likewise.
8723         ($(objpfx)tst-initorder2.out): Likewise.
8724         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
8725         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
8726         (test_wrapper_env): New variable.  Use it to run ld.so.
8727         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
8728         Use it to run ld.so.
8729         (test_wrapper_env): Likewise.
8730         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
8731         $(test-wrapper) to run-iconv-test.sh.
8732         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
8733         (ICONV): Use $test_wrapper.
8734         * posix/Makefile ($(objpfx)globtest.out): Pass
8735         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
8736         globtest.sh, not $(run-program-prefix).
8737         * posix/globtest.sh (run_via_rtld_prefix): New variable.
8738         (test_wrapper): Likewise.
8739         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
8740         set together with run_via_rtld_prefix.
8741         (run_program_prefix): Define in terms of test_wrapper and
8742         run_via_rtld_prefix.
8743
8744 2012-10-24  Roland McGrath  <roland@hack.frob.com>
8745
8746         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
8747         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
8748         Targets removed.
8749
8750         [BZ #14743]
8751         * include/time.h: Remove librt_hidden_proto (clock_gettime).
8752         Declare __clock_getres, __clock_gettime, __clock_settime,
8753         __clock_nanosleep, and __clock_getcpuclockid.
8754         * rt/clock_gettime.c: Define __clock_gettime as an alias.
8755         Remove librt_hidden_def (clock_gettime).
8756         * sysdeps/unix/clock_gettime.c: Likewise.
8757         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
8758         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
8759         * rt/clock_getres.c: Define __clock_getres as an alias.
8760         * sysdeps/posix/clock_getres.c: Likewise.
8761         * rt/clock_settime.c: Define __clock_settime as an alias.
8762         * sysdeps/unix/clock_settime.c: Likewise.
8763         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
8764         * sysdeps/unix/clock_nanosleep.c: Likewise.
8765         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
8766         * rt/clock-compat.c: New file.
8767         * rt/Makefile (librt-routines): Add clock-compat and move
8768         $(clock-routines) to ...
8769         (routines): ... here, new variable.
8770         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
8771         Don't add get_clockfreq here.
8772         * rt/Versions (libc: GLIBC_2.17): New version set.
8773         Add clock_* symbols here.
8774         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
8775         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
8776         (GLIBC_2.17): Add clock_* symbols.
8777         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
8778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
8779         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8781         Likewise.
8782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8783         Likewise.
8784         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
8786         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
8787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
8788         * NEWS: Mention the move.
8789
8790         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8791         Use __open, __read, __close rather than their public counterparts.
8792         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8793         (__get_clockfreq_via_cpuinfo): Likewise.
8794         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
8795         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
8796
8797         * config.h.in (HAVE_IFUNC): New #undef.
8798         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
8799         was successful.
8800         * configure: Regenerated.
8801
8802 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8803
8804         * configure.in: Move READELF check to start of file.
8805         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
8806         libc_cv_asm_gnu_indirect_function in the process.
8807         * configure: Regenerated.
8808
8809 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
8810
8811         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
8812         send the output to /dev/null.
8813         (libc_cv_cc_with_libunwind): Likewise.
8814         (libc_cv_as_noexecstack): Likewise.
8815         * configure: Regenerate.
8816
8817 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
8818
8819         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
8820
8821         * posix/globtest.sh (TMPDIR): Do not set.
8822         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
8823         (testout): Likewise.
8824
8825 2012-10-24  Andreas Jaeger  <aj@suse.de>
8826
8827         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
8828         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
8829         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
8830         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
8831         posix_fadvise64, posix_fallocate64.
8832
8833         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
8834         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
8835         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
8836         Likewise.
8837         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
8838         Likewise.
8839         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
8840
8841         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
8842         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
8843         <bits/fcntl-linux.h>.
8844         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
8845
8846         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
8847         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
8848         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
8849         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
8850         [__WORDSIZE != 64]: Likewise.
8851
8852 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8853
8854         * Makeconfig (run-built-tests): New variable.
8855         * Rules [$(cross-compiling) = yes]: Change condition to
8856         [$(run-built-tests) = no].
8857         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
8858         to [$(run-built-tests) = yes].
8859         * elf/Makefile [$(cross-compiling) = no]: Likewise
8860         * grp/Makefile [$(cross-compiling) = no]: Likewise.
8861         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
8862         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
8863         * intl/Makefile [$(cross-compiling) = no]: Likewise.
8864         * io/Makefile [$(cross-compiling) = no]: Likewise.
8865         * libio/Makefile [$(cross-compiling) = no]: Likewise.
8866         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
8867         * misc/Makefile [$(cross-compiling) = no]: Likewise.
8868         * posix/Makefile [$(cross-compiling) = no]: Likewise.
8869         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
8870         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
8871         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
8872         * string/Makefile [$(cross-compiling) = no]: Likewise.
8873
8874         * posix/Makefile ($(objpfx)globtest.out): Pass
8875         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
8876         $(rtld-installed-name).
8877         * posix/globtest.sh (elf_objpfx): Remove variable.
8878         (rtld_installed_name): Likewise.
8879         (library_path): Likewise.
8880         (run_program_prefix): New variable.  Use for running globtest
8881         binary.
8882
8883 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
8884             Joseph Myers  <joseph@codesourcery.com>
8885
8886         * Makeconfig (host-built-program-cmd): New variable.
8887         * elf/Makefile (tst-stackguard1-ARGS): Use
8888         $(host-built-program-cmd).
8889         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
8890         (tst-spawn-ARGS): Likewise.
8891         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
8892
8893 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
8894             Jim Blandy  <jimb@codesourcery.com>
8895
8896         * Makeconfig (run-via-rtld-prefix): New variable.
8897         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
8898         (built-program-cmd): Likewise.
8899
8900 2012-10-22  Andreas Jaeger  <aj@suse.de>
8901
8902         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
8903         __O_RSYNC if it exists, otherwise to O_SYNC.
8904
8905 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
8906             Joseph Myers  <joseph@codesourcery.com>
8907
8908         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
8909         /dev/null.
8910         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
8911         from /dev/null
8912         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
8913         /dev/null.
8914
8915 2012-10-22  Andreas Jaeger  <aj@suse.de>
8916
8917         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
8918         Define always.
8919         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
8920
8921         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8922         bits/fcntl-linux.h.
8923
8924         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
8925         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
8926
8927         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
8928         to __O_LARGEFILE.
8929         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
8930         to __O_LARGEFILE.
8931
8932 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
8933             Joseph Myers  <joseph@codesourcery.com>
8934
8935         * config.make.in (NM): New variable.
8936
8937 2012-10-21  Andreas Jaeger  <aj@suse.de>
8938
8939         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
8940         definitions and declarations that are provided by
8941         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
8942
8943 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         [BZ #14683]
8946         * elf/Makefile (tests-static): Add tst-leaks1-static.
8947         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
8948         ($(objpfx)tst-leaks1-static): New rule.
8949         ($(objpfx)tst-leaks1-static-mem): Likewise.
8950         (tst-leaks1-static-ENV): New macro.
8951         * elf/dl-open.c (dl_open_worker): Check the main application
8952         only if SHARED is defined.
8953         * elf/tst-leaks1-static.c: New file.
8954
8955 2012-10-20  Andreas Jaeger  <aj@suse.de>
8956
8957         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
8958         generic values for Linux.
8959         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
8960         and declarations that are provided by <bits/fcntl-linux.h> and
8961         include <bits/fcntl-linux.h>.
8962         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8963         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8964
8965 2012-10-20  Roland McGrath  <roland@hack.frob.com>
8966
8967         * io/fcntl.h: Move include of <bits/types.h> to the top and
8968         include it unconditionally.
8969
8970 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8971
8972         * wcsmbs/Makefile (tests-ifunc): New variable.
8973         (tests): Add $(tests-ifunc).
8974         * wcsmbs/test-wcschr-ifunc.c: New file.
8975         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
8976         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8977         * wcsmbs/test-wcslen-ifunc.c: Likewise.
8978         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
8979         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
8980
8981         * string/Makefile (tests-ifunc): New variable.
8982         (tests): Add $(tests-ifunc).
8983         * string/test-memccpy.c (TEST_NAME): New macro.
8984         * string/test-memchr.c (TEST_NAME): Likewise.
8985         * string/test-memcmp.c (TEST_NAME): Likewise.
8986         * string/test-memcpy.c (TEST_NAME): Likewise.
8987         * string/test-memmem.c (TEST_NAME): Likewise.
8988         * string/test-memmove.c (TEST_NAME): Likewise.
8989         * string/test-memset.c (TEST_NAME): Likewise.
8990         * string/test-rawmemchr.c (TEST_NAME): Likewise.
8991         * string/test-stpcpy.c (TEST_NAME): Likewise.
8992         * string/test-stpncpy.c (TEST_NAME): Likewise.
8993         * string/test-strcasecmp.c (TEST_NAME): Likewise.
8994         * string/test-strcasestr.c (TEST_NAME): Likewise.
8995         * string/test-strcat.c (TEST_NAME): Likewise.
8996         * string/test-strchr.c (TEST_NAME): Likewise.
8997         * string/test-strcmp.c(TEST_NAME): Likewise.
8998         * string/test-strcpy.c (TEST_NAME): Likewise.
8999         * string/test-strcspn.c (TEST_NAME): Likewise.
9000         * string/test-strlen.c (TEST_NAME): Likewise.
9001         * string/test-strncasecmp.c (TEST_NAME): Likewise.
9002         * string/test-strncmp.c (TEST_NAME): Likewise.
9003         * string/test-strncpy.c (TEST_NAME): Likewise.
9004         * string/test-strnlen.c (TEST_NAME): Likewise.
9005         * string/test-strpbrk.c (TEST_NAME): Likewise.
9006         * string/test-strrchr.c (TEST_NAME): Likewise.
9007         * string/test-strspn.c (TEST_NAME): Likewise.
9008         * string/test-strstr.c (TEST_NAME): Likewise.
9009         * string/test-bcopy-ifunc.c: New file.
9010         * string/test-bzero-ifunc.c: Likewise.
9011         * string/test-memccpy-ifunc.c: Likewise.
9012         * string/test-memchr-ifunc.c: Likewise.
9013         * string/test-memcmp-ifunc.c: Likewise.
9014         * string/test-memcpy-ifunc.c: Likewise.
9015         * string/test-memmem-ifunc.c: Likewise.
9016         * string/test-memmove-ifunc.c: Likewise.
9017         * string/test-mempcpy-ifunc.c: Likewise.
9018         * string/test-memset-ifunc.c: Likewise.
9019         * string/test-rawmemchr-ifunc.c: Likewise.
9020         * string/test-stpcpy-ifunc.c: Likewise.
9021         * string/test-stpncpy-ifunc.c: Likewise.
9022         * string/test-strcasecmp-ifunc.c: Likewise.
9023         * string/test-strcasestr-ifunc.c: Likewise.
9024         * string/test-strcat-ifunc.c: Likewise.
9025         * string/test-strchr-ifunc.c: Likewise.
9026         * string/test-strchrnul-ifunc.c: Likewise.
9027         * string/test-strcmp-ifunc.c: Likewise.
9028         * string/test-strcpy-ifunc.c: Likewise.
9029         * string/test-strcspn-ifunc.c: Likewise.
9030         * string/test-strlen-ifunc.c: Likewise.
9031         * string/test-strncasecmp-ifunc.c: Likewise.
9032         * string/test-strncat-ifunc.c: Likewise.
9033         * string/test-strncmp-ifunc.c: Likewise.
9034         * string/test-strncpy-ifunc.c: Likewise.
9035         * string/test-strnlen-ifunc.c: Likewise.
9036         * string/test-strpbrk-ifunc.c: Likewise.
9037         * string/test-strrchr-ifunc.c: Likewise.
9038         * string/test-strspn-ifunc.c: Likewise.
9039         * string/test-strstr-ifunc.c: Likewise.
9040
9041         * debug/Makefile (tests-ifunc): New variable.
9042         (tests): Add $(tests-ifunc).
9043         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
9044         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
9045         * debug/test-stpcpy_chk-ifunc.c: New file.
9046         * debug/test-strcpy_chk-ifunc.c: Likewise.
9047
9048 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9049
9050         [BZ #13601]
9051         * elf/dl-load.c (open_verify): Retry read if the entire ELF
9052         header is not read in.
9053
9054 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
9055
9056         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
9057         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
9058         directly.  Pass built executable to script as
9059         $(built-program-cmd).
9060         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
9061         $testprogram without using LD_LIBRARY_PATH and $ldso.
9062
9063         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
9064         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
9065         $(rtld-installed-name).
9066         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
9067         (rtld_installed_name): Likewise.
9068         (library_path): Likewise.
9069         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
9070         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
9071         $(run-program-prefix) to tst-tables.sh.
9072         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
9073         it to run tst-table-from and tst-table-to.
9074         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
9075         Pass it to tst-table.sh.
9076         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
9077         $(run-program-prefix) to tst-gettext.sh.
9078         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
9079         tst-translit.sh.
9080         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
9081         tst-gettext2.sh.
9082         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
9083         to run tst-gettext.
9084         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
9085         to run tst-gettext2.
9086         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
9087         to run tst-translit.
9088         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
9089         $(run-program-prefix) to tst-mtrace.sh.
9090         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
9091         to run tst-mtrace.
9092         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
9093         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
9094         $(rtld-installed-name).
9095         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
9096         (rtld_installed_name): Likewise.
9097         (run_program_prefix): New variable.  Use it to run wordexp-test.
9098
9099         * Makeconfig (ARCH): Remove all definitions.
9100         (machine): Likewise.
9101         [ARCH]: Remove conditional code.
9102         [!objdir]: Give error.
9103         [!objdir] (objpfx): Remove.
9104         [!objdir] (common-objpfx): Likewise.
9105         [!objdir] (common-objdir): Likewise.
9106         * configure.in (config_makefile): Remove.  Hardcode Makefile in
9107         AC_CONFIG_FILES call.
9108         * configure: Regenerated.
9109
9110         [BZ #13888]
9111         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
9112         or TMPDIR.
9113         (testout): Likewise.
9114
9115         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
9116         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
9117         $(rtld-installed-name).
9118         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
9119         (rtld_installed_name): Likwise.
9120         (runit): Remove function.
9121         (run_getconf): New variable,  Use it for running getconf binary.
9122
9123 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
9124
9125         [BZ #14716]
9126         * string/test-memmem.c (check_result): New function.
9127         (do_one_test): Use it.
9128         (check1): New function.
9129         (test_main): Use it.
9130
9131 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
9132
9133         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
9134
9135 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
9136
9137         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
9138         (_G_LSEEK64): Likewise.
9139         (_G_MMAP64): Likewise.
9140         (_G_FSTAT64): Likewise.
9141         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
9142         (_G_LSEEK64): Likewise.
9143         (_G_MMAP64): Likewise.
9144         (_G_FSTAT64): Likewise.
9145         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
9146         unconditional.  Call __mmap64 directly.
9147         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
9148         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
9149         __lseek64 directly.
9150         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
9151         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
9152         __mmap64 directly.
9153         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
9154         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9155         __lseek64 directly.
9156         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
9157         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
9158         __lseek64 directly.
9159         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
9160         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
9161         __lseek64 directly.
9162         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
9163         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
9164         __fxstat64 directly.
9165         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
9166         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
9167         unconditional.
9168         (freopen64) [!_G_OPEN64]: Remove conditional code.
9169         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
9170         unconditional.
9171         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
9172         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
9173         unconditional.
9174         (ftello64) [!_G_LSEEK64]: Remove conditional code.
9175         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
9176         unconditional.
9177         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9178         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
9179         unconditional.
9180         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
9181         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
9182         unconditional.
9183         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9184         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
9185         unconditional.
9186         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
9187         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
9188         unconditional.
9189         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
9190
9191 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9192
9193         [BZ #12140]
9194         * manual/memory.texi (Malloc Tunable Parameters): Add note
9195         about free list pointers overwriting some perturb bytes.
9196         Wording suggested by Roland McGrath.
9197
9198 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
9199
9200         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
9201         (lgamma_test): Likewise.
9202         (tgamma_test): Likewise.
9203
9204 2012-10-16  Florian Weimer  <fweimer@redhat.com>
9205
9206         [BZ #14700]
9207         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
9208         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
9209
9210 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9211
9212         * NEWS: Mention BZ #14716.
9213         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
9214         when removing AVAILABLE1_USES_J macro.
9215
9216 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9217
9218         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
9219         (__bswap_64): __uint64_t for unsigned 64-bit int.
9220
9221 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
9222
9223         * include/string.h (memmem): Declare libc hidden alias.
9224         * string/memmem.c (memmem): Define libc hidden alias.
9225         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
9226         __read, __close instead of open, read, close.
9227
9228 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
9229
9230         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
9231         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
9232         global and hidden.
9233         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
9234         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
9235         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
9236         Likewise.
9237         (__rawmemchr_sse2): Likewise.
9238         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
9239         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
9240         (__strchr_sse2): Likewise.
9241         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
9242         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
9243         (__strcasecmp_sse2): Likewise.
9244         (__strncasecmp_sse2): Likewise.
9245         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
9246         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
9247         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
9248         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
9249         (__strrchr_sse2): Likewise.
9250         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
9251         ifunc-impl-list.c.
9252         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
9253         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
9254         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
9255         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
9256         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
9257         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
9258         * sysdeps/x86_64/multiarch/memset.S: Likewise.
9259         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
9260         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
9261         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
9262         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
9263         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
9264         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
9265         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
9266         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
9267         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
9268         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
9269         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
9270         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
9271         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
9272         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
9273         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
9274         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
9275         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
9276         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
9277         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
9278         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
9279         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
9280         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
9281         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
9282
9283         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
9284         global and hidden.
9285         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
9286         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
9287         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
9288         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
9289         Likewise.
9290         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
9291         Likewise.
9292         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
9293         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
9294         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
9295         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
9296         ifunc-impl-list.c.
9297         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9298         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9299         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9300         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9301         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9302         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9303         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9304         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9305         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9306         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9307         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9308         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9309         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9310         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9311         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9312         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9313         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9314         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
9315         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9316         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
9317         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9318         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9319         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9320         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9321         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9322         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9323         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9324         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9325         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9326         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9327         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9328         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9329         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9330         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
9331         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9332         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9333         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9334         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9335         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9336         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9337         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
9338
9339         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
9340         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
9341         * include/ifunc-impl-list.h: New file.
9342         * misc/ifunc-impl-list.c: Likewise.
9343         * misc/Makefile (routines): Add ifunc-impl-list.
9344         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
9345         * string/test-string.h: Include <ifunc-impl-list.h>.
9346         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
9347         impl_array): New variables.
9348         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
9349         are defined.
9350         (test_init): Call __libc_ifunc_impl_list to initialize
9351         func_list if TEST_IFUNC and TEST_NAME are defined.
9352
9353         * string/Makefile (strop-tests): Add bcopy and bzero.
9354         * string/test-bcopy.c: New file.
9355         * string/test-bzero.c: Likewise.
9356         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
9357         defined.
9358         * string/test-memset.c: Support bzero test if TEST_BZERO is
9359         defined.
9360         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
9361         __libc_memmove.
9362         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
9363         __libc_memset.
9364         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
9365         of memset.
9366
9367 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
9368
9369         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
9370         * configure: Regenerated.
9371
9372         * Makeconfig (+link-static-before-libc): Don't include
9373         $(link-static-libc).
9374
9375         * libio/libio.h (_IO_pos_t): Remove.
9376
9377 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9378
9379         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
9380         McGrath.
9381
9382 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9383
9384         * crypt/crypt-entry.c: Include fips-private.h.
9385         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
9386         * crypt/md5c-test.c (main): Tolerate disabled MD5.
9387         * sysdeps/unix/sysv/linux/fips-private.h: New file.
9388         * sysdeps/generic/fips-private.h: New file, dummy fallback.
9389
9390 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
9391
9392         * crypt/crypt-private.h: Include stdbool.h.
9393         (_ufc_setup_salt_r): Return bool.
9394         * crypt/crypt-entry.c: Include errno.h.
9395         (__crypt_r): Return NULL with EINVAL for bad salt.
9396         * crypt/crypt_util.c (bad_for_salt): New.
9397         (_ufc_setup_salt_r): Check that salt is long enough and within
9398         the specified alphabet.
9399         * crypt/badsalttest.c: New file.
9400         * crypt/Makefile (tests): Add it.
9401         ($(objpfx)badsalttest): New.
9402
9403 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9404
9405         * NEWS: Add entry for BZ #14602.
9406
9407 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
9410         type-generic.
9411         * math/libm-test.inc: Update comment listing what functions and
9412         macros are tested.
9413         (isgreater_test): New function.
9414         (isgreaterequal_test): Likewise.
9415         (isless_test): Likewise.
9416         (islessequal_test): Likewise.
9417         (islessgreater_test): Likewise.
9418         (isunordered_test): Likewise.
9419         (main): Call the new functions.
9420
9421 2012-10-09  Roland McGrath  <roland@hack.frob.com>
9422
9423         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
9424         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
9425         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
9426         * sysdeps/i386/configure: Regenerated.
9427         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
9428         * sysdeps/mach/configure: Regenerated.
9429         * sysdeps/mach/hurd/configure: Regenerated.
9430         * sysdeps/powerpc/configure: Regenerated.
9431         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9432         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9433         * sysdeps/s390/s390-32/configure: Regenerated.
9434         * sysdeps/s390/s390-64/configure: Regenerated.
9435         * sysdeps/sh/configure: Regenerated.
9436         * sysdeps/sparc/configure: Regenerated.
9437         * sysdeps/unix/sysv/linux/configure: Regenerated.
9438         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
9439         * sysdeps/x86_64/configure: Regenerated.
9440
9441         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
9442         defined.  Don't check if MAP is NULL.
9443
9444 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
9445
9446         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
9447         (_G_stat64): Likewise.
9448         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
9449         (_G_stat64): Likewise.
9450         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
9451         instead of struct _G_stat64.
9452         * libio/fileops.c (mmap_remap_check): Likewise.
9453         (decide_maybe_mmap): Likewise.
9454         (_IO_new_file_seekoff): Likewise.
9455         (_IO_file_stat): Likewise.
9456         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
9457         _G_off64_t.
9458         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
9459         instead of struct _G_stat64.
9460         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9461
9462 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
9463
9464         [BZ #14602]
9465         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9466         Replace with ...
9467         (CHECK_EOL): New macro.
9468         (two_way_short_needle): Check beginning of haystack for EOL.  Use
9469         CHECK_EOL.
9470         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9471         Replace with CHECK_EOL.
9472         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
9473         Replace with CHECK_EOL.
9474
9475 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
9476
9477         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
9478         type-generic.
9479         * math/libm-test.inc: Update comment listing what functions and
9480         macros are tested.
9481         (finite_test): New function.
9482         (isinf_test): Likewise.
9483         (isnan_test): Likewise.
9484         (fpclassify_test): Test subnormal input.
9485         (isfinite_test): Likewise.
9486         (isnormal_test): Likewise.
9487         (main): Call the new functions.
9488
9489 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
9490
9491         [BZ #14660]
9492         * Makerules (%.dynsym): Force C locale when running
9493         $(OBJDUMP) --dynamic-syms.
9494
9495 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
9496
9497         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
9498         <stdint.h>.
9499
9500 2012-10-06  David S. Miller  <davem@davemloft.net>
9501
9502         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
9503         upper 32-bits of the length value in %o2 since we use branch-on-register
9504         tests which consider the entire 64-bit register.
9505
9506 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
9507
9508         * string/test-strstr.c (check2): Add a test for page boundary.
9509
9510 2012-10-05  David S. Miller  <davem@davemloft.net>
9511
9512         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
9513         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
9514         file.
9515         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9516         sysdep_routines.
9517         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9518         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
9519         and bzero when HWCAP_SPARC_CRYPTO is present.
9520
9521 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
9522
9523         [BZ #14602]
9524         * string/test-strstr.c (check2): New function.
9525         (test_main): Call check2.
9526
9527         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
9528         and bug-strchr1.
9529         * string/bug-strcasestr1.c (do_test): Moved to ...
9530         * string/test-strcasestr.c (check1): Here.  New function.
9531         (do_one_test): Break out result checking code into ...
9532         (check_result): This.  New function.
9533         (do_one_test): Call check_result.
9534         (test_main): Call check1.
9535         * string/bug-strchr1.c (do_test): Moved to ...
9536         * string/test-strchr.c (check1): Here.  New function.
9537         (do_one_test): Break out result checking code into ...
9538         (check_result): This.  New function.
9539         (do_one_test): Call check_result.
9540         (test_main): Call check1.
9541         * string/bug-strstr1.c (main): Moved to ...
9542         * string/test-strstr.c (check1): Here.  New function.
9543         (do_one_test): Break out result checking code into ...
9544         (check_result): This.  New function.
9545         (do_one_test): Call check_result.
9546         (test_main): Call check1.
9547         * string/bug-strcasestr1.c: Removed.
9548         * string/bug-strchr1.c: Likewise.
9549         * string/bug-strstr1.c: Likewise.
9550
9551         * elf/Makefile (dl-routines): Add hwcaps.
9552         * elf/dl-support.c (_dl_important_hwcaps): Removed.
9553         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
9554         (_dl_important_hwcaps): Moved to ...
9555         * elf/dl-hwcaps.c: Here.  New file.
9556         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
9557
9558         [BZ #14557]
9559         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
9560         if IS_IN_rtld isn't defined.
9561
9562         * elf/dl-support.c (_dl_sysinfo_map): New.
9563         Include "get-dynamic-info.h" and "setup-vdso.h".
9564         (_dl_non_dynamic_init): Call setup_vdso.
9565         * elf/dynamic-link.h: Don't include <assert.h>.
9566         (elf_get_dynamic_info): Moved to ...
9567         * elf/get-dynamic-info.h: Here.  New file.
9568         * elf/dynamic-link.h: Include "get-dynamic-info.h".
9569         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
9570         * elf/setup-vdso.h: Here.  New file.
9571         * elf/rtld.c: Include "setup-vdso.h".
9572         (dl_main): Call setup_vdso.
9573
9574 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
9575
9576         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
9577         creal in comment listing functions tested.  List finite, isinf,
9578         isnan, isless, islessequal, isgreater, isgreaterequal,
9579         islessgreater, isunordered, lgamma_r and pow10 as functions and
9580         macros not tested.  Mention which functions not tested are aliases
9581         for other functions.  Fix typo.  Note that signs of NaNs are not
9582         tested.
9583
9584         * scripts/config.guess: Update from config.git.
9585         * scripts/config.sub: Likewise.
9586
9587 2012-10-04  Roland McGrath  <roland@hack.frob.com>
9588
9589         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
9590         * misc/madvise.c (madvise): Renamed to __madvise.
9591         Make madvise a weak alias.
9592         * include/sys/mman.h: Declare __madvise.
9593         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
9594         * sysdeps/unix/syscalls.list
9595         (madvise): Make __madvise the strong name, and madvise a weak alias.
9596         * sysdeps/unix/sysv/linux/syscalls.list
9597         (madvise, mmap): Remove redundant entries.
9598         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
9599         * malloc/malloc.c (mtrim): Likewise.
9600         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
9601
9602 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9603
9604         * sysdeps/mach/hurd/dl-cache.c: File removed.
9605         * config.h.in (USE_LDCONFIG): New #undef.
9606         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
9607         * configure: Regenerated.
9608         * elf/Makefile (dl-routines): Add dl-cache only under
9609         [$(use-ldconfig) = yes].
9610         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
9611         cache on [USE_LDCONFIG].
9612         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
9613         [USE_LDCONFIG].
9614         * elf/rtld.c (dl_main): Likewise.
9615
9616 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
9617
9618         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
9619         _SC_LEVEL4_CACHE_LINESIZE.
9620
9621 2012-10-03  Roland McGrath  <roland@hack.frob.com>
9622
9623         * sysdeps/unix/bsd/confstr.h: File removed.
9624
9625 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
9626
9627         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
9628         sys/sdt-config.h.
9629
9630 2012-10-02  Roland McGrath  <roland@hack.frob.com>
9631
9632         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
9633         Make 'mapoff' field ElfW(Off) rather than off_t.
9634
9635 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9636
9637         * nscd/Makefile: Remove nscd-cflags and all its users.
9638         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
9639         (CFLAGS-nonlib): Add compiler flags for nscd modules.
9640
9641         [BZ #10631]
9642         * malloc.c (malloc_printerr): Clarify error message.
9643
9644 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9645
9646         [BZ #14648]
9647         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9648         Set bit_FMA_Usable if FMA is supported.
9649         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
9650         macro.
9651         (bit_FMA4_Usable): Updated.
9652         (index_FMA_Usable): New macro.
9653         (CPUID_FMA): Likewise
9654         (HAS_FMA): Defined with bit_FMA_Usable.
9655
9656 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9657
9658         * bits/types.h (__swblk_t): Type removed.
9659         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
9660         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
9661         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9662         (__SWBLK_T_TYPE): Likewise.
9663         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
9664         (__SWBLK_T_TYPE): Likewise.
9665         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9666         (__SWBLK_T_TYPE): Likewise.
9667         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9668         (__SWBLK_T_TYPE): Likewise.
9669
9670 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
9671             Honza Horak <hhorak@redhat.com>
9672
9673         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
9674         (xdr_mapname): Use YPMAXMAP as maxsize.
9675         (xdr_peername): Use YPMAXPEER as maxsize.
9676         (xdr_keydat): Use YPAXRECORD as maxsize.
9677         (xdr_valdat): Use YPMAXRECORD as maxsize.
9678
9679 2012-10-01  Roland McGrath  <roland@hack.frob.com>
9680
9681         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
9682
9683         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
9684         * csu/init-first.c: ... here.
9685         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
9686         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
9687         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
9688         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
9689         * sysdeps/i386/init-first.c: File removed.
9690         * sysdeps/sh/init-first.c: File removed.
9691
9692 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
9693
9694         [BZ #14645]
9695         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
9696         if x * y might underflow to zero and z is zero.
9697         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9698         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9699         * math/libm-test.inc (min_subnorm_value): New variable.
9700         (fma_test): Add more tests.
9701         (fma_test_towardzero): Likewise.
9702         (fma_test_downward): Likewise
9703         (fma_test_upward): Likewise.
9704         (initialize): Set min_subnorm_value.
9705
9706 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
9707
9708         [BZ #14638]
9709         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
9710         0 + 0.
9711         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
9712         mode for addition resulting in exact zero.
9713         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
9714         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
9715         exact 0 + 0.
9716         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9717         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9718         * math/libm-test.inc (fma_test): Add more tests.
9719         (fma_test_towardzero): New function.
9720         (fma_test_downward): Likewise.
9721         (fma_test_upward): Likewise.
9722         (main): Call the new functions.
9723
9724 2012-09-28  David S. Miller  <davem@davemloft.net>
9725
9726         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
9727
9728 2012-09-28  Roland McGrath  <roland@hack.frob.com>
9729
9730         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
9731         instead of SIGALRM.
9732
9733         * sysdeps/gnu/_G_config.h: Moved to ...
9734         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
9735         * sysdeps/mach/hurd/_G_config.h: Moved to ...
9736         * sysdeps/generic/_G_config.h: ... here.
9737
9738         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
9739
9740         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
9741
9742         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
9743         Conditionalize target on [libnss_test1.so-version].
9744
9745         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
9746
9747         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
9748         (elfobjdir): Move out of conditionals.
9749
9750         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
9751         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
9752         (__nss_lookup_function): Conditionalize label remove_from_tree on
9753         [!DO_STATIC_NSS || SHARED], matching its only use.
9754
9755 2012-09-28  David S. Miller  <davem@davemloft.net>
9756
9757         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
9758         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
9759         file.
9760         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
9761         sysdep_routines.
9762         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
9763         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
9764         when HWCAP_SPARC_CRYPTO is present.
9765
9766 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9767
9768         * io/tst-mknodat.c: Create a FIFO instead of a socket.
9769
9770 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
9771
9772         [BZ #6530]
9773         * stdio-common/vfprintf.c (process_string_arg): Revert
9774         2000-07-22 change.
9775
9776 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
9777
9778         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
9779         for testcase.
9780         * stdio-common/tst-sprintf.c: Include <locale.h>
9781         (main): Test sprintf's handling of incomplete multibyte
9782         characters.
9783
9784 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9785
9786         * elf/dl-runtime.c (VERSYMIDX): Removed.
9787         * elf/dl-version.c (VERSYMIDX): Likewise.
9788         * elf/do-rel.h (VERSYMIDX): Likewise.
9789         (VALIDX): Likewise.
9790         * elf/dynamic-link.h (VERSYMIDX): Likewise.
9791         * elf/rtld.c (VALIDX): Likewise.
9792         (ADDRIDX): Likewise.
9793         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
9794         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
9795         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
9796         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
9797         (VALIDX): Likewise.
9798         (ADDRIDX): Likewise.
9799
9800 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9801
9802         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
9803
9804 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
9805
9806         [BZ #11438]
9807         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
9808         to global scope.
9809         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
9810         addresses are in the same scope as 192.0.2/24.
9811         * posix/gai.conf: Document new scope table defaults.
9812
9813 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9814
9815         [BZ #5298]
9816         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
9817         for ftell.  Compute offsets from write pointers instead.
9818         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
9819
9820 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9821
9822         [BZ #14543]
9823         * libio/Makefile (tests): New test case tst-fseek.
9824         * libio/tst-fseek.c: New test case to verify that fseek/ftell
9825         combination works in wide mode.
9826         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
9827         state when the external buffer state changes.
9828
9829 2012-09-27  David S. Miller  <davem@davemloft.net>
9830
9831         [BZ #14376]
9832         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
9833         pass reloc->r_addend in as the 'high' argument to
9834         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
9835
9836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9837
9838 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
9839
9840         * rt/tst-aio2.c: Include <pthread.h>.
9841         * rt/tst-aio3.c: Likewise.
9842
9843 2012-09-27  Steve Ellcey  <sellcey@mips.com>
9844
9845         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
9846
9847 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9848
9849         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
9850         contents on [SHARED].
9851
9852 2012-09-26  Marek Polacek  <polacek@redhat.com>
9853
9854         [BZ #14530]
9855         [BZ #13741]
9856         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
9857         for C++ and GCC <4.3 as well as for non GCC compilers.
9858
9859 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9860
9861         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9862
9863 2012-09-25  Roland McGrath  <roland@hack.frob.com>
9864
9865         * Makefile.in (all, install): Declare with .PHONY.
9866         Reported by Michael Hope <michael.hope@linaro.org>.
9867
9868 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9869
9870         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
9871         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
9872         system header.
9873         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
9874         Likewise.
9875         (sydep_routines): Add the new and the internal functions.
9876         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
9877         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
9878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
9879         (GLIBC_2.17): Add the new function.
9880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
9881         (GLIBC_2.17): Likewise.
9882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
9883         (GLIBC_2.17): Likewise.
9884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
9885         (GLIBC_2.17): Likewise.
9886         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
9887
9888 2012-09-25  Alan Modra  <amodra@gmail.com>
9889
9890         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
9891         Add release barrier before setting once_control to say
9892         initialisation is done.  Add hints on lwarx.  Use macro in
9893         place of isync.
9894         (clear_once_control): Add release barrier.
9895
9896 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9897
9898         [BZ #13629]
9899         * math/s_clog.c (__clog): Handle more values close to |z| = 1
9900         specially.
9901         * math/s_clog10.c (__clog10): Likewise.
9902         * math/s_clog10f.c (__clog10f): Likewise.
9903         * math/s_clog10l.c (__clog10l): Likewise.
9904         * math/s_clogf.c (__clogf): Likewise.
9905         * math/s_clogl.c (__clogl): Likewise.
9906         * math/Makefile (libm-calls): Add x2y2m1.
9907         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
9908         (__x2y2m1): Likewise.
9909         (__x2y2m1l): Likewise.
9910         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
9911         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
9912         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9913         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9914         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
9915         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9916         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
9917         * sysdeps/i386/fpu/libm-test-ulps: Update.
9918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9919
9920         [BZ #14621]
9921         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
9922         int as type of variable DEPTH.
9923         (glob): Use size_t instead of int as type of variables NEWCOUNT
9924         and OLD_PATHC.
9925
9926 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9927
9928         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9929         Add s_sincosf-sse2.
9930         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
9931         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
9932         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
9933         macros for using routine as __sincosf_ia32.
9934         Use macro for function declaration and weak_alias.
9935         * sysdeps/i386/fpu/libm-test-ulps: Update.
9936
9937         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
9938         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9939
9940         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
9941         subnormal argument.
9942         * math/s_cexpf.c (__cexpf): Likewise.
9943         * math/s_csinf.c (__csinf): Likewise.
9944         * math/s_csinhf.c (__csinhf): Likewise.
9945         * math/s_ctanf.c (__ctanf): Likewise.
9946         * math/s_ctanhf.c (__ctanhf): Likewise.
9947         * math/s_ccosh.c (__ccoshf): Likewise.
9948         * math/s_cexp.c (__cexpl): Likewise.
9949         * math/s_csin.c (__csin): Likewise.
9950         * math/s_csinh.c (__csinh): Likewise.
9951         * math/s_ctan.c (__ctan): Likewise.
9952         * math/s_ctanh.c (ctanh): Likewise.
9953         * math/s_ccoshl.c (__ccoshl): Likewise.
9954         * math/s_cexpl.c (__cexpl): Likewise.
9955         * math/s_csinl.c (__csinl): Likewise.
9956         * math/s_csinhl.c (__csinhl): Likewise.
9957         * math/s_ctanl.c (__ctanl): Likewise.
9958         * math/s_ctanhl.c (__ctanhl): Likewise.
9959
9960 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
9963         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
9964         (_IO_off_t): Define to __off_t, not _G_off_t.
9965         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
9966         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
9967         (_IO_wint_t): Define to wint_t, not _G_wint_t.
9968         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
9969         type of __dummy and __dummy2 fields.
9970         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
9971         (_G_ssize_t): Likewise.
9972         (_G_off_t): Likewise.
9973         (_G_pid_t): Likewise.
9974         (_G_uid_t): Likewise.
9975         (_G_wchar_t): Likewise.
9976         (_G_wint_t): Likewise.
9977         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
9978         (_G_ssize_t): Likewise.
9979         (_G_off_t): Likewise.
9980         (_G_pid_t): Likewise.
9981         (_G_uid_t): Likewise.
9982         (_G_wchar_t): Likewise.
9983         (_G_wint_t): Likewise.
9984         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
9985         (_G_ssize_t): Likewise.
9986         (_G_off_t): Likewise.
9987         (_G_pid_t): Likewise.
9988         (_G_uid_t): Likewise.
9989         (_G_wchar_t): Likewise.
9990         (_G_wint_t): Likewise.
9991
9992 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9993
9994         * malloc/arena.c: Include malloc-sysdep.h.
9995         (shrink_heap): Use check_may_shrink_heap to decide if madvise
9996         is sufficient to shrink the heap or an unmap is needed.
9997         * sysdeps/generic/malloc-sysdep.h: New file.  Define
9998         new function check_may_shrink_heap.
9999         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
10000         new function check_may_shrink_heap.
10001
10002 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10003
10004         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
10005         comments.
10006
10007 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
10008
10009         * catgets/test-gencat.sh: Add "set -e".
10010         * elf/tst-pathopt.sh: Likewise.
10011         * grp/tst_fgetgrent.sh: Likewise.
10012         * iconvdata/run-iconv-test.sh: Likewise.
10013         * intl/tst-gettext.sh: Likewise.
10014         * intl/tst-gettext2.sh: Likewise.
10015         * intl/tst-gettext4.sh: Likewise.
10016         * intl/tst-gettext6.sh: Likewise.
10017         * intl/tst-translit.sh: Likewise.
10018         * io/ftwtest-sh: Likewise.
10019         * libio/test-freopen.sh: Likewise.
10020         * malloc/tst-mtrace.sh: Likewise.
10021         * posix/globtest.sh: Likewise.
10022         * posix/tst-getconf.sh: Likewise.
10023         * posix/wordexp-tst.sh: Likewise.
10024         * stdio-common/tst-printf.sh: Likewise.
10025         * stdio-common/tst-unbputc.sh: Likewise.
10026         * stdlib/tst-fmtmsg.sh: Likewise.
10027         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10028         * catgets/Makefile: Do not specify -e option when running
10029         testsuite shell scripts.
10030         * elf/Makefile: Likewise.
10031         * grp/Makefile: Likewise.
10032         * iconvdata/Makefile: Likewise.
10033         * intl/Makefile: Likewise.
10034         * io/Makefile: Likewise.
10035         * libio/Makefile: Likewise.
10036         * malloc/Makefile: Likewise.
10037         * posix/Makefile: Likewise.
10038         * stdio-common/Makefile: Likewise.
10039         * stdlib/Makefile: Likewise.
10040         * sysdeps/x86_64/Makefile: Likewise.
10041
10042         * io/ftwtest-sh: Add copyright header.
10043         * posix/globtest.sh: Likewise.
10044         * posix/tst-getconf.sh: Likewise.
10045         * posix/wordexp-tst.sh: Likewise.
10046         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
10047
10048 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
10049
10050         [BZ #13679]
10051         * Makeconfig (+link): Defined as $(+link-static) if
10052         $(build-shared) isn't yes.
10053         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
10054         isn't yes.
10055         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
10056
10057         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
10058
10059         [BZ #14562]
10060         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
10061         new chunk size with MALLOC_ALIGN_MASK.
10062
10063 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
10064
10065         [BZ #5044]
10066         * stdio-common/printf_fphex.c: Include <stdbool.h> and
10067         <rounding-mode.h>.
10068         (__printf_fphex): Determine rounding using get_rounding_mode and
10069         round_away.
10070         * stdio-common/tst-printf-round.c (struct hex_test): New
10071         structure.
10072         (hex_tests): New variable.
10073         (test_hex_in_one_mode): New function.
10074         (do_test): Also run tests for hex float output.
10075
10076 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
10077
10078         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10079         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10080         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
10081         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
10082         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
10083         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
10084         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10085         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
10086
10087 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
10088
10089         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
10090         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
10091         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
10092         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
10093
10094 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
10095
10096         [BZ #14579]
10097         * elf/rtld.c (dl_main): Limit the check for self loading to normal
10098         mode only.
10099         * elf/tst-rtld-load-self.sh: New test.
10100         * elf/Makefile: Run it.
10101
10102 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
10103
10104         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
10105         (tst-writev-ENV): Remove.
10106         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
10107
10108 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
10109
10110         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
10111
10112 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
10113
10114         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
10115         unconditional.
10116         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
10117         Likewise.
10118         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
10119         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
10120         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
10121         Likewise.
10122
10123 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
10124
10125         [BZ #14587]
10126         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
10127         * config.make.in (have-cpp-asm-debuginfo): Removed.
10128         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
10129         * configure: Regenerated.
10130
10131 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
10132
10133         [BZ #5044]
10134         * stdio-common/printf_fp.c: Include <stdbool.h> and
10135         <rounding-mode.h>.
10136         (___printf_fp): Determine rounding using get_rounding_mode and
10137         round_away.
10138         * stdio-common/tst-printf-round.c: New file.
10139         * stdio-common/Makefile (tests): Add tst-printf-round.
10140         (link-libm): New variable.
10141         ($(objpfx)tst-printf-round): Depend in $(link-libm).
10142
10143 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
10144
10145         [BZ #14576]
10146         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
10147         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
10148         Likewise.
10149         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
10150         Likewise.
10151
10152 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
10153
10154         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
10155         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10156         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10157         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
10158
10159 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
10160
10161         [BZ #14518]
10162         * include/rounding-mode.h: New file.
10163         * sysdeps/generic/get-rounding-mode.h: Likewise.
10164         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
10165         * stdlib/strtod_l.c: Include <rounding-mode.h>.
10166         (MAX_VALUE): New macro.
10167         (MIN_VALUE): Likewise.
10168         (overflow_value): New function.
10169         (underflow_value): Likewise.
10170         (round_and_return): Use overflow_value and underflow_value to
10171         determine return values in overflow and underflow cases.  Use
10172         round_away to determine rounding depending on rounding mode.
10173         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
10174         determine return values in overflow and underflow cases.
10175         * stdlib/tst-strtod-round.c: Include <fenv.h>.
10176         (struct test_results): New structure.
10177         (struct test): Use struct test_results to store expected results
10178         for all rounding modes.
10179         (TEST): Include expected results for all rounding modes.
10180         (test_in_one_mode): New function.
10181         (do_test): Use test_in_one_mode to compute and check results.
10182         Check results for all rounding modes.
10183         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
10184         $(link-libm).
10185
10186 2012-12-09  Allan McRae  <allan@archlinux.org>
10187
10188         * sysdeps/i386/fpu/libm-test-ulps: Update
10189
10190 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
10191
10192         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
10193         (_G_int32_t): Likewise.
10194         (_G_uint16_t): Likewise.
10195         (_G_uint32_t): Likewise.
10196         (_G_HAVE_BOOL): Likewise.
10197         (_G_HAVE_ATEXIT): Likewise.
10198         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10199         (_G_HAVE_IO_FILE_OPEN): Likewise.
10200         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
10201         (_G_int32_t): Likewise.
10202         (_G_uint16_t): Likewise.
10203         (_G_uint32_t): Likewise.
10204         (_G_HAVE_BOOL): Likewise.
10205         (_G_HAVE_ATEXIT): Likewise.
10206         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10207         (_G_HAVE_IO_FILE_OPEN): Likewise.
10208         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
10209         (_G_int32_t): Likewise.
10210         (_G_uint16_t): Likewise.
10211         (_G_uint32_t): Likewise.
10212         (_G_HAVE_BOOL): Likewise.
10213         (_G_HAVE_ATEXIT): Likewise.
10214         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
10215         (_G_HAVE_IO_FILE_OPEN): Likewise.
10216
10217 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
10218
10219         * csu/libc-tls.c: Update copyright years.
10220
10221 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
10222
10223         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
10224         [!_G_USING_THUNKS]: Remove conditional code.
10225         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
10226         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
10227
10228         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
10229         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
10230         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10231         (_G_VTABLE_LABEL_PREFIX): Likewise.
10232         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10233         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10234         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10235         (_G_VTABLE_LABEL_PREFIX): Likewise.
10236         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10237         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
10238         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
10239         (_G_VTABLE_LABEL_PREFIX): Likewise.
10240         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
10241
10242 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
10243
10244         * libio/Makefile: Include ../Makeconfig before tests.
10245         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
10246         only if $(build-shared) is yes.
10247
10248         * iconv/gconv_db.c: Update copyright years.
10249
10250 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10251
10252         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
10253         unwind info if defined PIC. Fix special cases description.
10254         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
10255
10256         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
10257         DP_HI_MASK entry.
10258         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
10259
10260 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10261
10262         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
10263
10264         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
10265         is NULL.
10266
10267         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
10268         (LDLIBS-tst-chk4): This.
10269         (LDFLAGS-tst-chk5): Renamed to ...
10270         (LDLIBS-tst-chk5): This.
10271         (LDFLAGS-tst-chk6): Renamed to ...
10272         (LDLIBS-tst-chk6): This.
10273         (LDFLAGS-tst-lfschk4): Renamed to ...
10274         (LDLIBS-tst-lfschk4): This.
10275         (LDFLAGS-tst-lfschk5): Renamed to ...
10276         (LDLIBS-tst-lfschk5): This.
10277         (LDFLAGS-tst-lfschk6): Renamed to ...
10278         (LDLIBS-tst-lfschk6): This.
10279
10280         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
10281         on $(common-objpfx)soversions.mk.
10282
10283 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
10284
10285         [BZ #10014]
10286         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
10287         example host name.
10288
10289 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10290
10291         * malloc/arena.c (arena_get_retry): New function that gets
10292         another arena for the caller to try its request on.
10293         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
10294         current arena cannot fulfill the request.
10295         (__libc_memalign): Likewise.
10296         (__libc_memalign): Likewise.
10297         (__libc_pvalloc): Likewise.
10298         (__libc_calloc): Likewise.
10299
10300 2012-09-05  John Tobey  <john.tobey@gmail.com>
10301
10302         [BZ #13542]
10303         * manual/arith.texi (Operations on Complex): Fix description
10304         of carg branch cut.
10305
10306 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10307
10308         [BZ #10014]
10309         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
10310         host name.
10311
10312         [BZ #10038]
10313         * manual/memory.texi (Memory): Make order of menu items match
10314         order of sections.
10315
10316 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10317
10318         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
10319         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
10320         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
10321
10322 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10323
10324         * csu/libc-tls.c (static_dtv): Renamed to ...
10325         (_dl_static_dtv): This.  Make it global.
10326         (_dl_initial_dtv): Removed.
10327         (__libc_setup_tls): Updated.
10328         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
10329         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
10330         DL_INITIAL_DTV.
10331
10332 2012-09-06  Petr Machata  <pmachata@redhat.com>
10333
10334         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
10335         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
10336         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
10337         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
10338
10339 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         [BZ #14545]
10342         * csu/libc-tls.c (_dl_initial_dtv): New variable.
10343         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
10344         freeing dtv[-1].
10345
10346 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10347
10348         [BZ #14544]
10349         * Makeconfig (link-static-before-libc): Replace $(+prector)
10350         with $(+prectorT).
10351         (link-static-after-libc): Replace $(+postctor) with
10352         $(+postctorT).
10353         (link-bounded): Replace $(+prector)/$(+postctor) with
10354         $(+prectorT)/$(+postctorT).
10355         (+prectorT): New macro.
10356         (+postctorT): Likewise.
10357
10358 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
10359
10360         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
10361         (round_str): Handle values above the maximum for IBM long double
10362         as inexact.
10363         * stdlib/tst-strtod-round.c (tests): Regenerated.
10364
10365 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10366
10367         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
10368         assembler flag.
10369         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
10370         zarch_nohighgprs around the zarch optimized routines.
10371         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
10372         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
10373         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10374         for zarch.
10375
10376 2012-09-05  David S. Miller  <davem@davemloft.net>
10377
10378         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10379
10380         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
10381         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
10382         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
10383         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
10384         entries.
10385
10386 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10387
10388         * malloc/arena.c: Fold copyright years.
10389         * malloc/mcheck.c, malloc/memusage.c: Likewise.
10390
10391 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10392
10393         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
10394
10395 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10396
10397         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
10398
10399 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10400
10401         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
10402         change internal state upon failure.
10403
10404 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
10405
10406         * malloc/mcheck.c (mcheck_check_all): Fix typo.
10407         * malloc/memusage.c (mmap): Likewise.
10408         (mmap64, mremap): Likewise.  Adjust name in comment.
10409
10410 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10411
10412         * libio/fileops.c: Fix typos in comments.
10413         * libio/oldfileops.c: Likewise.
10414         * libio/wfileops.c: Likewise.
10415
10416 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10417
10418         [BZ #1349]
10419         * malloc/Makefile (tests): Add tst-malloc-usable test case.
10420         (tst-malloc-usable-ENV): Set environment for test case.
10421         * malloc/hooks.c (malloc_check_get_size): New function to get
10422         requested size.
10423         * malloc/malloc.c (musable): Use malloc_check_get_size.
10424         * malloc/tst-malloc-usable.c: New test case.
10425
10426 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10427
10428         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
10429
10430 2012-09-05  Allan McRae  <allan@archlinux.org>
10431
10432         [BZ #13966]
10433         * configure.in (CXX_SYSINCLUDES): Use compiler output to
10434         determine header location.
10435         * configure: Regenerated.
10436
10437 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10438
10439         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
10440         float format.
10441         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
10442         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
10443         format.
10444         (test): Regenerate.
10445
10446 2012-09-04  David S. Miller  <davem@davemloft.net>
10447
10448         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
10449         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
10450         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
10451
10452 2012-09-04  Florian Weimer  <fweimer@redhat.com>
10453
10454         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
10455         failures.
10456
10457         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
10458
10459 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
10460
10461         [BZ #9914]
10462         * libio/iogetdelim.c: Include <limits.h>.
10463         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
10464         + len + 1 would overflow.
10465
10466 2012-09-03  Andreas Jaeger  <aj@suse.de>
10467
10468         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10469         * sysdeps/i386/fpu/libm-test-ulps: Update.
10470
10471 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10472
10473         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
10474         Add s_sinf-sse2, s_conf-sse2.
10475
10476         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
10477         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
10478         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
10479         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
10480
10481         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
10482         for using routine as __sinf_ia32.
10483         Use macro for function declaration and weak_alias.
10484         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
10485         for using routine as __cosf_ia32.
10486         Use macro for function declaration and weak_alias.
10487
10488         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
10489         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
10490
10491         * sysdeps/x86_64/fpu/s_sinf.S: New file.
10492         * sysdeps/x86_64/fpu/s_cosf.S: New file.
10493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10494
10495         * math/libm-test.inc (cos_test): Add more test cases.
10496         (sin_test): Likewise.
10497         (sincos_test): Likewise.
10498
10499 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10500
10501         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
10502         (IFUNC_RESOLVE): Make pointers to the specialized implementations
10503         hidden.
10504         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
10505
10506 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
10507
10508         [BZ #14538]
10509         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
10510         first element of the GOT.
10511         (elf_machine_load_address): Return the difference between
10512         the runtime address of _DYNAMIC and elf_machine_dynamic ().
10513
10514 2012-09-01  Allan McRae  <allan@archlinux.org>
10515
10516         [BZ #13412]
10517         * configure.in (AWK): Require gawk version 3.0 or later.
10518         * configure: Regenerated.
10519
10520 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * sysdeps/unix/sysv/linux/kernel-features.h
10523         (__ASSUME_POSIX_CPU_TIMERS): Remove.
10524         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10525         [__NR_clock_getres]: Make code unconditional.
10526         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
10527         (clock_getcpuclockid): Remove code left unreachable by removal of
10528         conditionals.
10529         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
10530         code unconditional.
10531         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10532         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10533         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
10534         Make code unconditional.
10535         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
10536         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10537         * sysdeps/unix/sysv/linux/clock_settime.c
10538         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
10539         conditional code.
10540         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
10541         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
10542
10543 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
10544
10545         [BZ #14476]
10546         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
10547         scripts/test-installation.pl.
10548
10549         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
10550         and $ld_so_version if it is set.
10551
10552 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10553
10554         [BZ #14516]
10555         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
10556         failure if reading from procfs failed.
10557         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
10558
10559 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10560
10561         * sysdeps/unix/sysv/linux/kernel-features.h
10562         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
10563         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10564         Remove conditional code.
10565         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10566         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
10567         Remove conditional code.
10568         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10569         * sysdeps/unix/sysv/linux/i386/fxstat.c
10570         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10571         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10572         * sysdeps/unix/sysv/linux/i386/fxstatat.c
10573         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10574         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10575         * sysdeps/unix/sysv/linux/i386/lxstat.c
10576         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
10577         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10578         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
10579         Remove conditional code.
10580         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10581         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
10582         Remove conditional code.
10583         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10584         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
10585         <kernel-features.h>.
10586         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
10587         Remove.
10588         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
10589         Remove conditional code.
10590         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
10591         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
10592         Remove conditional.
10593
10594 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
10595
10596         [BZ #5400]
10597         * NEWS: Add fixed bug number.
10598
10599 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
10600
10601         [BZ #14519]
10602         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
10603         underflowing exponent in case of negative sign.
10604         * stdlib/tst-strtod-round-data: Add more tests.
10605         * stdlib/tst-strtod-round.c (tests): Regenerated.
10606
10607         [BZ #3479]
10608         * stdlib/strtod_l.c (NDIG): Remove.
10609         (HEXNDIG): Likewise.
10610         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
10611         smallest representable value.
10612         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
10613         lie within an exact representation of 1/2 ulp of the result.
10614         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
10615         unconditionally.
10616         (TENS_P9_IDX): Define unconditionally.
10617         (TENS_P9_SIZE): Likewise.
10618         (TENS_P10_IDX): Likewise.
10619         (TENS_P10_SIZE): Likewise.
10620         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
10621         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
10622         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
10623         entries for 10^2^13 and 10^2^14.
10624         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
10625         (TENS_P13_IDX): Define.
10626         (TENS_P13_SIZE): Likewise.
10627         (TENS_P14_IDX): Likewise.
10628         (TENS_P14_SIZE): Likewise.
10629         (_fpioconst_pow10): Change array size to
10630         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
10631         unconditional.
10632         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
10633         1024]: Add entries for 10^2^13 and 10^2^14.
10634         [LAST_POW10 > _LAST_POW10]: Remove #error.
10635         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
10636         (_fpioconst_pow10): Change array size to
10637         FPIOCONST_POW10_ARRAY_SIZE.
10638         * stdlib/gen-fpioconst.c: New file.
10639         * stdlib/gen-tst-strtod-round.c: Likewise.
10640         * stdlib/tst-strtod-round-data: Likewise.
10641         * stdlib/tst-strtod-round.c: Likewise.
10642         * stdlib/Makefile (tests): Add tst-strtod-round.
10643
10644         [BZ #14459]
10645         * stdlib/strtod_l.c: Include <stdint.h>.
10646         (NDEBUG): Do not define.
10647         (round_and_return): Change EXPONENT parameter to type intmax_t.
10648         Rearrange calculations to avoid internal overflow possibilities.
10649         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
10650         Rearrange calculations to avoid internal overflow possibilities.
10651         Assert that number fits inside MPNSIZE limbs.
10652         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
10653         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
10654         calculations and add assertions to avoid internal overflow
10655         possibilities.  Add casts to avoid signed/unsigned operations.
10656         * stdlib/tst-strtod-overflow.c: New file.
10657         * stdlib/Makefile (tests): Add tst-strtod-overflow.
10658
10659 2012-08-25  Marek Polacek  <polacek@redhat.com>
10660
10661         * time/time.h: Fix some typos in comments.
10662
10663 2012-08-23  Roland McGrath  <roland@hack.frob.com>
10664
10665         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
10666         * posix/tst-rfc3484-2.c: Likewise.
10667         * posix/tst-rfc3484-3.c: Likewise.
10668
10669 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
10670
10671         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
10672         (EF_ARM_ABI_FLOAT_HARD): Likewise.
10673
10674 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
10675
10676         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
10677         #include of fxstatat64.c.
10678
10679 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10680
10681         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
10682         * shadow/getspent_r.c: Likewise.
10683         * shadow/getspnam.c: Likewise.
10684         * shadow/getspnam_r.c: Likewise.
10685         * gshadow/getsgent.c: Likewise.
10686         * gshadow/getsgent_r.c: Likewise.
10687         * gshadow/getsgnam.c: Likewise.
10688         * gshadow/getsgnam_r.c: Likewise.
10689         * inet/getnetbyad.c: Likewise.
10690         * inet/getnetbyad_r.c: Likewise.
10691         * inet/getnetbynm.c: Likewise.
10692         * inet/getnetbynm_r.c: Likewise.
10693         * inet/getnetent.c: Likewise.
10694         * inet/getnetent_r.c: Likewise.
10695         * inet/getproto.c: Likewise.
10696         * inet/getproto_r.c: Likewise.
10697         * inet/getprtent.c: Likewise.
10698         * inet/getprtent_r.c: Likewise.
10699         * inet/getprtname.c: Likewise.
10700         * inet/getprtname_r.c: Likewise.
10701         * inet/getrpcbyname.c: Likewise.
10702         * inet/getrpcbyname_r.c: Likewise.
10703         * inet/getrpcbynumber.c: Likewise.
10704         * inet/getrpcbynumber_r.c: Likewise.
10705         * inet/getrpcent.c: Likewise.
10706         * inet/getrpcent_r.c: Likewise.
10707         * inet/getaliasent.c: Likewise.
10708         * inet/getaliasent_r.c: Likewise.
10709         * inet/getaliasname.c: Likewise.
10710         * inet/getaliasname_r.c: Likewise.
10711         * nscd/getgrgid_r.c: Likewise.
10712         * nscd/getgrnam_r.c: Likewise.
10713         * nscd/gethstbyad_r.c: Likewise.
10714         * nscd/gethstbynm3_r.c: Likewise.
10715         * nscd/getpwnam_r.c: Likewise.
10716         * nscd/getpwuid_r.c: Likewise.
10717         * nscd/getsrvbynm_r.c: Likewise.
10718         * nscd/getsrvbypt_r.c: Likewise.
10719         * nscd/gai.c: Likewise.
10720
10721         * configure.in (build_nscd): New substituted variable, set
10722         by --disable-build-nscd and defaults to $use_nscd.
10723         * configure: Regenerated.
10724         * config.make.in (build-nscd): New substituted variable.
10725         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
10726         Change conditional to require [$(build-nscd) = yes] as well.
10727         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
10728
10729         [BZ# 13696]
10730         * configure.in (use_nscd): New substituted variable, set by
10731         --disable-nscd.  If enabled, define USE_NSCD.
10732         * configure: Regenerated.
10733         * config.h.in: Add USE_NSCD.
10734         * config.make.in (use-nscd): New substituted variable.
10735         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
10736         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
10737         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
10738         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
10739         (CFLAGS-getgrnam_r.c): Likewise.
10740         (CFLAGS-initgroups.c): Likewise.
10741         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
10742         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
10743         Variables removed.
10744         * inet/getnetgrent_r.c
10745         (nscd_setnetgrent): New function, broken out of ...
10746         (setnetgrent): ... here.  Call it.
10747         (innetgr): Conditionalize nscd bits on [USE_NSCD].
10748         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
10749         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
10750         * nscd/Makefile (routines, aux): Move definitions after include of
10751         Makeconfig.  Conditionalize on [$(use-nscd) != no].
10752         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
10753         Conditionalize on [USE_NSCD].
10754         (is_nscd, nscd_init_cb): Likewise.
10755         (nss_load_library): Conditionalize init callback on [USE_NSCD].
10756         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
10757         * nss/nss_db/db-init.c: Likewise.
10758         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
10759         [USE_NSCD].
10760         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
10761         (make_request): Use it.
10762         (cache_valid_p): New function.
10763         (__check_pf): Use it.
10764         * NEWS: Add item for --disable-nscd.
10765
10766 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
10767
10768         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
10769         to support sed >= 4.2.1-20-ga9bf076.
10770         * configure: Regenerated.
10771
10772 2012-08-22  Roland McGrath  <roland@hack.frob.com>
10773
10774         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
10775         Conditionalize whole body on [IREL].
10776
10777 2012-08-22  Jeff Law <law@redhat.com>
10778
10779         [BZ #14505]
10780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
10781         if the family is PF_UNSPEC.
10782
10783 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
10784
10785         * Makerules (lib-version): Rename from V.
10786         (install-lib-nosubdir): Change V to lib-version.
10787
10788 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
10789
10790         [BZ #14252]
10791         * powerpc32/power6/wcschr.c: New file.
10792         * powerpc32/power6/wcscpy.c: New file.
10793         * powerpc32/power6/wcsrchr.c: New file.
10794         * powerpc64/power6/wcschr.c: New file.
10795         * powerpc64/power6/wcscpy.c: New file.
10796         * powerpc64/power6/wcsrchr.c: New file.
10797
10798 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10799
10800         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
10801         (two_way_short_needle): Use it.
10802         * string/strstr.c (AVAILABLE1_USES_J): Define.
10803         * string/strcasestr.c: Likewise.
10804
10805         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
10806         array references.
10807         * string/strcasestr.c (TOLOWER): Make side-effect safe.
10808
10809         [BZ #11607]
10810         * NEWS: Add an entry.
10811         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
10812         define their defaults.
10813         (two_way_short_needle): Detect end-of-string on-the-fly.
10814         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
10815         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
10816         * string/bug-strcasestr1.c: New test.
10817         * string/Makefile: Run it.
10818
10819 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
10820
10821         [BZ #11607]
10822         * string/str-two-way.h (two_way_short_needle): Optimize matching of
10823         the first character.
10824
10825 2012-08-21  Roland McGrath  <roland@hack.frob.com>
10826
10827         * csu/elf-init.c (__libc_csu_irel): Function removed.
10828         * csu/libc-start.c (apply_irel): New function.
10829         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
10830
10831 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
10832
10833         * sysdeps/unix/sysv/linux/kernel-features.h
10834         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
10835         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
10836         <kernel-features.h>.
10837         [__NR_fadvise64_64]: Make code unconditional.
10838         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
10839         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10840         !__NR_fadvise64_64)]: Likewise.
10841         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
10842         !__NR_fadvise64_64))]: Likewise.
10843         [__NR_fadvise64]: Make code unconditional.
10844         [!__NR_fadvise64]: Remove conditional code.
10845         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
10846         <kernel-features.h>.
10847         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10848         unconditional.
10849         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10850         conditional code.
10851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
10852         not include <kernel-features.h>.
10853         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10854         unconditional.
10855         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10856         conditional code.
10857         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
10858         include <kernel-features.h>.
10859         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
10860         unconditional.
10861         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
10862         conditional code.
10863
10864 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
10865
10866         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
10867         slight instruction rearrangements per scrollpipe analysis.
10868         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10869
10870 2012-08-20  Roland McGrath  <roland@hack.frob.com>
10871
10872         * manual/syslog.texi (syslog; vsyslog, closelog):
10873         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
10874         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
10875
10876         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
10877         DSOCAPS to match condition on defining it.
10878
10879 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
10880
10881         * sysdeps/unix/sysv/linux/kernel-features.h
10882         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
10883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
10884         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10885         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
10887         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10888         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
10890         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
10891         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
10892
10893         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
10894         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
10895
10896         * sysdeps/unix/sysv/linux/kernel-features.h
10897         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
10898         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
10899         unconditional.
10900         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10901         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
10902         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10903         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10904         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
10905         Make code unconditional.
10906         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10907         (__mmap64) [!__NR_mmap2]: Likewise.
10908         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
10909         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
10910         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10911         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
10912         [__NR_mmap2]: Make code unconditional.
10913         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
10914         (__mmap64) [!__NR_mmap2]: Likewise.
10915
10916 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10917
10918         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
10919
10920 2012-08-18  Andreas Jaeger  <aj@suse.de>
10921
10922         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
10923
10924 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10925
10926         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
10927         * include/unistd.h (__have_sock_cloexec): Likewise.
10928         (__have_pipe2): Likewise.
10929         (__have_dup3): Likewise.
10930
10931 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
10932
10933         [BZ #9685]
10934         * include/unistd.h (__have_pipe2): Change define into an extern int.
10935         (__have_dup3): Likewise.
10936         * socket/have_sock_cloexec.c: Include fcntl.h.
10937         (__have_pipe2): New variable.
10938         (__have_dup3): Likewise.
10939
10940 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
10941
10942         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
10943
10944 2012-08-17  Marek Polacek  <polacek@redhat.com>
10945
10946         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
10947         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
10948
10949 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10950
10951         * configure.in: Add AC_SUBST for sysheaders.
10952         * configure: Regenerated.
10953         * config.make.in (sysheaders): New substituted variable.
10954
10955         * sysdeps/unix/mkfifo.c: Moved ...
10956         * sysdeps/posix/mkfifo.c: ... here.
10957         * sysdeps/unix/mkfifoat.c: Moved ...
10958         * sysdeps/posix/mkfifoat.c: ... here.
10959
10960         * sysdeps/unix/utime.c: Moved ...
10961         * sysdeps/posix/utime.c: ... here.
10962
10963         * sysdeps/unix/time.c: Moved ...
10964         * sysdeps/posix/time.c: ... here.
10965         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
10966         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
10967
10968         * sysdeps/unix/nice.c: Moved ...
10969         * sysdeps/posix/nice.c: ... here.
10970
10971         * sysdeps/unix/alarm.c: Moved ...
10972         * sysdeps/posix/alarm.c: ... here.
10973
10974         * intl/Makefile ($(codeset_mo)): Depend on the input file.
10975
10976 2012-08-17  Jeff Law <law@redhat.com>
10977
10978         * intl/Makefile (codeset_mo): New variable.
10979         ($(codeset_mo)): New target.
10980         (tst-codeset.out): Depend on that.  Remove explicit rule.
10981         (tst-gettext3.out, tst-gettext5.out): Likewise.
10982         (LOCPATH-ENV, tst-codeset-ENV): New variables.
10983         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
10984         * intl/tst-codeset.sh: Remove.
10985         * intl/tst-gettext3.sh: Likewise.
10986         * intl/tst-gettext5.sh: Likewise.
10987
10988 2012-08-17  Roland McGrath  <roland@hack.frob.com>
10989
10990         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
10991         * sysdeps/unix/syscalls.list: ... here.
10992
10993         * sysdeps/posix/getaddrinfo.c
10994         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
10995         (gaiconf_init, gaiconf_reload): Use them.
10996         [!_STATBUF_ST_NSEC]
10997         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
10998         Define using time_t rather than struct timespec.
10999
11000         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
11001         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
11002         Macros removed.
11003         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
11004         [!NO_THREADS].
11005         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
11006         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
11007         Likewise.
11008
11009         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
11010         __libc_cleanup_push argument.
11011
11012         * bits/param.h: New file.
11013         * misc/sys/param.h: New file.
11014         * include/sys/param.h: New file.
11015         * misc/Makefile (headers): Add bits/param.h.
11016         * sysdeps/generic/sys/param.h: File removed.
11017         * sysdeps/unix/sysv/linux/bits/param.h: New file.
11018         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
11019         * sysdeps/mach/hurd/bits/param.h: New file.
11020         * sysdeps/mach/hurd/sys/param.h: File removed.
11021
11022         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
11023         last change.
11024
11025         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
11026         [_IO_MTSAFE_IO].
11027         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
11028         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
11029         New macros.
11030
11031         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
11032         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
11033         rather than -D_IO_MTSAFE_IO conditionally.
11034         * stdio-common/Makefile (CPPFLAGS): Likewise.
11035         * wcsmbs/Makefile (CPPFLAGS): Likewise.
11036         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
11037         Use $(libio-mtsafe).
11038         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
11039         of -D_IO_MTSAFE_IO.
11040         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
11041         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
11042         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
11043         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
11044         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
11045         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
11046         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
11047         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
11048         (CFLAGS-fread_u_chk.c): Likewise.
11049         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
11050         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
11051         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
11052         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
11053         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
11054         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
11055         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
11056         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
11057         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
11058
11059         * libio/Makefile: Test [$(libc-reentrant) = yes]
11060         instead of [$(filter %REENTRANT, $(defines)) nonempty].
11061
11062         * Makeconfig
11063         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
11064         * sysdeps/pthread/configure: File removed.
11065         * sysdeps/pthread/Makeconfig: New file.
11066         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
11067         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
11068
11069 2012-08-16  Gary Benson  <gbenson@redhat.com>
11070
11071         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
11072         unmapping the first object in a namespace.
11073
11074 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11075
11076         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
11077         (__internal_setnetgrent): ... this.  Add internal_function to
11078         definition.  Add libc_hidden_def.
11079         (setnetgrent): Update caller.
11080         (internal_endnetgrent): Renamed to ...
11081         (__internal_endnetgrent): ... this.  Add internal_function to
11082         definition.  Add libc_hidden_def.
11083         (endnetgrent): Update caller.
11084         (internal_getnetgrent_r): Renamed to ...
11085         (__internal_getnetgrent_r): ... this.  Add internal_function to
11086         definition.  Add libc_hidden_def.
11087         (__getnetgrent_r): Update caller.
11088         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
11089
11090 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11091
11092         * stdlib/longlong.h: Update from GCC.
11093
11094 2012-08-16  Roland McGrath  <roland@hack.frob.com>
11095
11096         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
11097         on _QL, which is set by umul_ppmm but never used.
11098         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
11099         variables, which are set by GMP macros but never used.
11100         * stdio-common/_itowa.c (_itowa): Likewise.
11101         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
11102         * stdlib/mod_1.c (mpn_mod_1): Likewise.
11103
11104 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
11105
11106         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
11107         struct La_sh_regs is not constant.
11108         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
11109         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
11110         and struct La_sparc64_regs are not constant.
11111
11112 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * sysdeps/unix/sysv/linux/kernel-features.h
11115         (__ASSUME_POSIX_TIMERS): Remove.
11116         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
11117         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11118         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
11119         Make code unconditional.
11120         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11121         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
11122         Make code unconditional.
11123         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11124         * sysdeps/unix/sysv/linux/clock_nanosleep.c
11125         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
11126         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11127         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
11128         Make code unconditional.
11129         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
11130         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
11131         (__libc_missing_posix_timers): Remove.
11132
11133 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11134
11135         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
11136         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
11137
11138         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
11139
11140         * elf/dl-sym.c: Include <stdlib.h>.
11141
11142         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
11143         constants, which avoids warnings in 32-bit builds.
11144
11145         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
11146         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
11147
11148         * misc/lseek.c: File moved to ...
11149         * io/lseek.c: ... here.
11150
11151         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
11152
11153         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
11154         shifting LEN more than 31 bits at once.
11155
11156 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11157
11158         [BZ #14195]
11159         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
11160         segmentation fault for a case of two empty input strings.
11161         * string/test-strncasecmp.c (check1): Renamed to...
11162         (bz12205): ...this.
11163         (bz14195): Add new testcase for two empty input strings and N > 0.
11164         (test_main): Call new testcase, adapt for renamed function.
11165
11166 2012-08-15  Andreas Jaeger  <aj@suse.de>
11167
11168         [BZ #14090]
11169         * crypt/md5test2.c: New test, based on test supplied by Serge
11170         Belyshev <belyshev@depni.sinp.msu.ru>.
11171         * crypt/Makefile (xtests): Add md5test-giant..
11172         * crypt/Makefile ($(objpfx)md5test-giant): Add.
11173
11174 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11175
11176         [BZ #14090]
11177         * crypt/md5.c (md5_process_block): Don't assume the buffer
11178         length is less than 2**32.
11179         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
11180         length is less than 2**64.
11181
11182 2012-08-15  Roland McGrath  <roland@hack.frob.com>
11183
11184         * string/str-two-way.h: Include <sys/param.h>.
11185         (MAX): Macro removed.
11186
11187         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
11188         Move #define and #undef of memmove to just before and after
11189         including <string.h>.
11190
11191         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
11192         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
11193         and after including <string.h>.  Move declarations of
11194         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
11195         to before #include "string/memmove.c".
11196
11197         * include/dirent.h: Declare __getdirentries.
11198
11199         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
11200         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
11201
11202 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
11203
11204         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
11205         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
11206         * sysdeps/i386/configure: Regenerated.
11207         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
11208         STABS_CURRENT_FILE, and STABS_FUN.
11209         (END): Remove call to STABS_FUN_END.
11210         (STABS_CURRENT_FILE1): Delete.
11211         (STABS_CURRENT_FILE): Likewise.
11212         (STABS_FUN): Likewise.
11213         (STABS_FUN_END): Likewise.
11214         (STABS_FUN2): Likewise.
11215         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
11216         * sysdeps/x86_64/configure: Regenerated.
11217
11218 2012-08-14  Roland McGrath  <roland@hack.frob.com>
11219
11220         * elf/dl-open.c: Include <atomic.h>.
11221         * elf/dl-lookup.c: Likewise.
11222
11223 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
11224
11225         * sysdeps/unix/sysv/linux/kernel-features.h
11226         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
11227         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
11228         unconditionally.
11229         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
11230         unconditionally.
11231         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
11232         condition on __ASSUME_CLONE_THREAD_FLAGS.
11233
11234 2012-08-14  Andreas Jaeger  <aj@suse.de>
11235
11236         * sysdeps/i386/fpu/libm-test-ulps: Update.
11237
11238 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
11239
11240         * include/atomic.h (atomic_exchange_and_add): Split into ...
11241         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
11242         New atomic macros.
11243
11244 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
11245
11246         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11247
11248 2012-08-13  Jeff Law <law@redhat.com>
11249
11250         * manual/stdio.texi (snprintf): Clarify handling of the trailing
11251         null byte in the output string.
11252
11253 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
11254
11255         * sysdeps/unix/sysv/linux/kernel-features.h
11256         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
11257         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
11258         (__ASSUME_ARG_MAX_STACK_BASED): Define.
11259         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
11260         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
11261         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
11262         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
11263
11264 2012-08-09  Jeff Law <law@redhat.com>
11265
11266         [BZ #13939]
11267         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
11268         When avoid_arena is set, don't retry in the that arena.  Pick the
11269         next one, whatever it might be.
11270         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
11271         (arena_lock): Pass in new parameter to arena_get2.
11272         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
11273         arena_get2.
11274         (__libc_malloc): Unify retrying after main arena failure with
11275         __libc_memalign version.
11276         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
11277
11278 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11279
11280         [BZ #14166]
11281         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
11282         to __redirect_strstr.
11283         (__strstr_sse42): Use typeof __redirect_strstr.
11284         (__strstr_ia32): Likewise.
11285         (__libc_strstr): New prototype.
11286         (strstr): Renamed to ...
11287         (__libc_strstr): This.
11288         (strstr): New strong alias of __libc_strstr.
11289         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
11290         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
11291         __redirect_time.
11292         Include <time.h>.
11293         (__libc_time): New prototype.
11294         (time_ifunc): Replace time with __libc_time.
11295         (time): New strong alias and hidden definition of __libc_time.
11296         (__GI_time): Remove strong alias.
11297         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
11298         Include <stddef.h>.
11299         (memmove): Redefined to __redirect_memmove.
11300         (__memmove_sse2): Use typeof __redirect_memmove.
11301         (__memmove_ssse3): Likewise.
11302         (__memmove_ssse3_back): Likewise.
11303         (__libc_memmove): New prototype.
11304         (memmove): Renamed to ...
11305         (__libc_memmove): This.
11306         (memmove): New strong alias of __libc_memmove.
11307
11308 2012-08-08  Mark Salter  <msalter@redhat.com>
11309
11310         * elf/elf.h
11311         (R_MN10300_TLS_GD): Define.
11312         (R_MN10300_TLS_LD): Likewise.
11313         (R_MN10300_TLS_LDO): Likewise.
11314         (R_MN10300_TLS_GOTIE): Likewise.
11315         (R_MN10300_TLS_IE): Likewise.
11316         (R_MN10300_TLS_LE): Likewise.
11317         (R_MN10300_TLS_DTPMOD): Likewise.
11318         (R_MN10300_TLS_DTPOFF): Likewise.
11319         (R_MN10300_TLS_TPOFF): Likewise.
11320         (R_MN10300_SYM_DIFF): Likewise.
11321         (R_MN10300_ALIGN): Likewise.
11322         (R_MN10300_NUM): Update.
11323
11324 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
11325
11326         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
11327         Remove.
11328
11329 2012-08-08  Roland McGrath  <roland@hack.frob.com>
11330
11331         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
11332
11333         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
11334         sysdeps/unix -> sysdeps/posix move.
11335         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11336
11337 2012-08-07      Allan McRae     <allan@archlinux.org>
11338
11339         [BZ #14303]
11340         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
11341         (SUNOS_CPP): Likewise.
11342         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
11343         not found.
11344         (open_input): Call CPP using execvp.
11345
11346 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11347
11348         * sysdeps/unix/sysv/linux/kernel-features.h
11349         (__ASSUME_PROT_GROWSUPDOWN): Remove.
11350         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11351         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11352         (__ASSUME_WAITID_SYSCALL): Likewise.
11353         * sysdeps/unix/sysv/linux/dl-execstack.c
11354         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
11355         code unconditional.
11356         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
11357         conditional code.
11358         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
11359         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
11360         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
11361         code.
11362         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
11363         unconditional.
11364         [__ASSUME_WAITID_SYSCALL]: Likewise.
11365         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
11366
11367 2012-08-07  Roland McGrath  <roland@hack.frob.com>
11368
11369         * sysdeps/unix/closedir.c: Renamed to ...
11370         * sysdeps/posix/closedir.c: ... here.
11371         * sysdeps/unix/dirfd.c: Renamed to ...
11372         * sysdeps/posix/dirfd.c: ... here.
11373         * sysdeps/unix/dirstream.h: Renamed to ...
11374         * sysdeps/posix/dirstream.h: ... here.
11375         * sysdeps/unix/fdopendir.c: Renamed to ...
11376         * sysdeps/posix/fdopendir.c: ... here.
11377         * sysdeps/unix/opendir.c: Renamed to ...
11378         * sysdeps/posix/opendir.c: ... here.
11379         * sysdeps/unix/readdir.c: Renamed to ...
11380         * sysdeps/posix/readdir.c: ... here.
11381         * sysdeps/unix/readdir_r.c: Renamed to ...
11382         * sysdeps/posix/readdir_r.c: ... here.
11383         * sysdeps/unix/rewinddir.c: Renamed to ...
11384         * sysdeps/posix/rewinddir.c: ... here.
11385         * sysdeps/unix/seekdir.c: Renamed to ...
11386         * sysdeps/posix/seekdir.c: ... here.
11387         * sysdeps/unix/telldir.c: Renamed to ...
11388         * sysdeps/posix/telldir.c: ... here.
11389         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
11390         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
11391         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11392         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
11393
11394         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
11395         * bits/fcntl.h: ... here.
11396
11397         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
11398         not 0.
11399         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
11400         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
11401         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
11402         (struct flock): Move l_start, l_len to the beginning.
11403         Use __pid_t for l_pid.
11404         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
11405         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
11406         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
11407         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
11408         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
11409         [__USE_LARGEFILE64] (struct flock64): New type.
11410         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
11411
11412         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
11413         * bits/dirent.h: ... here.
11414
11415         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
11416         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
11417
11418 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
11419
11420         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11421         Change from 2.6.0 to 2.6.16.
11422         * sysdeps/unix/sysv/linux/configure: Regenerated.
11423         * sysdeps/unix/sysv/linux/kernel-features.h
11424         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
11425         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
11426         version.
11427         (__ASSUME_UTIMES): Likewise.
11428         (__ASSUME_CLONE_STOPPED): Remove.
11429         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
11430         architectures, not kernel version.
11431         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
11432         (__ASSUME_NO_CLONE_DETACHED): Likewise.
11433         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
11434         (__ASSUME_WAITID_SYSCALL): Likewise.
11435         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
11436         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
11437         * README: State 2.6.16 as minimum Linux kernel version.  Do not
11438         refer to older versions.
11439
11440 2012-08-06  Roland McGrath  <roland@hack.frob.com>
11441
11442         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
11443         Define alphasort64 as an alias.
11444         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
11445         Define versionsort64 as an alias.
11446         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
11447         Define scandir64 as an alias.
11448         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
11449         Define scandirat64 as an alias.
11450         * dirent/alphasort64.c (alphasort64):
11451         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
11452         * dirent/versionsort64.c: Likewise.
11453         * dirent/scandir64.c: Likewise.
11454         * dirent/scandirat64.c: Likewise.
11455         * sysdeps/wordsize-64/alphasort.c: File removed.
11456         * sysdeps/wordsize-64/alphasort64.c: File removed.
11457         * sysdeps/wordsize-64/scandir.c: File removed.
11458         * sysdeps/wordsize-64/scandir64.c: File removed.
11459         * sysdeps/wordsize-64/scandirat.c: File removed.
11460         * sysdeps/wordsize-64/scandirat64.c: File removed.
11461         * sysdeps/wordsize-64/versionsort.c: File removed.
11462         * sysdeps/wordsize-64/versionsort64.c: File removed.
11463         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
11464         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
11465         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
11466         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
11467         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
11468         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
11469         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
11470         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
11471
11472         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
11473         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11474         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
11475         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11476         [defined __arch64__ || defined __sparcv9]
11477         (__INO_T_MATCHES_INO64_T): New macro.
11478         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11479         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
11480         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
11481         * sysdeps/unix/sysv/linux/bits/dirent.h
11482         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
11483         (_DIRENT_MATCHES_DIRENT64): New macro.
11484
11485         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
11486         Define lockf64 as an alias.
11487         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
11488         Define fseeko64 as an alias.
11489         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
11490         Define ftello64 as an alias.
11491         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
11492         Define _IO_fgetpos64 and fgetpos64 as aliases.
11493         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
11494         Define _IO_fsetpos64 and fsetpos64 as aliases.
11495         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
11496         Conditionalize body on this.
11497         * libio/fseeko64.c: Likewise.
11498         * libio/ftello64.c: Likewise.
11499         * libio/iofgetpos64.c: Likewise.
11500         * libio/iofsetpos64.c: Likewise.
11501         * sysdeps/wordsize-64/lockf.c: File removed.
11502         * sysdeps/wordsize-64/lockf64.c: File removed.
11503         * sysdeps/wordsize-64/fseeko.c: File removed.
11504         * sysdeps/wordsize-64/fseeko64.c: File removed.
11505         * sysdeps/wordsize-64/ftello.c: File removed.
11506         * sysdeps/wordsize-64/ftello64.c: File removed.
11507         * sysdeps/wordsize-64/iofgetpos.c: File removed.
11508         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
11509         * sysdeps/wordsize-64/iofsetpos.c: File removed.
11510         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
11511         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
11512         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
11513         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
11514         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
11515         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
11516         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
11517         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
11518         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
11519         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
11520         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
11521
11522         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11523         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
11524         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
11525         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11526         [defined __arch64__ || defined __sparcv9]
11527         (__OFF_T_MATCHES_OFF64_T): New macro.
11528         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
11529         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
11530         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11531         (__OFF_T_MATCHES_OFF64_T): New macro.
11532
11533 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11534
11535         * stdlib/secure-getenv.c (__secure_getenv): Replace
11536         GLIBC_2_16 with GLIBC_2_17.
11537
11538 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11539
11540         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
11541         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
11542
11543 2012-08-03  David S. Miller  <davem@davemloft.net>
11544
11545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11546
11547 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11548
11549         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
11550         Remove.
11551         (__ASSUME_CORRECT_SI_PID): Likewise.
11552         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
11553         (__ASSUME_TMPFS_NAME): Likewise.
11554         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
11555         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
11556         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
11557         (HAVE_AUX_SECURE): Make definition unconditional.
11558         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
11559         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
11560
11561 2012-08-03  Roland McGrath  <roland@hack.frob.com>
11562
11563         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
11564         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
11565         * sysdeps/mach/hurd/eloop-threshold.h: New file.
11566         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
11567         __eloop_threshold instead of SYMLOOP_MAX.
11568
11569         * sysdeps/generic/eloop-threshold.h: New file.
11570         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
11571         of MAXSYMLINKS.
11572         * elf/chroot_canon.c (chroot_canon): Likewise.
11573
11574 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
11575
11576         [BZ #13717]
11577         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11578         Change to 2.6.0 everywhere.
11579         * sysdeps/unix/sysv/linux/configure: Regenerated.
11580         * sysdeps/unix/sysv/linux/kernel-features.h
11581         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
11582         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
11583         kernel versions.
11584         (__ASSUME_POSIX_TIMERS): Define unconditionally.
11585         (__ASSUME_FUTEX_REQUEUE): Remove.
11586         (__ASSUME_STATFS64): Define unconditionally.
11587         (__ASSUME_AT_SECURE): Likewise.
11588         (__ASSUME_CORRECT_SI_PID): Likewise.
11589         (__ASSUME_TGKILL): Define without depending on kernel version for
11590         i386.
11591         (__ASSUME_UTIMES): Likewise.
11592         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
11593         kernel version.
11594         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
11595         (__ASSUME_TMPFS_NAME): Likewise.
11596         * README: Update reference to Linux kernel versions.
11597
11598 2012-08-02  Marek Polacek  <polacek@redhat.com>
11599
11600         [BZ# 14150]
11601         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
11602         libc_cv_asm_type_prefix with %.
11603         * configure: Regenerated.
11604         * include/libc-symbols.h: Remove comment about
11605         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11606         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
11607         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
11608         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
11609         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
11610         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
11611         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
11612         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
11613         * elf/tst-unique2mod1.c: Likewise.
11614         * elf/tst-unique1mod2.c: Likewise.
11615         * elf/tst-unique1mod1.c: Likewise.
11616         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
11617         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
11618         Replace ASM_TYPE_DIRECTIVE with .type.
11619         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11620         * sysdeps/i386/sysdep.h: Likewise.
11621         * sysdeps/x86_64/sysdep.h: Likewise.
11622         * sysdeps/sh/sysdep.h: Likewise.
11623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11624         Do not define ASM_TYPE_DIRECTIVE.
11625         * sysdeps/powerpc/sysdep.h: Likewise.
11626         * sysdeps/powerpc/powerpc32/sysdep.h:
11627         Replace ASM_TYPE_DIRECTIVE with .type.
11628         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11629         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11630         * sysdeps/i386/fpu/e_powf.S: Likewise.
11631         * sysdeps/i386/fpu/e_expl.S: Likewise.
11632         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11633         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11634         * sysdeps/i386/fpu/e_pow.S: Likewise.
11635         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11636         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11637         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11638         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11639         * sysdeps/i386/fpu/e_log2.S: Likewise.
11640         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11641         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11642         * sysdeps/i386/fpu/e_powl.S: Likewise.
11643         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11644         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11645         * sysdeps/i386/fpu/e_logl.S: Likewise.
11646         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11647         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11648         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11649         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11650         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11651         * sysdeps/i386/fpu/e_log.S: Likewise.
11652         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11653         * sysdeps/i386/fpu/e_logf.S: Likewise.
11654         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11655         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11656         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11657         * sysdeps/i386/fpu/e_log10.S: Likewise.
11658         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11659         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11660         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11661         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11662         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11663         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11664         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11665         * sysdeps/i386/i686/strtok.S: Likewise.
11666         * sysdeps/i386/i386-mcount.S: Likewise.
11667         * sysdeps/i386/strtok.S: Likewise.
11668         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
11669         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11670         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11671         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11672         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11673         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11674         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11675         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11676         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11677         * sysdeps/x86_64/_mcount.S: Likewise.
11678         * sysdeps/x86_64/strtok.S: Likewise.
11679         * sysdeps/sh/_mcount.S: Likewise.
11680
11681 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11682
11683         * libio/iofopen.c: Include <fcntl.h>.
11684         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
11685         (_IO_fopen64, fopen64): Define as aliases.
11686         * libio/iofopen64.c: Include <fcntl.h>.
11687         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
11688         Conditionalize body on this.
11689         * sysdeps/wordsize-64/iofopen.c: File removed.
11690         * sysdeps/wordsize-64/iofopen64.c: File removed.
11691
11692 2012-08-01  Marek Polacek  <polacek@redhat.com>
11693
11694         * libc/Makeconfig: Use elf in place of binfmt-subdir.
11695         Use dlfcn directly instead of a variable.
11696         (binfmt-subdir): Do not define.
11697         (dlfcn): Likewise.
11698
11699 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
11700
11701         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
11702         Remove all definitions.
11703         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
11704         <kernel-features.h>.
11705         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11706         (miss_F_GETOWN_EX): Remove all definitions.
11707         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
11708         macro definition.
11709         [!__ASSUME_FCNTL64]: Remove conditional code.
11710         [__ASSUME_FCNTL64]: Make code unconditional.
11711         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
11712         <kernel-features.h>.
11713         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
11714         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
11715         (lockf64) [__NR_fcntl64]: Make code unconditional.
11716         (lockf64) [__ASSUME_FCNTL64]: Likewise.
11717
11718         * sysdeps/unix/sysv/linux/kernel-features.h
11719         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
11720         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
11721         Make code unconditional.
11722         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11723         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
11725         [__NR_vfork]: Make code unconditional.
11726         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11727         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
11729         [__NR_vfork]: Make code unconditional.
11730         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
11731         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
11732
11733 2012-08-01  Roland McGrath  <roland@hack.frob.com>
11734
11735         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
11736         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
11737
11738         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11739         Define mkstemp64 as an alias.
11740         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11741         Define mkstemps64 as an alias.
11742         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11743         Define mkostemp64 as an alias.
11744         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
11745         Define mkostemps64 as an alias.
11746         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
11747         Conditionalize body on this.
11748         * misc/mkostemp64.c: Likewise.
11749         * misc/mkostemps64.c: Likewise.
11750         * misc/mkstemps64.c: Likewise.
11751         * sysdeps/wordsize-64/mkstemp64.c: File removed.
11752         * sysdeps/wordsize-64/mkostemp64.c: File removed.
11753         * sysdeps/wordsize-64/mkostemp.c: File removed.
11754         * sysdeps/wordsize-64/mkstemp.c: File removed.
11755         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
11756         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
11757         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
11758         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
11759
11760         [BZ #14138]
11761         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
11762         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
11763         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
11764         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
11765
11766         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
11767         compat_symbol macros from <shlib-compat.h> rather than the underlying
11768         default_symbol_version and symbol_version macros, so that DEFAULT
11769         lines in shlib-versions are respected.
11770         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
11771
11772 2012-08-01  Florian Weimer  <fweimer@redhat.com>
11773
11774         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
11775         Declare with warn_unused_result.
11776         (setgid, setregid, setegid, setresgid): Likewise.
11777         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
11778         Likewise.
11779         * WUR-REPORT: Remove set*id functions.
11780
11781 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
11782
11783         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
11784
11785 2012-07-31  Roland McGrath  <roland@hack.frob.com>
11786
11787         [BZ #10191]
11788         * include/sys/socket.h (__libc_accept, __libc_accept4):
11789         Add attribute_hidden.
11790         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
11791
11792         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
11793         use of PTR_MANGLE.
11794         * inet/getnetgrent_r.c (setup): Likewise.
11795
11796         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
11797
11798 2012-07-31  David S. Miller  <davem@davemloft.net>
11799
11800         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11801
11802 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
11803
11804         [BZ #13629]
11805         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
11806         value between 1.0 and 2.0 and smaller part has absolute value less
11807         than 1.0.
11808         * math/s_clog10.c (__clog10): Likewise.
11809         * math/s_clog10f.c (__clog10f): Likewise.
11810         * math/s_clog10l.c (__clog10l): Likewise.
11811         * math/s_clogf.c (__clogf): Likewise.
11812         * math/s_clogl.c (__clogl): Likewise.
11813         * math/libm-test.inc (clog_test): Add more tests.
11814         (clog10_test): Likewise.
11815         * sysdeps/i386/fpu/libm-test-ulps: Update.
11816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11817
11818 2012-07-31  Florian Weimer  <fweimer@redhat.com>
11819
11820         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
11821         Exit with zero in case no suitable GID is found, and write a
11822         message to standard error.
11823
11824 2012-07-30  Roland McGrath  <roland@hack.frob.com>
11825
11826         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
11827         rather than to 1.
11828         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
11829         (MAXPATHLEN): Removed.
11830         (NOGROUP, NODEV): New macros.
11831         (setbit, clrbit, isset, isclr): New macros.
11832         (howmany, roundup, powerof2): New macros.
11833         (DEV_BSIZE): New macro.
11834
11835         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
11836         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
11837
11838         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
11839         definition on [!__NO_LONG_DOUBLE_MATH].
11840
11841         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
11842         PTR_MANGLE and PTR_DEMANGLE.
11843
11844         * socket/accept4.c (accept4): Rename to __libc_accept4.
11845         Define accept4 as a weak alias.
11846
11847         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
11848         on [_DIRENT_HAVE_D_TYPE].
11849         * io/ftw.c (ftw_dir): Likewise.
11850
11851         * io/xmknod.c (__xmknod): Don't check PATH for being null.
11852
11853         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
11854
11855         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
11856         Use the BSD numbers rather than the arbitrary ones we had.
11857         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
11858         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
11859         (SIGXCPU, SIGXFSZ): New macros.
11860         (_NSIG): Now 32.
11861
11862         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
11863         initializer on [_LIBC_REENTRANT].
11864
11865         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
11866         definitions inside [_POSIX_MAPPED_FILES].
11867
11868         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
11869
11870         * dirent/opendir.c: Include <fcntl.h>.
11871
11872         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
11873         (__libc_getspecific): Likewise.
11874         (__libc_key_create): Likewise.
11875
11876         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
11877         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
11878         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
11879         (tmpfile64): Define as alias.
11880         * sysdeps/wordsize-64/tmpfile.c: File removed.
11881         * sysdeps/wordsize-64/tmpfile64.c: File removed.
11882         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
11883         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
11884
11885         * stdio-common/vfscanf.c: Include <stdbool.h>.
11886         * nss/makedb.c: Likewise.
11887         * stdio-common/_i18n_number.h: Likewise.
11888         * argp/argp-help.c: Likewise.
11889         * posix/wordexp.c: Likewise.
11890         * sysdeps/posix/spawni.c: Likewise.
11891         * nss/nss_files/files-initgroups.c: Likewise.
11892         * stdio-common/reg-modifier.c: Include <stdlib.h>.
11893         * nss/nss_files/files-initgroups.c: Likewise.
11894         * nss/nss_db/db-netgrp.c: Likewise.
11895         * nss/nss_db/db-initgroups.c: Likewise.
11896         * io/fchmodat.c: Include <sys/stat.h>.
11897
11898         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
11899         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
11900
11901         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
11902         [HAVE_MMAP].
11903
11904         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
11905         Add multiple inclusion protection.
11906
11907 2012-07-27  David S. Miller  <davem@davemloft.net>
11908
11909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11910
11911 2012-07-27  Gary Benson  <gbenson@redhat.com>
11912
11913         [BZ #14298]
11914         * elf/rtld.c: Include <stap-probe.h>.
11915         (dl_main): Added static probes "init_start" and "init_complete".
11916         * elf/dl-load.c: Include <stap-probe.h>.
11917         (lose): Take new parameter "nsid".
11918         Added static probe "map_failed".
11919         (_dl_map_object_from_fd): Pass namespace id to lose.
11920         Added static probe "map_start".
11921         (open_verify): Pass namespace id to lose.
11922         * elf/dl-open.c: Include <stap-probe.h>.
11923         (dl_open_worker) Added static probes "map_complete", "reloc_start"
11924         and "reloc_complete".
11925         * elf/dl-close.c: Include <stap-probe.h>.
11926         (_dl_close_worker): Added static probes "unmap_start" and
11927         "unmap_complete".
11928         * elf/rtld-debugger-interface.txt: New file documenting the above.
11929
11930 2012-07-26  Roland McGrath  <roland@hack.frob.com>
11931
11932         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
11933         rather than a string variable.
11934         * sunrpc/rpc_main.c (h_output): Likewise.
11935         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
11936
11937 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
11938
11939         * inet/check_native.c: New file.
11940
11941 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
11942
11943         [BZ #13629]
11944         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
11945         if larger part has absolute value 1.0.
11946         * math/s_clog10.c (__clog10): Likewise.
11947         * math/s_clog10f.c (__clog10f): Likewise.
11948         * math/s_clog10l.c (__clog10l): Likewise.
11949         * math/s_clogf.c (__clogf): Likewise.
11950         * math/s_clogl.c (__clogl): Likewise.
11951         * math/libm-test.inc (clog_test): Add more tests.
11952         (clog10_test): Likewise.
11953         * sysdeps/i386/fpu/libm-test-ulps: Update.
11954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11955
11956         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
11957         (pltexit): Likewise.
11958         (La_regs): Likewise.
11959         (La_retval): Likewise.
11960         (int_retval): Likewise.
11961         Update #error for removed macros to refer only to definitions in
11962         tst-audit.h.
11963         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
11964         macro.
11965         (pltexit): Likewise.
11966         (La_regs): Likewise.
11967         (La_retval): Likewise.
11968         (int_retval): Likewise.
11969         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
11970         macro.
11971         (pltexit): Likewise.
11972         (La_regs): Likewise.
11973         (La_retval): Likewise.
11974         (int_retval): Likewise.
11975         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
11976         macro.
11977         (pltexit): Likewise.
11978         (La_regs): Likewise.
11979         (La_retval): Likewise.
11980         (int_retval): Likewise.
11981         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
11982         macro.
11983         (pltexit): Likewise.
11984         (La_regs): Likewise.
11985         (La_retval): Likewise.
11986         (int_retval): Likewise.
11987         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
11988         macro.
11989         (pltexit): Likewise.
11990         (La_regs): Likewise.
11991         (La_retval): Likewise.
11992         (int_retval): Likewise.
11993         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
11994         macro.
11995         (pltexit): Likewise.
11996         (La_regs): Likewise.
11997         (La_retval): Likewise.
11998         (int_retval): Likewise.
11999         * sysdeps/generic/tst-audit.h: Update comment to refer only to
12000         macro definitions in tst-audit.h.
12001         * sysdeps/i386/tst-audit.h: New file.
12002         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
12003         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
12004         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
12005         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
12006         * sysdeps/sh/tst-audit.h: Likewise.
12007         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
12008         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
12009         * sysdeps/x86_64/tst-audit.h: Likewise.
12010
12011 2012-07-26  Andreas Jaeger  <aj@suse.de>
12012
12013         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
12014         ptrace.
12015
12016         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
12017         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
12018         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
12019         PTRACE_O_MASK.
12020         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
12021         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
12022         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
12023
12024         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
12025         value.
12026
12027         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
12028         _sigsys.
12029         (si_call_addr, si_syscall, si_arch): Define new macro.
12030         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
12031         _sigsys.
12032         (si_call_addr, si_syscall, si_arch): Define new marcro.
12033         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
12034         _sigsys.
12035         (si_call_addr, si_syscall, si_arch): Define new macro.
12036         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
12037         _sigsys.
12038         (si_call_addr, si_syscall, si_arch): Define new macro.
12039
12040 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12041
12042         [BZ #13717]
12043         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12044         Change to 2.4.21 where previously 2.4.1.
12045         * sysdeps/unix/sysv/linux/configure: Regenerated.
12046         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
12047         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
12048         Linux kernel version.
12049         (__ASSUME_STD_AUXV): Remove.
12050         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
12051         kernel version.
12052         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
12053         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
12054         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
12055         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
12056         (__ASSUME_NETLINK_SUPPORT): Likewise.
12057         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
12058         (__no_netlink_support): Remove conditional definition.
12059         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
12060         Remove.
12061         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12062         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
12063         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
12064         (if_nameindex_ioctl): Remove.
12065         (if_nameindex_netlink): Do not handle __no_netlink_support.
12066         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12067         code.
12068         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
12069         Remove conditional code.
12070         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
12071         code.
12072         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
12073         unconditional.
12074         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
12075         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
12076         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
12077         Remove.
12078         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
12079         [!__ASSUME_STD_AUXV]: Remove conditional code.
12080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
12081         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
12082         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
12083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
12084         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
12085         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12086         code.
12087         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12089         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
12090         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12091         conditional code.
12092         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
12093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12094         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
12095         code.
12096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12097         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
12098         conditional code.
12099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
12100         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12101         code unconditional.
12102         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12103         conditional code.
12104         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12105         unconditional.
12106         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12107         conditional code.
12108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12109         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12110         unconditional.
12111         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12112         conditional code.
12113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
12114         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12115         code unconditional.
12116         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12117         conditional code.
12118         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12119         unconditional.
12120         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12121         conditional code.
12122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
12123         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
12124         code unconditional.
12125         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12126         conditional code.
12127         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
12128         unconditional.
12129         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
12130         conditional code.
12131
12132 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
12133
12134         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
12135         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
12136         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
12137         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
12138         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
12139         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
12140         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
12141         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
12142         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
12143         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
12144         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
12145         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
12146         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
12147         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12148         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12149         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
12150         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
12151         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
12152         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
12153         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
12154         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
12155         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
12156         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12157
12158 2012-07-25  Florian Weimer  <fweimer@redhat.com>
12159
12160         * Versions.def: Add GLIBC_2.17.
12161         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
12162         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
12163         Introduce __libc_secure_getenv.
12164         * stdlib/Versions (2.17): Add secure_getenv
12165         (GLIBC_PRIVATE): Add __libc_secure_getenv.
12166         * stdlib/secure-getenv.c: Rename __secure_getenv to
12167         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
12168         symbol __secure_getenv for GLIBC_2.0.
12169         * stdlib/tst-secure-getenv.c: New.
12170         * stdlib/Makefile (tests): Add testcase.
12171         * manual/startup.texi (Environment Access): Document
12172         secure_getenv.
12173         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
12174         __libc_secure_getenv.
12175         * inet/ruserpass.c (ruserpass): Likewise.
12176         * malloc/mtrace.c (mtrace): Likewise.
12177         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
12178         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
12179         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
12180         * sysdeps/posix/tempname.c: Likewise.  Evaluate
12181         HAVE_SECURE_GETENV.
12182         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
12183         __secure_getenv to __libc_secure_getenv.
12184         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
12185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12186         Likewise.
12187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12188         Likewise.
12189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12190         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12191         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12195         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12196
12197 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
12198
12199         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
12200         (struct La_i86_retval): Likewise.
12201         (struct La_x86_64_regs): Likewise.
12202         (struct La_x86_64_retval): Likewise.
12203         (struct La_x32_regs): Likewise.
12204         (struct La_x32_retval): Likewise.
12205         (struct La_ppc32_regs): Likewise.
12206         (struct La_ppc32_retval): Likewise.
12207         (struct La_ppc64_regs): Likewise.
12208         (struct La_ppc64_retval): Likewise.
12209         (struct La_sh_regs): Likewise.
12210         (struct La_sh_retval): Likewise.
12211         (struct La_s390_32_regs): Likewise.
12212         (struct La_s390_32_retval): Likewise.
12213         (struct La_s390_64_regs): Likewise.
12214         (struct La_s390_64_retval): Likewise.
12215         (struct La_sparc32_regs): Likewise.
12216         (struct La_sparc32_retval): Likewise.
12217         (struct La_sparc64_regs): Likewise.
12218         (struct La_sparc64_retval): Likewise.
12219         (struct audit_ifaces): Remove architecture-specific pltenter and
12220         pltexit members.
12221         * sysdeps/i386/ldsodefs.h: New file.
12222         * sysdeps/powerpc/ldsodefs.h: Likewise.
12223         * sysdeps/s390/ldsodefs.h: Likewise.
12224         * sysdeps/sh/ldsodefs.h: Likewise.
12225         * sysdeps/sparc/ldsodefs.h: Likewise.
12226         * sysdeps/x86_64/ldsodefs.h: Likewise.
12227
12228 2012-07-25  Marek Polacek  <polacek@redhat.com>
12229
12230         [BZ #6808]
12231         * math/libm-test.inc (yn_test): Add another test.
12232         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
12233         to ERANGE when the result is +-Inf.
12234         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
12235         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12236         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
12237         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
12238
12239 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
12240
12241         * conform/data/time.h-data (NULL): Use macro-constant.  Require
12242         equal to 0.
12243         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
12244         clock_t.
12245         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
12246
12247 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
12248
12249         * configure.in <sysdeps resolving>: Correct printing
12250         Implies_before.
12251         * configure: Regenerate.
12252
12253 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
12254
12255         * math/w_ilogb.c: Include <limits.h>.
12256         * math/w_ilogbl.c: Likewise.
12257
12258 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12259
12260         * manual/lang.texi (__va_copy): Document primarily as ISO C99
12261         va_copy.  Document allowing for unavailable va_copy only as
12262         pre-C99 compatibility.
12263         * manual/string.texi (Copying and Concatenation): Use va_copy
12264         instead of __va_copy in concat example.
12265
12266 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
12267
12268         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
12269         (__sendto): Use create_address_port.  Initialize APORT and deallocate
12270         it if not null.
12271
12272         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
12273         with O_NOLINK passed to __file_name_lookup.
12274
12275         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
12276         with O_NOLINK passed to __file_name_lookup.
12277
12278         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
12279         negative N or less than NGIDS.
12280
12281         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
12282         type to string_t.  Set ERANGE as errno and return it if NAME is not big
12283         enough.  Use memcpy instead of strncpy.
12284
12285 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
12286
12287         * elf/Makefile (check-data): Remove.
12288         (localplt.data): New vpath directive.
12289         ($(objpfx)check-localplt.out): Use localplt.data from vpath
12290         instead of $(check-data).
12291         * scripts/data/localplt-generic.data: Move to ...
12292         * sysdeps/generic/localplt.data: ... here.
12293         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
12294         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
12295         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
12296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
12297         ... here.
12298         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
12299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
12300         ... here.
12301         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
12302         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
12303         ... here.
12304         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
12305         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
12306         ... here.
12307         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
12308         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
12309         ... here.
12310         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
12311         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
12312         ... here.
12313
12314 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12315
12316         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
12317         PPC32 and PPC64 files.
12318         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
12319         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
12320
12321 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12322
12323         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
12324         __makecontext_ret to ...
12325         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
12326         ... here and call exit if uc_link is NULL.  New file.
12327         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
12328         __makecontext_ret.S.
12329         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
12330         __makecontext_ret to ...
12331         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
12332         ... here and call exit if uc_link is NULL.  New file.
12333         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
12334         __makecontext_ret.S.
12335
12336 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12337
12338         * elf/elf.h (R_390_IRELATIVE): New definition.
12339         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
12340         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
12341         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
12342         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12343         (elf_machine_lazy_rel): Likewise.
12344         * sysdeps/s390/dl-irel.h: New file.
12345         * sysdeps/s390/s390-64/memcpy.S: New asm code.
12346         * sysdeps/s390/s390-64/memset.S: New asm code.
12347         * sysdeps/s390/s390-64/memcmp.S: New asm code.
12348         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
12349         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
12350         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
12351         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
12352         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
12353         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
12354         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
12355         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
12356         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
12357         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
12358         * sysdeps/s390/s390-32/memcpy.S: New asm code.
12359         * sysdeps/s390/s390-32/memset.S: New asm code.
12360         * sysdeps/s390/s390-32/memcmp.S: New asm code.
12361
12362 2012-07-17  Marek Polacek  <polacek@redhat.com>
12363
12364         [BZ #14349]
12365         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
12366         * sysdeps/s390/s390-64/configure.in: Likewise.
12367         * sysdeps/sparc/configure.in: Likewise.
12368         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
12369         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
12370         * sysdeps/i386/configure.in: Likewise.
12371         * sysdeps/x86_64/configure.in: Likewise.
12372         * sysdeps/sh/configure.in: Likewise.
12373         * sysdeps/s390/s390-32/configure: Regenerated.
12374         * sysdeps/s390/s390-64/configure: Likewise.
12375         * sysdeps/x86_64/configure: Likewise.
12376         * sysdeps/sh/configure: Likewise.
12377         * sysdeps/powerpc/powerpc64/configure: Likewise.
12378         * sysdeps/powerpc/powerpc32/configure: Likewise.
12379         * sysdeps/sparc/configure: Likwise.
12380         * sysdeps/i386/configure: Likewise.
12381
12382         * elf/dl-open.c: Comment fixes.
12383
12384 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
12385
12386         * Makefile [CXX] (check-data): Remove.
12387         [CXX] (c++-types.data): New vpath directive.
12388         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
12389         vpath.  Do not allow for C++ type data being missing.
12390         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
12391         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
12392         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
12393         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
12394         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
12395         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
12396         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
12397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
12398         ... here.
12399         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
12400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
12401         ... here.
12402         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
12403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
12404         ... here.
12405         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
12406         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
12407         ... here.
12408         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
12409         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
12410         ... here.
12411         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
12412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
12413         ... here.
12414         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
12415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
12416         ... here.
12417         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
12418         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
12419
12420         * elf/tls-macros.h (TLS_LE): Move architecture-specific
12421         definitions to architecture-specific files.
12422         (TLS_IE): Likewise.
12423         (TLS_LD): Likewise.
12424         (TLS_GD): Likewise.
12425         * sysdeps/i386/tls-macros.h: New file.
12426         * sysdeps/powerpc/tls-macros.h: Likewise.
12427         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
12428         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
12429         * sysdeps/sh/tls-macros.h: Likewise.
12430         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
12431         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
12432         * sysdeps/x86_64/tls-macros.h: Likewise.
12433
12434 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12435
12436         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
12437         zero value for regular exit case.
12438
12439         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
12440         (__start_context): Preserve zero value for regular exit case.
12441
12442 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
12443             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12444
12445         * manual/setjmp.texi (setcontext): Clarify normal process
12446         termination when uc_link is the null pointer.
12447         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
12448         exit call.
12449
12450 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
12451
12452         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
12453         preprocessor.  Test for each exception mask separately.
12454
12455 2012-07-16  Andreas Jaeger  <aj@suse.de>
12456
12457         * po/ru.po: Update from translation team.
12458
12459 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
12460
12461         * conform/data/string.h-data (NULL): Use macro-constant.  Require
12462         equal to 0.
12463         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12464         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12465         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
12466         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
12467         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12468
12469 2012-07-13  Andreas Jaeger  <aj@suse.de>
12470
12471         * po/fr.po: Update from translation team.
12472
12473 2012-07-12  Marek Polacek  <polacek@redhat.com>
12474
12475         [BZ #14173]
12476         * math/libm-test.inc (yn_test): Add test for BZ #14173.
12477         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
12478         loop condition.
12479
12480 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
12481
12482         [BZ #13717]
12483         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
12484         Change to 2.4.1 where previously 2.4.0.
12485         * sysdeps/unix/sysv/linux/configure: Regenerated.
12486         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
12487         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
12488         version.
12489         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
12490         (__ASSUME_AT_CLKTCK): Remove.
12491         (__ASSUME_AT_PAGESIZE): Likewise.
12492         (__ASSUME_AT_XID): Likewise.
12493         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
12494         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
12495         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
12496         unconditionally.
12497         (HAVE_AUX_PAGESIZE): Likewise.
12498         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
12499         [__ASSUME_AT_CLKTCK]: Make code unconditional.
12500         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
12501
12502 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
12503
12504         [BZ #14307]
12505         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
12506         the temporary buffer used to invoke __gethostbyname2_r,
12507         __gethostbyaddr_r and gethostbyname4_r to make room for struct
12508         host_data / struct gaih_addrtuple.
12509         * resolv/nss_dns/dns-host.c (global scope): Move definition of
12510         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
12511         header file nss/nsswitch.h.
12512         * nss/nsswitch.h (global scope): Add definition of implementation
12513         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
12514         resolv/nss_dns/dns-host.c).
12515
12516 2012-07-11  Andreas Jaeger  <aj@suse.de>
12517
12518         * po/fr.po: Update from translation team.
12519
12520         * po/sv.po: Update from translation team
12521         * po/fr.po: Another update from translation team.
12522
12523 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12524
12525         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
12526         for subnormals or multiply small sinh result by itself.
12527         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12528         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12529
12530 2012-07-11  David S. Miller  <davem@davemloft.net>
12531
12532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12533
12534 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
12535
12536         [BZ #14347]
12537         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
12538         (INTERNAL_MARK): Shift it here.
12539
12540 2012-07-10  Marek Polacek  <polacek@redhat.com>
12541
12542         [BZ #14151]
12543         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
12544         libc_cv_asm_global_directive with .globl.
12545         * configure: Regenerated.
12546         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
12547         with .globl.
12548         * sysdeps/i386/configure: Regenerated.
12549         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
12550         with .globl.
12551         * sysdeps/x86_64/configure: Regenerated.
12552         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
12553         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
12554         * elf/tst-unique2mod2.c: Likewise.
12555         * elf/tst-unique2mod1.c: Likewise.
12556         * elf/tst-unique1mod2.c: Likewise.
12557         * elf/tst-unique1mod1.c: Likewise.
12558         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12559         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
12560         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12561         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
12562         * sysdeps/mach/sysdep.h: Likewise.
12563         * sysdeps/i386/sysdep.h: Likewise.
12564         * sysdeps/i386/i386-mcount.S: Likewise.
12565         * sysdeps/x86_64/_mcount.S: Likewise.
12566         * sysdeps/x86_64/sysdep.h: Likewise.
12567         * sysdeps/sh/_mcount.S: Likewise.
12568         * sysdeps/sh/sysdep.h: Likewise.
12569         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
12570         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
12571         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
12572         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12573         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
12574         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
12575         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
12576         * locale/localeinfo.h: Likewise.
12577         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
12578         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
12579
12580 2012-07-09  Roland McGrath  <roland@hack.frob.com>
12581
12582         [BZ #14336]
12583         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
12584         system".
12585         * manual/message.texi (The Uniforum approach): Likewise.
12586         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
12587         (glibc iconv Implementation): Likewise.
12588
12589 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
12590
12591         [BZ #14337]
12592         * math/s_clog.c (__clog): Avoid scaling a value down where that
12593         could result in underflow.
12594         * math/s_clog10.c (__clog10): Likewise.
12595         * math/s_clog10f.c (__clog10f): Likewise.
12596         * math/s_clog10l.c (__clog10l): Likewise.
12597         * math/s_clogf.c (__clogf): Likewise.
12598         * math/s_clogl.c (__clogl): Likewise.
12599         * math/libm-test.inc (clog_test): Add more tests.
12600         (clog10_test): Likewise.
12601         * sysdeps/i386/fpu/libm-test-ulps: Update.
12602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12603
12604 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
12605
12606         [BZ #14283]
12607         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
12608         by 7 not 8 to examine high bit of fractional part.
12609
12610         [BZ #14042]
12611         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
12612         for call to __mcount_internal.
12613         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
12614         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
12615         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
12616
12617 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
12618
12619         [BZ #14154]
12620         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
12621         approximation for values within 0x1p-13f of an odd multiple of
12622         pi/4.
12623         * math/libm-test.inc (tan_test): Do not allow spurious underflow
12624         exception.  Add more tests.
12625         * sysdeps/i386/fpu/libm-test-ulps: Update.
12626
12627         [BZ #6778]
12628         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
12629         inputs and return -1 for them.  Do not check for +Inf in case not
12630         reachable for +Inf.
12631         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
12632         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
12633         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12634         and return -1 for them.  Do not check for +Inf in case not
12635         reachable for +Inf.
12636         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
12637         define.
12638         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
12639         and return -1 for them.  Do not check for +Inf in case not
12640         reachable for +Inf.
12641         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
12642         spurious underflow.
12643         * sysdeps/i386/fpu/libm-test-ulps: Update.
12644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12645
12646 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
12647
12648         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
12649
12650 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
12651
12652         [BZ #14157]
12653         [BZ #14331]
12654         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
12655         could result in spurious underflow.  Scale down values above
12656         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
12657         * math/s_csqrtf.c (__csqrtf): Likewise.
12658         * math/s_csqrtl.c (__csqrtl): Likewise.
12659         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
12660         spurious underflow.
12661         * sysdeps/i386/fpu/libm-test-ulps: Update.
12662         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12663
12664 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
12665
12666         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
12667         xopen-msg.sed.
12668         * catgets/xopen-msg.awk: New file.
12669         * catgets/xopen-msg.sed: Removed.
12670
12671         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
12672         po2text.sed.
12673         * intl/po2test.awk: New file.
12674         * intl/po2test.sed: Removed.
12675
12676 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
12677
12678         [BZ #14328]
12679         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
12680         or multiply small sinh result by itself.
12681         * math/s_ctanf.c (__ctanf): Likewise.
12682         * math/s_ctanh.c (__ctanh): Likewise.
12683         * math/s_ctanhf.c (__ctanhf): Likewise.
12684         * math/s_ctanhl.c (__ctanhl): Likewise.
12685         * math/s_ctanl.c (__ctanl): Likewise.
12686         * math/libm-test.inc (ctan_test_tonearest): New function.
12687         (ctan_test_towardzero): Likewise.
12688         (ctan_test_downward): Likewise.
12689         (ctan_test_upward): Likewise.
12690         (ctanh_test_tonearest): Likewise.
12691         (ctanh_test_towardzero): Likewise.
12692         (ctanh_test_downward): Likewise.
12693         (ctanh_test_upward): Likewise.
12694         (main): Call these new functions.
12695         * sysdeps/i386/fpu/libm-test-ulps: Update.
12696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12697
12698 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
12699
12700         * .gitignore: Delete /ports entry.
12701
12702 2012-07-03  Andreas Jaeger  <aj@suse.de>
12703
12704         * po/bg.po: Update from translation team.
12705         * po/cs.po: Likewise.
12706         * po/de.po: Likewise.
12707         * po/hr.po: Likewise.
12708         * po/nl.pl: Likewise.
12709         * po/pl.po: Likewise.
12710         * po/vi.po: Likewise.
12711
12712 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
12713
12714         * Makeconfig [!+link] (+link-before-libc): New variable.
12715         [!+link] (+link-after-libc): Likewise.
12716         [!+link] (+link-tests): Likewise.
12717         [!+link] (+link): Define in terms of $(+link-before-libc) and
12718         $(+link-after-libc).
12719         [!+link-static] (+link-static-before-libc): New variable.
12720         [!+link-static] (+link-static-after-libc): Likewise.
12721         [!+link-static] (+link-static-tests): Likewise.
12722         [!+link-static] (+link-static): Define in terms of
12723         $(+link-static-before-libc) and $(+link-static-after-libc).
12724         [build-shared] (link-libc-before-gnulib): New variable.
12725         [build-shared] (link-libc-tests): Likewise.
12726         [build-shared] (link-libc): Define in terms of
12727         $(link-libc-before-gnulib).
12728         [!build-shared] (link-libc-tests): New variable.
12729         (link-libc-static-tests): New variable.
12730         [!gnulib] (gnulib-arch): New variable.
12731         [!gnulib] (gnulib-tests): Likewise.
12732         [!gnulib] (static-gnulib-arch): Likewise.
12733         [!gnulib] (static-gnulib-tests): Likewise.
12734         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
12735         Define with "=" instead of ":=".
12736         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
12737         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
12738         * Rules (binaries-all-notests): New variable.
12739         (binaries-all-tests): Likewise.
12740         (binaries-static-notests): Likewise.
12741         (binaries-static-tests): Likewise.
12742         (binaries-all): Define using $(binaries-all-notests) and
12743         $(binaries-all-tests).
12744         (binaries-static): Define using $(binaries-static-notests) and
12745         $(binaries-static-tests).
12746         (binaries-shared-tests): New variable.
12747         (binaries-shared-notests): Likewise.
12748         (binaries-shared): Remove variable.
12749         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
12750         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
12751         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
12752         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
12753         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
12754         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
12755         * elf/Makefile (sln-modules): New variable.
12756         (extra-objs): Add $(sln-modules:=.o).
12757         (ldconfig-modules): Add static-stubs.
12758         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
12759         * elf/static-stubs.c: New file.
12760
12761         [BZ #14283]
12762         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
12763         by 7 not 8 to examine high bit of fractional part.  Use volatile
12764         variables when splitting into final array of floats if
12765         __FLT_EVAL_METHOD__ != 0.
12766         * math/libm-test.inc (cos_test): Add another test.
12767         (sin_test): Likewise.
12768         * sysdeps/i386/fpu/libm-test-ulps: Update.
12769
12770         [BZ #14273]
12771         * math/libm-test.inc (cosh_test): Add more tests.
12772
12773         * version.h (RELEASE): Set to "development".
12774         (VERSION): Set to "2.16.90".
12775
12776 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
12777
12778         * NEWS: Update copyright. Remove last-updated date.
12779         Mention math library bug fixes and timezone data changes.
12780         * README: Mention GNU/Hurd, x32, and HPPA support status.
12781
12782 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
12783
12784         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
12785
12786 2012-06-27  Andreas Jaeger  <aj@suse.de>
12787
12788         * manual/contrib.texi (Contributors): Add Samuel Thibault.
12789
12790 2012-06-25  Andreas Jaeger  <aj@suse.de>
12791
12792         * sysdeps/s390/fpu/libm-test-ulps: Update.
12793
12794 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
12795             Thomas Schwinge  <thomas@codesourcery.com>
12796
12797         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
12798         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
12799         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
12800         fanotify_mark.
12801
12802 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
12803
12804         * sysdeps/mach/start.c: Remove file.
12805         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
12806         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
12807         * sysdeps/sh/init-first.c: Likewise.
12808
12809         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
12810         registers for frame unwinding purposes, add CFI directives.
12811         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12812         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
12813         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12814         Likewise.
12815
12816         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
12817         __fortify_fail returning.
12818         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
12819
12820         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
12821         sysdeps/sh/____longjmp_chk.S.
12822         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
12823         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
12824         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
12825         (gen-as-const-headers): Append sigaltstack-offsets.sym.
12826
12827         * sysdeps/sh/abort-instr.h: New file.
12828         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
12829         process in case exit returns.
12830
12831         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
12832         initialize the GOT register before use.
12833
12834         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
12835         calculation of ARGC > 4.
12836
12837         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
12838         meaningful names to some local labels.
12839
12840 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
12841             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12842
12843         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
12844         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
12845         (__arch_compare_and_exchange_val_16_acq): Likewise.
12846         (__arch_compare_and_exchange_val_32_acq): Likewise.
12847         (atomic_exchange_and_add): Fix gUSA sequence.
12848         (atomic_add): Likewise.
12849         (atomic_add_negative): Likewise.
12850         (atomic_add_zero): Likewise.
12851         (atomic_bit_test_set): Likewise.
12852
12853 2012-06-22  Andreas Schwab  <schwab@redhat.com>
12854
12855         [BZ #13579]
12856         * include/link.h (struct link_map): Add l_free_initfini.
12857         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
12858         l_initfini.
12859         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
12860         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
12861         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
12862         set.
12863
12864 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
12865
12866         * configure.in: Use AC_LANG_SOURCE.
12867         * configure: Regenerate.
12868
12869 2012-06-22  Roland McGrath  <roland@hack.frob.com>
12870
12871         * configure.in (libc_cv_localstatedir): New substituted variable.
12872         * configure: Regenerated.
12873         * config.make.in (localstatedir): New variable, substituted from
12874         libc_cv_localstatedir.
12875         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
12876         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
12877         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
12878         * sysdeps/gnu/configure: Regenerated.
12879
12880 2012-06-21  Jeff Law  <law@redhat.com>
12881
12882         [BZ #14277]
12883         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
12884         free.  Simplify list management for _LIBC case.
12885
12886 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
12887
12888         [BZ #14273]
12889         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
12890         Clear sign bit of 64-bit integer value before comparing against
12891         overflow value.
12892
12893         * sysdeps/mach/configure: Regenerated.
12894
12895 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12896
12897         [BZ #14278]
12898         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
12899
12900 2012-06-21  Jeff Law  <law@redhat.com>
12901
12902         [BZ #13882]
12903         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
12904         uint16_t for elements in the "seen" array to avoid char overflows.
12905         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12906         * elf/dl-open.c (dl_open_worker): Likewise.
12907
12908 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
12909
12910         * scripts/list-sources.sh: Scan PORTS for translations.
12911         * po/libc.pot: Regenerated.
12912
12913 2012-06-21  Andreas Jaeger  <aj@suse.de>
12914
12915         [BZ #12194]
12916         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
12917         warning.
12918         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
12919         * bits/byteswap-16.h (__bswap_16): Likewise.
12920         * bits/byteswap.h (__bswap_constant_16): Likewise.
12921
12922 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12923
12924         [BZ #14117]
12925         * sysdeps/i386/fpu_control.h: Removed.
12926         * sysdeps/x86_64/fpu_control.h: Moved to ...
12927         * sysdeps/x86/fpu_control.h: Here.
12928
12929         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
12930         (_FPU_SETCW): Likewise.
12931
12932 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
12933
12934         [BZ #14117]
12935         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
12936         * sysdeps/x86/fpu/bits/mathinline.h: This.
12937         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
12938
12939         [BZ #14050]
12940         [BZ #14117]
12941         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
12942         functions if __x86_64__ is defined.
12943
12944 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
12945
12946         * string/endian.h: Add !__ASSEMBLER__ condition for including
12947         conversion interfaces.
12948
12949 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
12950
12951         [BZ #14241]
12952         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
12953         of ABS(x) in calculating zero to negative powers other than odd
12954         integers.
12955         * math/libm-test.inc (pow_test): Add more tests.
12956
12957 2012-06-15  Andreas Jaeger  <aj@suse.de>
12958
12959         * manual/contrib.texi (Contributors): Update entry of Liubov
12960         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
12961         Machado Filho.
12962
12963 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
12964
12965         * string/string.h: Add __wur to GNU version of strerror_r.
12966
12967 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12968
12969         [BZ #14229]
12970         * string/Makefile (tests): Add tst-strtok_r.
12971         * string/tst-strtok_r.c: New file.
12972         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
12973         RAX_LP/RDX_LP on SAVE_PTR.
12974
12975 2012-06-14  Roland McGrath  <roland@hack.frob.com>
12976
12977         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
12978
12979 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
12980
12981         * libm_test.inc (csqrt_test): Allow more spurious underflow
12982         exceptions.
12983         (j0_test): Likewise.
12984         (j1_test): Likewise.
12985         (y0_test): Likewise.
12986         (y1_test): Likewise.
12987
12988 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
12989
12990         * po/Makefile (libc.pot): Use UTF-8 charset.
12991
12992 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
12993
12994         [BZ #14210]
12995         Suppress sign-conversion warning from FD_SET.
12996         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
12997         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
12998         not unsigned long int.
12999         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
13000
13001 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13002
13003         [BZ #14050]
13004         [BZ #14117]
13005         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
13006         __extern_always_inline instead of __extern_inline.
13007         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
13008         (__signbit): Likewise.
13009         (__signbitl): Support C++ namespace.
13010         (lrintf): New inline function.
13011         (lrint): Likewise.
13012         (llrintf): Likewise.
13013         (llrint): Likewise.
13014         (fmaxf): Likewise.
13015         (fmax): Likewise.
13016         (fminf): Likewise.
13017         (fmin): Likewise.
13018         (rint): Likewise.
13019         (rintf): Likewise.
13020         (ceil): Likewise.
13021         (ceilf): Likewise.
13022         (floor): Likewise.
13023         (floorf): Likewise.
13024         (nearbyint): Likewise.
13025         (nearbyintf): Likewise.
13026
13027 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
13028
13029         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
13030         non-default versions.
13031
13032 2012-06-11  Roland McGrath  <roland@hack.frob.com>
13033
13034         [BZ #14218]
13035         * manual/argp.texi (Argp): Reword argp_parse description slightly.
13036
13037 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
13038
13039         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
13040         (FE_UPWARD, FE_DOWNWARD): Don't define.
13041         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
13042         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13043
13044         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
13045         reading it.
13046         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13047         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13048
13049 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13050
13051         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
13052         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
13053         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
13054         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
13055
13056 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
13057
13058         [BZ #14117]
13059         * sysdeps/i386/fpu/bits/fenv.h: Removed.
13060         * sysdeps/i386/fpu/Implies: New file.
13061         * sysdeps/x86_64/fpu/Implies: Likewise.
13062         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
13063         * sysdeps/x86/fpu/bits/fenv.h: This.
13064
13065         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
13066         __SSE_MATH__.
13067
13068 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
13069
13070         [BZ #14134]
13071         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
13072         character 0xffff that matches the last element of the
13073         conversion table.
13074
13075 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13076
13077         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
13078         fmodl commit.
13079
13080 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13081
13082         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
13083         values higher than 25.6283.
13084
13085 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13086
13087         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
13088         subnormal exponent extraction and add some __builtin_expect.
13089         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
13090         Fix for subnormal mantissa calculation.
13091
13092 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
13093
13094         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
13095         cpu2 is -1 and errno is not ENOSYS.
13096
13097 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13098
13099         [BZ #14117]
13100         * sysdeps/i386/i486/bits/string.h: Renamed to ...
13101         * sysdeps/x86/bits/string.h: This.
13102         * sysdeps/x86_64/bits/string.h: Removed.
13103
13104         * sysdeps/i386/i486/bits/string.h: Define inline functions only
13105         if not compiling for x86-64, but compiling for >= i486.
13106
13107         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
13108         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
13109
13110         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
13111         New macro from Linux kernel 3.4.0.
13112         (FP_XSTATE_MAGIC2): Likewise.
13113         (FP_XSTATE_MAGIC2_SIZE): Likewise.
13114         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
13115         (struct _fpx_sw_bytes): New struct.
13116         (struct _xsave_hdr): Likewise.
13117         (struct _ymmh_state): Likewise.
13118         (struct _xstate): Likewise.
13119
13120         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
13121         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
13122         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
13123         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
13124         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
13125         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
13126
13127         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
13128         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
13129         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
13130         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
13131         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
13132         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
13133
13134 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13135
13136         [BZ #13743]
13137         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
13138         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
13139         (sysdep_headers): Include sys/platform/ppc.h.
13140         * sysdeps/powerpc/test-gettimebase.c: Test for
13141         __ppc_get_timebase() to catch future ISA opcode/insn changes.
13142         * manual/Makefile (appendices): Include platform.texi.
13143         * manual/contrib.texi (Contributors): Update @node pointers.
13144         * manual/maint.texi (Maintenance): Likewise.
13145         (Platform): New node.
13146         * manual/platform.texi: New file.  Document the new features.
13147
13148 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13149             Jakub Jelinek  <jakub@redhat.com>
13150
13151         [BZ #14188]
13152         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
13153         where __builtin_expect is unavailable.
13154
13155 2012-06-03  David S. Miller  <davem@davemloft.net>
13156
13157         * stdlib/longlong.h: Updated from GCC.
13158
13159 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
13160
13161         [BZ #14042]
13162         * sysdeps/powerpc/powerpc32/mcount.c: New file.
13163         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
13164         __mcount_internal.
13165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13166         (GLIBC_2.16): Likewise.
13167
13168 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13169
13170         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
13171
13172 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13173
13174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
13175         (default-abi): New variable.
13176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
13177         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
13178         variable.
13179         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
13180         Likewise.
13181         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
13182         Likewise.
13183         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
13184         Likewise.
13185
13186         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
13187         definition.  Document in comment.
13188
13189 2012-06-01  David S. Miller  <davem@davemloft.net>
13190
13191         * stdlib/longlong.h: Updated from GCC.
13192
13193 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13194
13195         [BZ #14117]
13196         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
13197         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
13198         sys/debugreg.h sys/io.h here.
13199         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
13200         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
13201         sys/io.h.
13202         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
13203         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
13204         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
13205         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
13206         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
13207         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
13208
13209         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
13210         Define only if __x86_64__ is defined.
13211
13212 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
13213
13214         [BZ #14048]
13215         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
13216         Use int64_t for variable i.
13217         * math/libm-test.inc (fmod_test): Add more tests.
13218
13219         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
13220         z computation is not scheduled after fetestexcept.
13221         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
13222         Use math_force_eval instead of asm to ensure calculation scheduled
13223         before exception test.
13224         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
13225         Ensure a1 + u.d computation is not scheduled after fetestexcept.
13226
13227 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
13228
13229         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
13230         computation is not scheduled after fetestexcept.
13231
13232 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
13233
13234         [BZ #14117]
13235         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
13236         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
13237
13238 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13239
13240         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
13241         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13242
13243 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13244
13245         [BZ #14117]
13246         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
13247         <bits/wordsize.h>.
13248         (__WCHAR_MIN): Support __WORDSIZE == 64.
13249         (__WCHAR_MAX): Likewise.
13250
13251         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
13252         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
13253
13254         [BZ #14183]
13255         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
13256         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
13257
13258         [BZ #14117]
13259         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
13260         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
13261
13262         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
13263         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
13264
13265         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
13266         Defined to 1 if __x86_64__ isn't defined.
13267         (_STAT_VER_LINUX_OLD): New.
13268         (st_atime): Remove duplicate.
13269         (st_mtime): Likewise.
13270         (st_ctime): Likewise.
13271
13272 2012-05-31  David S. Miller  <davem@davemloft.net>
13273
13274         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
13275         entries.
13276
13277 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
13278
13279         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
13280         gen-libm-test.pl.
13281
13282         [BZ #14132]
13283         * elf/dl-reloc.c: Include <_itoa.h>.
13284         (_dl_reloc_bad_type): Remove use of INTUSE.
13285         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
13286         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
13287         * stdio-common/psiginfo.c (psiginfo): Likewise.
13288         * stdio-common/psignal.c (psignal): Likewise.
13289         * string/strsignal.c (strsignal): Likewise.
13290         * include/signal.h (_sys_siglist): Declare hidden proto.
13291         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
13292         INTVARDEF with libc_hidden_data_def.
13293         * stdio-common/itoa-udigits.c: Likewise.
13294         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
13295         (_itoa_lower_digits_internal): Remove declaration.
13296         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
13297         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
13298         (_sys_sigabbrev_internal): Remove aliases.
13299         (_sys_siglist): Define hidden alias.
13300
13301 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
13302
13303         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13304         bits/sysctl.h.
13305
13306 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13307
13308         [BZ #14117]
13309         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
13310         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
13311
13312         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
13313         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
13314         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
13315         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
13316         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
13317         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
13318
13319         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
13320         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
13321         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
13322
13323         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
13324         with __addr.
13325         (insw): Likewise.
13326         (insl): Likewise.
13327         (outsb): Likewise.
13328         (outsw): Likewise.
13329         (outsl): Likewise.
13330
13331         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
13332         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
13333         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
13334
13335         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
13336         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
13337         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
13338         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
13339         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
13340         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
13341
13342         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
13343         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
13344
13345         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
13346         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
13347
13348         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
13349         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
13350         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
13351
13352         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
13353         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
13354         to ...
13355         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
13356
13357         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
13358         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
13359         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
13360
13361         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
13362         for x86-64.
13363         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
13364
13365 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * math/math.h (M_El): Use two more decimal places.
13368         (M_LOG2El): Likewise.
13369         (M_LOG10El): Likewise.
13370         (M_LN2l): Likewise.
13371         (M_LN10l): Likewise.
13372         (M_PIl): Likewise.
13373         (M_PI_2l): Likewise.
13374         (M_PI_4l): Likewise.
13375         (M_1_PIl): Likewise.
13376         (M_2_PIl): Likewise.
13377         (M_2_SQRTPIl): Likewise.
13378         (M_SQRT2l): Likewise.
13379         (M_SQRT1_2l): Likewise.
13380
13381 2012-05-31  David S. Miller  <davem@davemloft.net>
13382
13383         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
13384         values between float registers.
13385         * sysdeps/sparc/sparc64/memset.S: Likewise.
13386         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
13387
13388 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
13389
13390         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
13391         -D_FORTIFY_SOURCE=1.
13392         (CPPFLAGS-tst-longjmp_chk.c): Define.
13393         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
13394         (CPPFLAGS-tst-longjmp_chk2.c): Define.
13395         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
13396         CFLAGS-tst-wchar-h.c.
13397
13398 2012-05-31  Marek Polacek  <polacek@redhat.com>
13399
13400         [BZ #14132]
13401         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
13402         __endmntent_internal): Remove declaration.
13403         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
13404         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
13405         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
13406
13407 2012-05-30  David S. Miller  <davem@davemloft.net>
13408
13409         * sysdeps/sparc/sparc32/soft-fp/q_util.c
13410         (___Q_simulate_exceptions): Use real FP ops rather than writing
13411         into the %fsr.
13412         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
13413         Likewise.
13414
13415 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13416
13417         [BZ #14117]
13418         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
13419         * sysdeps/x86/bits/xtitypes.h: This.
13420
13421         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
13422         * sysdeps/x86/bits/wordsize.h: This.
13423
13424         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
13425         * sysdeps/x86/bits/huge_vall.h: This.
13426
13427         * sysdeps/i386/bits/select.h: Removed.
13428         * sysdeps/x86_64/bits/select.h: Renamed to ...
13429         * sysdeps/x86/bits/select.h: This.
13430
13431         * sysdeps/i386/bits/setjmp.h: Removed.
13432         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
13433         * sysdeps/x86/bits/setjmp.h: This.
13434
13435         * sysdeps/i386/bits/mathdef.h: Removed.
13436         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
13437         * sysdeps/x86/bits/mathdef.h: This.
13438
13439 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13440
13441         [BZ #14132]
13442         * include/sys/socket.h (__connect_internal)
13443         (__libc_sa_len_internal): Remove declaration.
13444         (__connect, __libc_sa_len): Declare hidden_proto.
13445         (SA_LEN): Remove use of INTUSE.
13446         * socket/connect.c: Add libc_hidden_def.
13447         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
13448         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
13449         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
13450         alias.
13451         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13452         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13453         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
13454         of adding _internal alias.
13455
13456 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13457
13458         [BZ #14117]
13459         * sysdeps/i386/bits/link.h: Removed.
13460         * sysdeps/i386/bits/linkmap.h: Likewise.
13461         * sysdeps/x86_64/bits/link.h: Renamed to ...
13462         * sysdeps/x86/bits/link.h: This.
13463         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
13464         * sysdeps/x86/bits/linkmap.h: This.
13465
13466         * sysdeps/i386/bits/endian.h: Removed.
13467         * sysdeps/x86_64/bits/endian.h: Renamed to ...
13468         * sysdeps/x86/bits/endian.h: This.
13469
13470         * sysdeps/i386/bits/byteswap.h: Removed.
13471         * sysdeps/i386/bits/byteswap-16.h: Likewise.
13472         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
13473         * sysdeps/x86/bits/byteswap.h: This.
13474         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
13475         * sysdeps/x86/bits/byteswap-16.h: This.
13476         * sysdeps/i386/Implies: Add x86.
13477         * sysdeps/x86_64/Implies: Likewise.
13478
13479 2012-05-30  David S. Miller  <davem@davemloft.net>
13480
13481         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
13482         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
13483         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
13484         (FP_TRAPPING_EXCEPTIONS): Define.
13485         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
13486         (FP_TRAPPING_EXCEPTIONS): Define.
13487         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
13488         subnormals only when inexact has been signalled or underflow
13489         exceptions are enabled.
13490         (_FP_PACK_CANONICAL): Likewise.
13491
13492 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13493
13494         [BZ #14183]
13495         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
13496         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
13497
13498 2012-05-30  Richard Henderson  <rth@twiddle.net>
13499
13500         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
13501         with #ifndef NOT_IN_libc.
13502
13503         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
13504         marked to avoid plt entry.
13505
13506 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13507
13508         [BZ #14112]
13509         * Makeconfig (default-abi): New macro.
13510         (abi-includes): Likewise.
13511         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
13512         $(abi-$(default-abi)-lib-soname) for soname if defined.
13513         ($(common-objpfx)gnu/lib-names.stmp): Generate from
13514         abi-variants.
13515         * Makefile (installed-stubs): Likewise.
13516         * include/stubs-biarch.h: Removed.
13517         * scripts/lib-names.awk: Only handle one library at a time.
13518         * scripts/soversions.awk: Remove WORDSIZE support.
13519         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
13520         entries.
13521         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
13522         Removed.
13523         (syscall-list-default-condition): Likewise.
13524         (syscall-list-default-condition): Likewise.
13525         (syscall-list-includes): Likewise.
13526         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
13527         syscall-list-* with abi-*.  Handle undefined abi-variants.
13528         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
13529         * sysdeps/unix/sysv/linux/i386/Implies: New file.
13530         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
13531         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
13532         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
13533         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
13534         Removed.
13535         (syscall-list-32-options): Likewise.
13536         (syscall-list-32-condition): Likewise.
13537         (syscall-list-64-options): Likewise.
13538         (syscall-list-64-condition): Likewise.
13539         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
13540         macro.
13541         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
13542         Renamed to ...
13543         (abi-*): This.
13544         (abi-64-ld-soname): New macro.
13545         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
13546         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
13547         Renamed to ...
13548         (abi-*): This.
13549         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
13550         * sysdeps/x86_64/x32/shlib-versions: Likewise.
13551
13552 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
13553
13554         * sysdeps/unix/sysv/linux/kernel-features.h
13555         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
13556         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
13557         include <kernel-features.h>.
13558         [!__NR_ftruncate64]: Remove conditional code.
13559         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13560         [__NR_ftruncate64]: Make code unconditional.
13561         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13562         * sysdeps/unix/sysv/linux/truncate64.c: Do not
13563         include <kernel-features.h>.
13564         [!__NR_ftruncate64]: Remove conditional code.
13565         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13566         [__NR_ftruncate64]: Make code unconditional.
13567         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
13569         include <kernel-features.h>.
13570         [!__NR_ftruncate64]: Remove conditional code.
13571         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13572         [__NR_ftruncate64]: Make code unconditional.
13573         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
13575         include <kernel-features.h>.
13576         [!__NR_ftruncate64]: Remove conditional code.
13577         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13578         [__NR_ftruncate64]: Make code unconditional.
13579         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
13580
13581         * configure.in (libc_cv_fpie): Weaken to a compile test using
13582         LIBC_TRY_CC_OPTION.
13583         * configure: Regenerated.
13584
13585 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13586
13587         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
13588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
13589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
13590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
13591         Refreshed.
13592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
13593         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
13594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
13595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
13596         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
13597         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
13598         Refreshed.
13599
13600 2012-05-27  David S. Miller  <davem@davemloft.net>
13601
13602         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
13603         (___Q_zero): New.
13604         (__Q_simulate_exceptions): Return void.  Change to simulate
13605         exceptions by writing into the %fsr.
13606         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
13607         (__Qp_handle_exceptions): Likewise.
13608         (numbers): Delete.
13609         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
13610         __Qp_handle_exceptions.
13611         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
13612         __Qp_handle_exceptions.
13613         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13614         as unused and give dummy FP_RND_NEAREST initializer.
13615         (FP_INHIBIT_RESULTS): Define.
13616         (___Q_simulate_exceptions): Update declaration.
13617         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
13618         formatting.
13619         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
13620         as unused and give dummy FP_RND_NEAREST initializer.
13621         (__Qp_handle_exceptions): Update declaration.
13622         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
13623         formatting.
13624
13625 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
13626
13627         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
13628         the temporary FPU control word.
13629         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
13630         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
13631         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
13632         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
13633         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13634         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
13635         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
13636         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
13637         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
13638         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13639         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
13640
13641 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13642
13643         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
13644         fields.
13645
13646 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
13647
13648         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
13649         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
13650         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
13651         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
13652         Likewise.
13653         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
13654         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
13655         Likewise.
13656
13657 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
13658
13659         * po/h.po: Update from translation team.
13660
13661 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
13662
13663         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
13664
13665         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
13666         handling of denormals.
13667         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13668         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
13669         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13670         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13671         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13672         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
13673         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
13674         Likewise.
13675
13676 2012-05-26  Marek Polacek  <polacek@redhat.com>
13677
13678         [BZ #14152]
13679         * math/libm-test.inc (fma_test): Don't always expect underflow
13680         exception.
13681
13682 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13683
13684         [BZ #12416]
13685         * elf/tst-execstack.c: Include stackinfo.h.
13686         (do_test): Adjust test case to ensure that pthread_getattr_np
13687         behaviour remains the same after marking stack executable.
13688
13689 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13690
13691         * sysdeps/unix/sysv/linux/kernel-features.h
13692         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
13693         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
13694         kernel-features.h.
13695         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13696         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13697         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
13698         kernel-features.h.
13699         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
13700         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
13701
13702 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13703
13704         * configure.in: Define the default includes to being none.
13705         * configure: Regenerated.
13706
13707 2012-05-25  Roland McGrath  <roland@hack.frob.com>
13708
13709         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
13710         * sysdeps/x86_64/setjmp.S: Likewise.
13711         * sysdeps/i386/bsd-setjmp.S: Likewise.
13712         * sysdeps/i386/bsd-_setjmp.S: Likewise.
13713         * sysdeps/i386/setjmp.S: Likewise.
13714         * sysdeps/i386/__longjmp.S: Likewise.
13715         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13716         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
13717
13718         * include/stap-probe.h: New file.
13719         * configure.in: Handle --enable-systemtap.
13720         * configure: Regenerated.
13721         * config.h.in (USE_STAP_PROBE): New #undef.
13722         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
13723         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
13724         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
13725
13726 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
13727
13728         [BZ #13717]
13729         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
13730         to 2.4.0 where earlier.
13731         * sysdeps/unix/sysv/linux/configure: Regenerated.
13732         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
13733         <kernel-features.h>.
13734         [__ASSUME_32BITUIDS]: Make code unconditional.
13735         [!__ASSUME_32BITUIDS]: Remove conditional code.
13736         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
13737         <kernel-features.h>.
13738         [__ASSUME_32BITUIDS]: Make code unconditional.
13739         [!__ASSUME_32BITUIDS]: Remove conditional code.
13740         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
13741         [__ASSUME_32BITUIDS]: Make code unconditional.
13742         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
13743         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
13744         <kernel-features.h>.
13745         [__ASSUME_32BITUIDS]: Make code unconditional.
13746         [!__ASSUME_32BITUIDS]: Remove conditional code.
13747         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
13748         <kernel-features.h>.
13749         [__ASSUME_32BITUIDS]: Make code unconditional.
13750         [!__ASSUME_32BITUIDS]: Remove conditional code.
13751         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
13752         <kernel-features.h>.
13753         [__ASSUME_32BITUIDS]: Make code unconditional.
13754         [!__ASSUME_32BITUIDS]: Remove conditional code.
13755         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
13756         <kernel-features.h>.
13757         [__ASSUME_32BITUIDS]: Make code unconditional.
13758         [!__ASSUME_32BITUIDS]: Remove conditional code.
13759         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
13760         <kernel-features.h>.
13761         [__ASSUME_32BITUIDS]: Make code unconditional.
13762         [!__ASSUME_32BITUIDS]: Remove conditional code.
13763         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
13764         <kernel-features.h>.
13765         [__ASSUME_32BITUIDS]: Make code unconditional.
13766         [!__ASSUME_32BITUIDS]: Remove conditional code.
13767         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
13768         <kernel-features.h>.
13769         [__ASSUME_32BITUIDS]: Make code unconditional.
13770         [!__ASSUME_32BITUIDS]: Remove conditional code.
13771         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
13772         <kernel-features.h>.
13773         [__ASSUME_32BITUIDS]: Make code unconditional.
13774         [!__ASSUME_32BITUIDS]: Remove conditional code.
13775         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
13776         <kernel-features.h>.
13777         [__ASSUME_32BITUIDS]: Make code unconditional.
13778         [!__ASSUME_32BITUIDS]: Remove conditional code.
13779         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
13780         <kernel-features.h>.
13781         [__ASSUME_32BITUIDS]: Make code unconditional.
13782         [!__ASSUME_32BITUIDS]: Remove conditional code.
13783         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
13784         <kernel-features.h>.
13785         [__NR_setresgid] (__setresgid): Do not declare.
13786         [__ASSUME_32BITUIDS]: Make code unconditional.
13787         [!__ASSUME_32BITUIDS]: Remove conditional code.
13788         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
13789         <kernel-features.h>.
13790         [__NR_setresuid] (__setresuid): Do not declare.
13791         [__ASSUME_32BITUIDS]: Make code unconditional.
13792         [!__ASSUME_32BITUIDS]: Remove conditional code.
13793         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
13794         <kernel-features.h>.
13795         [__ASSUME_32BITUIDS]: Make code unconditional.
13796         [!__ASSUME_32BITUIDS]: Remove conditional code.
13797         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
13798         <kernel-features.h>.
13799         [__ASSUME_32BITUIDS]: Make code unconditional.
13800         [!__ASSUME_32BITUIDS]: Remove conditional code.
13801         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
13802         <kernel-features.h>.
13803         [__ASSUME_32BITUIDS]: Make code unconditional.
13804         [!__ASSUME_32BITUIDS]: Remove conditional code.
13805         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
13806         <kernel-features.h>.
13807         [__ASSUME_32BITUIDS]: Make code unconditional.
13808         [!__ASSUME_32BITUIDS]: Remove conditional code.
13809         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
13810         <kernel-features.h>.
13811         [__ASSUME_32BITUIDS]: Make code unconditional.
13812         [!__ASSUME_32BITUIDS]: Remove conditional code.
13813         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
13814         <kernel-features.h>.
13815         [__ASSUME_32BITUIDS]: Make code unconditional.
13816         [!__ASSUME_32BITUIDS]: Remove conditional code.
13817         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
13818         <kernel-features.h>.
13819         [__ASSUME_32BITUIDS]: Make code unconditional.
13820         [!__ASSUME_32BITUIDS]: Remove conditional code.
13821         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
13822         <kernel-features.h>.
13823         [__ASSUME_32BITUIDS]: Make code unconditional.
13824         [!__ASSUME_32BITUIDS]: Remove conditional code.
13825         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
13826         <kernel-features.h>.
13827         [__ASSUME_32BITUIDS]: Make code unconditional.
13828         [!__ASSUME_32BITUIDS]: Remove conditional code.
13829         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
13830         <kernel-features.h>.
13831         [__ASSUME_32BITUIDS]: Make code unconditional.
13832         [!__ASSUME_32BITUIDS]: Remove conditional code.
13833         * sysdeps/unix/sysv/linux/kernel-features.h
13834         (__ASSUME_SETRESUID_SYSCALL): Remove.
13835         (__ASSUME_SETRESGID_SYSCALL): Likewise.
13836         (__ASSUME_32BITUIDS): Likewise.
13837         (__ASSUME_LDT_WORKS): Likewise.
13838         (__ASSUME_O_DIRECTORY): Likewise.
13839         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
13840         architecture but not kernel version.
13841         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
13842         (__ASSUME_MMAP2_SYSCALL): Likewise.
13843         (__ASSUME_STAT64_SYSCALL): Likewise.
13844         (__ASSUME_IPC64): Likewise.
13845         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
13846         <kernel-features.h>.
13847         [__ASSUME_32BITUIDS]: Make code unconditional.
13848         [!__ASSUME_32BITUIDS]: Remove conditional code.
13849         * sysdeps/unix/sysv/linux/opendir.c: Do not include
13850         <kernel-features.h>.
13851         [__ASSUME_O_DIRECTORY]: Make code unconditional.
13852         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
13853         132096]: Remove conditional code.
13854         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
13855         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
13856         <kernel-features.h>.
13857         [__ASSUME_32BITUIDS]: Make code unconditional.
13858         [!__ASSUME_32BITUIDS]: Remove conditional code.
13859         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
13860         <kernel-features.h>.
13861         [__ASSUME_32BITUIDS]: Make code unconditional.
13862         [!__ASSUME_32BITUIDS]: Remove conditional code.
13863         * sysdeps/unix/sysv/linux/setegid.c: Do not include
13864         <kernel-features.h>.
13865         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
13866         unconditional.
13867         (__setresgid): Do not declare.
13868         [__ASSUME_32BITUIDS]: Make code unconditional.
13869         [!__ASSUME_32BITUIDS]: Remove conditional code.
13870         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
13871         <kernel-features.h>.
13872         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
13873         unconditional.
13874         (__setresuid): Do not declare.
13875         [__ASSUME_32BITUIDS]: Make code unconditional.
13876         [!__ASSUME_32BITUIDS]: Remove conditional code.
13877         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
13878         <kernel-features.h>.
13879         [__ASSUME_32BITUIDS]: Make code unconditional.
13880         [!__ASSUME_32BITUIDS]: Remove conditional code.
13881         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
13882         <kernel-features.h>.
13883         [__ASSUME_32BITUIDS]: Make code unconditional.
13884         [!__ASSUME_32BITUIDS]: Remove conditional code.
13885
13886 2012-05-25  Richard Henderson  <rth@twiddle.net>
13887
13888         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
13889         dl_hwcap to ifunc resolver.
13890         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
13891         elf_ifunc_invoke.
13892         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
13893         dl_hwcap to ifunc resolver.
13894         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
13895
13896 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13897
13898         [BZ #14153]
13899         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
13900         for |x| <= 2**-26, not 2**-57.
13901         * math/libm-test.inc (acos_test): Do not allow spurious underflow
13902         exception.
13903
13904 2012-05-24  Jeff Law  <law@redhat.com>
13905
13906         * stdio-common/Makefile (tests): Add bug25.
13907         * stdio-common/bug25.c: New test.
13908
13909 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13910
13911         [BZ #13576]
13912         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
13913         multiple of MALLOC_ALIGNMENT in size.
13914         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
13915
13916 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13917
13918         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
13919         Require >= 256.
13920         (FILENAME_MAX): Use macro-int-constant.
13921         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
13922         (_IOFBF): Use macro-int-constant.
13923         (_IOLBF): Likewise.
13924         (_IONBF): Likewise.
13925         (SEEK_CUR): Likewise.
13926         (SEEK_END): Likewise.
13927         (SEEK_SET): Likewise.
13928         (TMP_MAX): Likewise.
13929         (EOF): Use macro-int-constant.  Require < 0.
13930         (NULL): Use macro-constant.  Require == 0.
13931         (stdin): Require type to be FILE *.
13932         (stdout): Likewise.
13933         (stderr): Likewise.
13934         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
13935         macro-int-constant.
13936         (EXIT_SUCCESS): Likewise.
13937         (NULL): Use macro-constant.  Require == 0.
13938         (RAND_MAX): Use macro-int-constant.
13939         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
13940         [C99-based standards] (strtof): Require function.
13941         [C99-based standards] (strtold): Likewise.
13942         [C99-based standards] (strtoll): Likewise.
13943         [C99-based standards] (strtoull): Likewise.
13944         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
13945         [ISO || ISO99 || ISO11] (limits.h): Likewise.
13946         [ISO || ISO99 || ISO11] (math.h): Likewise.
13947         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
13948         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
13949         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13950
13951 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
13952
13953         [BZ #14132]
13954         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
13955         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
13956         * intl/dgettext.c (DCGETTEXT): Likewise.
13957         * intl/gettext.c (DCGETTEXT): Likewise.
13958         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
13959         * posix/regex_internal.h (gettext): Likewise.
13960         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
13961         Remove declaration.
13962         * include/argz.h (__argz_count_internal)
13963         (__argz_stringify_internal): Remove declaration.
13964         (__argz_count, __argz_stringify): Declare hidden proto.
13965         * intl/dcgettext.c: Remove use of INTDEF.
13966         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
13967         * string/argz-stringify.c: Likewise.
13968         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13969         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13970         Declare hidden proto.
13971         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
13972         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
13973         Declare hidden proto.
13974         * include/stdio.h (__asprintf_internal): Don't declare.
13975         (__asprintf): Don't define as macro.  Declare hidden proto.
13976         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
13977         (__fsetlocking): Declare hidden proto.
13978         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
13979         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
13980         hidden proto.
13981         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
13982         (_IO_setlinebuf): Remove use of INTUSE.
13983         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
13984         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
13985         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
13986         Remove declaration.
13987         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
13988         (_IO_do_flush): Remove use of INTUSE.
13989         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
13990         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
13991         (_IO_adjust_column, _IO_least_wmarker)
13992         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
13993         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
13994         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
13995         (_IO_default_doallocate, _IO_wdefault_doallocate)
13996         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
13997         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
13998         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
13999         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
14000         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
14001         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
14002         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
14003         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
14004         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
14005         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
14006         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
14007         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
14008         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
14009         proto.
14010         (_IO_flush_all_internal, _IO_adjust_column_internal)
14011         (_IO_default_uflow_internal, _IO_default_finish_internal)
14012         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
14013         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
14014         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
14015         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
14016         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
14017         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
14018         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
14019         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
14020         (_IO_file_close_internal, _IO_file_close_it_internal)
14021         (_IO_file_underflow_internal, _IO_file_overflow_internal)
14022         (_IO_file_init_internal, _IO_file_attach_internal)
14023         (_IO_file_fopen_internal, _IO_file_read_internal)
14024         (_IO_file_sync_internal, _IO_file_seek_internal)
14025         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
14026         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
14027         (_IO_str_underflow_internal, _IO_str_overflow_internal)
14028         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
14029         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
14030         (_IO_list_all_internal, _IO_link_in_internal)
14031         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
14032         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
14033         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
14034         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
14035         (_IO_do_write_internal, _IO_padn_internal)
14036         (_IO_getline_info_internal, _IO_getline_internal)
14037         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
14038         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
14039         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
14040         (_IO_vfscanf_internal, _IO_vfprintf_internal)
14041         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
14042         (_IO_init_internal, _IO_un_link_internal): Don't declare.
14043         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
14044         with libc_hidden_ver, remove use of INTUSE.
14045         * libio/genops.c: Likewise.
14046         * libio/freopen.c: Likewise.
14047         * libio/freopen64.c: Likewise.
14048         * libio/iofclose.c: Likewise.
14049         * libio/iofdopen.c: Likewise.
14050         * libio/iofflush.c: Likewise.
14051         * libio/iofflush_u.c: Likewise.
14052         * libio/iofgets.c: Likewise.
14053         * libio/iofgets_u.c: Likewise.
14054         * libio/iofopen.c: Likewise.
14055         * libio/iofopncook.c: Likewise.
14056         * libio/iofread.c: Likewise.
14057         * libio/iofread_u.c: Likewise.
14058         * libio/ioftell.c: Likewise.
14059         * libio/iofwrite.c: Likewise.
14060         * libio/iogetline.c: Likewise.
14061         * libio/iogets.c: Likewise.
14062         * libio/iogetwline.c: Likewise.
14063         * libio/iopadn.c: Likewise.
14064         * libio/iopopen.c: Likewise.
14065         * libio/ioseekoff.c: Likewise.
14066         * libio/ioseekpos.c: Likewise.
14067         * libio/iosetbuffer.c: Likewise.
14068         * libio/iosetvbuf.c: Likewise.
14069         * libio/ioungetc.c: Likewise.
14070         * libio/ioungetwc.c: Likewise.
14071         * libio/iovdprintf.c: Likewise.
14072         * libio/iovsprintf.c: Likewise.
14073         * libio/iovsscanf.c: Likewise.
14074         * libio/memstream.c: Likewise.
14075         * libio/obprintf.c: Likewise.
14076         * libio/oldfileops.c: Likewise.
14077         * libio/oldiofclose.c: Likewise.
14078         * libio/oldiofdopen.c: Likewise.
14079         * libio/oldiofopen.c: Likewise.
14080         * libio/oldiopopen.c: Likewise.
14081         * libio/oldstdfiles.c: Likewise.
14082         * libio/putc.c: Likewise.
14083         * libio/setbuf.c: Likewise.
14084         * libio/setlinebuf.c: Likewise.
14085         * libio/stdfiles.c: Likewise.
14086         * libio/strops.c: Likewise.
14087         * libio/vasprintf.c: Likewise.
14088         * libio/vscanf.c: Likewise.
14089         * libio/vsnprintf.c: Likewise.
14090         * libio/vswprintf.c: Likewise.
14091         * libio/wfiledoalloc.c: Likewise.
14092         * libio/wfileops.c: Likewise.
14093         * libio/wgenops.c: Likewise.
14094         * libio/wmemstream.c: Likewise.
14095         * libio/wstrops.c: Likewise.
14096         * libio/__fpurge.c: Likewise.
14097         * libio/__fsetlocking.c: Likewise.
14098         * assert/assert.c: Likewise.
14099         * debug/fgets_chk.c: Likewise.
14100         * debug/fgets_u_chk.c: Likewise.
14101         * debug/fread_chk.c: Likewise.
14102         * debug/fread_u_chk.c: Likewise.
14103         * debug/gets_chk.c: Likewise.
14104         * debug/obprintf_chk.c: Likewise.
14105         * debug/vasprintf_chk.c: Likewise.
14106         * debug/vdprintf_chk.c: Likewise.
14107         * debug/vsnprintf_chk.c: Likewise.
14108         * debug/vsprintf_chk.c: Likewise.
14109         * malloc/mtrace.c: Likewise.
14110         * misc/error.c: Likewise.
14111         * misc/syslog.c: Likewise.
14112         * stdio-common/asprintf.c: Likewise.
14113         * stdio-common/fxprintf.c: Likewise.
14114         * stdio-common/getw.c: Likewise.
14115         * stdio-common/isoc99_fscanf.c: Likewise.
14116         * stdio-common/isoc99_scanf.c: Likewise.
14117         * stdio-common/isoc99_vfscanf.c: Likewise.
14118         * stdio-common/isoc99_vscanf.c: Likewise.
14119         * stdio-common/isoc99_vsscanf.c: Likewise.
14120         * stdio-common/printf-prs.c: Likewise.
14121         * stdio-common/printf_fp.c: Likewise.
14122         * stdio-common/printf_fphex.c: Likewise.
14123         * stdio-common/printf_size.c: Likewise.
14124         * stdio-common/putw.c: Likewise.
14125         * stdio-common/scanf.c: Likewise.
14126         * stdio-common/sprintf.c: Likewise.
14127         * stdio-common/tmpfile.c: Likewise.
14128         * stdio-common/vfprintf.c: Likewise.
14129         * stdio-common/vfscanf.c: Likewise.
14130         * stdlib/strfmon_l.c: Likewise.
14131         * sunrpc/openchild.c: Likewise.
14132         * sunrpc/xdr_stdio.c: Likewise.
14133         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
14134         * sysdeps/mach/hurd/tmpfile.c: Likewise.
14135
14136 2012-05-24  Roland McGrath  <roland@hack.frob.com>
14137
14138         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14139
14140         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
14141         in the third column, to generate for the shared library an IFUNC
14142         that uses _dl_vdso_vsym.
14143         * Makerules (COMPILE.c, compile-stdin.c): New variables.
14144         * Makeconfig (object-suffixes-noshared): New variable.
14145
14146         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
14147         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
14148         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
14149         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
14150
14151         [BZ #14132]
14152         * include/sys/time.h (__gettimeofday): Remove macro.
14153         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
14154         * time/gettimeofday.c (__gettimeofday): Remove #undef.
14155         Remove INTDEF.
14156         (__gettimeofday): Add libc_hidden_def.
14157         (gettimeofday): Add libc_hidden_weak.
14158         * sysdeps/mach/gettimeofday.c: Likewise.
14159         * sysdeps/posix/gettimeofday.c: Likewise.
14160         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
14161         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
14162         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
14163         (__gettimeofday_internal): Remove strong_alias.
14164         (__gettimeofday): Add libc_hidden_def.
14165         (gettimeofday): Add libc_hidden_weak.
14166         * sysdeps/unix/syscalls.list (gettimeofday):
14167         Remove __gettimeofday_internal alias.
14168
14169 2012-05-24  Daniel Jacobowitz  <drow@false.org>
14170             H.J. Lu  <hongjiu.lu@intel.com>
14171
14172         [BZ #12495]
14173         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
14174         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
14175         (largebin_index_32_big): New.
14176         (largebin_index): Use it for 16-byte alignment.
14177         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
14178         correction with front_misalign.
14179
14180 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14181
14182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
14183         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
14184         Likewise.
14185         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
14186         Likewise.
14187         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
14188         Likewise.
14189         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
14190         Likewise.
14191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
14192         Likewise.
14193         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
14194         Likewise.
14195         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
14196         Likewise.
14197         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14198         Likewise.
14199         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
14200         Likewise.
14201         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
14202         Likewise.
14203         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
14204         Likewise.
14205         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
14206         Likewise.
14207
14208         * scripts/data/c++-types-x32-linux-gnu.data: New file.
14209         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
14210
14211 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
14212
14213         [BZ #10846]
14214         [BZ #14036]
14215         * math/libm-test.inc (exp_test): Add test from bug 14036.
14216         (pow_test): Add test from bug 10846.
14217
14218         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
14219         and other flags.
14220         (special_function): Do not include flags in test name.
14221         (parse_args): Likewise.
14222         * sysdeps/i386/fpu/libm-test-ulps: Update.
14223         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14224         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14225         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14227
14228         * math/gen-libm-test.pl (%beautify): Add entries for underflow
14229         exceptions.
14230         * math/libm-test.inc ("Philosophy"): Update comment about
14231         exception testing.
14232         (UNDERFLOW_EXCEPTION): New macro.
14233         (UNDERFLOW_EXCEPTION_OK): Likewise.
14234         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
14235         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
14236         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
14237         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
14238         (INVALID_EXCEPTION_OK): Update value.
14239         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
14240         (OVERFLOW_EXCEPTION_OK): Likewise.
14241         (IGNORE_ZERO_INF_SIGN): Likewise.
14242         (test_exceptions): Handle underflow exceptions.
14243         (acos_test): Update for underflow exception expectations.
14244         (cexp_test): Likewise.
14245         (clog_test): Likewise.
14246         (clog10_test): Likewise.
14247         (csqrt_test): Likewise.
14248         (ctan_test): Likewise.
14249         (ctanh_test): Likewise.
14250         (exp_test): Likewise.
14251         (exp10_test): Likewise.
14252         (exp2_test): Likewise.
14253         (expm1_test): Likewise.
14254         (fma_test): Likewise.
14255         (j0_test): Likewise.
14256         (jn_test): Likewise.
14257         (nexttoward_test): Likewise.
14258         (pow_test): Likewise.
14259         (scalbn_test): Likewise.
14260         (scalbln_test): Likewise.
14261         (tan_test): Likewise.
14262         (y1_test): Likewise.
14263         * sysdeps/i386/fpu/libm-test-ulps: Update.
14264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14265
14266 2012-05-23  David S. Miller  <davem@davemloft.net>
14267
14268         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14269         (__libc_sigaction): Remove unused local variables.
14270
14271 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14272
14273         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
14274
14275 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14276
14277         mktime: avoid signed integer overflow
14278         * time/mktime.c (__mktime_internal): Do not mishandle the case
14279         where diff == INT_MIN.
14280
14281         mktime: simplify computation of average
14282         * time/mktime.c (ranged_convert): Use new time_t_avg function
14283         instead of rolling our own (probably-slower) code.
14284
14285         mktime: do not assume signed right shift propagates sign bit
14286         * time/mktime.c (isdst_differ): New static function.
14287         (__mktime_internal): No need to normalize tm_isdst now.
14288         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
14289         tm_isdst values.
14290
14291         mktime: merge another wrapv change from gnulib
14292         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
14293         from some compilers.
14294
14295         mktime: remove incorrect attempt at unusual arithmetics
14296         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
14297         The code didn't really work on such machines anyway.
14298         (TYPE_MINIMUM): Assume two's complement.
14299         (twos_complement_arithmetic): Verify that long_int and time_t
14300         are two's complement (or unsigned, in the latter case).
14301
14302         mktime: check signed shifts on long_int and time_t, too
14303         * time/mktime.c (SHR): Check that shifts work as desired
14304         on the types long_int and time_t too, as SHR is used on
14305         such types.
14306
14307         mktime: do not assume 'long' is wide enough
14308         * time/mktime.c (verify): Move decl up.
14309         (long_int): New type.
14310         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
14311         to remove assumption in the code that 'long' is wide enough to
14312         store year values.  This assumption is not true on x32 and on
14313         some non-glibc platforms.
14314
14315         mktime: merge wrapv change from gnulib
14316         * time/mktime.c (WRAPV): New macro.
14317         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
14318         (guess_time_tm, __mktime_internal): Do not assume that signed
14319         integer overflow wraps around; modern compilers generate code
14320         where this assumption is no longer valid.
14321
14322 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14323
14324         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14325         Replace "jmp L(pseudo_end)" with "ret".
14326         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14327         Likewise.
14328
14329 2012-05-23  Andreas Jaeger  <aj@suse.de>
14330
14331         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
14332         * sysdeps/unix/sysv/linux/poll.c: Remove file.
14333
14334 2012-05-23  Andreas Jaeger  <aj@suse.de>
14335             Maximilian Attems  <max@stro.at>
14336
14337         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
14338         New macros.
14339
14340 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14341
14342         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
14343         code so that pseudo_end is just ret and the stack pointer is
14344         correct also for static library in error case.
14345
14346 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
14347
14348         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
14349         move to syscalls.list.
14350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
14351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
14352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
14353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
14354
14355         * manual/install.texi (Running make install): Do not mention Linux
14356         kernel version for which pt_chown is not needed.
14357         (Linux): Do not mention problems with nscd with 2.0 kernels.
14358         * INSTALL: Regenerated.
14359
14360 2012-05-23  Andreas Jaeger  <aj@suse.de>
14361
14362         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
14363         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
14364         macro.
14365         * sysdeps/unix/sysv/linux/s390/bits/mman.h
14366         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14367         * sysdeps/unix/sysv/linux/sh/bits/mman.h
14368         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14369         * sysdeps/unix/sysv/linux/i386/bits/mman.h
14370         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14371         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
14372         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14373         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
14374         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
14375         * sysdeps/unix/sysv/linux/bits/in.h
14376         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
14377
14378 2012-05-22  Roland McGrath  <roland@hack.frob.com>
14379
14380         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
14381         (PREPARE_VERSION): Just use assert instead, it will be elided
14382         under [NDEBUG] anyway.
14383
14384 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14385
14386         * sysdeps/unix/sysv/linux/Makefile: Include
14387         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
14388         (sysdep_routines): Remove sysctl.
14389         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
14390         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
14391         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
14392         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
14393         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
14394
14395 2012-05-22  Andreas Jaeger  <aj@suse.de>
14396
14397         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
14398         that pseudo_end is just ret and the stack pointer is correct also
14399         for static library in error case.
14400
14401 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
14402
14403         [BZ #14122]
14404         * nss/nsswitch.c (defconfig_entries): New variable.
14405         (__nss_database_lookup): Don't leak defconfig entries.
14406         (nss_parse_service_list): Don't leak on error paths.
14407         (free_database_entries): New function.
14408         (free_defconfig): New function.
14409         (free_mem): Move common code to free_database_entries.
14410
14411 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14412
14413         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
14414         Add arch_prctl.
14415         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
14416
14417         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
14418         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
14419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
14420         New macro.
14421         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
14422         (INTERNAL_SYSCALL_TYPES): Likewise.
14423         (LOAD_ARGS_TYPES_[1-6]): Likewise.
14424         (LOAD_REGS_TYPES_[1-6]): Likewise.
14425         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
14426         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
14427
14428 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14429
14430         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
14431         copysignl for GLIBC_2_0.
14432         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
14433         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
14434         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
14435         logbl for GLIBC_2_0.
14436         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
14437         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
14438
14439 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14440
14441         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
14442         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
14443
14444         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
14445         Use "neg %eax".
14446
14447         * time/mktime.c: Update copyright years.
14448
14449 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         mktime: merge comment-quoting-style change from gnulib
14452         * time/mktime.c: Quote 'like this' in comments.
14453         The GNU coding standards suggest that we no longer quote `like this',
14454         as "`" and "'" are typically rendered asymmetrically nowadays.
14455         The typical gnulib style is to quote 'like this' when quoting
14456         code, and "like this" when quoting English.
14457
14458         * time/mktime.c (compile-command): Add "-I.".
14459
14460         mktime: merge mktime-internal.h change from gnulib
14461         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
14462
14463         mktime: merge time_r change from gnulib
14464         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
14465
14466         mktime: merge DEBUG change from gnulib
14467         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
14468         case system <time.h> has a #define.
14469
14470         mktime: merge <sys/types.h> change from gnulib
14471         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
14472         since <time.t> is now guaranteed to define time_t.
14473
14474         mktime: merge HAVE_CONFIG_H change from gnulib
14475         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
14476
14477 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14478
14479         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14480         Use "neg %eax".
14481
14482         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
14483         __rlim_t cast.
14484         (struct rusage): Use anonymous union to pad each field to
14485         __syscall_slong_t.
14486
14487 2012-05-21  David S. Miller  <davem@davemloft.net>
14488
14489         * Makefules (o-iterator): Remove .s cases.
14490         (compile-command.s): Delete.
14491         (COMPILE.s): Delete.
14492         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
14493
14494 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
14495
14496         * configure.in (libc_cv_predef_stack_protector): Only consider
14497         "foobar" and "__stack_chk_fail" lines in libc_undefs.
14498         * configure: Regenerated.
14499
14500 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14501
14502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
14503         New macro.  Use R*LP on int and pointer.
14504         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
14505         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
14506         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
14507         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
14508
14509         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
14510         [__WORDSIZE_TIME64_COMPAT32] instead of
14511         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
14512         (struct utmp): Likewise.
14513         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
14514         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
14515         Renamed to ...
14516         (__WORDSIZE_TIME64_COMPAT32): This.
14517         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
14518         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
14519         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
14520         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
14521         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
14522         (__WORDSIZE_TIME64_COMPAT32): New macro.
14523
14524 2012-05-21  Andreas Jaeger  <aj@suse.de>
14525
14526         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
14527         only if [SHARED]. Add prototype for __wcschr_ia32.
14528
14529 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14530
14531         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
14532         of %rbp unmolested in the jmp_buf while mangling the low bits.
14533         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
14534         unmolested high bits of %rbp while demangling the low bits.
14535         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
14536
14537 2012-05-21  Andreas Jaeger  <aj@suse.de>
14538
14539         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
14540         * sunrpc/svc_simple.c: Use it for registerrpc.
14541         * sunrpc/xcrypt.c: Use it for passwd2des.
14542
14543         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
14544
14545 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14546
14547         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
14548         Don't define if [__SYSCALL_WORDSIZE != 32].
14549         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
14550         New macro.
14551
14552 2012-05-21  Bruno Haible  <bruno@clisp.org>
14553             Andreas Jaeger  <aj@suse.de>
14554
14555         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
14556         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
14557         inptr and inend for must_buffer_ch.
14558         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
14559         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
14560         * stdio-common/Makefile (tests): Remove bug15.
14561         (bug15-ENV): Remove macro.
14562         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
14563         anymore.
14564
14565 2012-05-19  Andreas Jaeger  <aj@suse.de>
14566             Roland McGrath  <roland@hack.frob.com>
14567
14568         * manual/contrib.texi: Completely rewritten. It contains now an
14569         alphabetical list of contributors and their contributions.
14570
14571 2012-05-21  Richard Henderson  <rth@twiddle.net>
14572
14573         * misc/getauxval.c (__getauxval): Use unsigned long int.
14574         * misc/sys/auxv.h: Include <sys/cdefs.h>.
14575         (getauxval): Use unsigned long int.
14576
14577 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14578
14579         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
14580
14581 2012-05-21  Roland McGrath  <roland@hack.frob.com>
14582
14583         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
14584         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
14585         __alignof__ (long double).
14586
14587 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14588
14589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14590
14591 2012-05-20  Richard Henderson  <rth@twiddle.net>
14592
14593         * misc/getauxval.c: New file.
14594         * misc/sys/auxv.h: New file.
14595         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
14596         (routines): Add getauxval.
14597         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
14598         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
14599         * elf/dl-sysdep.c (_dl_auxv): Remove.
14600         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
14601         * elf/dl-support.c (_dl_auxv): New variable.
14602         (_dl_aux_init): Initialize it.
14603         * manual/startup.texi (Auxiliary Vector): New node.
14604         * sysdeps/generic/bits/hwcap.h: New file.
14605         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
14606         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
14607         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
14608         * sysdeps/sparc/sysdep.h: ... here.  Include it.
14609         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
14610         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
14611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14612         Update.
14613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
14614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
14615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
14616         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
14617         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14618         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
14619         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
14620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
14621
14622 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14623
14624         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14625
14626 2012-05-19  David S. Miller  <davem@davemloft.net>
14627
14628         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14629
14630 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14631
14632         [BZ #14123]
14633         * math/s_ccosh.c: Include <float.h>
14634         (__ccosh): Avoid internal overflow calculating sinh and cosh
14635         values before multiplying by sin and cos values.
14636         * math/s_ccoshf.c: Likewise.
14637         * math/s_ccoshl.c: Likewise.
14638         * math/s_csin.c: Likewise.
14639         * math/s_csinf.c: Likewise.
14640         * math/s_csinl.c: Likewise.
14641         * math/s_csinh.c: Likewise.
14642         * math/s_csinhf.c: Likewise.
14643         * math/s_csinhl.c: Likewise.
14644         * math/libm-test.inc (ccos_test): Add more tests.
14645         (ccosh_test): Likewise.
14646         (csin_test): Likewise.
14647         (csinh_test): Likewise.
14648         * sysdeps/i386/fpu/libm-test-ulps: Update.
14649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14650
14651 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14652
14653         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
14654         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
14655
14656         * sysdeps/x86_64/x32/_itoa.h: Add comment.
14657
14658 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
14659
14660         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
14661         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
14662         * sysdeps/powerpc/soft-fp/Versions: Likewise.
14663         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
14664         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
14665         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
14666         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
14667         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
14668         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
14669         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
14670         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
14671         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
14672         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
14673         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
14674         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
14675         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
14676         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
14677         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
14678         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
14679         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
14680         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
14681         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
14682         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
14683         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
14684         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
14685         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
14686         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
14687         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
14688         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
14689         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
14690         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
14691
14692 2012-05-18  Andreas Jaeger  <aj@suse.de>
14693
14694         * csu/.gitignore: Delete.
14695
14696 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14697
14698         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
14699         (timex): Use __syscall_slong_t.
14700
14701 2012-05-18  Andreas Jaeger  <aj@suse.de>
14702             Carlos O'Donell  <carlos_odonell@mentor.com>
14703
14704         * manual/install.texi (Configuring and compiling): Update
14705         description about files modified in the source directory.
14706         * INSTALL: Regenerated.
14707
14708 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14709
14710         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
14711         value.  Use "or" to set return value to -1.
14712         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
14713         negate return value.
14714
14715 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14716
14717         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
14718         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
14719         failure if the compiler has Graphite support disabled.
14720         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
14721         Likewise.
14722         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
14723         CFLAGS-memmove.c): Likewise.
14724         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
14725         Likewise.
14726
14727 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14728
14729         * sysdeps/x86_64/x32/_itoa.h: New file.
14730
14731         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
14732         getdents system call only if kernel and user dirents have the
14733         same d_ino and d_off.
14734
14735         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
14736         LLONG_MAX != LONG_MAX.
14737         (_itoa_word): Use _ITOA_WORD_TYPE on value.
14738         (_fitoa_word): Likewise.
14739
14740         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
14741         years.
14742         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
14743         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
14744         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
14745
14746         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
14747         include <bits/wordsize.h>.  Check __x86_64__ instead of
14748         __WORDSIZE.
14749         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
14750         if __x86_64__ is defined.  Use anonymous union on fpstate.
14751
14752         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
14753         anonymous union.
14754
14755 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14756
14757         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
14758         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
14759         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
14760         Refer to _rtld_local_ro instead of _rtld_global_ro.
14761         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
14762         Likewise.
14763         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
14764         Likewise.
14765         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
14766         Likewise.
14767         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
14768         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
14769         of _rtld_global, and rtld_progname instead of _dl_argv[0].
14770
14771         * sysdeps/powerpc/powerpc32/dl-machine.c
14772         (__elf_machine_runtime_setup) [PROF]: Don't reference
14773         _dl_prof_resolve.
14774
14775 2012-05-18  Andreas Jaeger  <aj@suse.de>
14776
14777         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
14778         function only available for GCCs before 3.4 since GCC 3.4
14779         introduced a builtin.
14780         (lrint): Likewise.
14781         (llrintf): Likewise.
14782         (llrint): Likewise.
14783         (fmaxf): Likewise.
14784         (fmax): Likewise.
14785         (fminf): Likewise.
14786         (fmin): Likewise.
14787         (rint): Likewise.
14788         (rintf): Likewise.
14789         (nearbyint): Likewise.
14790         (nearbyintf): Likewise.
14791         (ceil): Likewise.
14792         (ceilf): Likewise.
14793         (floor): Likewise.
14794         (floorf): Likewise.
14795
14796 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14797
14798         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
14799         on both fields and cast pointer to __syscall_ulong_t.
14800
14801         * bits/types.h (__fsword_t): New type.
14802         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
14803         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
14804         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14805         (__FSWORD_T_TYPE): Likewise.
14806         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14807         (__FSWORD_T_TYPE): Likewise.
14808         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14809         (__FSWORD_T_TYPE): Likewise.
14810         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
14811         (__FSWORD_T_TYPE): Likewise.
14812         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
14813         __SWORD_TYPE with __fsword_t.
14814         (statfs64): Likewise.
14815
14816 2012-05-17  David S. Miller  <davem@davemloft.net>
14817
14818         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
14819
14820 2012-05-17  Andreas Jaeger  <aj@suse.de>
14821
14822         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
14823         warning.
14824
14825 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14826
14827         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
14828
14829 2012-05-17  Andreas Jaeger  <aj@suse.de>
14830
14831         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
14832         when it is used.
14833
14834 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14835
14836         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
14837
14838 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14839
14840         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
14841         * sysdeps/x86_64/tst-mallocalign1.c: New file.
14842
14843 2012-05-17  Andreas Jaeger  <aj@suse.de>
14844             Carlos O'Donell  <carlos_odonell@mentor.com>
14845
14846         [BZ #14059]
14847         * sysdeps/x86_64/multiarch/init-arch.h
14848         (bit_YMM_Usable): Rename to...
14849         (bit_AVX_Usable): ... this.
14850         (bit_FMA4_Usable): New macro.
14851         (bit_XMM_state): New macro.
14852         (bit_YMM_state): New macro.
14853         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
14854         [__ASSEMBLER__] (index_AVX_Usable): ... this.
14855         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
14856         (CPUID_OSXSAVE): New macro.
14857         (CPUID_AVX): New macro.
14858         (CPUID_FMA4): New macro.
14859         (index_YMM_Usable): Rename to...
14860         (index_AVX_Usable): ... this.
14861         (HAS_AVX): Use HAS_ARCH_FEATURE.
14862         (HAS_FMA4): Likewise.
14863         (HAS_YMM_USABLE): Remove.
14864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14865         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
14866         are present.
14867         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
14868         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
14869         * sysdeps/x86_64/multiarch/Makefile: Likewise.
14870         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
14871         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
14872
14873 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
14874
14875         * math/libm-test.c: Support platforms without multiple rounding modes.
14876         * math/bug-nextafter.c: Support platforms without FP exceptions.
14877         * math/bug-nexttoward.c: Likewise.
14878         * math/test-fenv.c: Likewise.
14879         * math/test-misc.c: Likewise.
14880         * stdlib/bug-getcontext.c: Likewise.
14881
14882 2012-05-17  Andreas Jaeger  <aj@suse.de>
14883
14884         * manual/examples/search.c (critter_cmp): Change signature to
14885         avoid warnings.
14886         * manual/string.texi (Collation Functions): Likewise.
14887
14888 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14889
14890         * bits/types.h: Fold copyright years.
14891         * bits/typesizes.h: Likewise.
14892         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
14893         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
14894         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
14895         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
14896         * time/time.h: Likewise.
14897
14898 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
14899
14900         [BZ #208]
14901         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
14902         in instead of returning them.  Return void.
14903         (__libc_mallinfo): Accumulate over all arenas.
14904         (__malloc_stats): Adjust for change in int_mallinfo interface.
14905
14906 2012-05-16  Roland McGrath  <roland@hack.frob.com>
14907
14908         [BZ #10375]
14909         * configure.in (NM): Add AC_CHECK_TOOL for it.
14910         (libc_extra_cflags): New substituted variable.
14911         Check for -fstack-protector being used implicitly.
14912         * configure: Regenerated.
14913         * config.make.in (config-extra-cflags): New variable,
14914         gets @libc_extra_cflags@.
14915         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
14916
14917         [BZ #10375]
14918         * configure.in: Check for _FORTIFY_SOURCE being predefined.
14919         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
14920         * configure: Regenerated.
14921         * config.make.in (CPPUNDEFS): New substituted variable.
14922         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
14923         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
14924         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
14925
14926 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14927
14928         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
14929         (mq_attr): Use __syscall_slong_t.
14930
14931 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14932
14933         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
14934         Check __x86_64__ instead of __WORDSIZE.
14935         (_STAT_VER_LINUX): Likewise.
14936         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
14937         __syscall_ulong_t and __syscall_slong_t.
14938         (stat64): Likewise.
14939
14940 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14941
14942         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
14943
14944 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14945
14946         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
14947
14948 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14949
14950         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
14951         __syscall_ulong_t.
14952
14953         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
14954         include <bits/wordsize.h>.  Check __x86_64__ instead of
14955         __WORDSIZE.
14956         (greg_t): Use "__extension__ long long int" if __x86_64__ is
14957         defined.
14958         (mcontext_t): Replace "unsigned long" with "unsigned long long".
14959
14960         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
14961         include <bits/wordsize.h>.  Check __x86_64__ instead of
14962         __WORDSIZE.
14963         (user_regs_struct): Use "__extension__ unsigned long long"
14964         instead of "unsigned long" if __x86_64__ is defined.
14965         (user): Likewise.  Pad after pointer field if __ILP32__ is
14966         defined.
14967
14968 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
14969
14970         * configure.in (makeinfo): Require version 4.5 or later.  Allow
14971         versions 5 to 9.
14972         * configure: Regenerated.
14973         * manual/install.texi (texinfo): Increase version requirement to
14974         4.5 or later.
14975         * INSTALL: Regenerated.
14976
14977         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
14978
14979 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14980
14981         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
14982
14983         * sysdeps/x86_64/x32/ffs.c: New file.
14984
14985         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
14986         __syscall_ulong_t.
14987         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
14988         defined.  Use __syscall_ulong_t.
14989         (shminfo): Use __syscall_ulong_t.
14990         (shm_info): Likewise.
14991
14992         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
14993         __syscall_ulong_t.
14994
14995         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
14996         <bits/wordsize.h>.
14997         (msgqnum_t): Use __syscall_ulong_t.
14998         (msglen_t): Likewise.
14999         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
15000         __syscall_ulong_t.
15001
15002         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
15003         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15004
15005         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
15006
15007         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
15008         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
15009
15010         * sysvipc/sys/msg.h (msgbuf): Replace long int with
15011         __syscall_slong_t.
15012
15013         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
15014         include <bits/wordsize.h>.  Check __x86_64__ instead of
15015         __WORDSIZE.
15016
15017         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
15018         "unsigned long long int" if __x86_64__ is defined.
15019         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
15020
15021         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
15022         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
15023         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
15024
15025         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
15026         <stdint.h>.
15027         (GET_PC): Cast to uintptr_t first.
15028         (GET_FRAME): Likewise.
15029         (GET_STACK): Likewise.
15030
15031         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
15032         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
15033         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
15034         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
15035         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
15036         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
15037         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
15038         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
15039         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
15040         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
15041         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
15042         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
15043         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15044         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
15045         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
15046         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
15047         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
15048         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
15049         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
15050         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
15051         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
15052         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
15053         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
15054         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
15055         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
15056         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
15057         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
15058         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
15059         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
15060
15061 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
15062
15063         * Makerules (+depfiles): Also collect depfiles from .oS in
15064         $(extra-objs).
15065         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
15066         .oS, $(libnldbl-routines)).
15067
15068         * Makerules (native-compile-mkdep-flags): Define.
15069         * sunrpc/Makefile (extra-objs): Add $(addprefix
15070         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
15071         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
15072         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
15073         calling $(make-target-directory).
15074
15075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15076
15077         * bits/types.h (__snseconds_t): Removed.
15078         * time/time.h (struct timespec): Replace __snseconds_t with
15079         __syscall_slong_t.
15080         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
15081         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
15082         Likewise.
15083         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15084         (__SNSECONDS_T_TYPE): Likewise.
15085         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15086         (__SNSECONDS_T_TYPE): Likewise.
15087         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15088         (__SNSECONDS_T_TYPE): Likewise.
15089
15090 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15091
15092         * sysdeps/mach/hurd/bits/typesizes.h
15093         (__SYSCALL_SLONG_TYPE): New macro.
15094         (__SYSCALL_ULONG_TYPE): Likewise.
15095
15096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15097
15098         * bits/types.h (__syscall_slong_t): New type.
15099         (__syscall_ulong_t): Likewise.
15100
15101         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
15102         (__SYSCALL_ULONG_TYPE): Likewise.
15103         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15104         (__SYSCALL_SLONG_TYPE): Likewise.
15105         (__SYSCALL_ULONG_TYPE): Likewise.
15106         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15107         (__SYSCALL_SLONG_TYPE): Likewise.
15108         (__SYSCALL_ULONG_TYPE): Likewise.
15109         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15110         (__SYSCALL_SLONG_TYPE): Likewise.
15111         (__SYSCALL_ULONG_TYPE): Likewise.
15112
15113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15114
15115         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
15116         Add sigaltstack-offsets.sym.
15117         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15118         <sigaltstack-offsets.h>.
15119         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
15120         longjmp_msg pointer.
15121         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
15122         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
15123         signal stack.
15124         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
15125
15126 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15127
15128         * elf/stackguard-macros.h: Remove file.
15129         * sysdeps/generic/stackguard-macros.h: New file.
15130         * sysdeps/i386/stackguard-macros.h: Likewise.
15131         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
15132         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
15133         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
15134         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
15135         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
15136         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
15137         * sysdeps/x86_64/stackguard-macros.h: Likewise.
15138         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
15139         <elf/stackguard-macros.h>.
15140
15141         [BZ #14109]
15142         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
15143         __aligned__ in attribute.
15144         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
15145         (gregset_t): Likewise.
15146
15147 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15148
15149         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
15150         * sysdeps/x86_64/64/Implies-after: Here.  New file.
15151         * sysdeps/x86_64/x32/Implies-after: New file.
15152
15153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15154
15155         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
15156         and access return value for _dl_profile_fixup.  Use R10_LP to
15157         load frame size.
15158
15159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15160
15161         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
15162
15163 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15164
15165         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
15166         * sysdeps/x86_64/x32/sysdep.h: New file.
15167
15168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15169
15170         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
15171         * sysdeps/x86_64/setjmp.S: Likewise.
15172
15173 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15174
15175         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
15176         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
15177         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
15178         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
15179         remove unused global constant.
15180
15181 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
15182
15183         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
15184         include of <not-cancel.h>.
15185
15186 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15187
15188         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
15189
15190 2012-05-15  Jeff Law  <law@redhat.com>
15191             Andreas Jaeger  <aj@suse.de>
15192
15193         [BZ #13594]
15194         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
15195         out from...
15196         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
15197         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
15198         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
15199         code changing __hst_map_handle.map.
15200
15201 2012-05-15  Roland McGrath  <roland@hack.frob.com>
15202
15203         * configure.in (sysnames): Look for Implies-before and Implies-after
15204         files.
15205         * configure: Regenerated.
15206
15207 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
15210         8-byte data alignment with LP_SIZE alignment.
15211
15212 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15213
15214         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
15215         into R10_LP.
15216
15217 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15218
15219         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
15220
15221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15222
15223         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
15224         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
15225         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
15226         Likewise.
15227         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15228
15229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15230
15231         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
15232         (stackinfo_sub_sp): Likewise.
15233
15234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15235
15236         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
15237         RAX_LP.
15238
15239 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15240
15241         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
15242         into R*_LP.
15243
15244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15245
15246         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
15247         sizes into R*_LP.
15248
15249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15250
15251         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
15252
15253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15254
15255         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
15256         into R11_LP and load __x86_64_shared_cache_size_half into
15257         R8_LP.
15258
15259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15260
15261         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
15262         R8_LP.
15263
15264 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15265
15266         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
15267         logb for POWER7.
15268         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
15269         logbf for POWER7.
15270         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
15271         logbl for POWER7.
15272         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
15273         powerpc32/power7/fpu/s_logb.c via #include.
15274         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
15275         powerpc32/power7/fpu/s_logbf.c via #include.
15276         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
15277         powerpc32/power7/fpu/s_logbl.c via #include.
15278
15279 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
15280
15281         * README.libm: Remove file.
15282
15283 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15284
15285         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
15286         count for x32.  Use R*_LP and omit operand-size suffix.
15287
15288 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15289
15290         * shlib-versions: Move x86_64-.*-linux.* entries to ...
15291         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
15292         * sysdeps/x86_64/x32/shlib-versions: New file.
15293
15294 2012-05-14  Roland McGrath  <roland@hack.frob.com>
15295
15296         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
15297         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
15298         Use _dl_fatal_printf instead.
15299
15300 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15301
15302         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
15303         set if not set by the user.  Do not allow for being unset.
15304         * sysdeps/unix/sysv/linux/configure: Regenerated.
15305
15306 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15307
15308         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
15309         the `q' suffix from lea and replace .quad with ASM_ADDR.
15310
15311 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15312
15313         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
15314         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
15315         instead of $17.
15316         (PTR_DEMANGLE): Likewise.
15317
15318 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15319
15320         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
15321         (LP_OP): Likewise.
15322         (ASM_ADDR): Likewise.
15323         (RAX_LP): Likewise.
15324         (RBP_LP): Likewise.
15325         (RBX_LP): Likewise.
15326         (RCX_LP): Likewise.
15327         (RDI_LP): Likewise.
15328         (RSI_LP): Likewise.
15329         (RSP_LP): Likewise.
15330         (R8_LP): Likewise.
15331         (R9_LP): Likewise.
15332         (R10_LP): Likewise.
15333         (R10_LP): Likewise.
15334         (R11_LP): Likewise.
15335         (R12_LP): Likewise.
15336         (R13_LP): Likewise.
15337         (R14_LP): Likewise.
15338         (R15_LP): Likewise.
15339
15340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15341
15342         * sysdeps/x86_64/x32/dl-machine.h: New file.
15343
15344 2012-05-14  Andreas Jaeger  <aj@suse.de>
15345
15346         * manual/Makefile (subdir): Remove export of subdir.
15347         (all): Remove target.
15348         (.PHONY): Remove all from list.
15349         (mkinstalldirs): Remove.
15350         (.PHONY): Remove installdirs from list.
15351         ($(inst_infodir)/libc.info): Use make-target-directory.
15352         (installdirs): Remove.
15353         (subdir_%): Remove.
15354         (glibc-targets): Remove.
15355         (lib): Remove.
15356         (stubs): Remove.
15357         ($(objpfx)stubs ../po/manual.pot): Remove.
15358         ($(objpfx)stamp%): Remove.
15359         (make-target-directory): Remove.
15360         (subdir_install): Remove.
15361         (routines): Remove.
15362         (aux): Remove.
15363         (sources): Remove.
15364         (objects): Remove.
15365         (headers): Remove.
15366
15367         [BZ #13750]
15368         * manual/.gitignore: Remove, it's not needed anymore.
15369         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
15370         all files in it.
15371         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
15372         directory.
15373         (texis): Renamed to $(objpfx)texis.
15374         (texis-path): New, contains path to generated files.
15375         (chapters.%): Use texis-path for complete path, add extra argument
15376         libc-texinfo.sh.
15377         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
15378         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
15379         (summary,texi, stamp-summary): Use complete path of
15380         files. Generate files in build dir.
15381         (dir-add.texi): Build in build dir.
15382         (libm-err.texi,stamp-libm-err): Likewise.
15383         (version.texi, stamp-version): Likewise.
15384         (.%c.texi): Likewise.
15385         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
15386         (mostlyclean): Remove target.
15387         (realclean): Remove target.
15388         (generated): Add new variable with contents from mostlyclean and
15389         realclean, remove entries duplicated in common-mostlyclean, add
15390         stamp-libm-err and stamp-version.
15391         (generated-dirs): Add libc directory.
15392         ($(inst_infodir)/libc.info): Install files from build dir.
15393
15394         * manual/install.texi (Configuring and compiling): Adjust since
15395         the info files are not part of the tar ball anymore.
15396
15397 2012-05-14  Andreas Jaeger  <aj@suse.de>
15398
15399         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
15400         variable.
15401
15402 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
15403
15404         [BZ #13717]
15405         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
15406         to 2.2.0 where earlier.
15407         * sysdeps/unix/sysv/linux/configure: Regenerated.
15408         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
15409         Remove conditional code.
15410         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
15411         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
15412         Remove conditional code.
15413         [!__NR_lchown]: Likewise.
15414         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15415         [__NR_lchown]: Likewise.
15416         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
15417         comment referencing __ASSUME_LCHOWN_SYSCALL.
15418         * sysdeps/unix/sysv/linux/i386/sigaction.c
15419         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15420         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15421         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
15422         Remove conditional code.
15423         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
15424         (__protocol_available): Remove #if 0 code.
15425         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
15426         conditional code.
15427         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
15428         * sysdeps/unix/sysv/linux/kernel-features.h
15429         (__ASSUME_GETCWD_SYSCALL): Don't define.
15430         (__ASSUME_REALTIME_SIGNALS): Likewise.
15431         (__ASSUME_PREAD_SYSCALL): Likewise.
15432         (__ASSUME_PWRITE_SYSCALL): Likewise.
15433         (__ASSUME_POLL_SYSCALL): Likewise.
15434         (__ASSUME_LCHOWN_SYSCALL): Likewise.
15435         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
15436         non-SPARC.
15437         (__ASSUME_SIOCGIFNAME): Don't define.
15438         (__ASSUME_MSG_NOSIGNAL): Likewise.
15439         (__ASSUME_SENDFILE): Define unconditionally.
15440         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
15441         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
15442         conditional code.
15443         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
15444         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
15445         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15446         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15447         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
15448         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
15449         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
15450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
15451         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15452         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
15454         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15455         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
15457         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15458         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
15460         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15461         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
15463         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15464         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
15466         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
15467         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
15469         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15470         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
15472         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15473         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15474         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
15475         Remove conditional code.
15476         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15477         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15478         Remove conditional code.
15479         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15480         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
15481         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
15482         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15483         Remove conditional code.
15484         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15485         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
15486         Remove conditional code.
15487         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15488         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
15489         Remove conditional code.
15490         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15491         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
15492         Remove conditional code.
15493         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
15494         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
15495         Remove conditional code.
15496         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15497         * sysdeps/unix/sysv/linux/sh/pwrite64.c
15498         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
15499         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
15500         * sysdeps/unix/sysv/linux/sigaction.c
15501         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15502         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15503         * sysdeps/unix/sysv/linux/sigpending.c
15504         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15505         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15506         * sysdeps/unix/sysv/linux/sigprocmask.c
15507         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15508         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15509         * sysdeps/unix/sysv/linux/sigsuspend.c
15510         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
15511         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
15512         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
15513         (__libc_missing_rt_sigs): Remove.
15514         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
15515         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
15516         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
15517         Remove conditional code.
15518         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
15519         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
15520         return 1.
15521         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
15522         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
15523         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
15524         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
15525
15526 2012-05-14  Andreas Jaeger  <aj@suse.de>
15527
15528         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
15529         it's not used in glibc.
15530         (__coshm1): Likewise.
15531         (__acosh1p): Likewise.
15532         (__sgn): Likewise.
15533
15534         * manual/string.texi (Copying and Concatenation): Add missing
15535         variable in concat example.
15536         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
15537
15538 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15539
15540         [BZ #14103]
15541         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
15542         __builtin_clzl with __builtin_clzll.
15543
15544 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15545
15546         [BZ #14104]
15547         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
15548         libc_freeres_ptr.
15549
15550 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15551
15552         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
15553         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
15554         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
15555         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
15556
15557 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
15558
15559         * NEWS: Update ia64 info.
15560
15561 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
15562
15563         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
15564         used as bcopy.
15565
15566 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
15567
15568         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
15569         * sysdeps/unix/syscalls.list (dup3): Likewise.
15570         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
15571         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
15572
15573 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15574
15575         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
15576         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
15577
15578 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
15579
15580         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
15581         thread pointer.
15582         (TLS_IE): Use mov/add instead of movq/addq to load thread
15583         pointer.
15584         (TLS_GD_PREFIX): New.
15585         (TLS_GD): Use it.
15586
15587 2012-05-11  David S. Miller  <davem@davemloft.net>
15588
15589         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
15590         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
15591         (_FPU_SETCW): Likewise.
15592
15593 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15594
15595         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
15596         is 32-byte aligned.
15597
15598 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
15599
15600         [BZ #11837]
15601         * iconvdata/gb18030.c: Update tables.
15602         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
15603         characters specially.
15604         (BODY for TO_LOOP): Add encoding of missing ranges.
15605
15606 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
15607
15608         [BZ #13673]
15609         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
15610         * sysdeps/mach/hurd/dup3.c: Likewise.
15611         * sysdeps/mach/hurd/readlinkat.c: Likewise.
15612         * sysdeps/powerpc/memmove.c:: Likewise.
15613
15614 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15615
15616         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
15617         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
15618
15619 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15620
15621         * elf/elf.h (R_X86_64_RELATIVE64): New.
15622         (R_X86_64_NUM): Updated.
15623         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
15624         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
15625         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
15626         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
15627         tst-quad1pie tst-quad2pie
15628         (modules-names): Add tst-quadmod1 tst-quadmod2.
15629         ($(objpfx)tst-quad1): New dependency.
15630         ($(objpfx)tst-quad2): Likewise.
15631         ($(objpfx)tst-quad1pie): Likewise.
15632         ($(objpfx)tst-quad2pie): Likewise.
15633         * sysdeps/x86_64/tst-quad1.c: New file.
15634         * sysdeps/x86_64/tst-quad1pie.c: New file.
15635         * sysdeps/x86_64/tst-quad2.c: Likewise.
15636         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
15637         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
15638         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
15639         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
15640         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
15641
15642 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15643
15644         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
15645         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
15646         * streams/stropts.h (t_scalar_t): Define type.
15647
15648         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
15649         (_PATH_PRESERVE): Set to "/var/lib".
15650         (_PATH_RWHODIR): Set to "/var/spool/rwho".
15651
15652         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
15653         instead of int.
15654
15655         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
15656         if __dir_mkfile succeeded.
15657
15658         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
15659         checking for _hurd_dtablesize.  Unlock it right after having
15660         finished _hurd_dtable allocation.
15661
15662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15663
15664         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
15665         * sysdeps/mach/hurd/configure: Regenerated.
15666         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
15667         special-casing to...
15668         * sysdeps/gnu/configure.in: ... this new file.
15669         * sysdeps/unix/sysv/linux/configure: Regenerated.
15670         * sysdeps/gnu/configure: New generated file.
15671
15672         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
15673         for Linux: use nsec instead of usec, as well as:
15674         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
15675         members of type struct timespec.
15676         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
15677         New macros.
15678         (struct stat64): Likewise.
15679         (_STATBUF_ST_NSEC): New macro.
15680         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
15681
15682         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15683         __strtoul_internal rather than strtoul.
15684
15685 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15686
15687         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
15688         and reject them.
15689
15690 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15691
15692         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
15693         which preserves existing values.
15694         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
15695
15696 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15697
15698         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
15699         TIMEOUT values.  Return EINVAL for NFDS values either negative or
15700         greater than FD_SETSIZE.
15701
15702 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15703
15704         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
15705         allocated, call __vm_protect to finish enabling the existing space, and
15706         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
15707         allocate the remainder.
15708
15709 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15710
15711         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
15712         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
15713
15714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15715
15716         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
15717         sysdeps/mach/hurd/readlink.c.
15718
15719         * posix/tst-sysconf.c (posix_options): Only use
15720         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
15721         _POSIX_SYNCHRONIZED_IO when they are defined
15722         * sysdeps/mach/hurd/bits/posix_opt.h:
15723         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
15724         (_XOPEN_REALTIME): Undefine macro.
15725         (_XOPEN_REALTIME_THREADS): Undefine macro.
15726         (_XOPEN_SHM): Undefine macro.
15727         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
15728         macro to -1.
15729         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
15730         macro to -1.
15731         (_POSIX_ASYNC_IO): Undefine macro.
15732         (_POSIX_PRIORITIZED_IO): Undefine macro.
15733         (_POSIX_SPIN_LOCKS): Define macro to -1.
15734
15735         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
15736         SA_NODEFER, SA_RESETHAND.
15737         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
15738         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
15739         F_DUPFD_CLOEXEC.
15740
15741 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15742
15743         * elf/Makefile (pldd-modules): Define unconditionally.
15744
15745 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15746
15747         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
15748
15749 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15750
15751         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
15752         Return ENOENT when name is empty.
15753         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
15754
15755 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15756
15757         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
15758
15759         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
15760
15761 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15762
15763         Fix mlock in all cases except non-readable pages.
15764         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
15765         instead of VM_PROT_ALL as parameter to __vm_wire function.
15766
15767         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
15768         (__mkdir): When path is `/', just fail with EEXIST.
15769         * sysdeps/mach/hurd/mkdirat.c: Likewise.
15770
15771 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15772
15773         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
15774         <sys/uio.h> (for writev).
15775         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
15776         and <sys/param.h> (for MIN).
15777
15778 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
15779
15780         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
15781         REQUESTED_TIME.  Properly set the remaining time and return EINTR
15782         if interrupted.
15783
15784 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15785
15786         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
15787         Depend on against $(link-rpcuserlibs).
15788
15789 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15790
15791         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
15792         (__libc_stack_end): Do not use attribute_relro.
15793         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
15794         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
15795         to libthread-provided value.
15796         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
15797         attribute_relro.
15798
15799 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15800
15801         [BZ #3748]
15802         * bits/libc-lock.h (__libc_once_get): New macro.
15803         * sysdeps/mach/bits/libc-lock.h: Likewise.
15804         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
15805         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
15806         instead of using implementation details.
15807
15808         * libio/fileops.c: Unconditionally include <kernel-features.h>.
15809         * libio/freopen.c: Likewise.
15810         * libio/freopen64.c: Likewise.
15811         * misc/syslog.c: Likewise.
15812         * nscd/connections.c: Likewise.
15813         * nscd/netgroupcache.c: Likewise.
15814         * sysdeps/posix/getcwd.c: Likewise.
15815
15816 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15817
15818         * math/w_ilogbf.c: Add #include <limits.h>.
15819
15820 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15821
15822         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
15823         path instead of returning without unlocking.
15824
15825         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
15826         immediate-write ioctls.
15827         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
15828
15829 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15830
15831         * sysdeps/mach/hurd/i386/init-first.c (init): Use
15832         __builtin_frame_address instead of making assumptions about the
15833         location of the return address relative to DATA.  Force early load of
15834         the return address.
15835         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
15836         __builtin_frame_address.
15837
15838         dup3 for GNU Hurd.
15839         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
15840         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
15841         implement dup3 and do some further code clean-ups.
15842         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
15843         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
15844
15845 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15846
15847         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
15848
15849         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
15850         HURD_CRITICAL_END around holding _hurd_dtable_lock.
15851         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
15852         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
15853         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
15854         d->port.lock.
15855
15856         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
15857         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
15858         when handler == SIG_ERR, not when handler != SIG_ERR.
15859
15860 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15861
15862         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
15863         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
15864         definitions.
15865
15866         accept4 for GNU Hurd.
15867         * include/sys/socket.h (__libc_accept4): New prototype.
15868         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
15869         to implement __libc_accept4.
15870         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
15871         __libc_accept4.
15872         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
15873
15874         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
15875         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
15876         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
15877         signal-defines.sym.
15878
15879 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15880
15881         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
15882
15883 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
15884
15885         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
15886         assertion on O_CLOEXEC flag.
15887         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
15888         * hurd/intern-fd.c: Likewise.
15889         * hurd/port2fd.c: Likewise.
15890
15891 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15892
15893         [BZ #3906]
15894         * bits/in.h (IPV6_PKTINFO): Define new macro.
15895         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
15896
15897 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15898
15899         [BZ #13954]
15900         [BZ #13955]
15901         [BZ #13956]
15902         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
15903         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15904         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
15905         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
15906         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15907         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
15908         * math/libm-test.inc (logb_test) : Additional logb tests.
15909
15910 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
15911             Andreas Jaeger  <aj@suse.de>
15912
15913         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
15914         * configure: Regenerated.
15915         * config.h.in (LINK_OBSOLETE_RPC): New macro.
15916         * config.make.in (link-obsolete-rpc): New substituted variable.
15917         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
15918         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
15919         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15920         (shared-only-routines): Don't set it under [link-obsolete-rpc],
15921         so that libc.a contains the symbols.
15922         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
15923         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
15924         * sunrpc/auth_none.c: Likewise.
15925         * sunrpc/auth_unix.c: Likewise.
15926         * sunrpc/authdes_prot.c: Likewise.
15927         * sunrpc/authuxprot.c: Likewise.
15928         * sunrpc/clnt_gen.c: Likewise.
15929         * sunrpc/clnt_perr.c: Likewise.
15930         * sunrpc/clnt_raw.c: Likewise.
15931         * sunrpc/clnt_simp.c: Likewise.
15932         * sunrpc/clnt_tcp.c: Likewise.
15933         * sunrpc/clnt_udp.c: Likewise.
15934         * sunrpc/clnt_unix.c: Likewise.
15935         * sunrpc/des_crypt.c: Likewise.
15936         * sunrpc/des_soft.c: Likewise.
15937         * sunrpc/get_myaddr.c: Likewise.
15938         * sunrpc/key_call.c: Likewise.
15939         * sunrpc/key_prot.c: Likewise.
15940         * sunrpc/netname.c: Likewise.
15941         * sunrpc/pm_getmaps.c: Likewise.
15942         * sunrpc/pm_getport.c: Likewise.
15943         * sunrpc/pmap_clnt.c: Likewise.
15944         * sunrpc/pmap_prot.c: Likewise.
15945         * sunrpc/pmap_prot2.c: Likewise.
15946         * sunrpc/pmap_rmt.c: Likewise.
15947         * sunrpc/publickey.c: Likewise.
15948         * sunrpc/rpc_cmsg.c: Likewise.
15949         * sunrpc/rpc_common.c: Likewise.
15950         * sunrpc/rpc_dtable.c: Likewise.
15951         * sunrpc/rpc_prot.c: Likewise.
15952         * sunrpc/rpc_thread.c: Likewise.
15953         * sunrpc/rtime.c: Likewise.
15954         * sunrpc/svc.c: Likewise.
15955         * sunrpc/svc_auth.c: Likewise.
15956         * sunrpc/svc_raw.c: Likewise.
15957         * sunrpc/svc_run.c: Likewise.
15958         * sunrpc/svc_tcp.c: Likewise.
15959         * sunrpc/svc_udp.c: Likewise.
15960         * sunrpc/svc_unix.c: Likewise.
15961         * sunrpc/svcauth_des.c: Likewise.
15962         * sunrpc/xcrypt.c: Likewise.
15963         * sunrpc/xdr.c: Likewise.
15964         * sunrpc/xdr_array.c: Likewise.
15965         * sunrpc/xdr_float.c: Likewise.
15966         * sunrpc/xdr_intXX_t.c: Likewise.
15967         * sunrpc/xdr_mem.c: Likewise.
15968         * sunrpc/xdr_rec.c: Likewise.
15969         * sunrpc/xdr_ref.c: Likewise.
15970         * sunrpc/xdr_sizeof.c: Likewise.
15971         * sunrpc/xdr_stdio.c: Likewise.
15972
15973 2012-05-10  Roland McGrath  <roland@hack.frob.com>
15974
15975         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
15976         change.  Update copyright years.
15977
15978 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
15979
15980         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
15981
15982 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
15983             Joseph Myers  <joseph@codesourcery.com>
15984             Paul Pluzhnikov  <ppluzhnikov@google.com>
15985
15986         [BZ #14012]
15987         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
15988         requiring rpcgen.
15989         [cross-compiling] (extra-libs): Likewise.
15990         [cross-compiling] (extra-libs-others): Likewise.
15991         [cross-compiling] (librpcsvc-routines): Likewise.
15992         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
15993         [cross-compiling] (omit-deps): Likewise.
15994         (sunrpc-CPPFLAGS): New variable.
15995         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
15996         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
15997         (cross-rpcgen-objs): New variable.
15998         (extra-objs): Append $(cross-rpcgen-objs).
15999         ($(cross-rpcgen-objs)): New rule.
16000         ($(objpfx)cross-rpcgen): Likewise.
16001         (rpcgen-cmd): Define to use $(built-program-file).  Expand
16002         comment.
16003         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
16004         ($(objpfx)x%.stmp): Likewise.
16005         * sunrpc/proto.h [IS_IN_build] (_): Define.
16006         [IS_IN_build] (_libc_intl_domainname): Likewise.
16007
16008 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16009
16010         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
16011         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
16012         and R_X86_64_TPOFF64.
16013
16014 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
16015
16016         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
16017         sysdeps/unix/sysv/syscalls.list.
16018         (stime): Likewise.
16019         (utime): Likewise.
16020         * sysdeps/unix/sysv/syscalls.list: Remove file.
16021
16022 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
16023
16024         [BZ #3440]
16025         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
16026         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
16027         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
16028         (__LC_IDENTIFICATION): Make these macros useful in #if
16029         expressions, as required by C99.
16030
16031 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
16032
16033         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
16034         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
16035         after this.
16036
16037 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16038
16039         * stdlib/longlong.h: Updated from GCC.
16040
16041 2012-05-09  Andreas Jaeger  <aj@suse.de>
16042
16043         * nscd/nscd.c (run_modes): Make named enum, reorder so that
16044         default is first entry.
16045         (run_mode): Set type.
16046         (main): Remove informal message about syslog.
16047         (options): Fix typo.
16048
16049         [BZ #14053]
16050         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
16051         to asm.
16052         (lrint): Likewise.
16053         (llrintf): Likewise.
16054         (llrint): Likewise.
16055         (rint): Likewise.
16056         (rintf): Likewise.
16057         (nearbyint): Likewise.
16058         (nearbyintf): Likewise.
16059
16060 2012-05-09  Andreas Jaeger  <aj@suse.de>
16061             Pedro Alves  <palves@redhat.com>
16062
16063         * nscd/nscd.c (run_mode): Use enum.
16064         (main): Cleanup coding style issue.
16065
16066 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
16067             Andreas Jaeger  <aj@suse.de>
16068
16069         * nscd/nscd.c (go_background): Replaced with...
16070         (run_mode): ... this.
16071         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
16072         (options): Add -F --foreground.
16073         (main): Implement it.
16074         (parse_opt): Parse it.
16075
16076 2012-05-09  Andreas Jaeger  <aj@suse.de>
16077
16078         [BZ #14083]
16079         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
16080         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
16081         -Wconversion warning.
16082         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
16083         Likewise.
16084
16085 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
16086
16087         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
16088         == 0.
16089         (LC_ALL): Use macro-int-constant.
16090         (LC_COLLATE): Likewise.
16091         (LC_CTYPE): Likewise.
16092         (LC_MESSAGES): Likewise.
16093         (LC_MONETARY): Likewise.
16094         (LC_NUMERIC): Likewise.
16095         (LC_TIME): Likewise.
16096         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
16097         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16098         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16099         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
16100         Specify type.
16101         [C99-based standards] (float_t): Expect type.
16102         [C99-based standards] (double_t): Expect type.
16103         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
16104         type.
16105         [C99-based standards] (HUGE_VALL): Likewise.
16106         [C99-based standards] (INFINITY): Likewise.
16107         [C99-based standards] (NAN): Likewise.
16108         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
16109         [C99-based standards] (FP_NAN): Likewise.
16110         [C99-based standards] (FP_NORMAL): Likewise.
16111         [C99-based standards] (FP_SUBNORMAL): Likewise.
16112         [C99-based standards] (FP_ZERO): Likewise.
16113         [C99-based standards] (FP_FAST_FMA): Use
16114         optional-macro-int-constant.  Specify type.  Require == 1.
16115         [C99-based standards] (FP_FAST_FMAF): Likewise.
16116         [C99-based standards] (FP_FAST_FMAL): Likewise.
16117         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
16118         [C99-based standards] (FP_ILOGBNAN): Likewise.
16119         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
16120         Specify type.
16121         [C99-based standards] (MATH_ERREXCEPT): Likewise.
16122         [C99-based standards] (math_errhandling): Specify type.
16123         [ISO99 || ISO11] (signgam): Do not allow.
16124         [non-C99-based standards] (copysignf): Do not allow.
16125         [non-C99-based standards] (exp2f): Likewise.
16126         [non-C99-based standards] (log2f): Likewise.
16127         [non-C99-based standards] (modff): Allow.
16128         [non-C99-based standards] (erff): Do not allow.
16129         [non-C99-based standards] (erfcf): Likewise.
16130         [non-C99-based standards] (gammaf): Likewise.
16131         [non-C99-based standards] (hypotf): Likewise.
16132         [non-C99-based standards] (j0f): Likewise.
16133         [non-C99-based standards] (j1f): Likewise.
16134         [non-C99-based standards] (jnf): Likewise.
16135         [non-C99-based standards] (lgammaf): Likewise.
16136         [non-C99-based standards] (tgammaf): Likewise.
16137         [non-C99-based standards] (y0f): Likewise.
16138         [non-C99-based standards] (y1f): Likewise.
16139         [non-C99-based standards] (ynf): Likewise.
16140         [non-C99-based standards] (isnanf): Likewise.
16141         [non-C99-based standards] (acoshf): Likewise.
16142         [non-C99-based standards] (asinhf): Likewise.
16143         [non-C99-based standards] (atanhf): Likewise.
16144         [non-C99-based standards] (cbrtf): Likewise.
16145         [non-C99-based standards] (expm1f): Likewise.
16146         [non-C99-based standards] (ilogbf): Likewise.
16147         [non-C99-based standards] (log1pf): Likewise.
16148         [non-C99-based standards] (logbf): Likewise.
16149         [non-C99-based standards] (nextafterf): Likewise.
16150         [non-C99-based standards] (remainderf): Likewise.
16151         [non-C99-based standards] (rintf): Likewise.
16152         [non-C99-based standards] (scalbf): Likewise.
16153         [non-C99-based standards] (copysignl): Likewise.
16154         [non-C99-based standards] (exp2l): Likewise.
16155         [non-C99-based standards] (log2l): Likewise.
16156         [non-C99-based standards] (modfl): Allow.
16157         [non-C99-based standards] (erfl): Do not allow.
16158         [non-C99-based standards] (erfcl): Likewise.
16159         [non-C99-based standards] (gammal): Likewise.
16160         [non-C99-based standards] (hypotl): Likewise.
16161         [non-C99-based standards] (j0l): Likewise.
16162         [non-C99-based standards] (j1l): Likewise.
16163         [non-C99-based standards] (jnl): Likewise.
16164         [non-C99-based standards] (lgammal): Likewise.
16165         [non-C99-based standards] (tgammal): Likewise.
16166         [non-C99-based standards] (y0l): Likewise.
16167         [non-C99-based standards] (y1l): Likewise.
16168         [non-C99-based standards] (ynl): Likewise.
16169         [non-C99-based standards] (isnanl): Likewise.
16170         [non-C99-based standards] (acoshl): Likewise.
16171         [non-C99-based standards] (asinhl): Likewise.
16172         [non-C99-based standards] (atanhl): Likewise.
16173         [non-C99-based standards] (cbrtl): Likewise.
16174         [non-C99-based standards] (expm1l): Likewise.
16175         [non-C99-based standards] (ilogbl): Likewise.
16176         [non-C99-based standards] (log1pl): Likewise.
16177         [non-C99-based standards] (logbl): Likewise.
16178         [non-C99-based standards] (nextafterl): Likewise.
16179         [non-C99-based standards] (remainderl): Likewise.
16180         [non-C99-based standards] (rintl): Likewise.
16181         [non-C99-based standards] (scalbl): Likewise.
16182         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16183         [non-C99-based standards] (FP_*): Do not allow.
16184         [C99-based standards] (FP_*): Change to
16185         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
16186         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16187         allow.
16188         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
16189         (SIG_ERR): Likewise.
16190         [X/Open-based standards] (SIG_HOLD): Likewise.
16191         (SIG_IGN): Likewise.
16192         (SIGABRT): Use macro-int-constant.  Specify type.  Require
16193         positive value.
16194         (SIGFPE): Likewise.
16195         (SIGILL): Likewise.
16196         (SIGINT): Likewise.
16197         (SIGSEGV): Likewise.
16198         (SIGTER): Likewise.
16199         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
16200         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
16201         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
16202         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
16203         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
16204         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
16205         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
16206         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
16207         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
16208         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
16209         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
16210         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
16211         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
16212         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
16213         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
16214         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
16215         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
16216         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
16217         [X/Open-based standards] (SIGTRAP): Likewise.
16218         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
16219         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
16220         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
16221         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
16222         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16223         allow.
16224
16225 2012-05-08  Ian Wienand  <ianw@vmware.com>
16226
16227         [BZ #14080]
16228         * time/tzset.c (__tzset_parse_tz): Update default rules for
16229         daylight time changes in the Energy Policy Act of 2005.
16230
16231 2012-05-09  Andreas Jaeger  <aj@suse.de>
16232
16233         [BZ #13983]
16234         * elf/ldconfig.c (parse_conf): Change string to make clear that
16235         ldconfig only issued a warning if ld.so.conf does not exist.
16236
16237 2012-05-08  David S. Miller  <davem@davemloft.net>
16238
16239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
16240         movxtod instead of popping the value on the stack.
16241
16242         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16243
16244 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
16245
16246         * config.h.in: Add HAVE_ARM_PCS_VFP.
16247
16248 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
16249
16250         [BZ #13979]
16251         * include/features.h: Warn if user requests __FORTIFY_SOURCE
16252         checking but the checks are disabled for any reason.
16253
16254 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16255
16256         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
16257         and ELF64_R_TYPE with ELFW(R_TYPE).
16258
16259 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
16260
16261         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
16262         (ulimit): Likewise.
16263
16264         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
16265         (settimeofday): Likewise.
16266
16267 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
16268
16269         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
16270         a struct th_u2 inside the union, and move tu_block/tu_code into
16271         a new th_u3 union of tu_block/tu_code inside of that.  Move
16272         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
16273         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
16274         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
16275         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
16276         (th_stuff): Change to th_u1.tu_stuff.
16277         (th_data): Define.
16278         (th_msg): Change to th_u1.th_u2.tu_data.
16279
16280 2012-05-07  David S. Miller  <davem@davemloft.net>
16281
16282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16283
16284         [BZ #14074]
16285         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
16286         (SETUP_PIC_REG): Use it.
16287         (SETUP_PIC_REG_LEAF): Use it.
16288
16289 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
16290
16291         [BZ #13885]
16292         [BZ #13923]
16293         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16294         USE_AS_EXPM1L.
16295         (EXPL_FINITE): Likewise.
16296         (FLDLOG): Likewise.
16297         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16298         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16299         e_expl.S.
16300         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16301         USE_AS_EXPM1L.
16302         (EXPL_FINITE): Likewise.
16303         (FLDLOG): Likewise.
16304         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
16305         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
16306         e_expl.S.
16307         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
16308         test of -max_value argument for long double.
16309         * sysdeps/i386/fpu/libm-test-ulps: Update.
16310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16311
16312 2012-05-06  David S. Miller  <davem@davemloft.net>
16313
16314         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
16315         quad soft-float symbols whose references which are compiler
16316         generated.
16317         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16318
16319 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
16320
16321         [BZ #13884]
16322         [BZ #13914]
16323         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16324         USE_AS_EXP10L.
16325         (EXPL_FINITE): Likewise.
16326         (FLDLOG): Likewise.
16327         (c0): Likewise.
16328         (c1): Likewise.
16329         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16330         Adjust comments for base varying.
16331         (__expl_finite): Change alias to EXPL_FINITE.
16332         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
16333         e_expl.S.
16334         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
16335         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16336         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16337         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
16338         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
16339         USE_AS_EXP10L.
16340         (EXPL_FINITE): Likewise.
16341         (FLDLOG): Likewise.
16342         (c0): Likewise.
16343         (c1): Likewise.
16344         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
16345         Adjust comments for base varying.
16346         (__expl_finite): Change alias to EXPL_FINITE.
16347         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
16348         tests for bugs.
16349         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16350
16351         [BZ #14064]
16352         * math/libm-test.inc (check_float_internal): Correct ulp
16353         calculation for subnormal expected results.
16354
16355 2012-05-06  Andreas Jaeger  <aj@suse.de>
16356
16357         * Makeconfig (+math-flags): New, set to -frounding-math.
16358         (+cflags): Add +math-flags so that all of glibc gets compiled with
16359         it.
16360
16361         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
16362
16363 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
16364
16365         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
16366         Disable one test.
16367
16368         [BZ #13787]
16369         [BZ #13922]
16370         [BZ #14036]
16371         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
16372         (__ieee754_expl): Allow for and saturate large arguments.
16373         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
16374         (u_threshold): Likewise.
16375         (__exp): Call __ieee754_exp before checking for overflow and
16376         underflow.
16377         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
16378         (u_threshold): Likewise.
16379         (__expf): Call __ieee754_expf before checking for overflow and
16380         underflow.
16381         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
16382         (u_threshold): Likewise.
16383         (__expl): Call __ieee754_expl before checking for overflow and
16384         underflow.
16385         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
16386         (__ieee754_expl): Allow for and saturate large arguments.
16387         * math/libm-test.inc (exp_test): Add another test.  Do not allow
16388         missing overflow exception on overflow.
16389         (expm1_test): Do not allow missing overflow exception on overflow.
16390
16391         * sysdeps/i386/fpu/e_expl.c: Move to ...
16392         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
16393         rather than using inline asm.
16394         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
16395         * sysdeps/x86_64/fpu/e_expl.S: Copy from
16396         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
16397
16398         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
16399         (nice): Likewise.
16400         (poll): Likewise.
16401         (signal): Likewise.
16402         (time): Likewise.
16403         (times): Likewise.
16404
16405 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16406
16407         * sysdeps/unix/syscalls.list (adjtime): Add entry from
16408         sysdeps/unix/common/syscalls.list.
16409         (fchmod): Likewise.
16410         (fchown): Likewise.
16411         (ftruncate): Likewise.
16412         (getrusage): Likewise.
16413         (gettimeofday): Likewise.
16414         (setpgid): Likewise.
16415         (setregid): Likewise.
16416         (setreuid): Likewise.
16417         (sigaction): Likewise.
16418         (truncate): Likewise.
16419         (vhangup): Likewise.
16420         * sysdeps/unix/common/syscalls.list: Remove file.
16421         * sysdeps/unix/bsd/Implies: Don't include unix/common.
16422         * sysdeps/unix/sysv/linux/Implies: Likewise.
16423
16424 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16425
16426         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
16427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
16428         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
16429         Moved to ...
16430         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
16431         Here.
16432         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
16433         to ...
16434         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
16435         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
16436         to ...
16437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
16438         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
16439         to ...
16440         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
16441         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
16442         to ...
16443         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
16444         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
16445         to ...
16446         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
16447         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
16448         to ...
16449         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
16450         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
16451         to ...
16452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16453         Here.
16454         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
16455         to ...
16456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
16457         Here.
16458         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
16459         to ...
16460         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
16461         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
16462         Moved to ...
16463         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
16464         Here.
16465         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
16466         to ...
16467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
16468
16469 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16470
16471         * sysdeps/unix/common/bits/dirent.h: Remove file.
16472         * sysdeps/unix/common/bits/fcntl.h: Likewise.
16473
16474         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
16475         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
16476         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
16477         * sysdeps/unix/bsd/isatty.c: Likewise.
16478         * sysdeps/unix/bsd/tcdrain.c: Likewise.
16479         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
16480         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
16481
16482 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16483
16484         [BZ #13563]
16485         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
16486         long double comparison inaccuracies.
16487         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16488         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16489
16490 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
16491
16492         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
16493         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
16494
16495 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
16496
16497         [BZ #14049]
16498         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
16499         nonzero digits before rounding a hex value.
16500         * stdlib/tst-strtod.c (tests): Add another test.
16501
16502 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16503
16504         * sysdeps/s390/fpu/libm-test-ulps: Update.
16505
16506 2012-05-03  Andreas Jaeger  <aj@suse.de>
16507
16508         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
16509         does not get optimized out.
16510         (malloc_opt_barrier): New.
16511
16512 2012-05-03  Andreas Jaeger  <aj@suse.de>
16513             Roland McGrath  <roland@hack.frob.com>
16514
16515         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
16516         intermediate file deletion.
16517         (generated): Add .symlist files.
16518
16519 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
16520
16521         [BZ #13775]
16522         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
16523         Redirect under this condition.
16524         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16525         [__USE_GNU] (__dprintf_chk): Not under this condition.
16526         [__USE_GNU] (__vdprintf_chk): Likewise.
16527         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
16528         under this condition.
16529         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
16530         [__USE_XOPEN2K8] (dprintf): Define under this condition.
16531         [__USE_XOPEN2K8] (vdprintf): Likewise.
16532         [__USE_GNU] (__dprintf_chk): Not under this condition.
16533         [__USE_GNU] (__vdprintf_chk): Likewise.
16534         [__USE_GNU] (dprintf): Likewise.
16535         [__USE_GNU] (vdprintf): Likewise.
16536
16537 2012-05-03  Roland McGrath  <roland@hack.frob.com>
16538
16539         * elf/Makefile (common-generated): Set this instead of generated for
16540         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
16541         $(all-built-dso)-derived lists.
16542
16543 2012-05-03  Andreas Jaeger  <aj@suse.de>
16544
16545         * sysdeps/i386/fpu/libm-test-ulps: Update.
16546
16547         * FAQ: Removed.
16548         * FAQ.in: Likewise.
16549         * scripts/gen-FAQ.pl: Likewise.
16550         * manual/install.texi (Installation): Point to online location of
16551         FAQ.
16552         * Makefile (files-for-dist): Remove FAQ.
16553         (FAQ): Remove.
16554
16555 2012-05-02  Allan McRae  <allan@archlinux.org>
16556
16557         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
16558         (LDFLAGS-reldepmod5.so): Likewise.
16559         (LDFLAGS-reldep6mod1.so): Likewise.
16560         (LDFLAGS-reldep6mod4.so): Likewise.
16561         (LDFLAGS-reldep8mod3.so): Likewise.
16562         (LDFLAGS-unload4mod1.so): Likewise.
16563         (LDFLAGS-unload4mod2.so): Likewise.
16564         (LDFLAGS-tst-initorder): Likewise.
16565         (LDFLAGS-tst-initordera2.so): Likewise.
16566         (LDFLAGS-tst-initordera3.so): Likewise.
16567         (LDFLAGS-tst-initordera4.so): Likewise.
16568         (LDFLAGS-tst-initorderb2.so): Likewise.
16569         (LDFLAGS-noload): Likewise.
16570         (LDFLAGS-next): Likewise.
16571         (LDFLAGS-order2mod1.so): Likewise.
16572         (LDFLAGS-order2mod2.so): Likewise.
16573         (LDFLAGS-tst-initorder2): Likewise.
16574         (LDFLAGS-tst-initorder2a.so): Likewise.
16575         (LDFLAGS-tst-initorder2b.so): Likewise.
16576         (LDFLAGS-tst-initorder2c.so): Likewise.
16577         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
16578
16579 2012-05-02  David S. Miller  <davem@davemloft.net>
16580
16581         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16582
16583 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
16584
16585         [BZ #14055]
16586         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
16587
16588 2012-05-02  Andreas Jaeger  <aj@suse.de>
16589
16590         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
16591         since we manipulate rounding mode.
16592         (CPPFLAGS-test-idouble.c): Likewise.
16593         (CPPFLAGS-test-ifloat.c): Likewise.
16594         (CFLAGS-test-ldouble.c): Likewise.
16595         (CFLAGS-test-double.c): Likewise.
16596         (CFLAGS-test-float.c): Likewise.
16597         (CFLAGS-test-misc.c): Likewise.
16598         (CFLAGS-test-test-fenv.c): Likewise.
16599
16600 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16601
16602         [BZ #2550]
16603         [BZ #2570]
16604         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
16605         comparisons to determine direction to adjust input.
16606
16607 2012-05-01  Roland McGrath  <roland@hack.frob.com>
16608
16609         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
16610         output to the target.
16611
16612         * scripts/localplt.awk: New file.
16613         * elf/Makefile ($(objpfx)check-localplt): Target removed.
16614         (check-localplt-CFLAGS): Variable removed.
16615         ($(all-built-dso:=.jmprel)): New static pattern rule.
16616         (generated): Add those targets.
16617         (localplt-built-dso): New variable.
16618         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
16619
16620         * elf/check-localplt.c: File removed.
16621
16622         * scripts/check-execstack.awk: New file.
16623         * elf/Makefile ($(objpfx)check-execstack): Target removed.
16624         (check-execstack-CFLAGS): Variable removed.
16625         ($(objpfx)check-execstack.h): Target removed.
16626         ($(objpfx)execstack-default): New target.
16627         (generated): Add that instead of check-execstack.h.
16628         ($(all-built-dso:=.phdr)): New static pattern rule.
16629         (generated): Add those targets.
16630         * elf/check-execstack.c: File removed.
16631
16632         * scripts/check-textrel.awk: New file.
16633         * elf/Makefile ($(objpfx)check-textrel): Target removed.
16634         (check-textrel-CFLAGS): Variable removed.
16635         (all-built-dso): Use := to define.o
16636         ($(all-built-dso:=.dyn)): New static pattern rule.
16637         (generated): Add those targets.
16638         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
16639         * config.make.in (READELF): New substituted variable.
16640         * elf/check-textrel.c: File removed.
16641
16642 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16643
16644         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
16645         allow.
16646         * conform/data/ctype.h-data [C99-based standards] (isblank):
16647         Expect function.
16648         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
16649         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
16650         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16651         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
16652         Specify type.  Require positive value.
16653         (EILSEQ): Likewise.
16654         (ERANGE): Likewise.
16655         [ISO || POSIX] (EILSEQ): Do not expect.
16656         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
16657         Specify type.  Require positive value.
16658         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
16659         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
16660         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
16661         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
16662         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
16663         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
16664         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
16665         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
16666         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
16667         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
16668         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
16669         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
16670         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
16671         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
16672         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
16673         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
16674         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
16675         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
16676         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
16677         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
16678         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
16679         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
16680         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
16681         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
16682         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
16683         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
16684         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
16685         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
16686         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
16687         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
16688         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
16689         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
16690         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
16691         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
16692         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
16693         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
16694         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
16695         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
16696         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
16697         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
16698         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
16699         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
16700         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
16701         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
16702         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
16703         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
16704         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
16705         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
16706         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
16707         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
16708         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
16709         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
16710         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
16711         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
16712         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
16713         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
16714         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
16715         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
16716         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
16717         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
16718         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
16719         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
16720         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
16721         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
16722         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
16723         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
16724         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
16725         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
16726         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
16727         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
16728         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
16729         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
16730         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
16731         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
16732         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
16733         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
16734         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
16735         Require >= 2.
16736         (FLT_ROUNDS): Expect as macro, not constant.
16737         (FLT_MANT_DIG): Use macro-int-constant.
16738         (DBL_MANT_DIG): Likewise.
16739         (LDBL_MANT_DIG): Likewise.
16740         (FLT_DIG): Likewise.
16741         (DBL_DIG): Likewise.
16742         (LDBL_DIG): Likewise.
16743         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
16744         (DBL_MIN_EXP): Likewise.
16745         (LDBL_MIN_EXP): Likewise.
16746         (FLT_MAX_EXP): Use macro-int-constant.
16747         (DBL_MAX_EXP): Likewise.
16748         (LDBL_MAX_EXP): Likewise.
16749         (FLT_MAX_10_EXP): Likewise.
16750         (DBL_MAX_10_EXP): Likewise.
16751         (LDBL_MAX_10_EXP): Likewise.
16752         (FLT_MAX): Use macro-constant.
16753         (DBL_MAX): Likewise.
16754         (LDBL_MAX): Likewise.
16755         (FLT_EPSILON): Use macro-constant.  Give upper bound.
16756         (DBL_EPSILON): Likewise.
16757         (LDBL_EPSILON): Likewise.
16758         (FLT_MIN): Likewise.
16759         (DBL_MIN): Likewise.
16760         (LDBL_MIN): Likewise.
16761         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
16762         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
16763         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
16764         [ISO11] (FLT_HAS_SUBNORM): Likewise.
16765         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
16766         [ISO11] (DBL_DECIMAL_DIG): Likewise.
16767         [ISO11] (FLT_DECIMAL_DIG): Likewise.
16768         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
16769         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
16770         [ISO11] (FLT_TRUE_MIN): Likewise.
16771         [ISO11] (LDBL_TRUE_MIN): Likewise.
16772         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16773         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
16774         (SCHAR_MIN): Use macro-int-constant.  Specify type.
16775         (SCHAR_MAX): Likewise.
16776         (UCHAR_MAX): Likewise.
16777         (CHAR_MIN): Likewise.
16778         (CHAR_MAX): Likewise.
16779         (MB_LEN_MAX): Use macro-int-constant.
16780         (SHRT_MIN): Use macro-int-constant.  Specify type.
16781         (SHRT_MAX): Likewise.
16782         (USHRT_MAX): Likewise.
16783         (INT_MAX): Likewise.
16784         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
16785         bound negative.
16786         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16787         bound with "U".
16788         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16789         bound with "L".
16790         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
16791         bound negative.  Suffix upper bound with "L".
16792         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
16793         bound with "UL".
16794         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
16795         Specify type.
16796         [C99-based standards] (LLONG_MAX): Likewise.
16797         [C99-based standards] (ULLONG_MAX): Likewise.
16798         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
16799         == 0.
16800         [ISO11] (max_align_t): Require type.
16801         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16802
16803         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
16804         from $CFLAGS, without defining away __attribute__ calls.
16805         (checknamespace): Use $CFLAGS_namespace.
16806
16807         * conform/conformtest.pl (@keywords): Only include C99 keywords
16808         for standards based on C99 or C11.
16809
16810         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
16811         Disable tests.
16812         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
16813         UNIX98]: Likewise.
16814
16815         * conform/conformtest.pl: Handle "macro-int-constant" and test for
16816         usability of symbols in #if.
16817
16818         * conform/conformtest.pl: If macro or constant types start
16819         "promoted:", expect the symbol to be of the following type
16820         promoted by the integer promotions.
16821
16822         * conform/conformtest.pl: Parse all "constant" and "macro" lines
16823         in one place.  Also handle "macro-constant".
16824
16825         * conform/conformtest.pl: Only accept expected macro values with
16826         "==".  Parse all "macro" lines in one place.
16827         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
16828
16829         * conform/conformtest.pl: Handle braced types on "constant" lines
16830         instead of handling "typed-constant".
16831         * conform/data/signal.h-data: Use "constant" instead of
16832         "typed-constant".
16833
16834         * conform/conformtest.pl: Handle "optional-" at start of lines in
16835         one place rather than duplicating several cases.  Handle each
16836         format of "macro" line with initial "optional-".
16837
16838         * conform/conformtest.pl: Only accept expected constant or
16839         optional-constant values with "==".  Parse all "constant" lines in
16840         one place.  Parse all "optional-constant" lines in one place.
16841         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
16842         * conform/data/fmtmsg.h-data: Likewise.
16843         * conform/data/netinet/in.h-data: Likewise.
16844         * conform/data/tar.h-data: Likewise.
16845         * conform/data/limits.h-data: Use "==" form on "constant" and
16846         "optional-constant" lines.
16847
16848         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
16849         Use -std=c99 for XOPEN2K.
16850         (@knownproblems): Remove.
16851         (newtoken): Don't check %isknown.
16852
16853         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
16854         Do not expect macro.
16855         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
16856         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
16857         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
16858         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
16859         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
16860         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
16861         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
16862         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
16863         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
16864         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
16865         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
16866         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
16867         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
16868         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
16869         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
16870         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
16871         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
16872         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
16873         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
16874         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
16875         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
16876         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
16877         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
16878         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
16879         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
16880         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
16881         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
16882         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
16883         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
16884         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
16885         [XPG3] (acosh): Likewise.
16886         [XPG3] (asinh): Likewise.
16887         [XPG3] (atanh): Likewise.
16888         [XPG3] (cbrt): Likewise.
16889         [XPG3] (expm1): Likewise.
16890         [XPG3] (ilogb): Likewise.
16891         [XPG3] (log1p): Likewise.
16892         [XPG3] (logb): Likewise.
16893         [XPG3] (nextafter): Likewise.
16894         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
16895         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
16896         [XPG3] (remainder): Likewise.
16897         [XPG3] (rint): Likewise.
16898         [XPG3 || XPG4 || UNIX98] (round): Likewise.
16899         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
16900         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
16901         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
16902         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
16903         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
16904         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
16905         [UNIX98 || XOPEN2K] (scalb): Expect.
16906         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
16907         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
16908         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
16909         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
16910         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
16911         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
16912         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
16913         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
16914         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
16915         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
16916         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
16917         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
16918         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
16919         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
16920         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
16921         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
16922         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
16923         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
16924         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
16925         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
16926         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
16927         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
16928         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
16929         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
16930         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
16931         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
16932         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
16933         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
16934         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
16935         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
16936         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
16937         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
16938         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
16939         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
16940         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
16941         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
16942         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
16943         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
16944         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
16945         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
16946         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
16947         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
16948         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
16949         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
16950         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
16951         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
16952         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
16953         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
16954         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
16955         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
16956         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
16957         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
16958         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
16959         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
16960         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
16961         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
16962         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
16963         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
16964         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
16965         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
16966         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
16967         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
16968         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
16969         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
16970         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
16971         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
16972         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
16973         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
16974         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
16975         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
16976         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
16977         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
16978         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
16979         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
16980         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
16981         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
16982         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
16983         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
16984         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
16985         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
16986         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
16987         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
16988         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
16989         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
16990         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
16991         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
16992         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
16993         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
16994         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
16995         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
16996         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
16997         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
16998         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
16999         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
17000         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
17001         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
17002         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
17003         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
17004         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
17005         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
17006         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
17007         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
17008         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
17009         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
17010         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
17011         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
17012         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
17013         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
17014         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
17015         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
17016         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
17017         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
17018         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
17019         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
17020         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
17021         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
17022         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
17023         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
17024         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
17025         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
17026         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
17027         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
17028         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
17029         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
17030         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
17031         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
17032         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
17033         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
17034         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
17035         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
17036         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
17037         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
17038         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
17039         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
17040         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
17041         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
17042         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
17043
17044         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
17045         _XOPEN_SOURCE_EXTENDED for XPG4.
17046
17047         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
17048
17049         * Makeconfig (localtime): Remove variable.
17050         (inst_localtime-file): Likewise.
17051
17052 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17053
17054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
17055         Update.
17056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17057         Update.
17058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
17059         Update.
17060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
17061         Update.
17062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
17063         Update.
17064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
17065         Update.
17066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17067         Update.
17068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
17069         Update.
17070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17071         Update.
17072
17073 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
17074
17075         [BZ #2550]
17076         [BZ #2570]
17077         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
17078         comparisons to determine direction to adjust input.
17079         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17080         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
17081         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17082         Likewise.
17083         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17084         Likewise.
17085         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17086         Likewise.
17087         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17088         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17089         Likewise.
17090         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17091         Likewise.
17092         * math/libm-test.inc (nexttoward_test): Add more tests.
17093
17094 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17095
17096         [BZ #14040]
17097         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
17098         in version GLIBC_2.1, not GLIBC_2.0.
17099         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
17100         Likewise.
17101
17102 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
17103
17104         [BZ #13942]
17105         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
17106         (1 - x) * (1 + x).
17107         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17108         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
17109         * math/libm-test.inc (acos_test): Add more tests.
17110         (asin_test): Likewise.
17111         * sysdeps/i386/fpu/libm-test-ulps: Update.
17112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17113
17114         [BZ #14034]
17115         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
17116         of square root.
17117         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
17118         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
17119         * math/libm-test.inc (acos_test_tonearest): New function.
17120         (acos_test_towardzero): Likewise.
17121         (acos_test_downward): Likewise.
17122         (acos_test_upward): Likewise.
17123         (asin_test_tonearest): Likewise.
17124         (asin_test_towardzero): Likewise.
17125         (asin_test_downward): Likewise.
17126         (asin_test_upward): Likewise.
17127         (main): Call the new functions.
17128         * sysdeps/i386/fpu/libm-test-ulps: Update.
17129         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17130
17131         [BZ #13884]
17132         [BZ #13924]
17133         * math/e_exp10.c: Include <float.h>.
17134         (__ieee754_exp10): Handle underflow here rather than multiplying
17135         large negative argument by M_LN10.
17136         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
17137         of __ieee754_expf.
17138         * math/e_exp10l.c: Include <float.h>.
17139         (__ieee754_exp10l): Handle underflow here rather than multiplying
17140         large negative argument by M_LN10l.
17141         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
17142         spurious overflow exception on underflow.
17143
17144 2012-04-29  Marek Polacek  <polacek@redhat.com>
17145
17146         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
17147         (__fortify_function): New macro.
17148         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
17149         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
17150         __extern_always_inline.
17151         * libio/bits/stdio2.h: Likewise.
17152         * libio/bits/stdio.h: Likewise.
17153         * string/string.h: Likewise.
17154         * string/bits/string3.h: Likewise.
17155         * include/stdio.h: Likewise.
17156         * stdlib/bits/stdlib.h: Likewise.
17157         * stdlib/stdlib.h: Likewise.
17158         * rt/bits/mqueue2.h: Likewise.
17159         * rt/mqueue.h: Likewise.
17160         * posix/bits/unistd.h: Likewise.
17161         * posix/unistd.h: Likewise.
17162         * io/bits/poll2.h: Likewise.
17163         * io/bits/fcntl2.h: Likewise.
17164         * io/fcntl.h: Likewise.
17165         * io/sys/poll.h: Likewise.
17166         * misc/bits/syslog.h: Likewise.
17167         * misc/bits/syslog-ldbl.h: Likewise.
17168         * misc/sys/syslog.h: Likewise.
17169         * socket/bits/socket2.h: Likewise.
17170         * socket/sys/socket.h: Likewise.
17171         * debug/tst-chk1.c: Likewise.
17172         * wcsmbs/bits/wchar2.h: Likewise.
17173         * wcsmbs/bits/wchar-ldbl.h: Likewise.
17174         * wcsmbs/wchar.h: Likewise.
17175
17176 2012-04-29  Andreas Jaeger  <aj@suse.de>
17177
17178         * Makerules (tests): Remove enable-check-abi protection.
17179         (check-abi-warn): Remove.
17180         (check-abi-%): Remove check-abi-warn usage.
17181
17182         * configure.in: Remove check-abi configure option.
17183         * configure: Regenerated.
17184         * config.make.in (enable-check-abi): Remove.
17185
17186 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
17187
17188         [BZ #14033]
17189         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
17190         double functions to double *_finite functions.
17191
17192         [BZ #13941]
17193         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
17194         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
17195         LDBL_MIN_EXP.
17196         * stdio-common/Makefile (tests): Add tst-sprintf3.
17197         * stdio-common/tst-sprintf3.c: New file.
17198
17199         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
17200         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
17201
17202 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17203
17204         * conform/conformtest.pl: Remove duplicate typed-constant
17205         handling.
17206
17207 2012-04-28  David S. Miller  <davem@davemloft.net>
17208
17209         * Makerules (%.abilist): Add vpath on sysdep_dirs.
17210         (check-abi-%): Remove AWK script prerequisite and explicit
17211         abilist directory.
17212         (check-abi): Rewrite to just diff the symlist with the abilist.
17213         (config-tls, config-abi-config): Delete, no longer used.
17214         (update-abi-%): Remove AWK script and explicit abilist directory.
17215         (update-abi): Rewrite to simply compare and conditionally copy the
17216         symlist and the sysdep abilist file.  Remove update-abi-config
17217         checks.
17218         * abilist/ld.abilist: Remove.
17219         * abilist/libBrokenLocale.abilist: Remove.
17220         * abilist/libanl.abilist: Remove.
17221         * abilist/libcrypt.abilist: Remove.
17222         * abilist/libdl.abilist: Remove.
17223         * abilist/librt.abilist: Remove.
17224         * abilist/libthread_db.abilist: Remove.
17225         * abilist/libutil.abilist: Remove.
17226         * scripts/extract-abilist.awk: Remove.
17227         * scripts/merge-abilist.awk: Remove.
17228         * sysdeps/generic/libcidn.abilist: New file.
17229         * sysdeps/generic/libnss_compat.abilist: New file.
17230         * sysdeps/generic/libnss_db.abilist: New file.
17231         * sysdeps/generic/libnss_dns.abilist: New file.
17232         * sysdeps/generic/libnss_files.abilist: New file.
17233         * sysdeps/generic/libnss_hesiod.abilist: New file.
17234         * sysdeps/generic/libnss_nis.abilist: New file.
17235         * sysdeps/generic/libnss_nisplus.abilist: New file.
17236         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
17237         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
17238         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
17239         file.
17240         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
17241         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
17242         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
17243         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
17244         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
17245         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
17246         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
17247         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
17248         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
17249         file.
17250         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
17251         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
17252         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
17253         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
17254         file.
17255         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
17256         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
17257         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
17258         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
17259         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
17260         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
17261         file.
17262         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
17263         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
17264         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
17265         file.
17266         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
17267         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
17268         New file.
17269         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
17270         New file.
17271         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
17272         New file.
17273         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
17274         New file.
17275         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
17276         New file.
17277         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
17278         New file.
17279         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
17280         New file.
17281         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
17282         New file.
17283         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
17284         New file.
17285         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
17286         New file.
17287         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
17288         New file.
17289         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
17290         New file.
17291         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
17292         New file.
17293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
17294         file.
17295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
17296         New file.
17297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
17298         New file.
17299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
17300         file.
17301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
17302         New file.
17303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
17304         New file.
17305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
17306         file.
17307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
17308         New file.
17309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17310         New file.
17311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
17312         New file.
17313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
17314         New file.
17315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
17316         New file.
17317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
17318         New file.
17319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
17320         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
17321         file.
17322         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
17323         New file.
17324         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
17325         file.
17326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
17327         file.
17328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
17329         file.
17330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
17331         file.
17332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
17333         file.
17334         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17335         New file.
17336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
17337         file.
17338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
17339         file.
17340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
17341         New file.
17342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
17343         file.
17344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
17345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
17346         file.
17347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
17348         New file.
17349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
17350         file.
17351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
17352         file.
17353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
17354         file.
17355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
17356         file.
17357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
17358         file.
17359         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17360         New file.
17361         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
17362         file.
17363         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
17364         file.
17365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
17366         New file.
17367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
17368         file.
17369         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17370         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
17371         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
17372         file.
17373         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
17374         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
17375         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
17376         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
17377         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
17378         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
17379         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
17380         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
17381         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
17382         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
17383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
17384         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
17385         file.
17386         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
17387         New file.
17388         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
17389         file.
17390         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
17391         file.
17392         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
17393         file.
17394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
17395         file.
17396         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
17397         file.
17398         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17399         New file.
17400         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
17401         New file.
17402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
17403         file.
17404         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
17405         New file.
17406         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
17407         file.
17408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
17409         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
17410         file.
17411         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
17412         New file.
17413         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
17414         file.
17415         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
17416         file.
17417         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
17418         file.
17419         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
17420         file.
17421         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
17422         file.
17423         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17424         New file.
17425         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
17426         New file.
17427         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
17428         file.
17429         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
17430         New file.
17431         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
17432         file.
17433
17434 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
17435
17436         * conform/conformtest.pl: Fix typo in handling typed-constant from
17437         allow-header.
17438
17439 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17440
17441         * README: Cut down references to pre-2.6 Linux kernels and
17442         Linuxthreads.  Update lists of configurations in libc and ports
17443         and sort alphabetically.  Say "or newer" with Linux kernel version
17444         requirements.
17445
17446         * config.h.in [IS_IN_build]: Allow compiling without optimization.
17447
17448 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17449
17450         [BZ #887]
17451         * math/libm-test.inc (logb_test_downward): New test to expose
17452         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
17453         rounding mode.
17454
17455 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
17456
17457         [BZ #14027]
17458         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
17459         to be done.
17460         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
17461         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
17462
17463 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17464
17465         * sysdeps/unix/i386/brk.S: Remove file.
17466         * sysdeps/unix/i386/dl-brk.S: Likewise.
17467         * sysdeps/unix/i386/pipe.S: Likewise.
17468         * sysdeps/unix/i386/sigreturn.S: Likewise.
17469         * sysdeps/unix/i386/syscall.S: Likewise.
17470         * sysdeps/unix/i386/vfork.S: Likewise.
17471         * sysdeps/unix/i386/wait.S: Likewise.
17472
17473         * sysdeps/unix/common/tcsendbrk.c: Move to ...
17474         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
17475
17476         * configure.in (arm*-none*): Do not allow without
17477         --enable-hacker-mode.
17478         (netbsd*): Remove case setting base_os.
17479         (386bsd*): Likewise.
17480         (freebsd*): Likewise.
17481         (bsdi*): Likewise.
17482         (osf*): Likewise.
17483         (sunos*): Likewise.
17484         (ultrix*): Likewise.
17485         (newsos*): Likewise.
17486         (dynix*): Likewise.
17487         (*bsd*): Likewise.
17488         (sysv*): Likewise.
17489         (isc*): Likewise.
17490         (esix*): Likewise.
17491         (sco*): Likewise.
17492         (minix*): Likewise.
17493         (irix4*): Likewise.
17494         (irix6*): Likewise.
17495         (solaris[2-9]*): Likewise.
17496         (none): Likewise.
17497         * configure: Regenerated.
17498
17499 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17500
17501         [BZ #11521]
17502         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
17503         overflow or cancellation in calculating denominator.
17504         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
17505         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
17506         down expression to avoid unexpected rounding in newer GCCs.
17507         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
17508
17509 2012-04-26  David S. Miller  <davem@davemloft.net>
17510
17511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
17512         long-double compat symbols.
17513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
17514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
17516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
17517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
17518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
17519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
17520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
17521         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
17522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
17523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
17524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
17525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
17526
17527 2012-04-25  David S. Miller  <davem@davemloft.net>
17528
17529         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
17530         HWCAP_* values only after the memory barriers have been defined.
17531         (atomic_full_barrier): Define.
17532         (atomic_read_barrier): Define.
17533         (atomic_write_barrier): Define.
17534
17535 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17536
17537         * shlib-versions: Add libgcc_s version information.
17538         * sysdeps/generic/libgcc_s.h: Remove.
17539         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
17540         libgcc_s.h.
17541         * sysdeps/gnu/unwind-resume.c: Likewise.
17542         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
17543
17544 2012-04-25  David S. Miller  <davem@davemloft.net>
17545
17546         * sysdeps/unix/sparc/brk.S: Delete.
17547         * sysdeps/unix/sparc/dl-brk.S: Delete.
17548         * sysdeps/unix/sparc/pipe.S: Delete.
17549         * sysdeps/unix/sparc/sysdep.S: Delete.
17550         * sysdeps/unix/sparc/sysdep.h: Delete.
17551         * sysdeps/unix/sparc/vfork.S: Delete.
17552         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
17553         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
17554         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
17555         ret_ERRVAL, r0, r1, MOVE): Define.
17556         (JUMPTARGET): Remove.
17557         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
17558         sysdeps/unix/sparc/sysdep.h
17559         (ENTRY, END): Remove.
17560         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17561
17562 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
17563
17564         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
17565         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
17566         -DIS_IN_build.
17567
17568         * timezone/README: Update upstream location and email address for
17569         tzcode and tzdata.
17570         * timezone/zdump.c: Update from tzcode 2012b.
17571         * timezone/zic.c: Likewise.
17572
17573         * configure.in (libc_cv_as_needed): Remove test.
17574         * configure: Regenerated.
17575         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
17576         conditional definition.
17577         [$(have-as-needed) != yes] (no-as-needed): Likewise.
17578         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
17579         * config.make.in (have-as-needed): Remove variable.
17580
17581 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
17582             Paul Pluzhnikov  <ppluzhnikov@google.com>
17583
17584         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
17585         strings correctly.
17586
17587 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17588
17589         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
17590         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
17591         * sysdeps/sh/strlen.S: Likewise.
17592
17593 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17594
17595         * sysdeps/unix/fork.S: Remove file.
17596         * sysdeps/unix/i386/fork.S: Likewise.
17597         * sysdeps/unix/sparc/fork.S: Likewise.
17598
17599         * sysdeps/unix/system.c: Remove file.
17600         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
17601
17602         * sysdeps/unix/getegid.S: Remove file.
17603         * sysdeps/unix/geteuid.S: Likewise.
17604
17605 2012-04-24  Roland McGrath  <roland@hack.frob.com>
17606
17607         * scripts/check-localplt.awk: New file.
17608         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
17609         of diff.
17610         * scripts/data/localplt-generic.data: Add a comment.
17611
17612         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
17613         NODE when __dir_mkfile failed.
17614         * sysdeps/mach/hurd/symlinkat.c: Likewise.
17615         Reported by Ludovic Courtès <ludo@gnu.org>.
17616
17617 2012-04-24  Andreas Jaeger  <aj@suse.de>
17618
17619         * Makerules (common-clean): Also remove gen-as-const-headers
17620         files.
17621
17622 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17623
17624         * Makerules (native-compile): Do not change working directory for
17625         build.  Use $(OUTPUT_OPTION) in command.
17626         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
17627
17628 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17629
17630         [BZ #13886]
17631         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
17632         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
17633         * math/libm-test.inc (floor_test): Add more tests.
17634         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
17635
17636 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
17637
17638         * sysdeps/unix/getdents.c: Remove file.
17639         * sysdeps/unix/sysv/getdents.c: Likewise.
17640         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
17641
17642         * sysdeps/unix/syscalls.list (madvise): Add syscall from
17643         sysdeps/unix/mman/syscalls.list.
17644         (mmap): Likewise.
17645         (mprotect): Likewise.
17646         (msync): Likewise.
17647         (munmap): Likewise.
17648         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
17649         * sysdeps/unix/mman/syscalls.list: Remove.
17650         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
17651
17652         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
17653         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
17654         * configure: Regenerated.
17655         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
17656         $(libgcc_s_suffix).
17657         * config.make.in (libgcc_s_suffix): Remove variable.
17658
17659 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
17660
17661         * sysdeps/unix/sysv/gethostname.c: Move to ...
17662         * sysdeps/posix/gethostname.c: ... here.
17663
17664         * sysdeps/unix/execve.S: Remove file.
17665
17666         * sysdeps/unix/_exit.S: Remove file.
17667
17668 2012-04-23  Andreas Jaeger  <aj@suse.de>
17669
17670         [BZ #13739]
17671         * manual/Makefile: Remove make dist support, there's no
17672         need for a stand-alone documentation tar ball.
17673         (TEXI2DVI): Define always, it's not in Makeconfig.
17674         (dist): Removed.
17675         (tar-it): Removed.
17676         (edition): Removed.
17677         (glibc-doc-$(edition).tar): Removed
17678         (%.Z): Removed.
17679         (%.gz): Removed.
17680         (%.uu): Removed.
17681         (ETAGS): Remove, it's in Makeconfig.
17682         (move-if-change): Remove, it's in Makeconfig.
17683
17684 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         [BZ #13970]
17687         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
17688         (strtod, strtof, strtold, strtol, strtoul, strtoq)
17689         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
17690         (strtod_l, strtof_l, strtold_l): Remove __wur.
17691         It is not necessarily an error to ignore strtol's return value.
17692         One can reliably look at the stored endptr to decide whether
17693         the number had valid syntax.
17694
17695 2012-04-21  Andreas Jaeger  <aj@suse.de>
17696
17697         [BZ #13739]
17698         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
17699
17700 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
17701
17702         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
17703         * sysdeps/unix/sysv/Versions: Remove file.
17704
17705 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17706
17707         [BZ #13927]
17708         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17709
17710 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
17711
17712         [BZ #7064]
17713         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
17714         version from __vm86.
17715
17716 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
17717
17718         * sysdeps/unix/common/lxstat.c: Remove file.
17719         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
17720
17721         * sysdeps/unix/sysv/Makefile: Remove file.
17722
17723         * sysdeps/unix/sysv/direct.h: Remove file.
17724
17725         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
17726         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
17727         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
17728         * sysdeps/unix/sysv/bits/signum.h: Likewise.
17729         * sysdeps/unix/sysv/bits/stat.h: Likewise.
17730         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
17731         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
17732
17733         * sysdeps/unix/sysv/setrlimit.c: Remove file.
17734
17735         * sysdeps/unix/xmknod.c: Remove file.
17736         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
17737
17738         * sysdeps/unix/sysv/settimeofday.c: Remove file.
17739
17740         * sysdeps/unix/sysv/i386/time.S: Remove file.
17741
17742         * sysdeps/unix/fxstat.c: Remove file.
17743         * sysdeps/unix/xstat.c: Likewise.
17744         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
17745
17746         * sysdeps/unix/sysv/sigaction.c: Remove file.
17747
17748         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
17749         (sysdep_headers): Remove variable.
17750         [termio.h not in sysdep_headers] (generated): Likewise.
17751         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
17752         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
17753         * sysdeps/unix/sysv/tcdrain.c: Likewise.
17754         * sysdeps/unix/sysv/tcflow.c: Likewise.
17755         * sysdeps/unix/sysv/tcflush.c: Likewise.
17756         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
17757         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
17758         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
17759         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
17760         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
17761
17762         * sysdeps/unix/siglist.c: Remove file.
17763
17764         * sysdeps/unix/getppid.S: Remove file.
17765
17766         * sysdeps/unix/mkdir.c: Remove file.
17767         * sysdeps/unix/rmdir.c: Likewise.
17768
17769 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
17770
17771         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
17772         ERR_MAX value.
17773         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
17774         errlist-compat value.
17775
17776 2012-04-18  David S. Miller  <davem@davemloft.net>
17777
17778         * sysdeps/generic/memcopy.h (reg_char): Delete.
17779         * debug/strcat_chk.c: Use char, not reg_char.
17780         * debug/strcpy_chk.c: Likewise.
17781         * debug/strncat_chk.c: Likewise.
17782         * debug/strncpy_chk.c: Likewise.
17783         * string/memchr.c: Likewise.
17784         * string/memrchr.c: Likewise.
17785         * string/rawmemchr.c: Likewise.
17786         * string/strcat.c: Likewise.
17787         * string/strchr.c: Likewise.
17788         * string/strchrnul.c: Likewise.
17789         * string/strcmp.c: Likewise.
17790         * string/strcpy.c: Likewise.
17791         * string/strncat.c: Likewise.
17792         * string/strncmp.c: Likewise.
17793         * string/strncpy.c: Likewise.
17794
17795 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17796
17797         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
17798         __builtin_memcopy is called when src and dest ranges are known to not
17799         overlap.
17800
17801 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17802
17803         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
17804         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
17805         fwd_align_merge macro call.
17806         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
17807         bwd_align_merge macro call.
17808         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17809
17810 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
17811
17812         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
17813         bwd_align_merge macros.
17814         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
17815         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
17816         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17817
17818 2012-04-18  David S. Miller  <davem@davemloft.net>
17819
17820         * sysdeps/sparc/sparc64/memcopy.h: Delete.
17821
17822 2012-04-18  Andreas Jaeger  <aj@suse.de>
17823
17824         [BZ# 6794]
17825         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
17826         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
17827         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17828
17829         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
17830         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
17831         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17832
17833         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
17834         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
17835         Adjust for changed ldbl-128 files.
17836
17837         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
17838         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
17839         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
17840
17841 2012-04-17  David S. Miller  <davem@davemloft.net>
17842
17843         * sysdeps/sparc/sparc32/memcopy.h: Delete.
17844
17845 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
17846
17847         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
17848         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
17849         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
17850         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
17851         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
17852         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
17853
17854 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17855
17856         [BZ #6794]
17857         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
17858         * math/libm-test.inc: Add ilogb errno and exception tests.
17859         * math/w_ilogb.c: New file: ilogb wrapper.
17860         * math/w_ilogbf.c: New file: ilogbf wrapper.
17861         * math/w_ilogbl.c: New file: ilogbl wrapper.
17862         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
17863         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
17864         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
17865         exception being thrown with 0.0 as argument.
17866         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
17867         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
17868         exception being thrown with 0.0 as argument.
17869         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
17870         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17871         exception being thrown with 0.0 as argument.
17872         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
17873         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
17874         exception being thrown with 0.0 as argument.
17875         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
17876         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
17877         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
17878         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
17879         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
17880         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
17881         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
17882         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
17883         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
17884
17885 2012-04-17  Petr Baudis  <pasky@ucw.cz>
17886
17887         * include/sys/uio.h: Change __vector to __iovec to avoid clash
17888         with altivec.
17889
17890 2012-04-16  Marek Polacek  <polacek@redhat.com>
17891
17892         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
17893
17894 2012-04-16  Marek Polacek  <polacek@redhat.com>
17895
17896         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
17897         operands of fdivp instruction.
17898
17899 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17900
17901         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
17902         * elf/tst-auditmod3b.c: Likewise.
17903         * elf/tst-auditmod4b.c: Likewise.
17904         * elf/tst-auditmod5b.c: Likewise.
17905         * elf/tst-auditmod6b.c: Likewise.
17906         * elf/tst-auditmod6c.c: Likewise.
17907         * elf/tst-auditmod7b.c: Likewise.
17908         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
17909         * sysdeps/x86_64/preconfigure.in: Likewise.
17910         * sysdeps/x86_64/preconfigure: Regenerated.
17911
17912 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
17915         __ILP32__.
17916
17917 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
17918
17919         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17920         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
17921
17922 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
17923
17924         [BZ #13973]
17925         * locale/iso-639.def: Fix gl language name. Spotted by
17926         Yaron Shahrabani.
17927
17928 2012-04-12  Roland McGrath  <roland@hack.frob.com>
17929
17930         [BZ #2074]
17931         * libio/libio.h (__io_write_fn): Update comment.
17932
17933 2012-04-12  Petr Baudis  <pasky@ucw.cz>
17934
17935         [BZ #2074]
17936         * stdio.texi (Hook Functions): The user provided writer function
17937         is not allowed to return -1.
17938
17939 2012-04-11  David S. Miller  <davem@davemloft.net>
17940
17941         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17942
17943 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
17944
17945         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
17946         Add a leading slash to rtkaio.
17947
17948 2012-04-11  Jim Meyering  <meyering@redhat.com>
17949
17950         [BZ #11959]
17951         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
17952         It is not necessarily an error to ignore fwrite's return
17953         value.  One can reliably use ferror to test for errors after
17954         the fact.
17955
17956 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17957
17958         * bits/types.h (__snseconds_t): New type.
17959         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
17960
17961         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
17962         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17963         (__SNSECONDS_T_TYPE): Likewise.
17964         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17965         (__SNSECONDS_T_TYPE): Likewise.
17966         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17967         (__SNSECONDS_T_TYPE): Likewise.
17968
17969 2012-04-10  Andreas Jaeger  <aj@suse.de>
17970
17971         [BZ #2636]
17972         * manual/time.texi (Processor Time): Return type of times is
17973         elapsed real time since an arbitrary point in the past.
17974         (CPU Time): Move CLK_TCK from here...
17975         (Processor Time): ...to here.  Correct description.
17976         * manual/conf.texi (Constants for Sysconf): Correct description of
17977         _SC_CLK_TCK.
17978
17979 2012-04-10  David S. Miller  <davem@davemloft.net>
17980
17981         [BZ #13967]
17982         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
17983         where the is a gap between DT_REL(A) and DT_JMPREL.
17984
17985 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
17988         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17989         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17990
17991 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17992
17993         * elf/dl-support.c (_dl_inhibit_cache): New variable.
17994         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
17995         (dl_main): Handle --inhibit-cache.
17996         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
17997         _dl_inhibit_cache.
17998         * elf/dl-load.c (_dl_map_object): Use it.
17999         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
18000
18001 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18002
18003         [BZ #13872]
18004         * sysdeps/i386/fpu/e_powl.S (p78): New object.
18005         (__ieee754_powl): Saturate large exponents rather than testing for
18006         overflow of y*log2(x).
18007         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18008         * math/libm-test.inc (pow_test): Do not permit spurious overflow
18009         exceptions.
18010
18011         [BZ #11521]
18012         * math/s_ctan.c: Include <float.h>.
18013         (__ctan): Avoid internal overflow or cancellation in calculating
18014         denominator.
18015         * math/s_ctanf.c: Likewise.
18016         * math/s_ctanl.c: Likewise.
18017         * math/s_ctanh.c: Likewise.
18018         * math/s_ctanhf.c: Likewise.
18019         * math/s_ctanhl.c: Likewise.
18020         * math/libm-test.inc (ctan_test): Add more tests.
18021         (ctanh_test): Likewise.
18022         * sysdeps/i386/fpu/libm-test-ulps: Update.
18023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18024
18025 2012-04-09  Andreas Jaeger  <aj@suse.de>
18026
18027         [BZ #6894]
18028         * manual/filesys.texi (Directory Entries): Mention that d_namlen
18029         is an optional BSD extension.
18030
18031         [BZ #10254]
18032         * manual/stdio.texi (Opening Streams): Document additional fopen
18033         parameters.
18034
18035 2012-04-09  Roland McGrath  <roland@hack.frob.com>
18036
18037         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
18038         %eax without telling the compiler.
18039
18040 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
18041
18042         [BZ # 13963]
18043         * manual/install.texi: Use sourceware.org.
18044
18045 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
18046
18047         [BZ #13873]
18048         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
18049         (__ieee754_pow): Generate overflow and underflow using huge*huge
18050         and tiny*tiny rather than just returning constant infinity or zero
18051         for large exponents.
18052         * math/libm-test.inc (pow_test): Require overflow exceptions for
18053         applicable cases of large exponents.
18054
18055         [BZ #706]
18056         * sysdeps/i386/fpu/e_pow.S (p10): New object.
18057         (__ieee754_pow): Use iterative multiplication algorithm only for
18058         integer exponents with absolute value below 1024.  Check for odd
18059         integer exponents when using algorithm for real exponents.
18060         * math/libm-test.inc (pow_test): Add more tests.
18061         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18062
18063 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
18064
18065         [BZ #13705]
18066         * math/libm-test.inc (exp_test): Do not allow overflow exception
18067         on underflow test.
18068
18069 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
18070
18071         [BZ #13705]
18072         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
18073         instead of __kernel_standard_f.
18074
18075 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
18076
18077         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
18078         * sysdeps/x86_64/memset_chk.S: Likewise.
18079
18080 2012-04-08  Andreas Jaeger  <aj@suse.de>
18081
18082         [BZ #10153]
18083         * manual/startup.texi (Environment Access): Describe return value
18084         for putenv and setenv.
18085
18086         [BZ #6895]
18087         * manual/filesys.texi (Directory Entries): Add description for
18088         DT_LNK.
18089
18090         [BZ #6890]
18091         * manual/filesys.texi (Directory Entries): Clarify that it's file
18092         system not operating system in the description of DT_UNKNOWN.
18093
18094         [BZ #6578]
18095         * manual/syslog.texi (closelog): Fix reference, it's openlog.
18096
18097 2012-04-08  Stephen Compall  <s11@member.fsf.org>
18098
18099         [BZ #6649]
18100         * manual/llio.texi (Opening and Closing Files): Add cross
18101         reference to explain mode argument.
18102
18103 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
18104
18105         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
18106         * sysdeps/x86_64/memset_chk.S: Likewise.
18107
18108 2012-04-07  David S. Miller  <davem@davemloft.net>
18109
18110         * elf/elf.h (R_SPARC_WDISP10): Define.
18111         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
18112         R_SPARC_SIZE32.
18113         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
18114         R_SPARC_SIZE64 and R_SPARC_H34.
18115
18116 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
18117
18118         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
18119         conditions and remove no longer applicable assertion.
18120
18121 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18122
18123         * bits/byteswap.h: Include <features.h>.
18124         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
18125         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
18126
18127 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18128
18129         * bits/byteswap.h (__bswap_16): Removed.
18130         Include <bits/byteswap-16.h> to get __bswap_16.
18131         * sysdeps/i386/bits/byteswap.h: Likewise.
18132         * sysdeps/s390/bits/byteswap.h: Likewise.
18133         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18134         * bits/byteswap-16.h: New file.
18135         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18136         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18137         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
18138         * string/Makefile (headers): Add bits/byteswap-16.h.
18139
18140 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18141
18142         [BZ #13895]
18143         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
18144         extra indirection.
18145         * nss/Makefile (tests-static, tests): Add tst-nss-static.
18146         * nss/tst-nss-static.c: New.
18147
18148 2012-04-06  Robert Millan  <rmh@gnu.org>
18149
18150         [BZ #6486]
18151         * manual/llio.texi (File Position Primitive): lseek
18152         refers to WHENCE when it really means OFFSET.
18153
18154 2012-04-06  Andreas Jaeger  <aj@suse.de>
18155
18156         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
18157         strncmp declarations.
18158
18159         * abilist/libc.abilist: Add __poll and __ppoll.
18160
18161 2012-04-05  David S. Miller  <davem@davemloft.net>
18162
18163         * scripts/check-local-headers.sh: Accept a host triplet in the
18164         path matched by the exclude regexp.
18165
18166         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
18167         definition.
18168         * sysdeps/powerpc/powerpc32/dl-machine.h
18169         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
18170         * sysdeps/s390/s390-32/dl-machine.h
18171         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18172         * sysdeps/sparc/sparc32/dl-machine.h
18173         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18174         * sysdeps/sparc/sparc64/dl-machine.h
18175         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
18176
18177         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
18178         lazy binding.
18179         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
18180         undefined symbol errors.
18181
18182         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
18183         DT_NEEDED entries.
18184
18185 2012-04-05  Michael Matz  <matz@suse.de>
18186
18187         [BZ #13592]
18188         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
18189
18190 2012-04-05  Andreas Jaeger  <aj@suse.de>
18191
18192         [BZ #13908]
18193         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
18194         comment.
18195
18196 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18197
18198         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
18199         which ROUND is no valid rounding mode.
18200
18201 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18202
18203         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
18204         read again.
18205         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
18206
18207 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18208
18209         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
18210         an exception using FPU order intentionally.
18211
18212 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18213
18214         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
18215         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
18216         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
18217         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
18218
18219 2012-04-05  Simon Josefsson  <simon@josefsson.org>
18220
18221         [BZ #12340]
18222         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
18223         EINVAL when BUFLEN is too smal.
18224
18225 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18226
18227         [BZ #13553]
18228         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
18229         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
18230
18231 2012-04-03  Andreas Jaeger  <aj@suse.de>
18232
18233         [BZ #13938]
18234         * manual/setjmp.texi (System V contexts): Fix sentence.
18235
18236         [BZ #13926]
18237         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
18238         New macro for this case.
18239         [!__GNUC__] (__bswap_64): New inline function for this case.
18240         * sysdeps/x86_64/bits/byteswap.h: Likewise.
18241         * bits/byteswap.h: Likewise.
18242         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
18243         ull, guard with __GLIBC_HAVE_LONG_LONG.
18244
18245         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
18246         __GLIBC_HAVE_LONG_LONG.
18247
18248         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
18249         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
18250
18251 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18252
18253         [BZ #13691]
18254         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
18255         inptr and inend, rather than using last_ch.
18256
18257 2012-04-02  David S. Miller  <davem@davemloft.net>
18258
18259         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
18260         * stdio-common/printf-parse.h (read_int): Change return type to
18261         'int', return -1 on INT_MAX overflow.
18262         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
18263         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
18264         overflows INT_MAX.  Check for overflow of in-format-string precision
18265         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
18266         SIZE_MAX not INT_MAX for integer overflow test.
18267         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
18268         skip the construct in the format string but do not record anything.
18269         * stdio-common/bug22.c: Adjust to test both width/prevision
18270         INT_MAX overflow as well as total length INT_MAX overflow.  Check
18271         explicitly for proper errno values.
18272
18273 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18274
18275         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
18276         CHAR_MAX.
18277         * string/test-strcmp.c [! WIDE]: Likewise.
18278         * time/tst-mktime2.c: Likewise for INT_MAX.
18279         * string/test-string.h: #include <sys/param.h> for MIN.
18280
18281         * csu/init-first.c (__libc_init_first): Call __ctype_init.
18282         * sysdeps/i386/init-first.c (init): Likewise.
18283         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
18284         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
18285         * sysdeps/sh/init-first.c (init): Likewise.
18286
18287 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
18288
18289         * po/ru.po: Update from translation team.
18290         * po/vi.po: Likewise.
18291
18292 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
18293
18294         * resolv/nss_dns/dns-host.c: Merge copyright years.
18295
18296 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18297
18298         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
18299         Optimize memcpy with prefetch if
18300         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
18301         src, dst pointers have unequal 16 byte alignments.
18302
18303 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18304
18305         [BZ #13928]
18306         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
18307         from a CNAME entry and return the minimum ttl for the query.
18308         (gaih_getanswer_slice): Likewise.
18309
18310 2012-03-30  Jeff Law  <law@redhat.com>
18311
18312         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
18313         due to long keys.
18314         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
18315         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
18316
18317         * resolv/nss_dns/dns-host.c: Update copyright year.
18318
18319 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
18320
18321         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
18322         requests to save a system call.  Fix check that all bytes are sent.
18323
18324         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
18325         comments for sendmmsg.
18326
18327 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18328
18329         [BZ #13691]
18330         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
18331         with only 1 character between 0x0041 and 0x01b0.
18332         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
18333         * wcsmbs/tst-mbsnrtowcs.c: New file.
18334
18335 2012-03-29  David S. Miller  <davem@davemloft.net>
18336
18337         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
18338         small copies by hand.
18339
18340 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18341
18342         [BZ #13761]
18343         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
18344         _nss_compat_initgroups_dyn): Fall back to malloc/free
18345         for large group memberships.
18346
18347 2012-03-28  David S. Miller  <davem@davemloft.net>
18348
18349         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
18350         that branches into memcpy.
18351         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
18352         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
18353         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18354         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
18355         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
18356         bits.
18357         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
18358         implementation too.
18359         * sysdeps/sparc/mempcpy.S: New file.
18360
18361         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
18362         the IFUNC routine in the libc case.
18363         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18364
18365         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
18366         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
18367         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
18368         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
18369         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
18370         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
18371         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
18372         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
18373
18374         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
18375         loop to 256 bytes instead of 64 bytes and fix test signedness.
18376
18377         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
18378         * sysdeps/sparc/sparc32/Makefile: rather than here...
18379         * sysdeps/sparc/sparc64/Makefile: and here.
18380
18381 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
18382
18383         * malloc/mallocbug.c: Avoid warnings about unused variables.
18384
18385 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18386
18387         [BZ #13760]
18388         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
18389         in the right place. Discard and retry query if response is
18390         larger than input buffer size.
18391
18392 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
18393
18394         [BZ #369]
18395         [BZ #2678]
18396         [BZ #3866]
18397         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
18398         x for large integer exponent.
18399         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
18400         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
18401         sign of result as needed afterwards.
18402         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
18403         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
18404         result for underflowing pow the same as for overflow.
18405         (__kernel_standard_l): Handle powl overflow and underflow here
18406         rather than calling __kernel_standard.
18407         * math/libm-test.inc (pow_test): Add more tests.
18408
18409         [BZ #3868]
18410         [BZ #13879]
18411         [BZ #13910]
18412         [BZ #13911]
18413         [BZ #13912]
18414         [BZ #13913]
18415         [BZ #13915]
18416         [BZ #13916]
18417         [BZ #13917]
18418         [BZ #13918]
18419         [BZ #13919]
18420         [BZ #13920]
18421         [BZ #13921]
18422         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
18423         * sysdeps/ieee754/k_standard.c: Include <float.h>.
18424         (__kernel_standard_l): New function.
18425         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
18426         __kernel_standard.
18427         * math/w_acosl.c (__acosl): Likewise.
18428         * math/w_asinl.c (__asinl): Likewise.
18429         * math/w_atan2l.c (__atan2l): Likewise.
18430         * math/w_atanhl.c (__atanhl): Likewise.
18431         * math/w_coshl.c (__coshl): Likewise.
18432         * math/w_exp10l.c (__exp10l): Likewise.
18433         * math/w_exp2l.c (__exp2l): Likewise.
18434         * math/w_fmodl.c (__fmodl): Likewise.
18435         * math/w_hypotl.c (__hypotl): Likewise.
18436         * math/w_j0l.c (__j0l, __y0l): Likewise.
18437         * math/w_j1l.c (__j1l, __y1l): Likewise.
18438         * math/w_jnl.c (__jnl, __ynl): Likewise.
18439         * math/w_lgammal.c (__lgammal): Likewise.
18440         * math/w_log10l.c (__log10l): Likewise.
18441         * math/w_log2l.c (__log2l): Likewise.
18442         * math/w_logl.c (__logl): Likewise.
18443         * math/w_powl.c (__powl): Likewise.
18444         * math/w_remainderl.c (__remainderl): Likewise.
18445         * math/w_scalbl.c (sysv_scalbl): Likewise.
18446         * math/w_sinhl.c (__sinhl): Likewise.
18447         * math/w_sqrtl.c (__sqrtl): Likewise.
18448         * math/w_tgammal.c (__tgammal): Likewise.
18449         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
18450         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
18451         * math/libm-test.inc (acos_test): Add more tests.
18452         (acosh_test): Likewise.
18453         (asin_test): Likewise.
18454         (atanh_test): Likewise.
18455         (exp_test): Likewise.
18456         (exp10_test): Likewise.
18457         (exp2_test): Likewise.
18458         (expm1_test): Likewise.
18459         (lgamma_test): Likewise.
18460         (log_test): Likewise.
18461         (log10_test): Likewise.
18462         (log1p_test): Likewise.
18463         (log2_test): Likewise.
18464         (pow_test): Do not allow some spurious overflow exceptions.
18465         (sqrt_test): Add more tests.
18466         (tgamma_test): Likewise.
18467         (y0_test): Likewise.
18468         (y1_test): Likewise.
18469         (yn_test): Likewise.
18470
18471 2012-03-27  Anton Blanchard  <anton@samba.org>
18472
18473         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
18474         MAP_HUGETLB.
18475         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18476         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18477         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18478
18479 2012-03-27  David S. Miller  <davem@davemloft.net>
18480
18481         * conform/Makefile: Run run-conformtest.sh using $(BASH).
18482
18483         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
18484         have-as-vis3 check.
18485
18486 2012-03-27  Andreas Jaeger  <aj@suse.de>
18487
18488         * sysdeps/x86_64/elf/configure.in: Moved to ...
18489         * sysdeps/x86_64/configure.in: ... here.
18490         * sysdeps/x86_64/elf/start.S: Moved to ...
18491         * sysdeps/x86_64/start.S: ... here.
18492         * sysdeps/x86_64/elf/configure: Delete.
18493
18494         * sysdeps/x86_64/configure.in: Merge contents from
18495         sysdeps/i386/configure.in (without i686 check).
18496
18497         * sysdeps/i386/elf/Versions: Merge into ...
18498         * sysdeps/i386/Versions: ... this.
18499         * sysdeps/i386/elf/Versions: Delete file.
18500         * sysdeps/i386/elf/start.S: Moved to ...
18501         * sysdeps/i386/start.S: ...here.
18502         * sysdeps/i386/elf/configure.in: Merge into...
18503         * sysdeps/i386/configure.in: ...here.
18504         * sysdeps/i386/elf/configure.in: Delete file.
18505         * sysdeps/i386/elf/configure: Delete file.
18506
18507         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
18508         * debug/backtracesyms.c: ... here.
18509         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
18510         * debug/backtracesymsfd.c: ... here.
18511         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
18512         * sysdeps/generic/ifunc-sel.h: ... here.
18513
18514         * sysdeps/unix/i386/start.c: Delete file.
18515         * sysdeps/unix/sparc/start.c: Delete file.
18516         * sysdeps/unix/start.c: Delete file.
18517
18518         * sysdeps/sh/elf/configure.in: Moved to ...
18519         * sysdeps/sh/configure.in: ... here.
18520         * sysdeps/sh/elf/start.S: Moved to ...
18521         * sysdeps/sh/start.S: ... here.
18522         * sysdeps/sh/elf/configure: Delete file.
18523
18524         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
18525         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
18526         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
18527         * sysdeps/powerpc/powerpc64/entry.h: ... here.
18528         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
18529         * sysdeps/powerpc/powerpc64/start.S: here.
18530         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
18531         * sysdeps/powerpc/powerpc64/Makefile: ... this.
18532         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
18533         * sysdeps/powerpc/powerpc64/configure.in: ... this.
18534         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
18535
18536         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
18537         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
18538         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
18539         * sysdeps/powerpc/powerpc32/start.S: ... here.
18540         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
18541         * sysdeps/powerpc/powerpc32/configure.in: ... this.
18542         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
18543
18544         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
18545         * sysdeps/powerpc/ifunc-sel.h: ... here.
18546         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
18547         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
18548
18549         * sysdeps/sparc/elf/configure.in: Moved to ...
18550         * sysdeps/sparc/configure.in: ... here.
18551         * sysdeps/sparc/elf/configure: Delete file.
18552         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
18553         * sysdeps/sparc/sparc32/start.S: ... here.
18554         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
18555         * sysdeps/sparc/sparc64/start.S: ... here.
18556         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
18557         * sysdeps/sparc/sparc32/Makefile: ... this.
18558         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
18559         * sysdeps/sparc/sparc64/Makefile: ... this.
18560
18561         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
18562         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
18563         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
18564         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
18565         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
18566         * sysdeps/s390/s390-32/setjmp.S: ... here.
18567         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
18568         * sysdeps/s390/s390-32/configure.in: ... here.
18569         * sysdeps/s390/s390-32/elf/configure: Delete file.
18570         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
18571         * sysdeps/s390/s390-32/start.S: ... here.
18572
18573         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
18574         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
18575         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
18576         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
18577         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
18578         * sysdeps/s390/s390-64/setjmp.S: ... here.
18579         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
18580         * sysdeps/s390/s390-64/configure.in: ... here
18581         * sysdeps/s390/s390-64/elf/configure: Delete file.
18582         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
18583         * sysdeps/s390/s390-64/start.S: ... here.
18584         * sysdeps/s390/s390-64/elf/configure: Delete.
18585
18586         * configure.in: Remove support for elf directories in sysdeps.
18587
18588         * configure: Regenerated.
18589         * sysdeps/i386/configure: Regenerated.
18590         * sysdeps/powerpc/powerpc32/configure: Regenerated.
18591         * sysdeps/powerpc/powerpc64/configure: Regenerated.
18592         * sysdeps/s390/s390-32/configure: Regenerated.
18593         * sysdeps/s390/s390-64/configure: Regenerated.
18594         * sysdeps/sh/configure: Regenerated.
18595         * sysdeps/sparc/configure: Regenerated.
18596         * sysdeps/x86_64/configure: Regenerated.
18597
18598 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
18599
18600         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18601
18602         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
18603         denormal result into account.
18604
18605 2012-03-25  Roland McGrath  <roland@hack.frob.com>
18606
18607         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
18608         Reported by Allan McRae <allan@archlinux.org>.
18609
18610 2012-03-23  Jeff Law  <law@redhat.com>
18611
18612         * nss/getnssent.c (__nss_getent): Fix typo.
18613
18614 2012-03-23  David S. Miller  <davem@davemloft.net>
18615
18616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18617
18618 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18619
18620         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
18621         to pad to uint64_t for each field.
18622         (dl_tls_index): Replace unsigned long with uint64_t.
18623
18624 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
18625         Paul Pluzhnikov  <ppluzhnikov@google.com>
18626
18627         [BZ #6528]
18628         * grp/Makefile (otherlibs): Don't set it.
18629         * inet/Makefile (otherlibs): Likewise.
18630         * login/Makefile (otherlibs): Likewise.
18631         * nscd/Makefile (otherlibs): Likewise.
18632         * posix/Makefile (otherlibs): Likewise.
18633         * pwd/Makefile (otherlibs): Likewise.
18634         * rt/Makefile (otherlibs): Likewise.
18635         * sunrpc/Makefile (otherlibs): Likewise.
18636         * nss/Makefile (otherlibs): Likewise.
18637         Add libnss_files to routines and static-only-routines.
18638         ($(objpfx)getent): Remove rule.
18639         * resolv/Makefile: Add libnss_dns and libresolv to routines and
18640         static-only-routines.
18641
18642 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18643
18644         [BZ #13892]
18645         * math/s_cexp.c: Include <float.h>.
18646         (__cexp): Handle exp result overflowing not necessarily
18647         overflowing both real and imaginary parts of result.
18648         * math/s_cexpf.c: Likewise.
18649         * math/s_cexpl.c: Likewise.
18650         * math/libm-test.inc (cexp_test): Add more tests.
18651         * sysdeps/i386/fpu/libm-test-ulps: Update.
18652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18653
18654 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         * include/link.h (ELFW): New macro.
18657         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
18658         Replace ELF64_R_TYPE with ELFW(R_TYPE).
18659
18660 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18661
18662         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
18663         with uint64_t.
18664
18665 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18666
18667         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
18668         declaration.
18669         (struct La_x32_retval): Likewise.
18670
18671 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18672
18673         * sysdeps/x86_64/preconfigure.in: New file.
18674         * sysdeps/x86_64/preconfigure: New generated file.
18675
18676 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
18677
18678         [BZ #13824]
18679         * math/e_exp2l.c: Include <float.h>.
18680         (__ieee754_exp2l): Handle overflow and underflow cases
18681         separately.  Only pass fractional part of argument to
18682         __ieee754_expl.
18683         * math/libm-test.inc (exp2_test): Add more tests.
18684
18685         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
18686         negating x to take absolute value.
18687         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18688         Likewise.
18689         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18690         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
18691         Likewise.
18692         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
18693         computing low part if x was negated.
18694         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18695
18696 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18697
18698         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
18699         la_x32_gnu_pltexit.
18700         (pltexit): Cast int_retval to ptrdiff_t.
18701         * elf/tst-auditmod3b.c: Likewise.
18702         * elf/tst-auditmod4b.c: Likewise.
18703         * elf/tst-auditmod5b.c: Likewise.
18704         * elf/tst-auditmod6b.c: Likewise.
18705         * elf/tst-auditmod6c.c: Likewise.
18706         * elf/tst-auditmod7b.c: Likewise.
18707
18708         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
18709         and x32_gnu_pltexit.
18710
18711         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
18712         __ELF_NATIVE_CLASS.
18713         (La_x32_regs): New macro.
18714         (La_x32_retval): Likewise.
18715         (la_x32_gnu_pltenter): New function prototype.
18716         (la_x32_gnu_pltexit): Likewise.
18717
18718 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
18719
18720         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
18721         exponent.
18722
18723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18724
18725         * configure.in (libc_cv_cc_nofma): Check for option to disable
18726         generation of FMA instructions.
18727         * configure: Regenerate.
18728         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
18729         * sysdeps/ieee754/dbl-64/Makefile: New file.
18730         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18731         Remove brandred-fma4.
18732         (CFLAGS-brandred-fma4.c): Remove.
18733         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
18734         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
18735         define.
18736         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
18737         define.
18738
18739 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18740
18741         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18742         LLONG_MAX != LONG_MAX.
18743         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18744         (_fitoa_word): Likewise.
18745         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
18746         LLONG_MAX != LONG_MAX.
18747         * stdio-common/_itowa.h: Include <_itoa.h>.
18748         (_itowa_word): Use _ITOA_WORD_TYPE on value.
18749         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
18750         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
18751         only if not defined.
18752         (_ITOA_WORD_TYPE): Likewise.
18753         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18754         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
18755
18756 2012-03-21  David S. Miller  <davem@davemloft.net>
18757
18758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18759
18760 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18761
18762         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
18763         of x86_64 when setting libc_cv_slibdir, libdir and
18764         libc_cv_localedir.
18765         * sysdeps/unix/sysv/linux/configure: Regenerated.
18766
18767 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18768
18769         * manual/lang.texi (Old Varargs): Remove section.
18770         (How Variadic): Update menu.
18771         (va_start): Do not mention varargs.h.
18772
18773 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18774             Joseph Myers  <joseph@codesourcery.com>
18775
18776         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
18777         link test.
18778         * configure: Regenerated.
18779
18780 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18781
18782         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
18783         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
18784         conformtest.pl
18785
18786 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * NOTES: Remove.
18789         * Makefile (files-for-dist): Remove NOTES.
18790         (NOTES): Remove rule.
18791         * README: Don't refer to NOTES.
18792         * manual/creature.texi: Don't include macros.texi.
18793         * manual/intro.texi (creature.texi): Remove comment referring to
18794         NOTES.
18795
18796         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
18797         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
18798         * configure: Regenerated.
18799         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
18800         LIBC_TRY_CC_OPTION.
18801         (libc_cv_as_i686): Likewise.
18802         (libc_cv_cc_avx): Likewise.
18803         (libc_cv_cc_sse2avx): Likewise.
18804         (libc_cv_cc_fma4): Likewise.
18805         (libc_cv_cc_novzeroupper): Likewise.
18806         * sysdeps/i386/configure: Regenerated.
18807
18808         [BZ #13883]
18809         * sysdeps/i386/fpu/s_cexp.S: Remove.
18810         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18811         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18812         * math/libm-test.inc (cexp_test): Add more tests.
18813         * sysdeps/i386/fpu/libm-test-ulps: Update.
18814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18815
18816 2012-03-21  Allan McRae  <allan@archlinux.org>
18817
18818         * timezone/Makefile: Do not install iso3166.tab and zone.tab
18819
18820 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
18821
18822         [BZ #13871]
18823         * math/w_exp2.c: Do not include <float.h>.
18824         (o_threshold, u_threshold): Remove.
18825         (__exp2): Calculate result before checking finiteness and calling
18826         __kernel_standard.
18827         * math/w_exp2f.c: Likewise.
18828         * math/w_exp2l.c: Likewise.
18829         * math/libm-test.inc (exp2_test): Require overflow exception for
18830         1e6 input.
18831
18832         [BZ #3866]
18833         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
18834         range of signed 64-bit integers before using fistpll.  Remove
18835         checks for whether integers fit in mantissa bits.
18836         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
18837         the range of signed 32-bit integers before using fistpl.  Remove
18838         checks for whether integers fit in mantissa bits.
18839         * sysdeps/i386/fpu/e_powl.S (p64): New object.
18840         (__ieee754_powl): Test for y outside the range of signed 64-bit
18841         integers before using fistpll.  Reduce 64-bit values to 63-bit
18842         ones as needed.
18843         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
18844         divide-by-zero is raised for zero to large negative powers.
18845         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
18846         (__ieee754_powl): Test for y outside the range of signed 64-bit
18847         integers before using fistpll.  Reduce 64-bit values to 63-bit
18848         ones as needed.
18849         * math/libm-test.inc (pow_test): Add more tests.
18850
18851 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18852
18853         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
18854         <stdio-common/_itoa.h>.
18855         * debug/segfault.c: Likewise.
18856         * elf/dl-cache.c: Likewise.
18857         * elf/dl-minimal.c: Likewise.
18858         * elf/dl-misc.c: Likewise.
18859         * elf/dl-sysdep.c: Likewise.
18860         * elf/dl-version.c: Likewise.
18861         * elf/rtld.c: Likewise.
18862         * hurd/hurdsock.c: Likewise.
18863         * hurd/lookup-retry.c: Likewise.
18864         * malloc/malloc.c: Likewise.
18865         * malloc/mtrace.c: Likewise.
18866         * nscd/nscd_getgr_r.c: Likewise.
18867         * nscd/nscd_getpw_r.c: Likewise.
18868         * nscd/nscd_getserv_r.c: Likewise.
18869         * posix/getopt_init.c: Likewise.
18870         * posix/wordexp.c: Likewise.
18871         * stdio-common/_itoa.c: Likewise.
18872         * stdio-common/printf_fphex.c: Likewise.
18873         * stdio-common/vfprintf.c: Likewise.
18874         * string/_strerror.c: Likewise.
18875         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
18876         * sysdeps/i386/i686/hp-timing.h: Likewise.
18877         * sysdeps/mach/_strerror.c: Likewise.
18878         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
18879         * sysdeps/mach/hurd/sethostid.c: Likewise.
18880         * sysdeps/mach/hurd/xmknodat.c: Likewise.
18881         * sysdeps/mach/xpg-strerror.c: Likewise.
18882         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
18883         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
18884         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
18885         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
18886         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
18887         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
18888         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
18889         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
18890         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
18891         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
18892         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
18893         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
18894         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
18895         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
18896         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
18897         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
18898         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
18899         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
18900         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
18901         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
18902         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
18903
18904         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
18905
18906         * stdio-common/_itoa.h: Moved to ...
18907         * sysdeps/generic/_itoa.h: Here.
18908
18909         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
18910
18911         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
18912         instead of "_itoa.h" and "_itowa.h".
18913         * stdio-common/vfprintf.: Likewise.
18914
18915 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18916
18917         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
18918         <bits/wordsize.h>.
18919         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
18920         (__signbit): Likwise.
18921         (llrintf): Likwise.
18922         (llrint): Likwise.
18923
18924 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18925
18926         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
18927         __WORDSIZE != 64.
18928
18929 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
18930
18931         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
18932         OVERFLOW_EXCEPTION_OK.
18933         * math/libm-test.inc ("Philosophy"): Update comment about
18934         exception testing.
18935         (OVERFLOW_EXCEPTION): Define.
18936         (OVERFLOW_EXCEPTION_OK): Likewise.
18937         (INVALID_EXCEPTION_OK): Renumber.
18938         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18939         (IGNORE_ZERO_INF_SIGN): Likewise.
18940         (test_exceptions): Handle FE_OVERFLOW.
18941         (exp10_test): Expect overflow exceptions.
18942         (exp2_test): Likewise.
18943         (expm1_test): Likewise.
18944         (nextafter_test): Likewise.
18945         (pow_test): Likewise.
18946         (scalbn_test): Likewise.
18947         (scalbln_test): Likewise.
18948
18949 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18950
18951         * sysdeps/x86_64/bits/atomic.h
18952         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
18953         64bit integer.
18954         (atomic_exchange_acq): Likewise.
18955         (__arch_exchange_and_add_body): Likewise.
18956         (__arch_add_body): Likewise.
18957         (atomic_add_negative): Likewise.
18958         (atomic_add_zero): Likewise.
18959
18960 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18961
18962         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
18963         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
18964
18965 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18966
18967         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
18968         Check __x86_64__ instead of __WORDSIZE.
18969
18970 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18971
18972         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
18973
18974 2012-03-19  David S. Miller  <davem@davemloft.net>
18975
18976         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18977
18978         * sysdeps/sparc/fpu/fenv_private.h: New file.
18979         * sysdeps/sparc/fpu/math_private.h: Use it.
18980         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
18981         Remove.
18982         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
18983         (libc_feholdexcept_setroundl): Remove.
18984         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
18985         Remove.
18986         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
18987         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
18988
18989 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18990
18991         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
18992         int64_t instead of long int.
18993         (INSERT_WORDS64): Likwise.
18994
18995 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
18996
18997         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
18998         _Unwind_GetCFA return to _Unwind_Ptr first.
18999
19000 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
19001
19002         [BZ #13629]
19003         * math/s_clog.c: Include <float.h>.
19004         (__clog): Scale large or subnormal inputs.
19005         * math/s_clogf.c: Likewise.
19006         * math/s_clogl.c: Likewise.
19007         * math/s_clog10.c: Include <float.h>.
19008         (M_LOG10_2): Define.
19009         (__clog10): Scale large or subnormal inputs.
19010         * math/s_clog10f.c: Likewise.
19011         * math/s_clog10l.c: Likewise.
19012         * math/libm-test.inc (clog_test): Add more tests.
19013         (clog10_test): Likewise.
19014         * sysdeps/i386/fpu/libm-test-ulps: Update.
19015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19016
19017         [BZ #11451]
19018         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
19019         x and y.
19020         * math/libm-test.inc (atan2_test): Add another test.
19021
19022         * Makerules (common-objdir-compile): Remove.
19023         * sysdeps/unix/Makefile (config-generated): Do not add
19024         $(unix-generated) to variable.
19025         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
19026         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
19027         Remove rule.
19028         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
19029         Likewise.
19030         [generic bits/local_lim.h] (before-compile): Do not append to
19031         variable.
19032         [generic bits/local_lim.h] (common-generated): Likewise.
19033         [generic sys/param.h] (before-compile): Do not append to variable.
19034         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
19035         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
19036         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
19037         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
19038         include.
19039         [generic sys/param.h] (sys/param.h-includes): Remove variable.
19040         [generic sys/param.h] (sys/param.h-includes): Remove rule.
19041         [generic sys/param.h] ($(addprefix
19042         $(common-objpfx),$(sys/param.h-includes))): Likewise.
19043         [generic sys/param.h] (common-generated): Do not append to
19044         variable.
19045         [generic sys/param.h] (sysdep_headers): Likewise.
19046         [generic bits/errno.h] (before-compile): Do not append to
19047         variable.
19048         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
19049         rule.
19050         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
19051         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
19052         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
19053         [generic bits/errno.h] (common-generated): Do not append to
19054         variable.
19055         [generic bits/ioctls.h] (before-compile): Do not append to
19056         variable.
19057         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
19058         rule.
19059         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
19060         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
19061         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
19062         rule.
19063         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
19064         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
19065         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
19066         [generic bits/ioctls.h] (common-generated): Do not append to
19067         variable.
19068         [generic sys/syscall.h] (syscall.h): Remove variable.
19069         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
19070         rule.
19071         [generic sys/syscall.h] (before-compile): Do not append to
19072         variable.
19073         [generic sys/syscall.h] (common-generated): Likewise.
19074         * sysdeps/unix/errnos-tmpl.c: Remove file.
19075         * sysdeps/unix/errnos.awk: Likewise.
19076         * sysdeps/unix/ioctls-tmpl.c: Likewise.
19077         * sysdeps/unix/ioctls.awk: Likewise.
19078         * sysdeps/unix/mk-local_lim.c: Likewise.
19079         * sysdeps/unix/snarf-ioctls: Likewise.
19080
19081 2012-03-19  Richard Henderson  <rth@twiddle.net>
19082
19083         * sysdeps/i386/fpu/fenv_private.h: New file.
19084         * sysdeps/i386/fpu/math_private.h: Use it.
19085         (math_opt_barrier, math_force_eval): Remove.
19086         (libc_feholdexcept_setround_53bit): Remove.
19087         (libc_feupdateenv_53bit): Remove.
19088         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19089         (math_opt_barrier, math_force_eval): Remove.
19090         (libc_feholdexcept): Remove.
19091         (libc_feholdexcept_setround): Remove.
19092         (libc_fetestexcept, libc_fesetenv): Remove.
19093         (libc_feupdateenv_test): Remove.
19094         (libc_feupdateenv, libc_feholdsetround): Remove.
19095         (libc_feresetround): Remove.
19096
19097         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
19098         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
19099
19100         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
19101         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
19102         (libc_feupdateenv_testl): New.
19103         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
19104         (libc_feupdateenv_testf): New.
19105         (libc_feupdateenv): Use libc_feupdateenv_test.
19106         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
19107         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
19108
19109         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
19110         (libc_feholdsetroundf, libc_feholdsetroundl): New.
19111         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
19112         (libc_feresetround_noex): New.
19113         (libc_feresetround_noexf): New.
19114         (libc_feresetround_noexl): New.
19115         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
19116         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
19117         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
19118         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
19119         SET_RESTORE_ROUND.
19120         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19121         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
19122         (__cos): Likewise.
19123         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
19124         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
19125         SET_RESTORE_ROUND_NOEX.
19126         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
19127         SET_RESTORE_ROUND_NOEXF.
19128         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
19129         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
19130         (libc_feholdsetroundf): New.
19131         (libc_feresetround, libc_feresetroundf): New.
19132
19133         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
19134         (libc_feholdexcept_setround_53bit): Convert from macro to function.
19135         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
19136
19137         * sysdeps/generic/math_private.h: Include <fenv.h>.
19138         (default_libc_feholdexcept): New.
19139         (default_libc_feholdexcept_setround): New.
19140         (default_libc_fesetenv, default_libc_feupdateenv): New.
19141         (libc_feholdexcept): Only define if undefined.
19142         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
19143         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
19144         (libc_feholdexcept_setroundl): Likewise.
19145         (libc_feholdexcept_setround_53bit): Likewise.
19146         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
19147         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
19148         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
19149         (libc_feupdateenv_53bit): Likewise.
19150         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
19151         (libc_feholdexcept): Convert from macro to inline function.
19152         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
19153         (libc_fesetenv, libc_feupdateenv): Likewise.
19154
19155         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
19156         not previously defined.
19157         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
19158         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
19159         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
19160         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
19161         * sysdeps/ieee754/flt-32/math_private.h: New file.
19162         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
19163         math_private.h below SET_FLOAT_WORD.
19164         (__isnan, __isinf_ns, __finite): Remove.
19165         (__isnanf, __isinf_nsf, __finitef): Remove.
19166
19167 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
19168
19169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19170
19171 2012-03-17  David S. Miller  <davem@davemloft.net>
19172
19173         [BZ #6471]
19174         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
19175         for 2.16.
19176
19177 2012-03-16  David S. Miller  <davem@davemloft.net>
19178
19179         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
19180         warnings.
19181
19182         [BZ #6471]
19183         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
19184         properly.
19185         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
19186         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
19187         sysdep_routines when subdir is sysvipc.
19188         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
19189         __getshmlba helper.
19190
19191         * sysdeps/sparc/fpu/libm-test/ulps: Update.
19192
19193 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19194
19195         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
19196         [__LP64__].
19197
19198 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19199
19200         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
19201         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
19202         (__lround): Renamed to ...
19203         (__llround): This.  Replace long int with long long int.
19204         Define lround functions as aliases of llround functions.
19205         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
19206
19207 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19208
19209         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
19210         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
19211         adresses to uintptr_t.  Replace "long int" and "unsigned long
19212         int" with "greg_t" on va_arg.
19213
19214 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19215
19216         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
19217         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
19218
19219         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
19220         Move e_machine check before EI_CLASS check.  Handle x32
19221         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
19222         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
19223         SKIP_EM_IA_64 and include
19224         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
19225
19226         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
19227         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
19228         (add_system_dir): New macro.
19229
19230         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
19231         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
19232
19233 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19234
19235         [BZ #2551]
19236         [BZ #2552]
19237         [BZ #2553]
19238         [BZ #2554]
19239         [BZ #2562]
19240         [BZ #2563]
19241         [BZ #2565]
19242         [BZ #2566]
19243         [BZ #2576]
19244         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
19245         (y0): Likewise.
19246         * math/w_j0f.c (j0f): Likewise.
19247         (y0f): Likewise.
19248         * math/w_j0l.c (__j0l): Likewise.
19249         (__y0l): Likewise.
19250         * math/w_j1.c (j1): Likewise.
19251         (y1): Likewise.
19252         * math/w_j1f.c (j1f): Likewise.
19253         (y1f): Likewise.
19254         * math/w_j1l.c (__j1l): Likewise.
19255         (__y1l): Likewise.
19256         * math/w_jn.c (jn): Likewise.
19257         (yn): Likewise.
19258         * math/w_jnf.c (jnf): Likewise.
19259         (ynf): Likewise.
19260         * math/w_jnl.c (__jnl): Likewise.
19261         (__ynl): Likewise.
19262         * math/libm-test.inc (j0_test): Add more tests.
19263         (j1_test): Likewise.
19264         (jn_test): Likewise.  Add trailing semicolon to existing test.
19265         (y0_test): Likewise.
19266         (y1_test): Likewise.
19267         * sysdeps/i386/fpu/libm-test-ulps: Update.
19268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19269
19270         [BZ #13851]
19271         [BZ #13854]
19272         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
19273         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
19274         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
19275         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
19276         (__tanl): Set errno for infinite argument.
19277         * sysdeps/i386/fpu/mptan.c: Remove.
19278         * sysdeps/i386/fpu/s_tan.S: Likewise.
19279         * sysdeps/i386/fpu/s_tanl.S: Likewise.
19280         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
19281         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
19282         * math/libm-test.inc (tan_test): Add more tests and enable more
19283         tests for double and long double.
19284         * sysdeps/i386/fpu/libm-test-ulps: Update.
19285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19286
19287 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
19288
19289         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
19290         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
19291
19292 2012-03-16  Roland McGrath  <roland@hack.frob.com>
19293
19294         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
19295         * configure.in: Use it for both main tree and add-ons.
19296         * configure: Regenerated.
19297
19298 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19299
19300         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
19301
19302 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
19303
19304         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
19305         in comment.
19306
19307         [BZ #13851]
19308         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
19309         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
19310         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
19311         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
19312         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
19313         infinite argument.
19314         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
19315         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
19316         != 0 for prec == 2.
19317         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
19318         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
19319         * sysdeps/i386/fpu/s_cosl.S: Likewise.
19320         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
19321         * sysdeps/i386/fpu/s_sinl.S: Likewise.
19322         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
19323         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
19324         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
19325         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
19326         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
19327         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
19328         * math/libm-test.inc (cos_test): Add more tests and enable more
19329         tests for long double.
19330         (sin_test): Likewise.
19331         (sincos_test): Likewise.
19332         * sysdeps/i386/fpu/libm-test-ulps: Update.
19333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19334
19335 2012-03-16  David S. Miller  <davem@davemloft.net>
19336
19337         * sysdeps/sparc/fpu/math_private.h: New file.
19338
19339 2012-03-15  David S. Miller  <davem@davemloft.net>
19340
19341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
19342         file.
19343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
19344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
19345         file.
19346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
19347         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
19348         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
19349         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
19350         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
19351         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
19352         sysdep routines.
19353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19354
19355         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
19356         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
19357
19358         * sysdeps/sparc/sparc-ifunc.h: New file.
19359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
19360         sparc-ifunc.h
19361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
19362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19363         Likewise.
19364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19365         Likewise.
19366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
19367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
19369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
19370         Likewise.
19371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
19372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
19373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
19374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
19375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
19376         Likewise.
19377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
19378         Likewise.
19379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
19380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
19382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
19383         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
19384         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
19385         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
19386         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
19387         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
19388         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
19389         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
19390         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
19391         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
19392         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
19393         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
19394         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
19395         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
19396         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
19397         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
19398         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
19399         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
19400         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
19401         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
19402         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
19403
19404 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19405
19406         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
19407         scaling.
19408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19409
19410 2012-03-15  Andreas Jaeger  <aj@suse.de>
19411
19412         [BZ #13852]
19413         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
19414         ieee754/flt-32 implementation for sin, cos and sincos.
19415         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
19416         * sysdeps/i386/fpu/s_cosf.S: Likewise.
19417         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
19418         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19419         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
19420         ieee754/flt-32 implementation for tan.
19421
19422         * math/libm-test.inc (cos_test): Enable some large input tests for
19423         float as well
19424         (sin_test): Likewise.
19425         (sincos_test): Likewise.
19426         (tan_test): Add tests for large input.
19427
19428         * sysdeps/i386/fpu/libm-test-ulps: Update.
19429
19430 2012-03-15  Andreas Jaeger  <aj@suse.de>
19431
19432         [BZ #13658]
19433         * math/libm-test.inc (cos_test): Add more test cases.
19434         (sin_test): Likewise.
19435         (sincos_test): Likewise.
19436
19437 2012-03-15  Andreas Jaeger  <aj@suse.de>
19438
19439         [BZ #13837]
19440         * math/libm-test.inc (cos_test): Add a test case for large input
19441         value.
19442         (sin_test): Likewise.
19443         (sincos_test): Likewise.
19444
19445 2012-03-15  Andreas Jaeger  <aj@suse.de>,
19446         Joseph Myers  <joseph@codesourcery.com>
19447
19448         [BZ #13658]
19449         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
19450         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
19451         * sysdeps/i386/fpu/branred.c: Likewise.
19452         * sysdeps/i386/fpu/dosincos.c: Likewise.
19453         * sysdeps/i386/fpu/mpa.c: Likewise.
19454         * sysdeps/i386/fpu/s_cos.S: Likewise.
19455         * sysdeps/i386/fpu/s_sin.S: Likewise.
19456         * sysdeps/i386/fpu/s_sincos.S: Likewise.
19457         * sysdeps/i386/fpu/sincos32.c: Likewise.
19458
19459         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
19460         Define.
19461         (libc_feupdateenv_53bit): Define.
19462         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
19463         Define.
19464         (libc_feupdateenv_53bit): Define.
19465
19466         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
19467         53 bit (without extend i386 double precision).
19468
19469         * math/libm-test.inc (sincos_test): Add tests for large input.
19470         (sin): Likewise.
19471         (cos): Likewise.
19472
19473         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
19474
19475 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
19476
19477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19478
19479 2012-03-15  David S. Miller  <davem@davemloft.net>
19480
19481         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
19482         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
19483         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
19484         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
19485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
19486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
19487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
19488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
19489         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
19490         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
19491         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
19492         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
19493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
19494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
19495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
19496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
19497         file.
19498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
19499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
19500         file.
19501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
19502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
19503         file.
19504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
19505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
19506         file.
19507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
19508         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
19509         fmin/fmax sysdep routines.
19510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
19511
19512 2012-03-14  David S. Miller  <davem@davemloft.net>
19513
19514         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
19515         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
19516         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
19517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
19518         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
19519         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
19520         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
19521         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
19522         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
19523         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
19524         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
19525         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
19526         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
19527         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
19528         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
19529         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
19530         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
19531         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
19532         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
19533         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
19534         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
19535         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
19536         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
19537         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
19538         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
19539         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
19540         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
19541         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
19542         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
19543         routines.
19544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
19545         file.
19546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
19547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
19548         file.
19549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
19550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
19551         file.
19552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
19553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
19554         file.
19555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
19556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
19557         file.
19558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
19559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
19560         file.
19561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
19562         file.
19563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
19564         file.
19565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
19566         file.
19567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
19568         New file.
19569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
19570         file.
19571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
19572         file.
19573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
19574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
19575         file.
19576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
19577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
19578         file.
19579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
19580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
19581         file.
19582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
19583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
19584         VIS3 routines.
19585
19586         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
19587         New file.
19588
19589         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19590
19591         * sysdeps/sparc/configure.in: New file.
19592         * sysdeps/sparc/configure: Generate.
19593         * configure.in (libc_cv_sparc_as_vis3): Substitute.
19594         * configure: Regenerate.
19595         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
19596         * config.make.in (have-as-vis3): New.
19597         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
19598         available use -Av9d instead of -Av9a.
19599         * sysdeps/sparc/sparc64/Makefile: Likewise.
19600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
19601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
19602         New file.
19603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
19604         file.
19605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
19606         New file.
19607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
19608         file.
19609         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
19610         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
19611         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
19612         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
19613         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
19614
19615         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
19616         fzeros/fnegs to load 0x80000000 into a float register instead of
19617         using the stack.
19618         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
19619
19620 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19621
19622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19623         bits/syscall.h.
19624         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
19625         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
19626         ($(inst_includedir)/bits/syscall.h): Remove rule.
19627         ($(objpfx)bits/syscall.d): Include instead of
19628         $(objpfx)syscall-list.d.
19629         (generated): Change syscall-list.h and syscall-list.d to
19630         bits/syscall.h and bits/syscall.d.
19631
19632 2012-03-14  Roland McGrath  <roland@hack.frob.com>
19633
19634         [BZ #13846]
19635         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
19636
19637 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
19638
19639         [BZ #13841]
19640         * math/s_csqrt.c: Include <float.h>.
19641         (__csqrt): Scale large or subnormal inputs.
19642         * math/s_csqrtf.c: Likewise.
19643         * math/s_csqrtl.c: Likewise.
19644         * math/libm-test.inc (csqrt_test): Add more tests.
19645         * sysdeps/i386/fpu/libm-test-ulps: Update.
19646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19647
19648         [BZ #13840]
19649         * math/libm-test.inc (hypot_test): Add more tests.
19650
19651 2012-03-13  David S. Miller  <davem@davemloft.net>
19652
19653         [BZ #13840]
19654         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
19655         double-precision for the calculation instead of scaling.
19656
19657 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
19658
19659         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
19660         manipulate bits before adding and subtracting TWO52[sx].
19661         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
19662         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19663         Likewise.
19664         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
19665
19666 2012-03-13  David S. Miller  <davem@davemloft.net>
19667
19668         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
19669         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
19670         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
19671         rtld-global-offsets.h
19672         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19673
19674         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
19675         large parameters.
19676
19677         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
19678
19679         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
19680         'err' in the ifdef scope in which it is actually used.
19681
19682         * nss/nss_db/db-init.c: Include string.h
19683
19684 2012-03-12  David S. Miller  <davem@davemloft.net>
19685
19686         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19687         masking out of the most significant byte of random value used.
19688         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19689         Fix coding style in previous change.
19690
19691         * sysdeps/unix/sysv/linux/kernel-features.h
19692         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
19693         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
19694         expression.
19695         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
19696         later.
19697
19698 2012-03-11  David S. Miller  <davem@davemloft.net>
19699
19700         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
19701         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
19702         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
19703         for 'resultvar' otherwise things get truncated on 64-bit.
19704
19705         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19706         Fix masking out of the most significant byte of random value used.
19707
19708         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19709
19710 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
19711
19712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19713
19714 2012-03-09  David S. Miller  <davem@davemloft.net>
19715
19716         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
19717         variables with appropriate CPP guards.
19718         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
19719         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
19720         on resulting framesize and the management of the outregs buffer for pltexit.
19721         Preserve floating point return values across _dl_call_pltexit call.
19722         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
19723         framesize and the management of the outregs buffer for pltexit.
19724         Preserve floating point return values across _dl_call_pltexit
19725         call.
19726         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
19727         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
19728         (print_exit): Fix format string for return register value.
19729
19730 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
19731
19732         * sunrpc/Makefile (others): Add rpcgen.
19733         ($(objpfx)rpcgen): Remove special build rule and dependency on
19734         libc.
19735         * sunrpc/rpcgen.c: New file.
19736
19737 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
19738
19739         [BZ #13673]
19740         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
19741         * stdio-common/bug-vfprintf-nargs.c: Likewise.
19742         * sysdeps/i386/crti.S: Likewise.
19743         * sysdeps/i386/crtn.S: Likewise.
19744         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
19745         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
19746         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
19747         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
19748         * sysdeps/sh/crti.S: Likewise.
19749         * sysdeps/sh/crtn.S: Likewise.
19750         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19751
19752         [BZ #13673]
19753         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
19754         with URL.
19755         * locale/programs/locfile-kw.gperf: Likewise.
19756         * locale/programs/charmap-kw.h: Regenerated.
19757         * locale/programs/locfile-kw.h: Likewise.
19758
19759         [BZ #13673]
19760         * intl/plural.y: Replace FSF snail mail address with URL.
19761         * intl/plural.c: Regenerated.
19762
19763 2012-03-09  Richard Henderson  <rth@twiddle.net>
19764
19765         * include/math_private.h: Remove file.
19766         * math/math_private.h: Move file ...
19767         * sysdeps/generic/math_private.h: ... here.
19768
19769         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
19770         * sysdeps/powerpc/fpu/math_private.h: Likewise.
19771         * sysdeps/x86_64/fpu/math_private.h: Likewise.
19772
19773         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
19774         and <math_private.h>.
19775         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19776         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19777         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19778         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19779         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19780         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
19781         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
19782         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19783         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19784         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
19785         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19786         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
19787         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19788         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
19789         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19790         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19791         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19792         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19793         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19794         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
19795         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19796         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19797         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19798         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
19799         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19800         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19801         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19802         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19803         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19804         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19805         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19806         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19807         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19808         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19809         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19810         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19811         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19812         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19813         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19814         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19815         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
19816         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19817         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19818         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19819         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19820         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19821         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
19822         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19823         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19824         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19825         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19826         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
19827         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19828         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19829         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19830         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19831         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
19832         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19833         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19834         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
19835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19836         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19837         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19838         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19839         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
19840         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
19841         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
19842         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
19843         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
19844         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
19845         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19846         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
19847         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19848         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19849         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
19850         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
19851         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
19852         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19853         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
19854         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
19855         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19856         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
19857         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19858         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
19859         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19860         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
19861         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
19862         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
19863         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
19864         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19865         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19866         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
19867         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
19868         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
19869         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
19870         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
19871         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
19872         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
19873         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
19874         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
19875         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
19876         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
19877         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
19878         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
19879         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19880         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
19881         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
19882         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
19883         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19884         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19885         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19886         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19887         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
19888         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19889         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
19890         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
19891         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19892         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19893         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19894         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
19895         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19896         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19897         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
19898         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
19899         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19900         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19901         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
19902         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
19903         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19904         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
19905         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
19906         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
19907         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19908         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
19909         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
19910         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19911         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
19912         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19913         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
19914         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
19915         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
19916         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19917         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19918         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
19919         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
19920         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19921         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19922         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19923         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
19924         * sysdeps/ieee754/k_standard.c: Likewise.
19925         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
19926         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
19927         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19928         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
19929         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
19930         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
19931         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
19932         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
19933         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
19934         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
19935         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
19936         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
19937         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
19938         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
19939         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
19940         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
19941         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
19942         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
19943         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
19944         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
19945         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
19946         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
19947         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19948         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19949         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
19950         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
19951         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19952         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19953         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19954         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19955         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
19956         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19957         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19958         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19959         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
19960         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19961         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19962         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
19963         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
19964         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19965         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
19966         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
19967         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
19968         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19969         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
19970         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
19971         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19972         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19973         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19974         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19975         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19976         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
19977         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19978         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
19979         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19980         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19981         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
19982         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
19983         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19984         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19985         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19986         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
19987         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19988         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
19989         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19990         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19991         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
19992         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
19993         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
19994         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
19995         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
19996         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19997         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
19998         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
19999         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
20000         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
20001         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
20002         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
20003         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20004         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
20005         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
20006         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
20007         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20008         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20009         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
20010         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20011         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20012         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
20013         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20014         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20015         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
20016         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20017         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
20018         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
20019         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20020         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20021         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
20022         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
20023         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
20024         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
20025         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20026         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20027         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20028         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20029         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
20030         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20031         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20032         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
20033         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
20034         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20035         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20036         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20037         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
20038         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20039         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
20040         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20041         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
20042         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20043         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20044         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
20045         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
20046         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
20047         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
20048         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
20049         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20050         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
20051         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20052         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20053         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20054         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20055         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20056         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20057         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20058         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
20059         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20060         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20061         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
20062         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
20063         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20064         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
20065         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
20066         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20067         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
20068         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
20069         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
20070         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20071         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20072         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20073         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20074         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
20075         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20076         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20077         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
20078         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
20079         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
20080         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
20081         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20082         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20083         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20084         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
20085         * sysdeps/ieee754/s_lib_version.c: Likewise.
20086         * sysdeps/ieee754/s_matherr.c: Likewise.
20087         * sysdeps/ieee754/s_signgam.c: Likewise.
20088         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
20089         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20090         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
20091         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
20092         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
20093         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
20094         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
20095         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
20096         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
20097         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
20098         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
20099         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
20100         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20101         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20102         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
20103         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
20104         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
20105         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
20106         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
20107         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20108         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20109
20110 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20111
20112         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
20113         * sunrpc/rpc_main.c: Likewise.
20114         * sunrpc/rpc_svcout.c: Likewise.
20115
20116 2012-03-09  David S. Miller  <davem@davemloft.net>
20117
20118         * include/math_private.h: New file.
20119
20120 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
20121
20122         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
20123         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
20124         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
20125         from <bits/socket_type.h>.
20126         (enum __socket_type): Don't define here.
20127         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
20128         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20129         bits/socket_type.h.
20130
20131         [BZ #13566]
20132         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
20133         checking __USE_GNU.
20134
20135         * Makerules ($(inst_includedir)/%.h): New rule.
20136         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
20137         (install-others): Remove variable setting.
20138         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
20139
20140 2012-03-08  Richard Henderson  <rth@twiddle.net>
20141
20142         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
20143         from macro to inline function; merge with the
20144         !__LIBC_INTERNAL_MATH_INLINES version.
20145         (__ieee754_sqrtf): Likewise.
20146
20147         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
20148         to inline function.
20149         (__rintf, __floor, __floorf): Likewise.
20150
20151         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
20152         macro to inline function.
20153         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
20154
20155         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
20156         not <math/math_private.h>.
20157
20158 2012-03-08  David S. Miller  <davem@davemloft.net>
20159
20160         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
20161         copyright year.
20162         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
20163
20164 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
20165
20166         * resolv/gai_misc.c (handle_requests): Fix struct timespec
20167         normalization.
20168         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
20169         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
20170
20171 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
20172
20173         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
20174         be defined individually, they must be defined as a block.  Define
20175         S for printing a string instead of hidint the different by using a
20176         macro for adding the 'l'.
20177         * stdio-common/tst-fphex-wide.c: Adjust.
20178
20179 2012-03-07  Marek Polacek  <polacek@redhat.com>
20180
20181         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
20182
20183 2012-03-08  Marek Polacek  <polacek@redhat.com>
20184
20185         [BZ #13806]
20186         * stdio-common/Makefile (tests): Add tst-fphex-wide.
20187         * stdio-common/tst-fphex.c: Define a few macros to make the
20188         test reusable.  Use them.
20189         * stdio-common/tst-fphex-wide.c: New file.
20190
20191 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
20192
20193         [BZ #6911]
20194         * manual/macros.texi (gnusystems): New macro.
20195         (nongnusystems): Likewise.
20196         (gnulinuxhurdsystems): Likewise.
20197         (gnuhurdsystems): Likewise..
20198         (gnulinuxsystems): Likewise.
20199         * manual/charset.texi: Use new macros or @theglibc{} to refer to
20200         variants of the GNU system, not "GNU system".
20201         * manual/conf.texi: Likewise.
20202         * manual/errno.texi: Likewise.  Update example of errno macro
20203         expansion.
20204         * manual/filesys.texi: Likewise.
20205         (getumask): Document as specific to GNU/Hurd.
20206         * manual/install.texi: Likewise.  Reword some references to
20207         GNU/Linux.
20208         * manual/intro.texi: Likewise.
20209         * manual/io.texi: Likewise.
20210         (File Name Portability): Detail which constraints are inapplicable
20211         to all GNU systems and which are only inapplicable to GNU/Hurd.
20212         * manual/job.texi: Likewise.
20213         * manual/llio.texi: Likewise.
20214         (O_NOCTTY): Document as present on GNU/Linux.
20215         * manual/maint.texi: Likewise.
20216         * manual/memory.texi: Likewise.
20217         * manual/pattern.texi: Likewise.
20218         * manual/pipe.texi: Likewise.
20219         * manual/process.texi: Likewise.
20220         * manual/resource.texi: Likewise.
20221         (RUSAGE_CHILDREN): Remove statement about specifying a particular
20222         child on GNU/Hurd.
20223         * manual/setjmp.texi: Likewise.
20224         * manual/signal.texi: Likewise.
20225         * manual/startup.texi: Likewise.
20226         * manual/stdio.texi: Likewise.
20227         * manual/terminal.texi: Likewise.
20228         (ONLCR): Document as POSIX.
20229         (OXTABS): Document availability on GNU/Linux as XTABS.
20230         (ONOEOT): Document availability separately from other bits.
20231         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
20232         * manual/time.texi: Likewise.
20233         * manual/users.texi: Likewise.
20234         * INSTALL: Regenerated.
20235         * sysdeps/gnu/errlist.c: Regenerated.
20236
20237         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
20238         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
20239         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
20240         puts.
20241         * configure: Regenerated.
20242
20243 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
20244
20245         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
20246         default includes instead of AC_HEADER_CHECK.
20247         * sysdeps/i386/configure: Regenerated.
20248
20249         [BZ #10716]
20250         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
20251         * math/s_cacoshf.c (__cacoshf): Likewise.
20252         * math/s_cacoshl.c (__cacoshl): Likewise.
20253         * math/s_casinh.c (__casinh): Set signs of result from argument.
20254         * math/s_casinhf.c (__casinhf): Likewise.
20255         * math/s_casinhl.c (__casinhl): Likewise.
20256         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
20257         (casinh_test): Add more tests.
20258         * sysdeps/i386/fpu/libm-test-ulps: Update.
20259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20260
20261 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
20262
20263         * po/zh_TW.po: Update from translation team.
20264
20265         * login/Makefile (distribute): Remove variable.
20266         * catgets/Makefile: Likewise.
20267         * mach/Makefile: Likewise.
20268         * malloc/Makefile: Likewise.
20269         * misc/Makefile: Likewise.
20270         * iconv/Makefile: Likewise.
20271         * nscd/Makefile: Likewise.
20272         * hurd/Makefile: Likewise.
20273         * manual/Makefile: Likewise.
20274         * locale/Makefile: Likewise.
20275         * intl/Makefile: Likewise.
20276         * conform/Makefile: Likewise.
20277         * nss/Makefile: Likewise.
20278         * time/Makefile: Likewise.
20279         * soft-fp/Makefile: Likewise.
20280         * dirent/Makefile: Likewise.
20281         * gmon/Makefile: Likewise.
20282         * po/Makefile: Likewise.
20283         * rt/Makefile: Likewise.
20284         * socket/Makefile: Likewise.
20285         * math/Makefile: Likewise.
20286         * signal/Makefile: Likewise.
20287         * debug/Makefile: Likewise.
20288         * elf/Makefile: Likewise.
20289         * timezone/Makefile: Likewise.
20290         * stdlib/Makefile: Likewise.
20291         * iconvdata/Makefile: Likewise.
20292         * sunrpc/Makefile: Likewise.
20293         * io/Makefile: Likewise.
20294         * argp/Makefile: Likewise.
20295         * inet/Makefile: Likewise.
20296         * hesiod/Makefile: Likewise.
20297         * grp/Makefile: Likewise.
20298         * csu/Makefile: Likewise.
20299         * wctype/Makefile: Likewise.
20300         * crypt/Makefile: Likewise.
20301         * libio/Makefile: Likewise.
20302         * string/Makefile: Likewise.
20303         * nis/Makefile: Likewise.
20304         * resolv/Makefile: Likewise.
20305         * stdio-common/Makefile: Likewise.
20306         * wcsmbs/Makefile: Likewise.
20307         * dlfcn/Makefile: Likewise.
20308         * posix/Makefile: Likewise.
20309
20310         [BZ #6959]
20311         * timezone/Makefile: Don't install timezone files, just the programs
20312         and scripts.
20313
20314 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
20315
20316         * nss/databases.def: Add missing gshadow entry.
20317
20318         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
20319
20320 2012-03-06  Marek Polacek  <polacek@redhat.com>
20321
20322         [BZ #13726]
20323         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
20324         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20325         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
20326         * stdio-common/tst-long-dbl-fphex.c: New file.
20327
20328 2012-03-06  David S. Miller  <davem@davemloft.net>
20329
20330         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20331         (set_obp_int): New function.
20332         (get_obp_int): New function.
20333         (__get_clockfreq_via_dev_openprom): Likewise.
20334         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
20335         Avoid unused variable warnings on 'val' and use builtin_expect.
20336         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
20337         __builtin_expect.
20338         (INLINE_CLONE_SYSCALL): Likewise.
20339
20340 2012-03-05  David S. Miller  <davem@davemloft.net>
20341
20342         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20343
20344 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
20345
20346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20347
20348         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
20349         only for |x| >= 40.
20350         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
20351
20352 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20353
20354         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
20355         Replace gettimeofday with __vdso_gettimeofday.
20356
20357         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20358         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
20359         __vdso_clock_gettime and __vdso_getcpu.
20360
20361         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
20362         time with __vdso_time.
20363
20364 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20365
20366         * manual/lang.texi (size_t): Note types to which size_t may be
20367         equivalent with the GNU C Library, but do not describe when
20368         differences between them are significant.
20369
20370 2012-03-05  Andreas Jaeger  <aj@suse.de>
20371
20372         * sysdeps/i386/fpu/libm-test-ulps: Update.
20373
20374 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
20375
20376         [BZ #3976]
20377         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
20378         (__ieee754_pow): Save and restore rounding mode and use
20379         round-to-nearest for main computations.
20380         * math/libm-test.inc (pow_test_tonearest): New function.
20381         (pow_test_towardzero): Likewise.
20382         (pow_test_downward): Likewise.
20383         (pow_test_upward): Likewise.
20384         (main): Call the new functions.
20385         * sysdeps/i386/fpu/libm-test-ulps: Update.
20386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20387
20388         [BZ #3976]
20389         * math/libm-test.inc (cosh_test_tonearest): New function.
20390         (cosh_test_towardzero): Likewise.
20391         (cosh_test_downward): Likewise.
20392         (cosh_test_upward): Likewise.
20393         (sinh_test_tonearest): Likewise.
20394         (sinh_test_towardzero): Likewise.
20395         (sinh_test_downward): Likewise.
20396         (sinh_test_upward): Likewise.
20397         (main): Call the new functions.
20398         * sysdeps/i386/fpu/libm-test-ulps: Update.
20399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20400
20401 2012-03-05  Tom de Vries  <tom@codesourcery.com>
20402
20403         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
20404         default stack guard is set in last bytes.
20405         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
20406
20407 2012-03-05  Kees Cook  <keescook@chromium.org>
20408
20409         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
20410
20411         [BZ #13656]
20412         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
20413         possibly allocate from heap instead of stack.
20414         * stdio-common/bug-vfprintf-nargs.c: New file.
20415         * stdio-common/Makefile (tests): Add nargs overflow test.
20416
20417 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
20418
20419         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20420
20421 2012-03-03  Marek Polacek  <polacek@redhat.com>
20422
20423         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
20424         * math/math_private.h: Likewise.
20425         * stdlib/tst-strtod.c: Likewise.
20426         * sysdeps/i386/i486/bits/atomic.h: Likewise.
20427         * sysdeps/x86_64/bits/atomic.h: Likewise.
20428
20429 2012-03-02  David S. Miller  <davem@davemloft.net>
20430
20431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
20432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
20433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
20434         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
20435         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
20436         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
20437         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
20438         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
20439
20440 2012-03-02  Roland McGrath  <roland@hack.frob.com>
20441
20442         [BZ #13792]
20443         * manual/examples/README: New file, says the example source files
20444         can be used under GPL>=2.
20445         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
20446         line containing just "*/".
20447         * manual/examples/add.c: Add copyright header (GPL>=2).
20448         * manual/examples/argp-ex1.c: Likewise.
20449         * manual/examples/argp-ex2.c: Likewise.
20450         * manual/examples/argp-ex3.c: Likewise.
20451         * manual/examples/argp-ex4.c: Likewise.
20452         * manual/examples/atexit.c: Likewise.
20453         * manual/examples/db.c: Likewise.
20454         * manual/examples/dir.c: Likewise.
20455         * manual/examples/dir2.c: Likewise.
20456         * manual/examples/execinfo.c: Likewise.
20457         * manual/examples/filecli.c: Likewise.
20458         * manual/examples/filesrv.c: Likewise.
20459         * manual/examples/fmtmsgexpl.c: Likewise.
20460         * manual/examples/genpass.c: Likewise.
20461         * manual/examples/inetcli.c: Likewise.
20462         * manual/examples/inetsrv.c: Likewise.
20463         * manual/examples/isockad.c: Likewise.
20464         * manual/examples/longopt.c: Likewise.
20465         * manual/examples/memopen.c: Likewise.
20466         * manual/examples/memstrm.c: Likewise.
20467         * manual/examples/mkfsock.c: Likewise.
20468         * manual/examples/mkisock.c: Likewise.
20469         * manual/examples/mygetpass.c: Likewise.
20470         * manual/examples/pipe.c: Likewise.
20471         * manual/examples/popen.c: Likewise.
20472         * manual/examples/rprintf.c: Likewise.
20473         * manual/examples/search.c: Likewise.
20474         * manual/examples/select.c: Likewise.
20475         * manual/examples/setjmp.c: Likewise.
20476         * manual/examples/sigh1.c: Likewise.
20477         * manual/examples/sigusr.c: Likewise.
20478         * manual/examples/stpcpy.c: Likewise.
20479         * manual/examples/strdupa.c: Likewise.
20480         * manual/examples/strftim.c: Likewise.
20481         * manual/examples/strncat.c: Likewise.
20482         * manual/examples/subopt.c: Likewise.
20483         * manual/examples/swapcontext.c: Likewise.
20484         * manual/examples/termios.c: Likewise.
20485         * manual/examples/testopt.c: Likewise.
20486         * manual/examples/testpass.c: Likewise.
20487         * manual/examples/timeval_subtract.c: Likewise.
20488
20489         [BZ #13792]
20490         * manual/time.texi (Elapsed Time): Move timeval_subtract example
20491         function to ...
20492         * manual/timeval_subtract.c.texi: ... here, new file.
20493
20494 2012-03-02  David S. Miller  <davem@davemloft.net>
20495
20496         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
20497
20498 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
20499
20500         [BZ #3976]
20501         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
20502         (__sin): Save and restore rounding mode and use round-to-nearest
20503         for all computations.
20504         (__cos): Save and restore rounding mode and use round-to-nearest
20505         for all computations.
20506         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
20507         <fenv.h>.
20508         (tan): Save and restore rounding mode and use round-to-nearest for
20509         all computations.
20510         * math/libm-test.inc (cos_test_tonearest): New function.
20511         (cos_test_towardzero): Likewise.
20512         (cos_test_downward): Likewise.
20513         (cos_test_upward): Likewise.
20514         (sin_test_tonearest): Likewise.
20515         (sin_test_towardzero): Likewise.
20516         (sin_test_downward): Likewise.
20517         (sin_test_upward): Likewise.
20518         (tan_test_tonearest): Likewise.
20519         (tan_test_towardzero): Likewise.
20520         (tan_test_downward): Likewise.
20521         (tan_test_upward): Likewise.
20522         (main): Call the new functions.
20523         * sysdeps/i386/fpu/libm-test-ulps: Update.
20524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20525
20526         [BZ #10135]
20527         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
20528         small n, then large n, before computing and testing k+n.
20529         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
20530         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
20531         Likewise.
20532         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
20533         Likewise.
20534         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
20535         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
20536         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
20537         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
20538         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20539         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20540         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
20541         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
20542         * math/libm-test.inc (scalbn_test): Add more tests.
20543         (scalbln_test): Likewise.
20544
20545         * manual/filesys.texi (mode_t): Describe constraints on size and
20546         signedness, not exact equivalence to a particular type.
20547         (ino_t): Likewise.
20548         (ino64_t): Likewise.
20549         (dev_t): Likewise.
20550         (nlink_t): Likewise.
20551         (blkcnt_t): Likewise.
20552         (blkcnt64_t): Likewise.
20553         * manual/llio.texi (off_t): Likewise.
20554
20555         [BZ #3976]
20556         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
20557         (__ieee754_exp): Save and restore rounding mode and use
20558         round-to-nearest for all computations.
20559         * math/libm-test.inc (exp_test_tonearest): New function.
20560         (exp_test_towardzero): Likewise.
20561         (exp_test_downward): Likewise.
20562         (exp_test_upward): Likewise.
20563         (main): Call the new functions.
20564         * sysdeps/i386/fpu/libm-test-ulps: Update.
20565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20566
20567 2012-03-01  Chris Demetriou  <cgd@google.com>
20568
20569         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
20570         have predictable order.
20571
20572 2012-03-01  David S. Miller  <davem@davemloft.net>
20573
20574         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
20575
20576         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
20577         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
20578         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
20579         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
20580
20581         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
20582         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
20583         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
20584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
20585         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
20586         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
20587         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
20588         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
20589         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
20590
20591         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20592
20593         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
20594         * sysdeps/sparc/fpu/libm-test-ulps: to here.
20595         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
20596
20597         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
20598         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
20599         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20600         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
20601         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
20602         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
20603         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
20604         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
20605         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20606         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
20607         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
20608         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20609         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
20610         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20611         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20612         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20613         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
20614         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
20615         * sysdeps/sparc/elf/configure: Regenerated.
20616
20617 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
20618
20619         * configure.in (AS, LD): Require binutils 2.20 or later.
20620         * configure: Regenerated.
20621         * manual/install.texi (Tools for Compilation): Give binutils 2.20
20622         as required minimum version.
20623         * INSTALL: Regenerated.
20624
20625         [BZ #2541]
20626         [BZ #4108]
20627         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
20628         before squaring exponent.
20629         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
20630         bottom long double and 27 bits of top long double before squaring
20631         exponent.
20632         * math/libm-test.inc (erfc_test): Add more tests.
20633         * sysdeps/i386/fpu/libm-test-ulps: Update.
20634         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20636
20637 2012-03-01  Kai Tietz  <ktietz@redhat.com>
20638
20639         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
20640         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
20641         containing bit-fields.
20642         * soft-fp/extended.h (_FP_UNION_E): Likewise.
20643         * soft-fp/single.h (_FP_UNION_S): Likewise.
20644         * soft-fp/double.h (_FP_UNION_D): Likewise.
20645
20646 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20647
20648         [BZ #13786]
20649         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
20650         not include ../strcmp.S.
20651         [USE_AS_STRNCASECMP_L]: Likewise.
20652         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
20653         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
20654         * sysdeps/i386/i686/multiarch/strncase_l-c.c
20655         (__strncasecmp_l_ia32): Define as alias to
20656         __strncasecmp_l_nonascii.
20657
20658         [BZ #5794]
20659         * math/libm-test.inc (expm1_test): Add test for bug 5794.
20660         * sysdeps/i386/fpu/libm-test-ulps: Update.
20661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20662
20663         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
20664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20665
20666 2012-02-29  Jeff Law  <law@redhat.com>
20667
20668         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
20669         out of bounds read.
20670
20671 2012-02-29  Marek Polacek  <polacek@redhat.com>
20672
20673         [BZ #13706]
20674         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
20675         * elf/Makefile: Add rules to run tst-unused-dep.out.
20676
20677 2012-02-28  David S. Miller  <davem@davemloft.net>
20678
20679         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
20680         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
20681         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
20682         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
20683         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
20684         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
20685
20686 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
20687
20688         * math/libm-test.inc (llround_test): Move one test from
20689         lround_test.  Use TEST_f_L in moved test.
20690         (lround_test): Move misplaced test to llround_test.  Add testcase
20691         from bug 2561.
20692
20693 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
20694
20695         * sysdeps/x86_64/fpu/e_expf.S: New file.
20696         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
20697
20698 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
20699
20700         [BZ #13637]
20701         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
20702         of remain_len that may cause incomplete multi-byte character and
20703         false match.
20704         * posix/bug-regex33.c: New file.
20705         * posix/Makefile (tests): Add bug-regex33.
20706
20707 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
20708
20709         * manual/macros.texi: New file.
20710         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
20711         * manual/libc.texinfo: Include macros.texi.
20712         * manual/creatute.texi: Likewise.
20713         * manual/install.texi: Likewise.
20714         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
20715         @glibcadj{} in references to the GNU C Library.
20716         * manual/charset.texi: Likewise.
20717         * manual/conf.texi: Likewise.
20718         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
20719         when not using those macros.
20720         * manual/creature.texi: Likewise.
20721         * manual/crypt.texi: Likewise.
20722         * manual/errno.texi: Likewise.
20723         * manual/filesys.texi: Likewise.
20724         * manual/header.texi: Likewise.
20725         * manual/install.texi: Likewise.
20726         * manual/intro.texi: Likewise.
20727         * manual/io.texi: Likewise.
20728         * manual/job.texi: Likewise.
20729         * manual/lang.texi: Likewise.
20730         * manual/libc.texiinfo: Likewise.
20731         * manual/llio.texi: Likewise.
20732         * manual/locale.texi: Likewise.
20733         * manual/maint.texi: Likewise.
20734         * manual/math.texi: Likewise.
20735         * manual/memory.texi: Likewise.
20736         * manual/message.texi: Likewise.
20737         * manual/nss.texi: Likewise.
20738         * manual/pattern.texi: Likewise.
20739         * manual/process.texi: Likewise.
20740         * manual/resource.texi: Likewise.
20741         * manual/search.texi: Likewise.
20742         * manual/setjmp.texi: Likewise.
20743         * manual/signal.texi: Likewise.
20744         * manual/socket.texi: Likewise.
20745         * manual/startup.texi: Likewise.
20746         * manual/stdio.texi: Likewise.
20747         * manual/string.texi: Likewise.
20748         * manual/sysinfo.texi: Likewise.
20749         * manual/syslog.texi: Likewise.
20750         * manual/terminal.texi: Likewise.
20751         * manual/time.texi: Likewise.
20752         * manual/users.texi: Likewise.
20753         * INSTALL: Regenerated.
20754         * NOTES: Regenerated.
20755         * sysdeps/gnu/errlist.c: Regenerated.
20756
20757 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
20758
20759         * include/dirent.h: Include <dirstream.h> before
20760         <dirent/dirent.h>.
20761
20762 2012-02-28  David S. Miller  <davem@davemloft.net>
20763
20764         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
20765         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
20766         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
20767         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
20768
20769 2012-02-27  David S. Miller  <davem@davemloft.net>
20770
20771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
20772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
20773         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
20774         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
20775
20776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
20777         frame pointer instead of stack pointer relative arg slot.
20778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20779         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20780         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20781
20782 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
20783
20784         [BZ #3992]
20785         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
20786
20787 2012-02-27  David S. Miller  <davem@davemloft.net>
20788
20789         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
20790         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
20791         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20792         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
20793         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
20794         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
20795         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
20796         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
20797
20798 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20799
20800         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
20801         later.  Allow versions 5-9.
20802         * configure: Regenerated.
20803         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
20804         required minimum version and 4.6 as recommended version.  Do not
20805         mention bugs in GCC 2.7 and 2.8.
20806         * INSTALL: Regenerated.
20807
20808 2012-02-27  David S. Miller  <davem@davemloft.net>
20809
20810         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
20811         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
20812         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
20813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
20814         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
20815         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
20816         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
20817         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
20818
20819         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
20820         manipulate bits before adding and subtracting TWO112[sx].
20821         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
20822
20823 2012-02-27  Roland McGrath  <roland@hack.frob.com>
20824
20825         [BZ #13775]
20826         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
20827         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
20828         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
20829         being in POSIX, because they are in 1003.1-2008.
20830
20831         * rt/tst-aio.c: Include <fcntl.h>.
20832         * rt/tst-aio7.c: Likewise.
20833         * rt/tst-aio64.c: Likewise.
20834
20835         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
20836
20837 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
20838
20839         * manual/install.texi (--with-headers): Describe headers as
20840         interface headers, not private headers.
20841         (Specific advice for GNU/Linux systems): Describe use of headers
20842         from "make headers_install", not private headers from older
20843         kernels.
20844         * INSTALL: Regenerated.
20845         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
20846         Change to 2.6.19.
20847         * sysdeps/unix/sysv/linux/configure: Regenerated.
20848
20849         * manual/llio.texi (fclean): Remove documentation.
20850
20851         * manual/Makefile (libc-texi-generated): New variable.  Include
20852         version.texi.
20853         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
20854         $(libc-texi-generated), not duplicated list of files.
20855         (version.texi, stamp-version): New rules.
20856         (realclean): Remove $(libc-texi-generated), not individual files
20857         from that list.  Do not remove dir-add.texinfo.
20858         * manual/libc.texinfo: Comment out uses of edition numbers and
20859         references to printed manual.  Remove last-updated dates.
20860         (EDITION): Comment out.
20861         (ISBN): Likewise.
20862         (VERSION, UPDATED): Remove.
20863         (version.texi): Include.
20864
20865 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
20866
20867         * sysdeps/posix/spawni.c: Include <signal.h>.
20868         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
20869         * sysdeps/pthread/aio_fsync.c: Likewise.
20870
20871 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
20872
20873         * conform/Makefile (tests): Run only when not cross-compiling and
20874         when fast-check is not defined.
20875
20876         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
20877         * conform/data/limits.h-data: Fixes for POSIX2008.
20878         * conform/run-conformtest.sh: Run all tests.
20879         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
20880         headers.
20881         * include/bits/dlfcn.h: Likewise.
20882         * include/langinfo.h: Likewise.
20883         * include/monetary.h: Likewise.
20884         * include/sys/poll.h: Likewise.
20885
20886         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
20887         for __USE_GNU.
20888         * posix/spawn.h: Define __need_sigset_t.
20889         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
20890         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
20891         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
20892         to get sigevent_t only.
20893         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
20894         only for __USE_GNU.
20895         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20896         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20897         process_vm_writev only for __USE_GNU.
20898         * termios/termios.h: Declare tcgetsid also for POSIX2008.
20899
20900         * conform/Makefile: For now ignore errors from run-conformtest.
20901         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
20902         POSIX to avoid namespace pollution.  Don't prepend headers.
20903         * conform/data/aio.h-data: Fixes for POSIX testing.
20904         * conform/data/fcntl.h-data: Likewise.
20905         * conform/data/glob.h-data: Likewise.
20906         * conform/data/grp.h-data: Likewise.
20907         * conform/data/pthread.h-data: Likewise.
20908         * conform/data/pwd.h-data: Likewise.
20909         * conform/data/signal.h-data: Likewise.
20910         * conform/data/spawn.h-data: Likewise.
20911         * conform/data/stdio.h-data: Likewise.
20912         * conform/data/stdlib.h-data: Likewise.
20913         * conform/data/stropts.h-data: Likewise.
20914         * conform/data/sys/mman.h-data: Likewise.
20915         * conform/data/sys/stat.h-data: Likewise.
20916         * conform/data/sys/types.h-data: Likewise.
20917         * conform/data/sys/wait.h-data: Likewise.
20918         * conform/data/time.h-data: Likewise.
20919         * conform/data/unistd.h-data: Likewise.
20920         * conform/data/utime.h-data: Likewise.
20921
20922         * io/sys/stat.h: fchmod was always in POSIX.
20923         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
20924         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
20925         * rt/aio.h: Define __need_timespec before including <time.h>.
20926         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
20927         struct.  Add forward declaration of pthread_attr_t and use it in
20928         sigevent.
20929         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
20930         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
20931         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
20932         always remove CLK_TCK definition.
20933
20934 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
20935
20936         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
20937
20938 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
20939
20940         * conform/run-conformtest.sh: New file.
20941         * conform/Makefile: Run run-conformtest for tests.
20942         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
20943         support.
20944
20945         * conform/data/uchar.h-data: New file.
20946         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
20947         * conform/data/arpa/inet.h-data: Likewise.
20948         * conform/data/assert.h-data: Likewise.
20949         * conform/data/complex.h-data: Likewise.
20950         * conform/data/cpio.h-data: Likewise.
20951         * conform/data/ctype.h-data: Likewise.
20952         * conform/data/dirent.h-data: Likewise.
20953         * conform/data/dlfcn.h-data: Likewise.
20954         * conform/data/errno.h-data: Likewise.
20955         * conform/data/fcntl.h-data: Likewise.
20956         * conform/data/float.h-data: Likewise.
20957         * conform/data/fmtmsg.h-data: Likewise.
20958         * conform/data/fnmatch.h-data: Likewise.
20959         * conform/data/ftw.h-data: Likewise.
20960         * conform/data/glob.h-data: Likewise.
20961         * conform/data/grp.h-data: Likewise.
20962         * conform/data/iconv.h-data: Likewise.
20963         * conform/data/inttypes.h-data: Likewise.
20964         * conform/data/langinfo.h-data: Likewise.
20965         * conform/data/libgen.h-data: Likewise.
20966         * conform/data/limits.h-data: Likewise.
20967         * conform/data/locale.h-data: Likewise.
20968         * conform/data/math.h-data: Likewise.
20969         * conform/data/monetary.h-data: Likewise.
20970         * conform/data/mqueue.h-data: Likewise.
20971         * conform/data/ndbm.h-data: Likewise.
20972         * conform/data/net/if.h-data: Likewise.
20973         * conform/data/netdb.h-data: Likewise.
20974         * conform/data/netinet/in.h-data: Likewise.
20975         * conform/data/nl_types.h-data: Likewise.
20976         * conform/data/poll.h-data: Likewise.
20977         * conform/data/pthread.h-data: Likewise.
20978         * conform/data/pwd.h-data: Likewise.
20979         * conform/data/regex.h-data: Likewise.
20980         * conform/data/sched.h-data: Likewise.
20981         * conform/data/search.h-data: Likewise.
20982         * conform/data/semaphore.h-data: Likewise.
20983         * conform/data/setjmp.h-data: Likewise.
20984         * conform/data/signal.h-data: Likewise.
20985         * conform/data/spawn.h-data: Likewise.
20986         * conform/data/stdarg.h-data: Likewise.
20987         * conform/data/stdio.h-data: Likewise.
20988         * conform/data/stdlib.h-data: Likewise.
20989         * conform/data/string.h-data: Likewise.
20990         * conform/data/strings.h-data: Likewise.
20991         * conform/data/stropts.h-data: Likewise.
20992         * conform/data/sys/ipc.h-data: Likewise.
20993         * conform/data/sys/mman.h-data: Likewise.
20994         * conform/data/sys/msg.h-data: Likewise.
20995         * conform/data/sys/resource.h-data: Likewise.
20996         * conform/data/sys/select.h-data: Likewise.
20997         * conform/data/sys/sem.h-data: Likewise.
20998         * conform/data/sys/shm.h-data: Likewise.
20999         * conform/data/sys/socket.h-data: Likewise.
21000         * conform/data/sys/stat.h-data: Likewise.
21001         * conform/data/sys/statvfs.h-data: Likewise.
21002         * conform/data/sys/time.h-data: Likewise.
21003         * conform/data/sys/timeb.h-data: Likewise.
21004         * conform/data/sys/times.h-data: Likewise.
21005         * conform/data/sys/types.h-data: Likewise.
21006         * conform/data/sys/uio.h-data: Likewise.
21007         * conform/data/sys/un.h-data: Likewise.
21008         * conform/data/sys/utsname.h-data: Likewise.
21009         * conform/data/sys/wait.h-data: Likewise.
21010         * conform/data/syslog.h-data: Likewise.
21011         * conform/data/tar.h-data: Likewise.
21012         * conform/data/termios.h-data: Likewise.
21013         * conform/data/utime.h-data: Likewise.
21014         * conform/data/utmpx.h-data: Likewise.
21015         * conform/data/varargs.h-data: Likewise.
21016         * conform/data/wchar.h-data: Likewise.
21017         * conform/data/wctype.h-data: Likewise.
21018         * conform/data/wordexp.h-data: Likewise.
21019
21020         * include/stropts.h: New file.
21021         * include/uchar.h: New file.
21022         * include/aio.h: Changes to allow conformtest.pl to use the headers.
21023         * include/assert.h: Likewise.
21024         * include/ctype.h: Likewise.
21025         * include/dirent.h: Likewise.
21026         * include/dlfcn.h: Likewise.
21027         * include/fcntl.h: Likewise.
21028         * include/fnmatch.h: Likewise.
21029         * include/glob.h: Likewise.
21030         * include/grp.h: Likewise.
21031         * include/libio.h: Likewise.
21032         * include/locale.h: Likewise.
21033         * include/math.h: Likewise.
21034         * include/net/if.h: Likewise.
21035         * include/netdb.h: Likewise.
21036         * include/netinet/in.h: Likewise.
21037         * include/pthread.h: Likewise.
21038         * include/pwd.h: Likewise.
21039         * include/regex.h: Likewise.
21040         * include/sched.h: Likewise.
21041         * include/search.h: Likewise.
21042         * include/setjmp.h: Likewise.
21043         * include/signal.h: Likewise.
21044         * include/stdio.h: Likewise.
21045         * include/stdlib.h: Likewise.
21046         * include/string.h: Likewise.
21047         * include/sys/cdefs.h: Likewise.
21048         * include/sys/mman.h: Likewise.
21049         * include/sys/msg.h: Likewise.
21050         * include/sys/resource.h: Likewise.
21051         * include/sys/select.h: Likewise.
21052         * include/sys/socket.h: Likewise.
21053         * include/sys/stat.h: Likewise.
21054         * include/sys/statvfs.h: Likewise.
21055         * include/sys/time.h: Likewise.
21056         * include/sys/times.h: Likewise.
21057         * include/sys/uio.h: Likewise.
21058         * include/sys/utsname.h: Likewise.
21059         * include/sys/wait.h: Likewise.
21060         * include/termios.h: Likewise.
21061         * include/time.h: Likewise.
21062         * include/ulimit.h: Likewise.
21063         * include/unistd.h: Likewise.
21064         * include/utime.h: Likewise.
21065         * include/wchar.h: Likewise.
21066         * include/wctype.h: Likewise.
21067         * include/wordexp.h: Likewise.
21068
21069         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
21070
21071         * time/time.h: TIME_UTC must be a macro.
21072         Make timespec_get available for ISO C11 only as well.
21073
21074 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
21075
21076         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
21077         Reported by Peng Haitao <penght@cn.fujitsu.com>.
21078
21079 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21080
21081         * configure.in: Use -o not -a in test for unsupported multi-arch.
21082
21083 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21084
21085         * manual/texinfo.tex: Update to version 2012-01-19.16.
21086
21087 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
21088
21089         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
21090
21091 2012-02-24  Roland McGrath  <roland@hack.frob.com>
21092
21093         [BZ #13738]
21094         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
21095         * manual/fdl-1.3.texi: New file.
21096         * manual/fdl-1.1.texi: File removed.
21097
21098         [BZ #13738]
21099         * manual/libc.texinfo (FDL_VERSION): New @set.
21100         Use it for mention of FDL in cover text.
21101         (Documentation License): Use it in @include file name.
21102
21103 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21104             Roland McGrath  <roland@hack.frob.com>
21105
21106         [BZ #5461]
21107         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
21108         not LONG_LONG_MAX and LONG_LONG_MIN.
21109         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
21110         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
21111         name.
21112         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
21113
21114 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21115
21116         [BZ #2547]
21117         [BZ #11365]
21118         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
21119         manipulate bits before adding and subtracting TWO23[sx].
21120         * math/libm-test.inc (nearbyint_test): Add more tests.
21121
21122 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21123
21124         [BZ #2548]
21125         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
21126         bits before adding and subtracting TWO23[sx].
21127         * math/libm-test.inc (rint_test): Add more tests.
21128         (rint_test_tonearest): Likewise.
21129         (rint_test_towardzero): Likewise.
21130         (rint_test_downward): Likewise.
21131         (rint_test_upward: Likewise.
21132
21133 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21134
21135         [BZ #10110]
21136         * include/stdc-predef.h: New file.  Extracted from features.h.
21137         * include/features.h: Include stdc-predef.h.
21138         * Makefile (headers): Add stdc-predef.h.
21139         * CONFORMANCE (Compiler limitations): Update.
21140
21141 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
21142
21143         * manual/libc.texinfo (VERSION, UPDATED): Revert.
21144
21145 2012-02-21  David S. Miller  <davem@davemloft.net>
21146
21147         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
21148         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21149
21150 2012-02-20  David S. Miller  <davem@davemloft.net>
21151
21152         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
21153         using a normal save/restore sequence, rather than allocating a
21154         dummy stack frame just to store a frame pointer and restore.
21155         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21156
21157 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21158
21159         * manual/install.texi: Fix stray word in line-wrapped comment.
21160
21161 2012-02-20  David S. Miller  <davem@davemloft.net>
21162
21163         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
21164         both binutils and gcc support GOTDATA.
21165
21166         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
21167         "rd %pc" in the PIC register setup sequences.
21168
21169         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
21170         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
21171         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
21172         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
21173         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
21174         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21175         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21176         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
21177         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
21178         (SYSCALL_ERROR_HANDLER): Likewise.
21179         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
21180         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
21181         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
21182         (SYSCALL_ERROR_HANDLER): Likewise.
21183
21184         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
21185         (HAVE_GCC_GOTDATA): New.
21186         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
21187         relocation support in both binutils and gcc.
21188         * sysdeps/sparc/elf/configure: Regenerate.
21189
21190         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
21191         * sysdeps/sparc/sparc32/elf/configure: Delete.
21192         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
21193         * sysdeps/sparc/sparc64/elf/configure: Delete.
21194         * sysdeps/sparc/elf/configure.in: New file.
21195         * sysdeps/sparc/elf/configure: Generate.
21196
21197         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
21198         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
21199         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
21200         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
21201         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
21202
21203 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21204
21205         * manual/install.texi: Do not mention specific glibc version
21206         numbers.
21207         * manual/libc.texinfo (VERSION, UPDATED): Update.
21208         (@copying): Use @copyright{} and range of years.
21209
21210 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
21211
21212         [BZ #13695]
21213         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
21214         [crti.S not in sysdirs] (generated): Do not append.
21215         [crti.S not in sysdirs] (omit-deps): Likewise.
21216         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
21217         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
21218         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
21219         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
21220         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
21221         Likewise.
21222         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
21223         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
21224         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
21225         * csu/defs.awk: Remove file.
21226         * sysdeps/generic/initfini.c: Likewise.
21227         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
21228         variable.
21229         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
21230         Likewise.
21231
21232 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21233
21234         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
21235         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
21236         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
21237         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
21238         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21239         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
21240         <bits/epoll.h>.
21241         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
21242         (__EPOLL_PACKED): Define to empty if not defined by
21243         <bits/epoll.h>.
21244         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
21245         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21246         bits/epoll.h.
21247
21248 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21249
21250         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
21251         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
21252         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
21253         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
21254         <bits/timerfd.h>.
21255         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
21256         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21257         bits/timerfd.h.
21258
21259 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
21260
21261         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
21262         in C locale.
21263         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21264         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
21265         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
21266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21267
21268 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
21269
21270         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21271         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
21272
21273 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21274
21275         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
21276         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
21277         defined.
21278         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
21279         Likewise.
21280         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
21281         entry for 2.16.
21282
21283 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
21284
21285         * math/w_acos.c: Use non-signaling floating-point comparisons.
21286         * math/w_acosf.c: Likewise.
21287         * math/w_acosh.c: Likewise.
21288         * math/w_acoshf.c: Likewise.
21289         * math/w_acoshl.c: Likewise.
21290         * math/w_acosl.c: Likewise.
21291         * math/w_asin.c: Likewise.
21292         * math/w_asinf.c: Likewise.
21293         * math/w_asinl.c: Likewise.
21294         * math/w_atanh.c: Likewise.
21295         * math/w_atanhf.c: Likewise.
21296         * math/w_atanhl.c: Likewise.
21297         * math/w_exp2.c: Likewise.
21298         * math/w_exp2f.c: Likewise.
21299         * math/w_exp2l.c: Likewise.
21300         * math/w_j0.c: Likewise.
21301         * math/w_j0f.c: Likewise.
21302         * math/w_j0l.c: Likewise.
21303         * math/w_j1.c: Likewise.
21304         * math/w_j1f.c: Likewise.
21305         * math/w_j1l.c: Likewise.
21306         * math/w_jn.c: Likewise.
21307         * math/w_jnf.c: Likewise.
21308         * math/w_log.c: Likewise.
21309         * math/w_log10.c: Likewise.
21310         * math/w_log10f.c: Likewise.
21311         * math/w_log10l.c: Likewise.
21312         * math/w_log2.c: Likewise.
21313         * math/w_log2f.c: Likewise.
21314         * math/w_log2l.c: Likewise.
21315         * math/w_logf.c: Likewise.
21316         * math/w_logl.c: Likewise.
21317         * math/w_sqrt.c: Likewise.
21318         * math/w_sqrtf.c: Likewise.
21319         * math/w_sqrtl.c: Likewise.
21320         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21321         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
21322         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21323         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21324         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21325
21326 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21327
21328         [BZ #9739]
21329         * manual/string.texi (strnlen): Use correct parameter name in
21330         equivalent expression.
21331
21332 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21333
21334         [BZ #11174]
21335         * manual/users.texi (seteuid): Consistently use neweuid for
21336         argument name.
21337
21338 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
21339
21340         [BZ #13704]
21341         * manual/nss.texi (Services in the NSS configuration): Correct
21342         list of services in example configuration file.
21343
21344 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
21345
21346         [BZ #11322]
21347         * manual/arith.texi: Remove statements about negative zero
21348         behaving identically to zero.
21349
21350 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21351
21352         [BZ #5993]
21353         * manual/install.texi: Do not document upgrading from libc5.
21354
21355 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
21356
21357         [BZ #4596]
21358         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
21359
21360 2012-02-18  David S. Miller  <davem@davemloft.net>
21361
21362         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
21363         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
21364         %o7 across the call.
21365         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
21366         instead.
21367         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
21368         SETUP_PIC_REG_LEAF.
21369         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21370         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
21371         * sysdeps/sparc/crtn.S: Likewise.
21372
21373 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
21374
21375         * aout/Makefile: Remove.
21376
21377 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
21378
21379         [BZ #13058]
21380         * manual/examples/argp-ex1.c (main): Format definition in GNU
21381         style.
21382         * manual/examples/argp-ex2.c (main): Likewise.
21383         * manual/examples/argp-ex3.c (main): Likewise.
21384         * manual/examples/argp-ex4.c (main): Likewise.
21385         * manual/examples/longopt.c (main): Use new-style prototype
21386         definition.
21387         * manual/examples/strncat.c (main): Specify return type and use
21388         (void) for arguments.
21389         * manual/examples/subopt.c (main): Use char **argv argument.
21390
21391 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21392
21393         [BZ #5077]
21394         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
21395         rounding modes.
21396
21397 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
21398
21399         [BZ #6907]
21400         * manual/string.texi (strchr): Change when strchrnul is
21401         recommended.
21402
21403 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
21404
21405         [BZ #174]
21406         * manual/locale.texi (setlocale): Document LOCPATH.
21407
21408 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21409
21410         [BZ #10210]
21411         * manual/process.texi (execle): Move @dots{} before last argument.
21412
21413 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
21414
21415         [BZ #12047]
21416         * manual/charset.texi (Generic Charset Conversion): Fix typo
21417         (LC_TYPE -> LC_CTYPE).
21418
21419 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
21420
21421         [BZ #5805]
21422         * manual/arith.texi (scalbn): Use @var{} on parameter names.
21423         (scalbnf): Likewise.
21424         (scalbnl): Likewise.
21425         (scalbln): Likewise.
21426         (scalblnf): Likewise.
21427         (scalblnl): Likewise.
21428         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
21429         (vwarnx): Likewise.
21430         (verr): Likewise.
21431         (verrx): Likewise.
21432         * manual/filesys.texi (telldir): Use braces around return type.
21433         * manual/llio.texi (mmap): Add space after comma.
21434         (mmap64): Likewise.
21435         * manual/math.texi (jn): Use @var{} on parameter names.
21436         (jnf): Likewise.
21437         (jnl): Likewise.
21438         (yn): Likewise.
21439         (ynf): Likewise.
21440         (ynl): Likewise.
21441         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
21442         line.
21443         * manual/resource.texi (ulimit): Use @dots{} instead of literal
21444         "...".
21445         (sched_get_priority_min): Remove semicolon on @deftypefun line.
21446         (sched_get_priority_max): Likewise.
21447         * manual/signal.texi (sigvec): Add space after comma.
21448         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
21449         names.
21450         (if_indextoname): Likewise.
21451         (if_freenameindex): Likewise.
21452         (sendto): Use ',' instead of '.' in prototype.
21453         * manual/startup.texi (syscall): Use @dots{} instead of literal
21454         "...".
21455         * manual/stdio.texi (__fpending): Separate initial words of
21456         paragraph from @deftypefun line.
21457         * manual/syslog.texi (syslog): Use @dots{} instead of literal
21458         "...".
21459         (vsyslog): Use @var{} on parameter names.
21460         * manual/terminal.texi (stty): Use @var{} on parameter names.
21461         * manual/users.texi (getutmp): Use @var{} on parameter names.
21462         (getutmpx): Likewise.
21463
21464 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21465
21466         [BZ #6884]
21467         * manual/stdio.texi (fopen): Fix typos in description of
21468         ",ccs=STRING".
21469
21470 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
21471
21472         [BZ #4026]
21473         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
21474         get clock_id definition.
21475
21476 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
21477
21478         [BZ #4822]
21479         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
21480         (madvise): Cast every argument to void on its own.
21481
21482 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21483
21484         [BZ #9902]
21485         * manual/startup.texi (Exit Status): Fix typo.
21486
21487 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
21488
21489         [BZ #10140]
21490         * manual/examples/argp-ex1.c: Include <stdlib.h>.
21491         * manual/examples/argp-ex2.c: Likewise.
21492         * manual/examples/argp-ex3.c: Likewise.
21493
21494 2012-02-16  Richard Henderson  <rth@redhat.com>
21495
21496         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
21497         * sysdeps/s390/s390-32/initfini.c: Remove.
21498         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
21499         * sysdeps/s390/s390-64/initfini.c: Remove.
21500
21501 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21502
21503         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
21504         compiler output for sysdeps/generic/initfini.c.
21505         * sysdeps/sh/elf/initfini.c: Remove file.
21506
21507 2012-02-16  David S. Miller  <davem@davemloft.net>
21508
21509         [BZ #11494]
21510         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
21511
21512         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
21513         * sysdeps/sparc/crti.S: New file.
21514         * sysdeps/sparc/crtn.S: New file.
21515         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
21516         * sysdeps/sparc/sparc64/Makefile: Likewise.
21517
21518 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
21519
21520         [BZ #3335]
21521         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
21522
21523 2012-02-15  Roland McGrath  <roland@hack.frob.com>
21524
21525         [BZ #4822]
21526         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
21527
21528         * mach/devstream.c (cookie_io_functions_t): Macro removed.
21529         (write, read, close): Likewise.
21530         Patch by Aurelien Jarno <aurelien@aurel32.net>.
21531
21532 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
21533
21534         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
21535         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
21536         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
21537         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
21538         <bits/signalfd.h>.
21539         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
21540         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21541         bits/signalfd.h.
21542
21543 2012-02-14  Marek Polacek  <polacek@redhat.com>
21544
21545         * sysdeps/x86_64/crti.S: New file.
21546         * sysdeps/x86_64/crtn.S: New file.
21547         * sysdeps/x86_64/elf/initfini.c: Remove file.
21548
21549 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21550
21551         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
21552         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
21553         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
21554         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
21555         <bits/inotify.h>.
21556         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
21557         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21558         bits/inotify.h.
21559
21560 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
21561
21562         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
21563         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
21564         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
21565         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
21566         <bits/eventfd.h>.
21567         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
21568         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21569         bits/eventfd.h.
21570
21571 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
21572
21573         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
21574         __feraiseexcept instead of feraiseexcept.
21575
21576         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
21577         nanosleep invocations.
21578         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
21579         strings, and add error checking for a nanosleep invocations.
21580
21581 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21582
21583         Replace FSF snail mail address with URLs, as per GNU coding standards.
21584         Most of the snail mail addresses were wrong anyway, and omitting
21585         them makes the source code easier to maintain.  Almost all of the
21586         changes are to license notices and to locale LC_IDENTIFICATION
21587         addresses, except for this one:
21588         * manual/libc.texinfo: In "Published by", give the FSF's URL,
21589         not its snail mail address.
21590
21591 2012-02-09  Richard Henderson  <rth@twiddle.net>
21592
21593         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
21594         of kernel-features.h.
21595
21596         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
21597
21598 2012-02-08  Marek Polacek  <polacek@redhat.com>
21599
21600         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
21601         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
21602         * sysdeps/gnu/_G_config.h: Likewise.
21603         * sysdeps/generic/_G_config.h: Likewise.
21604
21605 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
21606
21607         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
21608         tests.
21609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21610
21611         * sysdeps/powerpc/powerpc32/crti.S: New file.
21612         * sysdeps/powerpc/powerpc32/crtn.S: New file.
21613         * sysdeps/powerpc/powerpc64/crti.S: New file.
21614         * sysdeps/powerpc/powerpc64/crtn.S: New file.
21615
21616         * Makeconfig (have-initfini): Don't set.
21617         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
21618         * configure.in (nopic_initfini): Don't substitute.
21619         * config.h.in (HAVE_INITFINI): Don't #undef.
21620         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
21621         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
21622
21623 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
21624
21625         Support crti.S and crtn.S provided directly by architectures.
21626         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
21627         [crti.S in sysdirs] (omit-deps): Likewise.
21628         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
21629         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
21630         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
21631         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
21632         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
21633         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
21634         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
21635         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
21636         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
21637         compiler output for sysdeps/generic/initfini.c.
21638         * sysdeps/i386/elf/Makefile: Remove file.
21639         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
21640
21641 2012-02-07  Marek Polacek  <polacek@redhat.com>
21642
21643         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
21644         * sysdeps/gnu/_G_config.h: Likewise.
21645         * sysdeps/mach/hurd/_G_config.h: Likewise.
21646
21647 2012-02-07  Marek Polacek  <polacek@redhat.com>
21648
21649         * math/Makefile (tests): Add tst-CMPLX2.
21650         * math/tst-CMPLX2.c: New file.
21651
21652 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
21653
21654         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21655
21656         * math/libm-test.inc (jn_test): Add missing L suffix.
21657
21658 2012-02-06  Marek Polacek  <polacek@redhat.com>
21659
21660         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
21661         * sysdeps/i386/fpu/e_powf.S: Likewise.
21662         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21663         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21664         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21665         * sysdeps/i386/fpu/e_pow.S: Likewise.
21666         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
21667         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21668         * sysdeps/i386/fpu/s_expm1.S: Likewise.
21669         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
21670         * sysdeps/i386/fpu/e_log2.S: Likewise.
21671         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21672         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21673         * sysdeps/i386/fpu/e_powl.S: Likewise.
21674         * sysdeps/i386/fpu/s_log1p.S: Likewise.
21675         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21676         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
21677         * sysdeps/i386/fpu/e_logl.S: Likewise.
21678         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
21679         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
21680         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
21681         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
21682         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21683         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21684         * sysdeps/i386/fpu/e_log.S: Likewise.
21685         * sysdeps/i386/fpu/s_cexp.S: Likewise.
21686         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21687         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
21688         * sysdeps/i386/fpu/e_logf.S: Likewise.
21689         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21690         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21691         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
21692         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
21693         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21694         * sysdeps/i386/fpu/e_log10.S: Likewise.
21695         * sysdeps/i386/fpu/s_frexp.S: Likewise.
21696         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21697         * sysdeps/i386/fpu/s_asinh.S: Likewise.
21698         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
21699         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21700         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
21701         * sysdeps/i386/asm-syntax.h: Likewise.
21702         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21703         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21704         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21705         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
21706         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
21707         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21708         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
21709         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
21710         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21711         * sysdeps/powerpc/sysdep.h: Likewise.
21712         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21713         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
21714
21715 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21716
21717         [BZ #411]
21718         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
21719
21720 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
21721
21722         * sysdeps/i386/sysdep.h: Include <features.h>.
21723         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
21724         version.
21725
21726 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
21727
21728         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
21729         Define.
21730         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
21731         LOAD_PIC_REG_STR.
21732
21733 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21734
21735         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
21736         (SETUP_PIC_REG): Use GET_PC_THUNK.
21737         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
21738         macro.
21739
21740 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21741
21742         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
21743         for non-PIC compilation.
21744         (SETUP_PIC_REG): Add .p2align directive.
21745         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
21746         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
21747         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21748         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21749         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21750         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21751         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
21752         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
21753         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21754         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21755         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21756         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21757         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21758         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21759         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21760         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21761         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21762         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21763         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21764         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21765         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21766         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21767         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21768         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
21769         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21770         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21771         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21772         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21773         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21774         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21775         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21776         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21777         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21778         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21779         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21780         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21781         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21782         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21783         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21784         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21785         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21786
21787 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
21788
21789         * math/tst-CMPLX.c: Include <stdio.h>.
21790
21791 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
21792
21793         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
21794         float.
21795         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21796         * sysdeps/sparc/bits/mathdef.h: Likewise.
21797
21798 2012-01-31  Marek Polacek  <polacek@redhat.com>
21799
21800         * libio/libio.h: Don't define _PARAMS.
21801         * locale/programs/config.h: Don't define PARAMS.
21802         * stdlib/strtol_l.c: Likewise.
21803         (__strtol_l): Remove PARAMS from the prototype.
21804
21805 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
21806
21807         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
21808         names.  Just use the correct names.  Remove unnecessary wrapper
21809         functions.
21810         * malloc/arena.c: Likewise.
21811         * malloc/hooks.c: Likewise.
21812
21813         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
21814         ARENA_TEST says not to.  Simplify test for creation of a new arena.
21815         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
21816
21817 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
21818
21819         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
21820         into tail calls.
21821         (update_get_addr): New function.
21822         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
21823         GET_ADDR_MODULE parameter.
21824
21825 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21826
21827         * crypt/cert.c: Remove __STDC__ conditionals.
21828         * crypt/crypt-entry.c: Likewise.
21829         * crypt/crypt_util.c: Likewise.
21830         * libio/filedoalloc.c: Likewise.
21831         * libio/fileops.c: Likewise.
21832         * libio/genops.c: Likewise.
21833         * libio/iofclose.c: Likewise.
21834         * libio/iofdopen.c: Likewise.
21835         * libio/iofopen.c: Likewise.
21836         * libio/iofopen64.c: Likewise.
21837         * libio/iogetdelim.c: Likewise.
21838         * libio/iopopen.c: Likewise.
21839         * libio/obprintf.c: Likewise.
21840         * libio/oldfileops.c: Likewise.
21841         * libio/oldiofclose.c: Likewise.
21842         * libio/oldiofdopen.c: Likewise.
21843         * libio/oldiofopen.c: Likewise.
21844         * libio/oldiopopen.c: Likewise.
21845         * libio/wfiledoalloc.c: Likewise.
21846         * libio/wgenops.c: Likewise.
21847         * locale/programs/xmalloc.c: Likewise.
21848         * misc/syslog.c: Likewise.
21849         * stdio-common/xbug.c: Likewise.
21850         * string/memchr.c: Likewise.
21851         * string/memcmp.c: Likewise.
21852         * string/memrchr.c: Likewise.
21853         * string/rawmemchr.c: Likewise.
21854         * sysdeps/posix/getcwd.c: Likewise.
21855         * time/strftime_l.c: Likewise.
21856
21857 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
21858
21859         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
21860         * config.make.in (config-cflags-sse2avx): Define.
21861         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
21862         Fix typo.
21863
21864 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
21865
21866         * scripts/config.guess: Update from upstream config git repository.
21867         * scripts/config.sub: Likewise.
21868
21869 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
21870
21871         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
21872         (EM_NUM): Update.
21873         (R_TILEPRO_*, R_TILEGX_*): New macros.
21874
21875         * scripts/firstversions.awk: Fix bug in version range handling.
21876
21877         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
21878
21879         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
21880
21881         * include/sys/epoll.h: New file.
21882         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
21883         libc_hidden_def.
21884
21885 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
21886
21887         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
21888         Avoid unnecessary __WORDSIZE == 64 test.
21889         (fmaxf): Use VEX format if possible.
21890         (fmax): Likewise.
21891         (fminf): Likewise.
21892         (fmin): Likewise.
21893
21894         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
21895         * math/math_private.h: Remove libc_fegetround* and
21896         libc_fesetround*.
21897         * sysdeps/i386/configure.in: Check for -msse2avx.
21898         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
21899         also if SSE2AVX is defined.
21900         Remove libc_fegetround* and libc_fesetround*.
21901         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
21902         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
21903         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
21904         of HAS_YMM_USABLE.
21905         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21906         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21907         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21908         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21909         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21910
21911         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
21912
21913 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21914
21915         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
21916         size is not set.
21917         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21918
21919 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
21920
21921         [BZ #13618]
21922         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
21923         relocation.
21924         * Makeconfig (libm): Define.
21925         * elf/Makefile: Add rules to build and run tst-relsort1.
21926         * elf/tst-relsort1.c: New file.
21927         * elf/tst-relsort1mod1.c: New file.
21928         * elf/tst-relsort1mod2.c: New file.
21929
21930 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
21931
21932         * math/s_ldexp.c: Remove __STDC__ conditionals.
21933         * math/s_ldexpf.c: Likewise.
21934         * math/s_ldexpl.c: Likewise.
21935         * math/s_nextafter.c: Likewise.
21936         * math/s_nexttowardf.c: Likewise.
21937         * math/s_significand.c: Likewise.
21938         * math/s_significandf.c: Likewise.
21939         * math/s_significandl.c: Likewise.
21940         * math/w_jnl.c: Likewise.
21941         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
21942         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
21943         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
21944         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
21945         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
21946         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
21947         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
21948         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
21949         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21950         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
21951         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
21952         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21953         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
21954         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
21955         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
21956         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
21957         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
21958         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
21959         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
21960         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21961         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21962         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
21963         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
21964         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
21965         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
21966         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
21967         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
21968         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
21969         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
21970         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
21971         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
21972         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
21973         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
21974         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
21975         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
21976         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
21977         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
21978         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21979         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
21980         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
21981         * sysdeps/ieee754/k_standard.c: Likewise.
21982         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21983         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
21984         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
21985         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
21986         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
21987         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
21988         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
21989         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
21990         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
21991         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
21992         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
21993         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
21994         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
21995         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
21996         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
21997         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
21998         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
21999         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
22000         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
22001         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
22002         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
22003         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
22004         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
22005         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
22006         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
22007         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
22008         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22009         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22010         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22011         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
22012         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
22013         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
22014         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
22015         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
22016         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
22017         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
22018         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
22019         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
22020         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
22021         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
22022         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
22023         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
22024         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22025         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
22026         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
22027         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
22028         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
22029         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
22030         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
22031         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22032         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
22033         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
22034         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
22035         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
22036         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
22037         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
22038         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
22039         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22040         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22041         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22042         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
22043         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
22044         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
22045         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
22046         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
22047         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
22048         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
22049         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
22050         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
22051         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
22052         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
22053         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
22054         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
22055         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
22056         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
22057         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
22058         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
22059         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
22060         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
22061         * sysdeps/ieee754/s_matherr.c: Likewise.
22062         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
22063         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
22064         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
22065         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
22066
22067 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22068
22069         * crypt/md5.h: Remove __STDC__ conditionals.
22070         * libio/libioP.h: Likewise.
22071         * locale/programs/config.h: Likewise.
22072         * sysdeps/generic/sysdep.h: Likewise.
22073         * sysdeps/i386/asm-syntax.h: Likewise.
22074         * sysdeps/s390/asm-syntax.h: Likewise.
22075         * sysdeps/unix/sysdep.h: Likewise.
22076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
22077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22078
22079 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
22080
22081         * libio/libio.h: Remove __STDC__ conditionals.
22082         * malloc/obstack.h: Likewise.
22083         * math/complex.h: Likewise.
22084         * math/math.h: Likewise.
22085         * sysdeps/generic/_G_config.h: Likewise.
22086         * sysdeps/gnu/_G_config.h: Likewise.
22087         * sysdeps/mach/hurd/_G_config.h: Likewise.
22088         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22089         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
22090         * sysdeps/sparc/bits/mathdef.h: Likewise.
22091
22092 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
22093
22094         [BZ #13583]
22095         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
22096         Clean up HAS_* macros.
22097         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
22098         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
22099         possible.
22100         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
22101         HAS_AVX.
22102         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22103         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22104         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22105         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22106         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22107
22108 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
22109
22110         * elf/tst-unique3.cc (gets): Remove declaration.
22111         * elf/tst-unique3lib.cc (gets): Likewise.
22112         * elf/tst-unique3lib2.cc (gets): Likewise.
22113         * elf/tst-unique4.cc (gets): Likewise.
22114
22115 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
22116
22117         * include/stdio.h: Add C++ protection.  Add gets declarations and
22118         definitions.
22119         * debug/tst-chk1.c: Don't declare gets here.
22120         * stdio-common/tst-gets.c: Likewise.
22121
22122 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22123
22124         * posix/glob: Remove directory.
22125
22126 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
22127
22128         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
22129
22130 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
22131
22132         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
22133         of the non-standard EPFNOSUPPORT.
22134
22135 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22136
22137         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
22138         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
22139         ANYWHERE set to 1 only on KERN_NO_SPACE error.
22140
22141 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
22142
22143         * wcsmbs/uchar.h: Test __STDC_VERSION__.
22144
22145 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
22146
22147         * nscd/aicache.c (addhstaiX): Do not cache negative results of
22148         transient errors.
22149         * nscd/grpcache.c (cache_addgr): Likewise.
22150         * nscd/hstcache.c (cache_addhst): Likewise.
22151         * nscd/initgrcache.c (addinitgroupsX): Likewise.
22152         * nscd/pwdcache.c (cache_addpw): Likewise.
22153         * nscd/servicescache.c (cache_addserv): Likewise.
22154
22155 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
22156
22157         * malloc/malloc.c: Various cleanups.
22158         * malloc/hooks.c: Likewise.
22159
22160         * stdlib/Makefile (tests): Add bug-fmtmsg1.
22161         * stdlib/bug-fmtmsg1.c: New file.
22162
22163         * stdlib/fmtmsg.c (init): Add missing unlock.
22164         Patch by Peng Haitao <penght@cn.fujitsu.com>.
22165
22166 2012-01-12  Marek Polacek  <polacek@redhat.com>
22167
22168         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
22169         and _GNU_SOURCE.
22170
22171 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22172
22173         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
22174         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
22175         macro to ensure uniqueness of label name.
22176         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22177         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22178
22179 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
22180
22181         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
22182
22183         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
22184         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
22185         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
22186         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
22187
22188 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
22189
22190         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
22191
22192         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
22193         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
22194         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
22195
22196         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
22197
22198         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
22199         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
22200         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
22201         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
22202
22203         * math/bits/math-finite.h: Add ldexp support.
22204
22205 2012-01-10  Marek Polacek  <polacek@redhat.com>
22206
22207         * locale/programs/localedef.h (show_archive_content): Add noreturn
22208         attribute.
22209
22210 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
22211
22212         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
22213
22214 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22215
22216         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
22217
22218         * io/Makefile (headers): Add bits/poll2.h.
22219
22220 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
22221
22222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
22223         typo #include statement.
22224
22225 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22226
22227         * include/sys/cdefs.h: Define __attribute_alloc_size.
22228         * catgets/gencat.c: Add alloc_size attribute and apply consistently
22229         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
22230         * elf/pldd.c: Likewise.
22231         * iconv/iconv_charmap.c: Likewise.
22232         * iconv/iconvconfig.c: Likewise.
22233         * iconv/strtab.c: Likewise.
22234         * locale/programs/locale.c: Likewise.
22235         * locale/programs/localedef.h: Likewise.
22236         * locale/programs/simple-hash.c: Likewise.
22237         * nscd/nscd.h: Likewise.
22238         * nss/makedb.c: Likewise.
22239         * sysdeps/generic/ldconfig.h: Likewise.
22240         * locale/programs/localedef.c: Remove xmalloc prototype.
22241         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
22242
22243 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22244
22245         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
22246         appropriate.
22247
22248 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
22249
22250         * math/Makefile (tests): Add tst-CMPLX.
22251         * math/tst-CMPLX.c: New file.
22252
22253         * math/complex.h (CMPLXL): Fix typo.
22254
22255         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
22256         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
22257         GLIBC_2.16.
22258         * debug/tst-chk1.c: Add poll and ppoll tests.
22259         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
22260         * include/sys/poll.h: Add hidden proto for ppoll.
22261         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
22262         * sysdeps/mach/hurd/ppoll.c: Likewise.
22263         * io/ppoll.c: Likewise.
22264         * debug/poll_chk.c: New file.
22265         * debug/ppoll_chk.c: New file.
22266         * include/bits/poll2.h: New file.
22267         * io/bits/poll2.h: New file.
22268
22269         [BZ #1350]
22270         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
22271
22272         * configure.in: static is always set to yes.  Remove.
22273         * config.make.in: Don't set build-static.
22274         * Makeconfig: Remove use of build-static.
22275         * dlfcn/Makefile: Likewise.
22276         * elf/Makefile: Likewise.
22277         * math/Makefile: Likewise.
22278         * misc/Makefile: Likewise.
22279         * nptl/Makefile: Likewise.
22280         * sysdeps/mach/hurd/Makefile: Likewise.
22281
22282         * configure.in: PWD_P is not used anymore.
22283         * config.make.in: Remove PWD_P entry.
22284
22285         * configure.in: Remove last remnants of RANLIB.
22286         No need to check for signed size_t anymore.
22287         Don't set libc_commonpagesize and libc_relro_required here for Alpha
22288         and IA-64.
22289         Remove __builtin_expect test because we require at least gcc 3.4.
22290         * aclocal.m4: Likewise.
22291
22292         * wcsmbs/mbrtoc16.c: Implement using towc function.
22293         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
22294         * wcsmbs/wcsmbsload.c: Likewise.
22295         * iconv/gconv_simple.c: Likewise.
22296         * iconv/gconv_int.h: Likewise.
22297         * iconv/gconv_builtin.h: Likewise.
22298         * iconv/iconv_prog.c: Remove CHAR16 handling.
22299
22300         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
22301
22302         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
22303
22304         * configure.in: Remove --with-elf and --enable-bounded options.
22305         Dont set base_machine for ia64.  More non-ELF conditions removed.
22306         Remove testing and setting of leading underscore information.
22307         * config.make.in (build-bounded): Set to no.
22308         * config.h.in: Remove NO_UNDERSCORES entry.
22309         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
22310         them.
22311         * csu/start.c: Remove !NO_UNDERSCORE code.
22312         * locale/localeinfo.h: Likewise.
22313         * sysdeps/generic/machine-gmon.h: Likewise.
22314         * sysdeps/generic/sysdep.h: Likewise.
22315         * sysdeps/i386/sysdep.h: Likewise.
22316         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22317         * sysdeps/mach/sysdep.h: Likewise.
22318         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22319         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22320         * sysdeps/sh/sysdep.h: Likewise.
22321         * sysdeps/sparc/sparc32/alloca.S: Likewise.
22322         * sysdeps/unix/i386/sysdep.S: Likewise.
22323         * sysdeps/unix/sparc/start.c: Likewise.
22324         * sysdeps/unix/sparc/sysdep.S: Likewise.
22325         * sysdeps/unix/sparc/sysdep.h: Likewise.
22326         * sysdeps/unix/start.c: Likewise.
22327         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22328         * sysdeps/x86_64/sysdep.h: Likewise.
22329
22330 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
22331
22332         [BZ #13553]
22333         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
22334         for non-gcc.
22335         * argp/argp-fmtstream.h: Use const instead __const.
22336         * argp/argp.h: Likewise.
22337         * assert/assert.h: Likewise.
22338         * bits/fenv.h: Likewise.
22339         * bits/sched.h: Likewise.
22340         * bits/sigset.h: Likewise.
22341         * bits/sigthread.h: Likewise.
22342         * catgets/nl_types.h: Likewise.
22343         * conform/data/pthread.h-data: Likewise.
22344         * crypt/crypt-private.h: Likewise.
22345         * crypt/crypt.h: Likewise.
22346         * crypt/crypt_util.c: Likewise.
22347         * ctype/ctype.h: Likewise.
22348         * debug/execinfo.h: Likewise.
22349         * debug/mbsnrtowcs_chk.c: Likewise.
22350         * debug/mbsrtowcs_chk.c: Likewise.
22351         * debug/wcsnrtombs_chk.c: Likewise.
22352         * debug/wcsrtombs_chk.c: Likewise.
22353         * debug/wcstombs_chk.c: Likewise.
22354         * dirent/dirent.h: Likewise.
22355         * dlfcn/dlfcn.h: Likewise.
22356         * elf/neededtest4.c: Likewise.
22357         * grp/grp.h: Likewise.
22358         * gshadow/gshadow.h: Likewise.
22359         * iconv/gconv.h: Likewise.
22360         * iconv/gconv_int.h: Likewise.
22361         * iconv/gconv_simple.c: Likewise.
22362         * iconv/iconv.h: Likewise.
22363         * iconv/loop.c: Likewise.
22364         * iconv/skeleton.c: Likewise.
22365         * include/aio.h: Likewise.
22366         * include/aliases.h: Likewise.
22367         * include/argz.h: Likewise.
22368         * include/arpa/inet.h: Likewise.
22369         * include/assert.h: Likewise.
22370         * include/dirent.h: Likewise.
22371         * include/dlfcn.h: Likewise.
22372         * include/execinfo.h: Likewise.
22373         * include/fcntl.h: Likewise.
22374         * include/fenv.h: Likewise.
22375         * include/glob.h: Likewise.
22376         * include/grp.h: Likewise.
22377         * include/libintl.h: Likewise.
22378         * include/mntent.h: Likewise.
22379         * include/netdb.h: Likewise.
22380         * include/pwd.h: Likewise.
22381         * include/rpc/netdb.h: Likewise.
22382         * include/sched.h: Likewise.
22383         * include/search.h: Likewise.
22384         * include/shadow.h: Likewise.
22385         * include/signal.h: Likewise.
22386         * include/stdio.h: Likewise.
22387         * include/stdlib.h: Likewise.
22388         * include/string.h: Likewise.
22389         * include/sys/socket.h: Likewise.
22390         * include/sys/stat.h: Likewise.
22391         * include/sys/statfs.h: Likewise.
22392         * include/sys/statvfs.h: Likewise.
22393         * include/sys/syslog.h: Likewise.
22394         * include/sys/time.h: Likewise.
22395         * include/sys/uio.h: Likewise.
22396         * include/time.h: Likewise.
22397         * include/unistd.h: Likewise.
22398         * include/utmp.h: Likewise.
22399         * include/wchar.h: Likewise.
22400         * include/wctype.h: Likewise.
22401         * inet/aliases.h: Likewise.
22402         * inet/arpa/inet.h: Likewise.
22403         * inet/netinet/ether.h: Likewise.
22404         * inet/netinet/in.h: Likewise.
22405         * intl/libintl.h: Likewise.
22406         * io/bits/fcntl2.h: Likewise.
22407         * io/fcntl.h: Likewise.
22408         * io/ftw.h: Likewise.
22409         * io/sys/poll.h: Likewise.
22410         * io/sys/stat.h: Likewise.
22411         * io/sys/statfs.h: Likewise.
22412         * io/sys/statvfs.h: Likewise.
22413         * io/utime.h: Likewise.
22414         * libio/bits/stdio.h: Likewise.
22415         * libio/bits/stdio2.h: Likewise.
22416         * libio/libio.h: Likewise.
22417         * libio/libioP.h: Likewise.
22418         * libio/stdio.h: Likewise.
22419         * locale/lc-ctype.c: Likewise.
22420         * locale/locale.h: Likewise.
22421         * login/utmp.h: Likewise.
22422         * malloc/arena.c: Likewise.
22423         * malloc/malloc.c: Likewise.
22424         * malloc/malloc.h: Likewise.
22425         * malloc/mcheck.c: Likewise.
22426         * malloc/mtrace.c: Likewise.
22427         * math/bits/mathcalls.h: Likewise.
22428         * math/fenv.h: Likewise.
22429         * math/math_private.h: Likewise.
22430         * misc/bits/error.h: Likewise.
22431         * misc/bits/syslog.h: Likewise.
22432         * misc/err.h: Likewise.
22433         * misc/error.h: Likewise.
22434         * misc/fstab.h: Likewise.
22435         * misc/mntent.h: Likewise.
22436         * misc/regexp.h: Likewise.
22437         * misc/search.h: Likewise.
22438         * misc/sgtty.h: Likewise.
22439         * misc/sys/mman.h: Likewise.
22440         * misc/sys/syslog.h: Likewise.
22441         * misc/sys/uio.h: Likewise.
22442         * misc/sys/xattr.h: Likewise.
22443         * misc/ttyent.h: Likewise.
22444         * nis/rpcsvc/ypclnt.h: Likewise.
22445         * nss/nss.h: Likewise.
22446         * posix/bits/unistd.h: Likewise.
22447         * posix/fnmatch.h: Likewise.
22448         * posix/glob.h: Likewise.
22449         * posix/sched.h: Likewise.
22450         * posix/spawn.h: Likewise.
22451         * posix/sys/wait.h: Likewise.
22452         * posix/unistd.h: Likewise.
22453         * posix/wordexp.h: Likewise.
22454         * pwd/pwd.h: Likewise.
22455         * resolv/netdb.h: Likewise.
22456         * resource/sys/resource.h: Likewise.
22457         * rt/aio.h: Likewise.
22458         * rt/bits/mqueue2.h: Likewise.
22459         * rt/mqueue.h: Likewise.
22460         * shadow/shadow.h: Likewise.
22461         * signal/signal.h: Likewise.
22462         * socket/send.c: Likewise.
22463         * socket/sendto.c: Likewise.
22464         * socket/sys/socket.h: Likewise.
22465         * stdio-common/printf.h: Likewise.
22466         * stdlib/bits/stdlib.h: Likewise.
22467         * stdlib/fmtmsg.h: Likewise.
22468         * stdlib/monetary.h: Likewise.
22469         * stdlib/stdlib.h: Likewise.
22470         * stdlib/ucontext.h: Likewise.
22471         * streams/stropts.h: Likewise.
22472         * string/argz.h: Likewise.
22473         * string/bits/string2.h: Likewise.
22474         * string/string.h: Likewise.
22475         * string/strings.h: Likewise.
22476         * sunrpc/rpc/auth.h: Likewise.
22477         * sunrpc/rpc/auth_des.h: Likewise.
22478         * sunrpc/rpc/clnt.h: Likewise.
22479         * sunrpc/rpc/netdb.h: Likewise.
22480         * sunrpc/rpc/pmap_clnt.h: Likewise.
22481         * sunrpc/rpc/xdr.h: Likewise.
22482         * sysdeps/generic/inttypes.h: Likewise.
22483         * sysdeps/generic/net/if.h: Likewise.
22484         * sysdeps/generic/sys/swap.h: Likewise.
22485         * sysdeps/gnu/net/if.h: Likewise.
22486         * sysdeps/gnu/utmpx.h: Likewise.
22487         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
22488         * sysdeps/i386/i486/bits/string.h: Likewise.
22489         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
22490         * sysdeps/s390/bits/string.h: Likewise.
22491         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
22492         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
22493         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22494         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
22495         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
22496         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
22497         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
22498         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
22499         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
22500         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
22501         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
22502         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
22503         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
22504         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
22505         * sysdeps/unix/sysv/linux/readv.c: Likewise.
22506         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
22507         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
22508         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22509         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
22510         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
22511         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22512         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
22513         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
22514         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
22515         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
22516         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
22517         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
22518         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22519         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
22520         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
22521         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
22522         * sysvipc/sys/ipc.h: Likewise.
22523         * sysvipc/sys/msg.h: Likewise.
22524         * sysvipc/sys/sem.h: Likewise.
22525         * sysvipc/sys/shm.h: Likewise.
22526         * termios/termios.h: Likewise.
22527         * time/sys/time.h: Likewise.
22528         * time/time.h: Likewise.
22529         * wcsmbs/bits/wchar2.h: Likewise.
22530         * wcsmbs/uchar.h: Likewise.
22531         * wcsmbs/wchar.h: Likewise.
22532         * wctype/wctype.h: Likewise.
22533
22534         [BZ #13551]
22535         * Makeconfig: Remove all but ELF support including AIX support.
22536         * Makerules: Likewise.
22537         * config.h.in: Likewise.
22538         * config.make.in: Likewise.
22539         * configure: Likewise.
22540         * configure.in: Likewise.
22541         * csu/Makefile: Likewise.
22542         * csu/version.c: Likewise.
22543         * debug/Makefile: Likewise.
22544         * dlfcn/Makefile: Likewise.
22545         * elf/Makefile: Likewise.
22546         * extra-lib.mk: Likewise.
22547         * iconv/Makefile: Likewise.
22548         * include/libc-symbols.h: Likewise.
22549         * include/shlib-compat.h: Likewise.
22550         * resolv/Makefile: Likewise.
22551         * resolv/res_libc.c: Likewise.
22552         * rt/Makefile: Likewise.
22553         * sysdeps/i386/asm-syntax.h: Likewise.
22554         * sysdeps/i386/sysdep.h: Likewise.
22555         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
22556         * sysdeps/mach/sysdep.h: Likewise.
22557         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
22558         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
22559         * sysdeps/s390/asm-syntax.h: Likewise.
22560         * sysdeps/s390/s390-32/sysdep.h: Likewise.
22561         * sysdeps/s390/s390-64/sysdep.h: Likewise.
22562         * sysdeps/sh/sysdep.h: Likewise.
22563         * sysdeps/unix/sparc/sysdep.h: Likewise.
22564         * sysdeps/wordsize-32/divdi3.c: Likewise.
22565         * sysdeps/x86_64/sysdep.h: Likewise.
22566
22567         * argp/Versions: Remove _argp_unlock_xxx.
22568
22569         [BZ #13559]
22570         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
22571         * abilist/libBrokenLocale.abilist: Likewise.
22572         * abilist/libanl.abilist: Likewise.
22573         * abilist/libc.abilist: Likewise.
22574         * abilist/libcrypt.abilist: Likewise.
22575         * abilist/libdl.abilist: Likewise.
22576         * abilist/libm.abilist: Likewise.
22577         * abilist/libnsl.abilist: Likewise.
22578         * abilist/libpthread.abilist: Likewise.
22579         * abilist/libresolv.abilist: Likewise.
22580         * abilist/librt.abilist: Likewise.
22581         * abilist/libthread_db.abilist: Likewise.
22582         * abilist/libutil.abilist: Likewise.
22583         * abilist/libnss_db.abilist: New file.
22584
22585         * scripts/abilist.awk: Add support for indirect functions.
22586
22587         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
22588
22589         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
22590
22591         * shlib-versions: Remove entries for ports architectures.
22592
22593         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
22594         files in ports.
22595         * elf/stackguard-macros.h: Remove support for IA-64.
22596         * elf/tst-auditmod1.c: Likewise.
22597         * sysdeps/generic/ldsodefs.h: Likewise.
22598
22599         * sysdeps/unix/sysv/linux/configure.in: Ports should define
22600         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
22601         configure files.
22602
22603         [BZ #13552]
22604         * configure.in: Remove --enable-omitfp support.
22605         * FAQ.in: Adjust.
22606         * config.make.in: Likewise.
22607         * Makeconfig: Likewise.
22608         * manual/install.texi: Likewise.
22609
22610         In case anyone cares, the IA-64 architecture could move to ports.
22611         * sysdeps/ia64/*: Removed.
22612         * sysdeps/unix/sysv/linux/ia64/*: Removed.
22613         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
22614
22615         [BZ #13555]
22616         * configure.in: Remove entries for unsupported architectures.
22617
22618         [BZ #13533]
22619         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
22620         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
22621         routines.
22622         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
22623         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
22624         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
22625         fall back to using wcrtomb.
22626         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
22627         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
22628         renaming.
22629         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
22630         * wcsmbs/tst-c16c32-1.c: New file.
22631
22632         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
22633         local variable.
22634
22635         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
22636
22637         * elf/tst-unique3.cc: Add explicit declaration of gets.
22638         * elf/tst-unique3lib.cc: Likewise.
22639         * elf/tst-unique3lib2.cc: Likewise.
22640         * elf/tst-unique4.cc: Likewise.
22641
22642         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
22643
22644 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
22645
22646         [BZ #13566]
22647         * assert/assert.h (static_assert): Don't define for C++.
22648         * libio/stdio.h (gets): Do declare for C++ <= C++11.
22649         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
22650
22651 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
22652
22653         * iconv/loop.c (single loop): Fix assertion in storing of
22654         remaining bytes.
22655
22656         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
22657
22658 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
22659
22660         * posix/getconf.c: Update copyright year.
22661         * nss/getent.c: Likewise.
22662         * nss/makedb.c: Likewise.
22663         * iconv/iconvconfig.c: Likewise.
22664         * iconv/iconv_prog.c: Likewise.
22665         * elf/ldconfig.c: Likewise.
22666         * elf/pldd.c: Likewise.
22667         * elf/sotruss.ksh: Likewise.
22668         * catgets/gencat.c: Likewise.
22669         * csu/version.c: Likewise.
22670         * elf/ldd.bash.in: Likewise.
22671         * elf/sprof.c (print_version): Likewise.
22672         * locale/programs/locale.c: Likewise.
22673         * locale/programs/localedef.c: Likewise.
22674         * login/programs/pt_chown.c: Likewise.
22675         * nscd/nscd.c (print_version): Likewise.
22676         * debug/xtrace.sh: Likewise.
22677         * malloc/memusage.sh: Likewise.
22678         * malloc/mtrace.pl: Likewise.
22679         * debug/catchsegv.sh: Likewise.
22680
22681 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
22682
22683         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
22684         pure attribute.
22685
22686 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
22687
22688         [BZ #13533]
22689         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
22690         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
22691         transformations.
22692         * iconv/gconv_int.h: Likewise.
22693         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
22694         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
22695         from libc for GLIBC_2.16.
22696         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
22697         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
22698         * wcsmbs/uchar.h: Really define mbstate_t.
22699         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
22700         * wcsmbs/c16rtomb.c: New file.
22701         * wcsmbs/mbrtoc16.c: New file.
22702         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
22703         for C/POSIX locale.
22704         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
22705         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
22706
22707         * wcsmbs/wchar.h: Add missing __restrict.
22708
22709 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22710
22711         [BZ #13532]
22712         * time/Makefile (routines): Add timespec_get.
22713         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
22714         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
22715         timespec for ISO C11.
22716         * time/timespec_get.c: New file.
22717         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
22718         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
22719
22720         [BZ #13531]
22721         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
22722         * stdlib/stdlib.h: Declare aligned_alloc.
22723         * Versions.def: Add GLIBC_2.16 for libc.
22724         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
22725
22726         [BZ 13527]
22727         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
22728         ISO C11.
22729
22730         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
22731         code.
22732
22733         [BZ #13528]
22734         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
22735
22736         [BZ #13529]
22737         * assert/assert.h (static_assert): Define.
22738
22739         * version.h: Update for 2.16 development version.
22740
22741         [BZ #13526]
22742         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
22743         _ISOC11_SOURCE.
22744
22745         * version.h (RELEASE): Bump for 2.15 release.
22746         * include/features.h (__GLIBC_MINOR__): Bump to 15.
22747
22748         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
22749         Patch by Marek Polacek <mpolacek@redhat.com>.
22750
22751         * bits/byteswap.h: Protect long long constants with __extension__.
22752         * sysdeps/i386/bits/byteswap.h: Likewise.
22753         * sysdeps/ia64/bits/byteswap.h: Likewise.
22754         * sysdeps/s390/bits/byteswap.h: Likewise.
22755         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22756
22757 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22758
22759         [BZ #13540]
22760         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
22761         destination buffer.
22762         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
22763
22764 2011-12-23  Marek Polacek  <polacek@redhat.com>
22765
22766         * elf/dl-addr.c (determine_info): Add inline keyword.
22767         * elf/tst-auditmod4b.c (check_avx): Likewise.
22768         * elf/tst-auditmod6b.c (check_avx): Likewise.
22769         * elf/tst-auditmod6c.c (check_avx): Likewise.
22770         * elf/tst-auditmod7b.c (check_avx): Likewise.
22771
22772 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
22773
22774         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
22775         !__SSE_MATH__.
22776
22777 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22778
22779         [BZ #13540]
22780         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
22781         processing for last bytes.
22782
22783 2011-08-06  Bruno Haible  <bruno@clisp.org>
22784
22785         [BZ #13061]
22786         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
22787         U+0385, not to U+1FEE.
22788
22789         [BZ #13062]
22790         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
22791         entry for U+00A5 U+0301.
22792
22793 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22794
22795         [BZ #13166]
22796         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
22797         buffer for the output is too small.
22798
22799         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
22800         optimization.
22801
22802         [BZ #13185]
22803         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
22804         SSE flags if possible.
22805
22806 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22807
22808         [BZ #13540]
22809         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
22810         processing for last bytes.
22811
22812 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
22813
22814         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
22815         (syscall-list-default-options, syscall-list-default-condition)
22816         (syscall-list-includes): Define.
22817         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
22818         list of ABIs and options and #if conditions for each ABI.  Do not
22819         handle common syscalls between ABIs specially.
22820         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
22821         Remove.
22822         (syscall-list-variants, syscall-list-32bit-options)
22823         (syscall-list-32bit-condition, syscall-list-64bit-options)
22824         (syscall-list-64bit-condition): Define.
22825         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
22826         (syscall-list-variants, syscall-list-32bit-options)
22827         (syscall-list-32bit-condition, syscall-list-64bit-options)
22828         (syscall-list-64bit-condition): Define.
22829         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
22830         Remove.
22831         (syscall-list-variants, syscall-list-32bit-options)
22832         (syscall-list-32bit-condition, syscall-list-64bit-options)
22833         (syscall-list-64bit-condition): Define.
22834         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
22835         Remove.
22836         (syscall-list-variants, syscall-list-32bit-options)
22837         (syscall-list-32bit-condition, syscall-list-64bit-options)
22838         (syscall-list-64bit-condition): Define.
22839
22840 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
22841
22842         * locale/iso-639.def: Add brx entry.
22843
22844         [BZ #13328]
22845         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
22846         Proposed by Mariusz_Cukr <marcukr@op.pl>.
22847
22848         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
22849         __feraiseexcept_renamed.
22850
22851 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22852
22853         [BZ #13538]
22854         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
22855         EPOLLET with unsigned values.
22856         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
22857         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
22858
22859         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
22860         to large cancellation.
22861         * math/s_cacoshf.c: Likewise.
22862         * math/s_cacoshl.c: Likewise.
22863
22864 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
22865
22866         [BZ #13305]
22867         [BZ #12786]
22868         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
22869         * math/s_cacoshf.c: Likewise.
22870         * math/s_cacoshl.c: Likewise.
22871
22872 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
22873
22874         [BZ #13439]
22875         * iconv/gconv.h: Define __GCONV_SWAP.
22876         * iconvdata/unicode.c: The swap bit must be stored in __flags.
22877         * iconvdata/utf-16.c: Likewise.
22878         * iconvdata/utf-32.c: Likewise.
22879
22880 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22881
22882         [BZ #13524]
22883         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
22884         numerator after shifting it by one limb.
22885
22886 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
22887
22888         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
22889         under [__USE_EXTERN_INLINES].
22890
22891 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22892
22893         [BZ #13446]
22894         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
22895
22896 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22897
22898         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
22899         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
22900         optimized code.
22901         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
22902         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
22903         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
22904         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
22905         for strncasecmp/strncasecmp_l compilation.
22906         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
22907         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
22908
22909 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
22910
22911         [BZ #13484]
22912         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
22913         of __asm__.
22914
22915 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
22916
22917         [BZ #13506]
22918         * time/tzfile.c (__tzfile_read): Check values from file header.
22919
22920 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
22921
22922         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
22923         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
22924         * powerpc/powerpc32/dl-start.S: Likewise.
22925         * powerpc/powerpc32/elf/start.S: Likewise.
22926         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
22927         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
22928         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
22929         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22930         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
22931         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
22932         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
22933         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
22934         * powerpc/powerpc32/fpu/s_round.S: Likewise.
22935         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
22936         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22937         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
22938         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
22939         * powerpc/powerpc32/memset.S: Likewise.
22940         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
22941         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22942         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22943         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22944         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22945         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
22946         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
22947         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
22948         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
22949         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
22950         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
22951         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
22952         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
22953
22954 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22955
22956         * math/libm-test.inc: Added more nearbyint tests.
22957         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
22958         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
22959         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
22960         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
22961
22962 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
22963
22964         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
22965         FD_CLOEXEC.
22966
22967 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22968
22969         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
22970         Add wcscpy-ssse3 wcscpy-c.
22971         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
22972         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
22973         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
22974         * sysdeps/x86_64/wcschr.S: New file.
22975         * sysdeps/x86_64/wcsrchr.S: New file.
22976         * string/test-strcmp.c: Remove checking of wcscmp function for
22977         wrong alignments.
22978         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
22979         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
22980         wcsrchr-sse2 wcsrchr-c.
22981         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
22982         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
22983         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
22984         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
22985         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
22986         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
22987         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
22988         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
22989         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
22990         * wcsmbc/wcschr.c (WCSCHR): New macro.
22991
22992 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22993
22994         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
22995         * wcsmbs/test-wcsrchr.c: New file.
22996         * string/test-strrchr.c: Add wcsrchr support.
22997         (WIDE): New macro.
22998         * wcsmbs/test-wcscpy.c: New file.
22999         * string/test-strcpy.c: Add wcscpy support.
23000         (WIDE): New macro.
23001
23002 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
23003
23004         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
23005         the inner loop.
23006
23007 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
23008
23009         [BZ #13472]
23010         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
23011
23012 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
23013
23014         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
23015         Minor optimizations.
23016
23017         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
23018         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
23019         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
23020
23021 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
23022
23023         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
23024         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
23025         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
23026         for gcc to avoid warnings.
23027         * inet/Makefile (tests): Add tst-checks.
23028         * inet/tst-checks.c: New file.
23029
23030         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
23031         warning.
23032
23033         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
23034         __wmemcmp_sse2.
23035
23036         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
23037         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
23038
23039         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
23040
23041 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
23042
23043         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
23044         problem.
23045
23046         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
23047
23048 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
23049
23050         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
23051         conditional on GCC version.
23052         (__arch_compare_and_exchange_val_8_acq)
23053         (__arch_compare_and_exchange_val_16_acq)
23054         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
23055         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
23056         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
23057
23058 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
23059
23060         * sysdeps/sh/backtrace.c: New file.
23061
23062 2011-12-02  Andreas Schwab  <schwab@redhat.com>
23063
23064         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
23065         parenthesis.
23066
23067 2011-12-01  Andreas Schwab  <schwab@redhat.com>
23068
23069         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
23070         falling back to utime.
23071
23072 2011-11-30  Andreas Schwab  <schwab@redhat.com>
23073
23074         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
23075         expectations for float.
23076
23077 2011-11-29  Andreas Schwab  <schwab@redhat.com>
23078
23079         * locale/weight.h (findidx): Add parameter len.
23080         * locale/weightwc.h (findidx): Likewise.
23081         * posix/fnmatch_loop.c (FCT): Adjust caller.
23082         * posix/regcomp.c (build_equiv_class): Likewise.
23083         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
23084         * posix/regexec.c (check_node_accept_bytes): Likewise.
23085         * string/strcoll_l.c (STRCOLL): Likewise.
23086         * string/strxfrm_l.c (STRXFRM): Likewise.
23087
23088 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
23089
23090         * Makefile.in: Remove CVSOPT handling.
23091         * configure.in: Remove use of AC_REVISION.
23092         * iconvdata/Makefile (distribute): No need to filter out CVS.
23093         * scripts/list-sources.sh: Remove CVS, subversion and monotone
23094         handling.
23095
23096 2011-11-16  Andreas Schwab  <schwab@redhat.com>
23097
23098         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
23099         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
23100         [USE_AS_STRNCASECMP_L]: Likewise.
23101         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
23102         NO_TLS_DIRECT_SEG_REFS.
23103         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
23104         Fix argument offsets for non-PIC.
23105         [USE_AS_STRNCASECMP_L]: Likewise.
23106         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
23107         NO_TLS_DIRECT_SEG_REFS.
23108
23109 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23110
23111         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
23112         O_CLOEXEC.
23113         * locale/loadlocale.c (_nl_load_locale): Likewise.
23114
23115 2011-11-15  Andreas Schwab  <schwab@redhat.com>
23116
23117         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
23118         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
23119         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
23120         (SYSCALL_GETTIME): Set errno on error.
23121
23122         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
23123         count references to noai6ai_cached.
23124
23125 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
23126
23127         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
23128
23129         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
23130         FD_CLOEXEC for /proc/self/maps.
23131
23132         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
23133         FD_CLOEXEC for /proc/meminfo.
23134
23135         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
23136         gai.conf.
23137
23138         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
23139         FD_CLOEXEC for given file.
23140
23141         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
23142
23143         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
23144         FD_CLOEXEC for /etc/hosts.
23145         (_gethtent): Likewise.
23146
23147         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
23148
23149         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
23150         cancellation and set FD_CLOEXEC for /etc/netgroup.
23151
23152         * nss/nss_files/files-key.c (search): Don't allow cancellation when
23153         reading /etc/publickey.
23154
23155         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
23156         allow cancellation when reading /etc/group.
23157
23158         * nss/nss_files/files-alias.c (internal_setent): Don't allow
23159         cancellation.
23160         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
23161
23162         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
23163         when using data file.
23164
23165         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
23166
23167         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
23168         (write_nis_obj): Use "c" and "e" in fopen.
23169
23170         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
23171
23172         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
23173
23174         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
23175
23176         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
23177
23178         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
23179         locale.alias.
23180
23181         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
23182
23183         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
23184
23185         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
23186
23187         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
23188         file parsing and set FD_CLOEXEC.
23189
23190 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23191
23192         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
23193
23194 2011-11-14  Andreas Schwab  <schwab@redhat.com>
23195
23196         * malloc/arena.c (arena_get2): Don't call reused_arena when
23197         _int_new_arena failed.
23198
23199 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
23200
23201         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
23202         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
23203         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
23204         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23205         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
23206         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
23207         to compile strcasecmp and strncasecmp.
23208         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
23209         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
23210
23211         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
23212
23213 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
23214
23215         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
23216         locale-defines.sym to gen-as-const-headers.
23217         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
23218         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
23219         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
23220         to compile strcasecmp and strncasecmp.
23221         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
23222         strcasecmp_l and strncasecmp_l.
23223         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
23224         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
23225         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
23226         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
23227         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
23228         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
23229         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
23230         * sysdeps/i386/i686/multiarch/strncase.S: New file.
23231         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
23232         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
23233         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
23234
23235 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
23236
23237         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
23238         result of SYSDEP_GETTIME_CPU to retval.
23239         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
23240         parameter list to macro.  Remove trailing semicolon.  Adjust users.
23241
23242         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
23243         variable.
23244
23245         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
23246         mantissa words.
23247         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
23248
23249         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
23250         from unused variable.
23251
23252         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
23253         DWARF definitions.
23254         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
23255         for assembling.
23256
23257         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
23258         over namespaces.
23259
23260         * sunrpc/rpc_prot.c (rejected): Fix case value.
23261
23262         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
23263         unsigned long long int to avoid warnings in shift.
23264
23265         * posix/regex_internal.c (re_string_reconstruct): Actually use result
23266         of use of trans.
23267         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
23268         variable tmp.
23269
23270         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
23271         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23272         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23273
23274         * nis/nis_table.c (nis_list): Use variable of correct type for
23275         result of __follow_path call.
23276
23277 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23278
23279         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
23280         of math functions ceil, trunc, floor, round, and sqrt, when
23281         avaliable on the platform.
23282         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
23283         name clash.
23284         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23285         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23286         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23287
23288 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
23289
23290         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
23291         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
23292
23293 2011-11-11  Roland McGrath  <roland@hack.frob.com>
23294
23295         * include/unistd.h: Fix __readlink return type.
23296         Reported by Chris Metcalf <cmetcalf@tilera.com>.
23297
23298 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
23299
23300         * stdlib/ucontext.h: Undo last change for makecontext.
23301
23302 2011-11-11  Andreas Schwab  <schwab@redhat.com>
23303
23304         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
23305
23306         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
23307         * setjmp/setjmp.h: Mark functions as non-leaf.
23308         * setjmp/bits/setjmp2.h: Likewise.
23309         * stdlib/ucontext.h: Likewise.
23310
23311 2011-11-10  Andreas Schwab  <schwab@redhat.com>
23312
23313         * malloc/arena.c (_int_new_arena): Don't increment narenas.
23314         (reused_arena): Don't check arena limit.
23315         (arena_get2): Atomically check arena limit.
23316
23317 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
23318
23319         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
23320         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
23321
23322         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
23323         instructions.
23324
23325 2011-11-07  Andreas Schwab  <schwab@redhat.com>
23326
23327         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
23328         handler when locking.
23329
23330         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23331         Fix size of allocated buffer.
23332
23333 2011-11-04  Andreas Schwab  <schwab@redhat.com>
23334
23335         [BZ #10103]
23336         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
23337         declarations for long double functions.
23338         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
23339
23340         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
23341
23342 2011-11-03  Andreas Schwab  <schwab@redhat.com>
23343
23344         * nscd/nscd.c (main): Don't start AVC thread until credentials are
23345         installed.
23346
23347         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
23348         is disabled.
23349
23350 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23351
23352         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
23353
23354 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
23355
23356         * include/alloca.h (stackinfo_alloca_round): Define.
23357         (extend_alloca): Use it.
23358         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
23359         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
23360         here.
23361
23362         * scripts/check-local-headers.sh: Ignore libaudit.h.
23363
23364         * nscd/Makefile (extra-objs): Make recursively expanded.
23365
23366 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
23367
23368         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
23369         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
23370
23371         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
23372         * posix/tst-rfc3484-2.c: Likewise.
23373         * posix/tst-rfc3484-3.c: Likewise.
23374
23375         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23376         process_vm_writev.
23377         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
23378         process_vm_writev.
23379         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
23380         process_vm_writev from libc using GLIBC_2.15 version.
23381
23382         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
23383
23384 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
23385
23386         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
23387         stack usage.
23388
23389 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
23390
23391         [BZ #13367]
23392         * nss/getent.c (initgroups_keys): Show error message in case no group
23393         names are given.
23394
23395         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
23396         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
23397         __bump_nl_timestamp.
23398         * nscd/connections (nscd_init): When host database is served open
23399         netlink socket and request notification about configuration changes.
23400         (main_loop_poll): Track netlink file descriptor and bump timestamp
23401         in case data becomes available.
23402         (main_loop_epoll): Likewise.
23403         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
23404         (database_pers_head): Add extra_data fileds.
23405         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
23406         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
23407         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
23408         Adjust caller.
23409         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
23410         in6ai data, call __free_in6ai.
23411         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
23412         Add -DHAVE_NETLINK.
23413         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
23414         interface information.  Reuse previous data if netlink timestamp
23415         is not changed.
23416         (__bump_nl_timestamp): New function.
23417         (__free_in6ai): New function.
23418
23419 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
23420
23421         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
23422         close_not_cancel_no_status here.
23423         (__check_pf): Reorganize code a bit to not call close twice if OOM.
23424
23425 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23426
23427         [BZ #13276]
23428         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
23429         return value.
23430
23431         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
23432         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
23433         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
23434
23435 2011-07-03  Andreas Jaeger  <aj@suse.de>
23436
23437         [BZ #10709]
23438         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
23439         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
23440         * math/libm-test.inc (sin_test): Add test case.
23441
23442 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
23443
23444         [BZ #13337]
23445         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
23446         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23447
23448         * elf/chroot_canon.c (chroot_canon): Cleanups.
23449
23450         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
23451
23452         [BZ #13335]
23453         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
23454         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
23455
23456         * string/test-strchr.c: Make usable for strchrnul testing.
23457         * string/test-strchrnul.c: New file.
23458         * string/Makefile (strop-tests): Add strchrnul.
23459
23460         * po/it.po: Update from translation team.
23461         * po/es.po: Likewise.
23462
23463 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
23464
23465         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
23466         the three constants needed as parameters.  Drop the others.
23467         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
23468         __m128i_strloadu_tolower.
23469         Create and initialize variable zero and use it in all the places
23470         where _mm_setzero_si128 was used.
23471
23472         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
23473         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
23474         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
23475         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
23476         anymore.
23477         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
23478         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
23479         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
23480         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
23481         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
23482         __mpranred, __mptan.
23483         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
23484         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
23485         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
23486         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
23487         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
23488         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
23489         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
23490         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
23491         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
23492
23493 2011-10-28  Andreas Schwab  <schwab@redhat.com>
23494
23495         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
23496         redefine if SHARED.
23497         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
23498
23499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
23500         wide char related routines to wcsmbs subdir.
23501
23502 2011-10-27  Andreas Schwab  <schwab@redhat.com>
23503
23504         [BZ #13344]
23505         * misc/sys/cdefs.h (__THROWNL): Define.
23506         * posix/unistd.h: Use __THREADNL instead of __THREAD
23507         for memory synchronization functions.
23508
23509 2011-10-26  Roland McGrath  <roland@hack.frob.com>
23510
23511         [BZ #13349]
23512         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
23513         doesn't exist.
23514         * manual/stdio.texi (Obstack Streams): Node removed.
23515
23516 2011-10-26  Andreas Schwab  <schwab@redhat.com>
23517
23518         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
23519         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23520         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23521
23522         * math/math_private.h (math_force_eval): Allow non-addressable
23523         arguments.
23524         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
23525
23526 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23527
23528         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
23529         file is not needed.
23530
23531         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
23532         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
23533         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
23534         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
23535         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
23536         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
23537         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
23538         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
23539         Add AVX variants.
23540         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
23541         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
23542         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
23543         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
23544         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
23545         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
23546         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
23547         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
23548         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
23549         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
23550         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
23551         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
23552         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
23553         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
23554         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
23555         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
23556         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
23557         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
23558         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
23559
23560         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
23561         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
23562
23563         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
23564         place.  Use VEX encoding when compiling for AVX.
23565
23566 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23567
23568         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
23569         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23570
23571         * string/test-strchr.c (do_test): Don't generate NUL bytes.
23572
23573 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23574
23575         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
23576         useless if() expression.
23577         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23578         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23579         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23580         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23581         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23582         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23583         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23584         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23585         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23586         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23587         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23588         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23589         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23590         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23591         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23592         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23593         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23594         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23595         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23596
23597         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
23598
23599 2011-10-25  Andreas Schwab  <schwab@redhat.com>
23600
23601         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
23602         condition.
23603         * elf/dl-fini.c (_dl_sort_fini): Likewise.
23604
23605 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
23606
23607         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
23608         .text section.  Avoid duplicate constants.
23609         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23610         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23611         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23612         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23613         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23614         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23615         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23616         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23617         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23618         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
23619         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23620         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23621         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23622         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23623         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23624         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23625         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23626         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23627         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23628         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23629         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23630         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23631         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23632         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
23633         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
23634         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
23635         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
23636         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
23637         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
23638         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
23639         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
23640         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
23641         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23642         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
23643         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
23644         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
23645         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
23646         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
23647         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
23648         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
23649         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
23650         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
23651         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
23652         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23653         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
23654
23655 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
23656
23657         * sysdeps/x86_64/dla.h: Move to ...
23658         * sysdeps/x86_64/fpu/dla.h: ...here.
23659         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
23660         situations.  Use __builtin_fma only for gcc 4.6 and up.
23661
23662         * config.make.in: Add have-mfma4 entry.
23663         * configure.in: Substitute libc_cv_cc_fma4.
23664         * math/Makefile (dbl-only-routines): Add sincostab.
23665         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
23666         Use __sincostab not sincos.
23667         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
23668         name is a macro.
23669         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23670         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23671         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23672         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
23673         using __copysign.
23674         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
23675         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
23676         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
23677         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
23678         and __inv.
23679         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
23680         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
23681         __copysign.
23682         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
23683         define aliases when function name is a macro.
23684         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
23685         sysdeps/ieee754/dbl-64/sincos.tbl.
23686         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
23687         fma4-enabled routines.
23688         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
23689         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
23690         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
23691         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
23692         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
23693         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
23694         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
23695         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
23696         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
23697         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
23698         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
23699         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
23700         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
23701         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
23702         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
23703         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
23704         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
23705         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
23706         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
23707         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
23708         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
23709         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
23710         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
23711         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
23712         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
23713         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
23714         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
23715         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
23716         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
23717         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
23718
23719         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
23720         rename.
23721         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23722         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23723         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23724         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23725         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23726         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23727         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23728         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23729
23730 2011-10-24  Andreas Schwab  <schwab@redhat.com>
23731
23732         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
23733
23734 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23735
23736         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
23737
23738         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
23739         prediction.
23740         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
23741
23742         * string/strnlen.c: Don't define STRNLEN, reverse logic.
23743         Remove unused variable magic_bits.
23744         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
23745
23746         * string/strnlen.c: Define and use STRNLEN macro.
23747         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
23748         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
23749         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
23750         * wcsmbs/wcslen.c: Define and use WCSLEN.
23751         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
23752         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
23753         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
23754         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
23755         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
23756         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
23757         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23758
23759 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23760
23761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23762         strnlen-sse2-no-bsf.
23763         Rename strlen-no-bsf to strlen-sse2-no-bsf.
23764         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
23765         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
23766         Add strnlen support.
23767         (USE_AS_STRNLEN): New macro.
23768         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
23769         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
23770         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
23771         * sysdeps/x86_64/wcslen.S: New file.
23772
23773 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
23774
23775         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23776         XMM-moves are used for copying on small sizes.
23777
23778 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23779
23780         * wcsmbs/Makefile (strop-tests): Add wcschr.
23781         * wcsmbs/test-wcschr.c: New file.
23782         * string/test-strchr.c: Update.
23783         Add wcschr support.
23784         (WIDE): New macro.
23785
23786 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23787
23788         * wcsmbs/Makefile (strop-tests): Add wcslen.
23789         * wcsmbs/test-wcslen.c: New file.
23790         * string/test-strlen.c: Update.
23791         Add wcslen support.
23792         (WIDE): New macro.
23793
23794 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23795
23796         * po/it.po: Update from translation team.
23797
23798 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23799
23800         * sysdeps/x86_64/wcscmp.S: Update.
23801         Fix wrong comparison semantics.
23802         wcscmp shall use signed comparison not unsigned.
23803         Don't use substraction to avoid overflow bug.
23804         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23805         * wcsmbc/wcscmp.c: Likewise.
23806         * string/test-strcmp.c: Likewise.
23807         Add new tests to check cases with negative values.
23808
23809 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
23810
23811         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
23812         * sysdeps/x86_64/dla.h: ...here.  New file.
23813         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
23814         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23815         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23816         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23817         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23818         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23819         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23820         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23821         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23822
23823 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
23824
23825         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
23826         __ynl_finite aliases.
23827
23828 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23829
23830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23831
23832         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
23833         define DLA_FMA.
23834         [DLA_FMA] (EMULV): Use DLA_FMA.
23835         [DLA_FMA] (MUL12): Use EMULV.
23836         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
23837         that are not needed.
23838         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23839         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23840         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23841         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23842         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23843         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23844         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23845
23846 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
23847
23848         * math/s_nan.c: Undef __nan.
23849         * math/s_nanf.c: Undef __nanf.
23850         * math/s_nanl.c: Undef __nanl.
23851         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
23852         "math_private.h".
23853
23854 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
23855
23856         * math/s_catan.c: Add branch predictions.
23857         * math/s_catanf.c: Likewise.
23858         * math/s_catanh.c: Likewise.
23859         * math/s_catanhf.c: Likewise.
23860         * math/s_catanhl.c: Likewise.
23861         * math/s_catanl.c: Likewise.
23862         * math/s_cexp.c: Likewise.
23863         * math/s_cexpf.c: Likewise.
23864         * math/s_cexpl.c: Likewise.
23865         * math/s_clog.c: Likewise.
23866         * math/s_clog10.c: Likewise.
23867         * math/s_clog10f.c: Likewise.
23868         * math/s_clog10l.c: Likewise.
23869         * math/s_clogf.c: Likewise.
23870         * math/s_clogl.c: Likewise.
23871         * math/s_csqrt.c: Likewise.
23872         * math/s_csqrtf.c: Likewise.
23873         * math/s_csqrtl.c: Likewise.
23874         * math/s_ctanf.c: Likewise.
23875         * math/s_ctanh.c: Likewise.
23876         * math/s_ctanhf.c: Likewise.
23877         * math/s_ctanhl.c: Likewise.
23878         * math/s_ctanl.c: Likewise.
23879
23880         * math/math_private.h: Define __nan, __nanf, __nanl.
23881         * math/s_cacosh.c: Include <math_private.h>.
23882         * math/s_cacoshl.c: Likewise.
23883         * math/s_casinh.c: Likewise.
23884         * math/s_casinhf.c: Likewise.
23885         * math/s_casinhl.c: Likewise.
23886         * math/s_ccos.c: Rely entire on ccosh.
23887         * math/s_ccosf.c: Rely entire on ccoshf.
23888         * math/s_ccosl.c: Rely entirely on ccoshl.
23889         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
23890         Remove tests for FE_INVALID.
23891         * math/s_ccoshf.c: Likewise.
23892         * math/s_ccoshl.c: Likewise.
23893         * math/s_csin.c: Likewise.
23894         * math/s_csinf.c: Likewise.
23895         * math/s_csinh.c Likewise.
23896         * math/s_csinhf.c: Likewise.
23897         * math/s_csinhl.c: Likewise.
23898         * math/s_csinl.c: Likewise.
23899         * math/s_ctan.c: Likewise.
23900         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
23901         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
23902         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
23903
23904 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
23905
23906         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
23907         compilation problems.
23908
23909         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
23910         __builtin_expect.
23911
23912 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
23913
23914         * sysdeps/i386/configure.in: Test for -mfma4 option.
23915         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
23916         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
23917         COMMON_CPUID_INDEX_80000001.
23918         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
23919         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
23920         use it if FMA3 is not supported.
23921         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
23922
23923         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
23924         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
23925
23926 2011-10-20  Andreas Schwab  <schwab@redhat.com>
23927
23928         [BZ #12892]
23929         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
23930         it would create a cycle with a link time dependency.
23931
23932 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
23933
23934         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
23935         instruction.
23936         * string/Makefile (strop-tests): Add rawmemchr.
23937         * string/test-rawmemchr.c: New file.
23938
23939         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
23940         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
23941         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
23942         when compiling str{,n}casecmp and when AVX is available.  Hook up
23943         new optimized code in initializers.
23944
23945 2011-10-19  Andreas Schwab  <schwab@redhat.com>
23946
23947         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
23948         __feraiseexcept instead of feraiseexcept.
23949
23950 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
23951
23952         * math/math_private.h: Define defaults for libc_fetestexcept and
23953         libc_feupdateenv.
23954         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
23955         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
23956         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23957         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23958         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23959         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23960         libc_fetestexcept and libc_feupdateenv.
23961
23962         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
23963         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
23964         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
23965         * sysdeps/x86_64/fpu/math_private.h: Define special version of
23966         libc_feholdexcept_setround.
23967
23968         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
23969         Add s_nearbyint-c and s_nearbyintf-c.
23970         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
23971         nearbyintf inlines.
23972         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
23973         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
23974         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
23975         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
23976
23977         * math/math_private.h: Define defaults for libc_fegetround,
23978         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
23979         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
23980         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
23981         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
23982         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
23983         standard functions.
23984         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23985         Remove comments and hacks for old compiler versions.
23986         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
23987         libc_fegetround, libc_fesetround, libc_feholdexcept, and
23988         libc_feholdexceptl.
23989
23990 2011-10-18  Andreas Schwab  <schwab@redhat.com>
23991
23992         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
23993         (__feraiseexcept_renamed): Add __NTH.
23994         (feraiseexcept): Add __NTH.  Rename local variables to fix
23995         namespace violations.
23996
23997 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
23998
23999         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
24000
24001         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
24002
24003         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
24004         recently added interfaces.
24005         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
24006
24007         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
24008         about macro parameter expansion.
24009
24010         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
24011         __NO_MATH_INLINES is defined.  Cleanups.
24012
24013         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
24014         and __floorf is target has SSE4.1.
24015         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
24016         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
24017         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
24018         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
24019
24020         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
24021         name.
24022         (floorf): Likewise.
24023
24024         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
24025
24026 2011-10-17  Andreas Schwab  <schwab@redhat.com>
24027
24028         * misc/sys/cdefs.h: Fix last change.
24029
24030         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
24031         database lookup.
24032
24033 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
24034
24035         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
24036
24037         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
24038         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24039         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24040         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24041         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24042         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24043         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24044         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24045         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24046         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
24047         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
24048         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
24049         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
24050         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
24051         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
24052         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
24053         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
24054         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
24055         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
24056         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
24057         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
24058         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
24059
24060         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
24061         ceil, ceilf, floor, floorf.
24062
24063         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
24064         Perform IRELATIVE relocations last.
24065
24066         * elf/do-rel.h: Add another parameter nrelative, replacing the
24067         local variable with the same name.  Change name of the function
24068         to end in Rel or Rela (uppercase).
24069         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
24070         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
24071         elf_dynamic_do_##reloc function.
24072
24073 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24074
24075         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
24076         is sufficient, at least on modern CPUs.
24077
24078         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
24079
24080         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
24081         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
24082
24083         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
24084         __expl_finite.
24085         * math/bits/math-finite.h: Add entries for exp.
24086         * math/e_expl.c: Add __*_finite alias.
24087         * sysdeps/i386/fpu/e_exp.S: Likewise.
24088         * sysdeps/i386/fpu/e_expf.S: Likewise.
24089         * sysdeps/i386/fpu/e_expl.c: Likewise.
24090         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24091         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
24092         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
24093         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
24094         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
24095         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24096         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24097
24098         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
24099         is sufficient, at least on modern CPUs.
24100
24101         * ctype/ctype-info.c (__ctype_init): Define.
24102         * include/ctype.h (__ctype_init): Declare.
24103         (__ctype_b_loc): The variable is always initialized.
24104         (__ctype_toupper_loc): Likewise.
24105         (__ctype_tolower_loc): Likewise.
24106         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
24107         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
24108
24109 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
24110
24111         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
24112
24113         * configure.in: Also look in $cxxmachine/include for C++ system
24114         headers.
24115
24116 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24117
24118         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
24119         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
24120         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
24121         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
24122         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
24123         (USE_AS_WMEMCMP): New macro.
24124         Fixing indents.
24125         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
24126         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
24127         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
24128         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
24129         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24130         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
24131         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
24132         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
24133         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
24134         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
24135         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
24136         (USE_AS_WMEMCMP): New macro.
24137         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
24138         * sysdeps/string/test-memcmp.c: Update.
24139         Fix simple_wmemcmp.
24140         Add new tests.
24141         * wcsmbs/wmemcmp.c: Update.
24142         (WMEMCMP): New macro.
24143         Fix overflow bug.
24144
24145 2011-10-12  Andreas Jaeger  <aj@suse.de>
24146
24147         [BZ #13268]
24148         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
24149
24150 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
24151
24152         * libio/iofwide.c (do_length): Avoid warning.
24153
24154         * ctype/ctype.h (__isctype_f): Add missing __THROW.
24155
24156 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
24157
24158         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
24159
24160         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
24161         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
24162         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
24163         * sysdeps/i386/i686/fpu/e_log.S: New file.
24164         * sysdeps/i386/i686/fpu/e_logf.S: New file.
24165         * sysdeps/i386/i686/fpu/e_logl.S: New file.
24166
24167         * ctype/ctype.h: Add support for inlined isXXX functions when
24168         compiling C++ code.
24169
24170 2011-10-14  Andreas Schwab  <schwab@redhat.com>
24171
24172         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24173
24174         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
24175
24176 2011-10-13  Roland McGrath  <roland@hack.frob.com>
24177
24178         [BZ #13291]
24179         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
24180
24181 2011-10-13  Andreas Schwab  <schwab@redhat.com>
24182
24183         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
24184         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
24185         feraiseexcept.
24186
24187         * sysdeps/x86_64/memrchr.S: Check for zero size.
24188
24189         * string/stratcliff.c: Add memrchr tests.
24190
24191 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24192
24193         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24194         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
24195         rawmemchr-sse2 rawmemchr-sse2-bsf.
24196         * sysdeps/i386/i686/multiarch/memchr.S: New file.
24197         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
24198         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
24199         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
24200         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
24201         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
24202         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
24203         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
24204         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
24205         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
24206         * string/memrchr.c (MEMRCHR): New macro.
24207
24208 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
24209
24210         Add integration with gcc's -ffinite-math-only and optimize wrapper
24211         functions in libm.
24212         * Versions.def: Define GLIBC_2.15 version for libm.
24213         * math/Makefile (headers): Add bits/math-finite.h.
24214         * math/bits/math-finite.h: New file.
24215         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
24216         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
24217         * math/e_acoshl.c: Add __*_finite alias.
24218         * math/e_acosl.c: Likewise.
24219         * math/e_asinl.c: Likewise.
24220         * math/e_atan2l.c: Likewise.
24221         * math/e_atanhl.c: Likewise.
24222         * math/e_coshl.c: Likewise.
24223         * math/e_exp10.c: Likewise.
24224         * math/e_exp10f.c: Likewise.
24225         * math/e_exp10l.c: Likewise.
24226         * math/e_exp2l.c: Likewise.
24227         * math/e_fmodl.c: Likewise.
24228         * math/e_gammal_r.c: Likewise.
24229         * math/e_hypotl.c: Likewise.
24230         * math/e_j0l.c: Likewise.
24231         * math/e_j1l.c: Likewise.
24232         * math/e_jnl.c: Likewise.
24233         * math/e_lgammal_r.c: Likewise.
24234         * math/e_log10l.c: Likewise.
24235         * math/e_log2l.c: Likewise.
24236         * math/e_logl.c: Likewise.
24237         * math/e_powl.c: Likewise.
24238         * math/e_sinhl.c: Likewise.
24239         * math/e_sqrtl.c: Likewise.
24240         * math/e_scalb.c: Completely rewritten and optimized.
24241         * math/e_scalbf.c: Likewise.
24242         * math/e_scalbl.c: Likewise.
24243         * math/w_acos.c: Likewise.
24244         * math/w_acosf.c: Likewise.
24245         * math/w_acosl.c: Likewise.
24246         * math/w_acosh.c: Likewise.
24247         * math/w_acoshf.c: Likewise.
24248         * math/w_acoshl.c: Likewise.
24249         * math/w_asin.c: Likewise.
24250         * math/w_asinf.c: Likewise.
24251         * math/w_asinl.c: Likewise.
24252         * math/w_atan2.c: Likewise.
24253         * math/w_atan2f.c: Likewise.
24254         * math/w_atan2l.c: Likewise.
24255         * math/w_atanh.c: Likewise.
24256         * math/w_atanhf.c: Likewise.
24257         * math/w_atanhl.c: Likewise.
24258         * math/w_exp10.c: Likewise.
24259         * math/w_exp10f.c: Likewise.
24260         * math/w_exp10l.c: Likewise.
24261         * math/w_fmod.c: Likewise.
24262         * math/w_fmodf.c: Likewise.
24263         * math/w_fmodl.c: Likewise.
24264         * math/w_j0.c: Likewise.
24265         * math/w_j0f.c: Likewise.
24266         * math/w_j0l.c: Likewise.
24267         * math/w_j1.c: Likewise.
24268         * math/w_j1f.c: Likewise.
24269         * math/w_j1l.c: Likewise.
24270         * math/w_jn.c: Likewise.
24271         * math/w_jnf.c: Likewise.
24272         * math/w_log.c: Likewise.
24273         * math/w_logf.c: Likewise.
24274         * math/w_logl.c: Likewise.
24275         * math/w_log10.c: Likewise.
24276         * math/w_log10f.c: Likewise.
24277         * math/w_log10l.c: Likewise.
24278         * math/w_log2.c: Likewise.
24279         * math/w_log2f.c: Likewise.
24280         * math/w_log2l.c: Likewise.
24281         * math/w_pow.c: Likewise.
24282         * math/w_powf.c: Likewise.
24283         * math/w_powl.c: Likewise.
24284         * math/w_remainder.c: Likewise.
24285         * math/w_remainderf.c: Likewise.
24286         * math/w_remainderl.c: Likewise.
24287         * math/w_scalb.c: Likewise.
24288         * math/w_scalbf.c: Likewise.
24289         * math/w_scalbl.c: Likewise.
24290         * math/w_sqrt.c: Likewise.
24291         * math/w_sqrtf.c: Likewise.
24292         * math/w_sqrtl.c: Likewise.
24293         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
24294         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
24295         used.
24296         * math/math_private.h: Declare __kernel_standard_f.
24297         * math/w_cosh.c: Remove cruft and optimize a bit.
24298         * math/w_coshf.c: Likewise.
24299         * math/w_coshl.c: Likewise.
24300         * math/w_exp2.c: Likewise.
24301         * math/w_exp2f.c: Likewise.
24302         * math/w_exp2l.c: Likewise.
24303         * math/w_hypot.c: Likewise.
24304         * math/w_hypotf.c: Likewise.
24305         * math/w_hypotl.c: Likewise.
24306         * math/w_lgamma.c: Likewise.
24307         * math/w_lgamma_r.c: Likewise.
24308         * math/w_lgammaf.c: Likewise.
24309         * math/w_lgammaf_r.c: Likewise.
24310         * math/w_lgammal.c: Likewise.
24311         * math/w_lgammal_r.c: Likewise.
24312         * math/w_sinh.c: Likewise.
24313         * math/w_sinhf.c: Likewise.
24314         * math/w_sinhl.c: Likewise.
24315         * math/w_tgamma.c: Likewise.
24316         * math/w_tgammaf.c: Likewise.
24317         * math/w_tgammal.c: Likewise.
24318         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24319         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24320         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
24321         Minor optimizations.  Pretty printing.  Remove cruft.
24322         * sysdeps/i386/fpu/e_acosf.S: Likewise.
24323         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24324         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24325         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24326         * sysdeps/i386/fpu/e_acosl.c: Likewise.
24327         * sysdeps/i386/fpu/e_asin.S: Likewise.
24328         * sysdeps/i386/fpu/e_asinf.S: Likewise.
24329         * sysdeps/i386/fpu/e_atan2.S: Likewise.
24330         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
24331         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
24332         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24333         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24334         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24335         * sysdeps/i386/fpu/e_exp10.S: Likewise.
24336         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
24337         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
24338         * sysdeps/i386/fpu/e_exp2.S: Likewise.
24339         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
24340         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
24341         * sysdeps/i386/fpu/e_fmod.S: Likewise.
24342         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
24343         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
24344         * sysdeps/i386/fpu/e_hypot.S: Likewise.
24345         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
24346         * sysdeps/i386/fpu/e_log.S: Likewise.
24347         * sysdeps/i386/fpu/e_log10.S: Likewise.
24348         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24349         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24350         * sysdeps/i386/fpu/e_log2.S: Likewise.
24351         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24352         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24353         * sysdeps/i386/fpu/e_logf.S: Likewise.
24354         * sysdeps/i386/fpu/e_logl.S: Likewise.
24355         * sysdeps/i386/fpu/e_pow.S: Likewise.
24356         * sysdeps/i386/fpu/e_powf.S: Likewise.
24357         * sysdeps/i386/fpu/e_powl.S: Likewise.
24358         * sysdeps/i386/fpu/e_remainder.S: Likewise.
24359         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
24360         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
24361         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24362         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24363         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24364         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
24365         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
24366         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
24367         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24368         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24369         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24370         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24371         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
24372         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24373         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
24374         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24375         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24376         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24377         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24378         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24379         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24380         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24381         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24382         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24383         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24384         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24385         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24386         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24387         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24388         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24389         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24390         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24391         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24392         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24393         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
24394         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24395         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
24396         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24397         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24398         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24399         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24400         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24401         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24402         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24403         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24404         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24405         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24406         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24407         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24408         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24409         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24410         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24411         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24412         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24413         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24414         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24415         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24416         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
24417         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24418         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24419         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24420         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24421         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24422         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24423         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24424         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24425         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24426         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24427         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24428         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24429         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24430         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24431         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24432         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24433         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24434         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24435         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
24436         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24437         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24438         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24439         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24440         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24441         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24442         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24443         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24444         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24445         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24446         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24447         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24448         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24449         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
24450         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24451         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24452         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24453         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24454         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24455         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24456         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24457         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24458         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24459         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24460         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24461         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24462         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
24463         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
24464         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
24465         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
24466         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
24467         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
24468         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
24469         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
24470         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
24471         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24472         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24473         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24474         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24475         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
24476         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24477         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
24478         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
24479         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
24480         (__isnanf): Likewise.
24481         (__isinf_ns): Likewise.
24482         (__isinf_nsf): Likewise.
24483         (__finite): Likewise.
24484         (__finitef): Likewise.
24485         (__ieee754_sqrt): Define as macro.
24486         (__ieee754_sqrtf): Define as macro.
24487         (__ieee754_sqrtl): Define as macro.
24488         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
24489         inlined copy.
24490         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
24491         __FINITE_MATH_ONLY__ consistent.
24492         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
24493
24494 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
24495
24496         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
24497         of rawmemchr.
24498
24499         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
24500
24501 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
24502
24503         * po/ja.po: Update from translation team.
24504
24505 2011-10-08  Roland McGrath  <roland@hack.frob.com>
24506
24507         * locale/programs/locarchive.c (prepare_address_space): New function.
24508         (create_archive, enlarge_archive, open_archive): Use it.
24509
24510         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
24511         inside [SHARED], where it is used.
24512
24513         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
24514
24515         * nss/getent.c (netgroup_keys): Remove unused variable.
24516         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24517
24518 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
24519
24520         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
24521         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
24522         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
24523         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
24524         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
24525         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
24526         * math/Makefile (libm-calls): Add s_isinf_ns.
24527         * math/divtc3.c: Use __isinf_nsl instead of isinf.
24528         * math/multc3.c: Likewise.
24529         * math/s_casin.c: Likewise.
24530         * math/s_casinf.c: Likewise.
24531         * math/s_casinl.c: Likewise.
24532         * math/s_ccos.c: Likewise.
24533         * math/s_ccosf.c: Likewise.
24534         * math/s_ccosl.c: Likewise.
24535         * math/s_ctan.c: Likewise.
24536         * math/s_ctanf.c: Likewise.
24537         * math/s_ctanh.c: Likewise.
24538         * math/s_ctanhf.c: Likewise.
24539         * math/s_ctanhl.c: Likewise.
24540         * math/s_ctanl.c: Likewise.
24541         * math/w_fmod.c: Likewise.
24542         * math/w_fmodf.c: Likewise.
24543         * math/w_fmodl.c: Likewise.
24544         * math/w_remainder.c: Likewise.
24545         * math/w_remainderf.c: Likewise.
24546         * math/w_remainderl.c: Likewise.
24547         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
24548         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
24549         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
24550         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
24551         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
24552         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
24553         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
24554         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
24555
24556         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
24557         of the number.
24558         * stdio-common/printf_fphex.c: Likewise.
24559         * stdio-common/printf_size.c: Likewise.
24560
24561         * math/e_exp10.c: Include math_private.h using <...> not "...".
24562         * math/e_exp10f.c: Likewise.
24563         * math/e_exp10l.c: Likewise.
24564         * math/e_exp2l.c: Likewise.
24565         * math/e_j0l.c: Likewise.
24566         * math/e_j1l.c: Likewise.
24567         * math/e_jnl.c: Likewise.
24568         * math/e_lgammal_r.c: Likewise.
24569         * math/e_rem_pio2l.c: Likewise.
24570         * math/e_scalb.c: Likewise.
24571         * math/e_scalbf.c: Likewise.
24572         * math/e_scalbl.c: Likewise.
24573         * math/k_cosl.c: Likewise.
24574         * math/k_sinl.c: Likewise.
24575         * math/k_tanl.c: Likewise.
24576         * math/s_cacoshf.c: Likewise.
24577         * math/s_catan.c: Likewise.
24578         * math/s_catanf.c: Likewise.
24579         * math/s_catanh.c: Likewise.
24580         * math/s_catanhf.c: Likewise.
24581         * math/s_catanhl.c: Likewise.
24582         * math/s_catanl.c: Likewise.
24583         * math/s_ccosh.c: Likewise.
24584         * math/s_ccoshf.c: Likewise.
24585         * math/s_ccoshl.c: Likewise.
24586         * math/s_cexp.c: Likewise.
24587         * math/s_cexpf.c: Likewise.
24588         * math/s_cexpl.c: Likewise.
24589         * math/s_clog.c: Likewise.
24590         * math/s_clog10.c: Likewise.
24591         * math/s_clog10f.c: Likewise.
24592         * math/s_clog10l.c: Likewise.
24593         * math/s_clogf.c: Likewise.
24594         * math/s_clogl.c: Likewise.
24595         * math/s_csin.c: Likewise.
24596         * math/s_csinf.c: Likewise.
24597         * math/s_csinh.c: Likewise.
24598         * math/s_csinhf.c: Likewise.
24599         * math/s_csinhl.c: Likewise.
24600         * math/s_csinl.c: Likewise.
24601         * math/s_csqrt.c: Likewise.
24602         * math/s_csqrtf.c: Likewise.
24603         * math/s_csqrtl.c: Likewise.
24604         * math/s_ctan.c: Likewise.
24605         * math/s_ctanf.c: Likewise.
24606         * math/s_ctanh.c: Likewise.
24607         * math/s_ctanhf.c: Likewise.
24608         * math/s_ctanhl.c: Likewise.
24609         * math/s_ctanl.c: Likewise.
24610         * math/s_ldexp.c: Likewise.
24611         * math/s_ldexpf.c: Likewise.
24612         * math/s_ldexpl.c: Likewise.
24613         * math/s_significand.c: Likewise.
24614         * math/s_significandf.c: Likewise.
24615         * math/s_significandl.c: Likewise.
24616         * math/w_acos.c: Likewise.
24617         * math/w_acosf.c: Likewise.
24618         * math/w_acosh.c: Likewise.
24619         * math/w_acoshf.c: Likewise.
24620         * math/w_acoshl.c: Likewise.
24621         * math/w_acosl.c: Likewise.
24622         * math/w_asin.c: Likewise.
24623         * math/w_asinf.c: Likewise.
24624         * math/w_asinl.c: Likewise.
24625         * math/w_atan2.c: Likewise.
24626         * math/w_atan2f.c: Likewise.
24627         * math/w_atan2l.c: Likewise.
24628         * math/w_atanh.c: Likewise.
24629         * math/w_atanhf.c: Likewise.
24630         * math/w_atanhl.c: Likewise.
24631         * math/w_cosh.c: Likewise.
24632         * math/w_coshf.c: Likewise.
24633         * math/w_coshl.c: Likewise.
24634         * math/w_dremf.c: Likewise.
24635         * math/w_exp10.c: Likewise.
24636         * math/w_exp10f.c: Likewise.
24637         * math/w_exp10l.c: Likewise.
24638         * math/w_exp2.c: Likewise.
24639         * math/w_exp2f.c: Likewise.
24640         * math/w_fmod.c: Likewise.
24641         * math/w_fmodf.c: Likewise.
24642         * math/w_fmodl.c: Likewise.
24643         * math/w_hypot.c: Likewise.
24644         * math/w_hypotf.c: Likewise.
24645         * math/w_hypotl.c: Likewise.
24646         * math/w_j0.c: Likewise.
24647         * math/w_j0f.c: Likewise.
24648         * math/w_j0l.c: Likewise.
24649         * math/w_j1.c: Likewise.
24650         * math/w_j1f.c: Likewise.
24651         * math/w_j1l.c: Likewise.
24652         * math/w_jn.c: Likewise.
24653         * math/w_jnf.c: Likewise.
24654         * math/w_jnl.c: Likewise.
24655         * math/w_lgamma.c: Likewise.
24656         * math/w_lgamma_r.c: Likewise.
24657         * math/w_lgammaf.c: Likewise.
24658         * math/w_lgammaf_r.c: Likewise.
24659         * math/w_lgammal.c: Likewise.
24660         * math/w_lgammal_r.c: Likewise.
24661         * math/w_log.c: Likewise.
24662         * math/w_log10.c: Likewise.
24663         * math/w_log10f.c: Likewise.
24664         * math/w_log10l.c: Likewise.
24665         * math/w_log2.c: Likewise.
24666         * math/w_log2f.c: Likewise.
24667         * math/w_log2l.c: Likewise.
24668         * math/w_logf.c: Likewise.
24669         * math/w_logl.c: Likewise.
24670         * math/w_pow.c: Likewise.
24671         * math/w_powf.c: Likewise.
24672         * math/w_powl.c: Likewise.
24673         * math/w_remainder.c: Likewise.
24674         * math/w_remainderf.c: Likewise.
24675         * math/w_remainderl.c: Likewise.
24676         * math/w_scalb.c: Likewise.
24677         * math/w_scalbf.c: Likewise.
24678         * math/w_scalbl.c: Likewise.
24679         * math/w_sinh.c: Likewise.
24680         * math/w_sinhf.c: Likewise.
24681         * math/w_sinhl.c: Likewise.
24682         * math/w_sqrt.c: Likewise.
24683         * math/w_sqrtf.c: Likewise.
24684         * math/w_sqrtl.c: Likewise.
24685         * math/w_tgamma.c: Likewise.
24686         * math/w_tgammaf.c: Likewise.
24687         * math/w_tgammal.c: Likewise.
24688
24689         * po/ja.po: Update from translation team.
24690
24691 2011-09-29  Andreas Jaeger  <aj@suse.de>
24692
24693         [BZ #13179]
24694         * sunrpc/netname.c (netname2host): Fix logic.
24695
24696         [BZ #6779]
24697         [BZ #6783]
24698         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
24699         correctly.
24700         * math/w_remainder.c (__remainder): Likewise.
24701         * math/w_remainderf.c (__remainderf): Likewise.
24702         * math/libm-test.inc (remainder_test): Add test cases.
24703
24704 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24705
24706         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
24707         sdiv_qrnnd.
24708
24709 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24710
24711         * string/test-memcmp.c: Avoid unncessary #defines.
24712         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
24713
24714 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24715
24716         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
24717         Use new sse2 version for core i3 - i7 as it's faster
24718         than sse42 version.
24719         (bit_Prefer_PMINUB_for_stringop): New.
24720         * sysdeps/x86_64/rawmemchr.S: Update.
24721         Replace with faster SSE2 version.
24722         * sysdeps/x86_64/memrchr.S: New file.
24723         * sysdeps/x86_64/memchr.S: Update.
24724         Replace with faster SSE2 version.
24725
24726 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
24727
24728         * elf/dl-load.c (lose): Add cast to avoid warning.
24729
24730 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
24731
24732         * po/ca.po: Update from translation team.
24733
24734         * inet/getnetgrent_r.c: Hook up nscd.
24735         * nscd/Makefile (routines): Add nscd_netgroup.
24736         (nscd-modules): Add netgroupcache.
24737         (CFLAGS-netgroupcache.c): Define.
24738         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
24739         (cache_search): Add const to second parameter.
24740         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
24741         INNETGR.
24742         (dbs): Add netgrdb entry.
24743         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
24744         (verify_persistent_db): Handle netgrdb.
24745         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
24746         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
24747         GETFDNETGR.
24748         (netgroup_response_header): Define.
24749         (innetgroup_response_header): Define.
24750         (datahead): Add netgroup_response_header and innetgroup_response_header
24751         elements.
24752         * nscd/nscd.conf: Add entries for netgroup cache.
24753         * nscd/nscd.h (dbtype): Add netgrdb.
24754         (_PATH_NSCD_NETGROUP_DB): Define.
24755         (netgroup_iov_disabled): Declare.
24756         (xmalloc, xcalloc, xrealloc): Move declarations here.
24757         (cache_search): Adjust prototype.
24758         Add netgroup-related prototypes.
24759         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
24760         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
24761         (__nscd_innetgr): Declare.
24762         * nscd/selinux.c (perms): Use access_vector_t as element type and
24763         add netgroup-related initializers.
24764         * nscd/netgroupcache.c: New file.
24765         * nscd/nscd_netgroup.c: New file.
24766         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
24767         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
24768         For four parameters use innetgr.
24769         * nss/nss_files/files-init.c: Add definition and callback for netgr.
24770         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
24771         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
24772         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
24773
24774         * nscd/connections.c (register_traced_file): Don't register file
24775         for disabled databases.
24776
24777 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
24778
24779         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
24780
24781         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
24782         from tree and freeing node.
24783
24784 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
24785
24786         * nss/nsswitch.c (__nss_database_lookup): Handle
24787         nss_parse_service_list out of memory case.
24788
24789 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
24790
24791         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
24792         out of memory case.
24793
24794 2011-10-04  Andreas Schwab  <schwab@redhat.com>
24795
24796         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
24797         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
24798         pass it down.
24799         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
24800         elf_machine_rela, elf_machine_lazy_rel.
24801         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
24802         (ELF_DYNAMIC_DO_REL): Likewise.
24803         (ELF_DYNAMIC_DO_RELA): Likewise.
24804         (ELF_DYNAMIC_RELOCATE): Likewise.
24805         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
24806         to ELF_DYNAMIC_DO_REL.
24807         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
24808         (dl_main): In trace mode always set __RTLD_NOIFUNC.
24809         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
24810         elf_machine_rela.
24811         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
24812         skip_ifunc, don't call ifunc function if non-zero.
24813         (elf_machine_rela): Likewise.
24814         (elf_machine_lazy_rel): Likewise.
24815         (elf_machine_lazy_rela): Likewise.
24816         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
24817         (elf_machine_lazy_rel): Likewise.
24818         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24819         Likewise.
24820         (elf_machine_lazy_rel): Likewise.
24821         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24822         Likewise.
24823         (elf_machine_lazy_rel): Likewise.
24824         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
24825         (elf_machine_lazy_rel): Likewise.
24826         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
24827         (elf_machine_lazy_rel): Likewise.
24828         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
24829         (elf_machine_lazy_rel): Likewise.
24830         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24831         (elf_machine_lazy_rel): Likewise.
24832         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24833         (elf_machine_lazy_rel): Likewise.
24834         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
24835         (elf_machine_lazy_rel): Likewise.
24836
24837 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
24838
24839         * nss/nss_files/files-init.c (_nss_files_init): Use static
24840         initialization for all the *_traced_file variables.
24841
24842 2011-09-28  Andreas Schwab  <schwab@redhat.com>
24843
24844         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24845
24846 2011-09-27  Roland McGrath  <roland@hack.frob.com>
24847
24848         [BZ #13226]
24849         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
24850
24851 2011-09-27  Andreas Schwab  <schwab@redhat.com>
24852
24853         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
24854         Reread the line before reparsing it.
24855
24856 2011-09-26  Andreas Schwab  <schwab@redhat.com>
24857
24858         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
24859
24860 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
24861             Maxim Kuvyrkov  <maxim@codesourcery.com>
24862             Joseph Myers  <joseph@codesourcery.com>
24863
24864         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
24865         if needed for __stack_chk_guard.
24866
24867 2011-09-19  Roland McGrath  <roland@hack.frob.com>
24868
24869         * sysdeps/posix/spawni.c (script_execute): Always define it.
24870         It will be optimized away if unused.
24871         (maybe_script_execute): New function.
24872         (__spawni): Call it.
24873
24874         * Makerules: Don't include tls.make.
24875         (config-tls): Always set to thread.
24876         * tls.make.c: File removed.
24877
24878 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
24879
24880         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
24881         * config.make.in (CPPFLAGS-config): New substituted variable.
24882
24883 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24884
24885         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
24886
24887         [BZ #13192]
24888         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
24889         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
24890
24891 2011-09-15  Roland McGrath  <roland@hack.frob.com>
24892
24893         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
24894         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
24895         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
24896         (CALL_FAIL): Likewise.
24897         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
24898         (CALL_FAIL): Macro removed.
24899         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
24900
24901 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
24902
24903         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
24904         for __FINITE_MATH_ONLY__ == 1.
24905
24906 2011-09-15  Andreas Schwab  <schwab@redhat.com>
24907
24908         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
24909         __ieee754_sqrt instead of sqrt.
24910         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
24911         __ieee754_sqrtf instead of sqrtf.
24912         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
24913         __floorf instead of floorf.
24914         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
24915         __floorf, __truncf instead of floorf, truncf.
24916
24917 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
24918
24919         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
24920
24921         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
24922         __extern_always_inline.
24923         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
24924         32-bit.
24925
24926 2011-09-14  Andreas Schwab  <schwab@redhat.com>
24927
24928         * elf/rtld.c (dl_main): Also relocate in dependency order when
24929         doing symbol dependency testing.
24930
24931 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
24932
24933         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
24934         Always define `refsym'.
24935
24936 2011-09-13  Andreas Schwab  <schwab@redhat.com>
24937
24938         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
24939         (__FD_ELT): Renamed from __FDELT.
24940         * misc/bits/select2.h (__FD_ELT): Likewise.
24941         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
24942         __FD_MASK instead of __FDELT, __FDMASK.
24943         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24944         Likewise.
24945         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
24946         Likewise.
24947
24948         * elf/Makefile (gen-ldd): Fix pattern.
24949
24950         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
24951         (init_tls): Likewise.
24952
24953 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
24954
24955         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
24956
24957 2011-09-12  Andreas Schwab  <schwab@redhat.com>
24958
24959         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
24960         `struct cmsghdr *' instead of `void *'.
24961         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
24962         Likewise.
24963
24964 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
24965
24966         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
24967         if non-absolute.
24968         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
24969         ldd_rewrite_script.
24970
24971 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
24972
24973         * configure.in: Remove --with-tls option.
24974         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
24975         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
24976         out in case it is missing.
24977         * sysdeps/ia64/elf/configure.in: Likewise.
24978         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
24979         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
24980         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
24981         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
24982         * sysdeps/sh/elf/configure.in: Likewise.
24983         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
24984         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24985         * sysdeps/x86_64/elf/configure.in: Likewise.
24986         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
24987         * sysdeps/mach/hurd/tls.h: Likewise.
24988
24989         [BZ #13067]
24990         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
24991
24992         [BZ #13090]
24993         * configure.in: Fix use of AC_INIT.
24994
24995         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
24996
24997 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
24998
24999         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
25000         __set_errno.
25001         * malloc/hooks.c: Likewise.
25002
25003         [BZ #11929]
25004         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
25005         variables statically.
25006         (narenas): Initialize.
25007         (list_lock): Initialize.
25008         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
25009         initializtion of main_arena and list_lock.  Small cleanups.
25010         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
25011         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
25012         Add initializers to main_arena and mp_.
25013         (malloc_state): Remove pagesize member.  Change all users to use
25014         GLRO(dl_pagesize).
25015
25016         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
25017         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
25018         is always initialized.
25019
25020         * malloc/malloc.c: Removed unused configurations and dead code.
25021         * malloc/arena.c: Likewise.
25022         * malloc/hooks.c: Likewise.
25023         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
25024
25025         * include/tls.h: Removed.  USE___THREAD must always be defined.
25026         * bits/libc-tsd.h: Don't handle !USE___THREAD.
25027         * elf/dl-libc.c: Likewise.
25028         * elf/dl-tsd.c: Likewise.
25029         * include/errno.h: Likewise.
25030         * include/netdb.h: Likewise.
25031         * include/resolv.h: Likewise.
25032         * inet/herrno-loc.c: Likewise.
25033         * inet/herrno.c: Likewise.
25034         * malloc/arena.c: Likewise.
25035         * malloc/hooks.c: Likewise.
25036         * malloc/malloc.c: Likewise.
25037         * resolv/res-state.c: Likewise.
25038         * resolv/res_libc.c: Likewise.
25039         * sysdeps/i386/dl-machine.h: Likewise.
25040         * sysdeps/ia64/dl-machine.h: Likewise.
25041         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
25042         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
25043         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
25044         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
25045         * sysdeps/sh/dl-machine.h: Likewise.
25046         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25047         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25048         * sysdeps/unix/i386/sysdep.S: Likewise.
25049         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
25050         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
25051         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
25052         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25053         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
25054         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
25055         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
25056         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25057         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25058         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
25059         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25060         * sysdeps/x86_64/dl-machine.h: Likewise.
25061         * tls.make.c: Likewise.
25062
25063         * configure.in: Remove --with-__thread option.  Make tests for
25064         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
25065         tls_model attribute fail if no support is available.  Remove
25066         USE_IN_LIBIO.
25067         * Makeconfig: Adjust for dropped configure option.  All features are
25068         now mandatory.
25069         * Makerules: Likewise.
25070         * Versions.def: Likewise.
25071         * argp/argp-fmtstream.c: Likewise.
25072         * argp/argp-fmtstream.h: Likewise.
25073         * argp/argp-help.c: Likewise.
25074         * assert/assert.c: Likewise.
25075         * config.h.in: Likewise.
25076         * config.make.in: Likewise.
25077         * configure: Likewise.
25078         * configure.in: Likewise.
25079         * csu/Versions: Likewise.
25080         * csu/init.c: Likewise.
25081         * elf/tst-audit2.c: Likewise.
25082         * elf/tst-tls10.c: Likewise.
25083         * elf/tst-tls10.h: Likewise.
25084         * elf/tst-tls11.c: Likewise.
25085         * elf/tst-tls12.c: Likewise.
25086         * elf/tst-tls14.c: Likewise.
25087         * elf/tst-tlsmod11.c: Likewise.
25088         * elf/tst-tlsmod12.c: Likewise.
25089         * elf/tst-tlsmod13.c: Likewise.
25090         * elf/tst-tlsmod13a.c: Likewise.
25091         * elf/tst-tlsmod14a.c: Likewise.
25092         * elf/tst-tlsmod15b.c: Likewise.
25093         * elf/tst-tlsmod16a.c: Likewise.
25094         * elf/tst-tlsmod16b.c: Likewise.
25095         * elf/tst-tlsmod7.c: Likewise.
25096         * elf/tst-tlsmod8.c: Likewise.
25097         * elf/tst-tlsmod9.c: Likewise.
25098         * gmon/gmon.c: Likewise.
25099         * grp/fgetgrent_r.c: Likewise.
25100         * grp/putgrent.c: Likewise.
25101         * hurd/fopenport.c: Likewise.
25102         * include/libc-symbols.h: Likewise.
25103         * include/tls.h: Likewise.
25104         * intl/gettextP.h: Likewise.
25105         * intl/loadinfo.h: Likewise.
25106         * locale/global-locale.c: Likewise.
25107         * locale/localeinfo.h: Likewise.
25108         * mach/devstream.c: Likewise.
25109         * malloc/arena.c: Likewise.
25110         * malloc/set-freeres.c: Likewise.
25111         * misc/err.c: Likewise.
25112         * misc/getttyent.c: Likewise.
25113         * misc/mntent_r.c: Likewise.
25114         * posix/getopt.c: Likewise.
25115         * posix/wordexp.c: Likewise.
25116         * pwd/fgetpwent_r.c: Likewise.
25117         * resolv/Versions: Likewise.
25118         * resolv/res_hconf.c: Likewise.
25119         * shadow/fgetspent_r.c: Likewise.
25120         * shadow/putspent.c: Likewise.
25121         * stdio-common/printf_fphex.c: Likewise.
25122         * stdio-common/tmpfile.c: Likewise.
25123         * stdlib/abort.c: Likewise.
25124         * stdlib/fmtmsg.c: Likewise.
25125         * sunrpc/auth_unix.c: Likewise.
25126         * sunrpc/clnt_perr.c: Likewise.
25127         * sunrpc/clnt_tcp.c: Likewise.
25128         * sunrpc/clnt_udp.c: Likewise.
25129         * sunrpc/clnt_unix.c: Likewise.
25130         * sunrpc/openchild.c: Likewise.
25131         * sunrpc/svc_simple.c: Likewise.
25132         * sunrpc/svc_tcp.c: Likewise.
25133         * sunrpc/svc_udp.c: Likewise.
25134         * sunrpc/svc_unix.c: Likewise.
25135         * sunrpc/xdr.c: Likewise.
25136         * sunrpc/xdr_array.c: Likewise.
25137         * sunrpc/xdr_rec.c: Likewise.
25138         * sunrpc/xdr_ref.c: Likewise.
25139         * sunrpc/xdr_stdio.c: Likewise.
25140
25141 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25142
25143         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25144
25145 2011-07-03  Andreas Jaeger  <aj@suse.de>
25146
25147         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
25148         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
25149         regenerate with gen-libm-tests.pl.
25150
25151 2010-05-12  Petr Baudis  <pasky@suse.cz>
25152
25153         [BZ #11589]
25154         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
25155         around j0() zero points by switching to j1().
25156         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25157         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25158         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25159         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25160
25161 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25162
25163         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
25164         instead of 0.
25165         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
25166         instead of 0.
25167         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25168         Patch in part by Pavel Roskin <proski@gnu.org>.
25169
25170         [BZ #13138]
25171         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
25172         realloc.
25173         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
25174         Free memory block if necessary.
25175
25176         [BZ #12847]
25177         * libio/genops.c (INTDEF): For string streams the _lock pointer can
25178         be NULL.  Don't lock in this case.
25179
25180 2011-09-09  Roland McGrath  <roland@hack.frob.com>
25181
25182         * elf/elf.h (ELFOSABI_GNU): New macro.
25183         (ELFOSABI_LINUX): Define to that.
25184
25185 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
25186
25187         * string/strncat.c (strncat): Undef the symbol in case it has been
25188         defined in bits/string.h.
25189
25190 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
25191
25192         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
25193
25194         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
25195         link map.
25196
25197 2011-08-17  Andreas Jaeger  <aj@suse.de>
25198
25199         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
25200
25201 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
25202             Ian Lance Taylor  <iant@google.com>
25203
25204         * math/libm-test.inc (lround_test): New testcase.
25205         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
25206
25207 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
25208
25209         * Makefile: Remove support for automatic cvs check-ins.
25210         * Makerules: Likewise.
25211         * config.make.in: Likewise.
25212         * configure.in: Likewise.
25213         * intl/Makefile: Likewise.
25214         * locale/Makefile: Likewise.
25215         * po/Makefile: Likewise.
25216         * posix/Makefile: Likewise.
25217         * sysdeps/gnu/Makefile: Likewise.
25218         * sysdeps/mach/hurd/Makefile: Likewise.
25219         * sysdeps/sparc/sparc32/Makefile: Likewise.
25220
25221         [BZ #13118]
25222         * posix/Makefile (bug-regex32-ENV): Define.
25223         Patch by John Stanley <jpsinthemix@verizon.net>.
25224
25225         * misc/Makefile (headers): Add bits/select2.h.
25226         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
25227         * misc/bits/select2.h: New file.
25228         * include/bits/select2.h: New file.
25229         * debug/Makefile (routines): Add fdelt_chk.
25230         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
25231         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
25232         FD_ISSET.
25233         * debug/fdelt_chk.c: New file.
25234
25235         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
25236         * wcsmbs/test-wmemcmp.c: Likewise.
25237         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
25238         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
25239
25240 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25241
25242         * string/Makefile (strop-tests): Add memcmp.
25243         * string/test-wmemcmp.c: New file.
25244         * string/test-memcmp.c: Add wmemcmp support.
25245
25246 2011-09-08  Roland McGrath  <roland@hack.frob.com>
25247
25248         [BZ #13153]
25249         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
25250         2011-07-19 change.
25251
25252         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
25253         garbage value in a __mach_port_mod_refs call in the cases of the
25254         task-self and thread-self ports.
25255
25256 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25257
25258         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
25259
25260 2011-09-08  Andreas Schwab  <schwab@redhat.com>
25261
25262         * elf/dl-load.c (lose): Check for non-null L.
25263
25264 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25265
25266         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
25267
25268         * elf/dl-libc.c (dlerror_run): Pass back error code from
25269         dl_catch_error.
25270
25271         [BZ #13123]
25272         * elf/dl-load.c (lose): Free l_origin if it is valid.
25273
25274         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
25275         names.
25276         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
25277         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25278         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25279         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25280         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
25281         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
25282
25283 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25284
25285         * sysdeps/powerpc/fpu/e_hypot.c: New file.
25286         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
25287         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
25288         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
25289         * sysdeps/powerpc/fpu/k_cosf.c: New file.
25290         * sysdeps/powerpc/fpu/k_sinf.c: New file.
25291         * sysdeps/powerpc/fpu/s_cosf.c: New file.
25292         * sysdeps/powerpc/fpu/s_sinf.c: New file.
25293         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
25294         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
25295
25296 2011-08-15  Alan Modra  <amodra@gmail.com>
25297
25298         [BZ #13092]
25299         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
25300         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
25301         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
25302         ppc_mcount to static-only-routines.
25303         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
25304         __mcount_internal.
25305         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
25306         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
25307
25308 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
25309
25310         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
25311         for finite and infinity parameters.
25312
25313 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25314
25315         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
25316         and add nop instructions for throughput optimization.
25317         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
25318
25319 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
25320
25321         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
25322         aligned copy for power7 with vector-scalar instructions.
25323         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
25324
25325 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
25326
25327         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
25328         AVX check.
25329
25330 2011-09-07  Andreas Schwab  <schwab@redhat.com>
25331
25332         [BZ #13144]
25333         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
25334         last change.
25335
25336 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
25337
25338         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25339         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
25340         syscall wrapper around clock_gettime in __vdso_clock_gettime.
25341         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
25342         clock_gettime.
25343
25344 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25345
25346         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
25347         Forgot to demangle the pointer.
25348
25349         * sysdeps/i386/sysdep.h: Define atom_text_section.
25350         * sysdeps/x86_64/sysdep.h: Likewise.
25351         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
25352         section with atom_text_section.
25353         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
25354         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
25355         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
25356         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25357         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
25358
25359         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
25360         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
25361         already be defined.  Change to take two parameters and don't assign
25362         result to variable.  Adjust all users.
25363         Define INTERNAL_GETTIME if not already defined.
25364         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
25365         call.
25366         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
25367         HAVE_CLOCK_GETTIME_VSYSCALL.
25368         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
25369
25370         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
25371         gettimeofday vsyscall, just use time.
25372
25373 2011-09-06  Andreas Schwab  <schwab@redhat.com>
25374
25375         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
25376         <errno.h>.
25377
25378 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
25379
25380         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
25381         syscall on x86-64.
25382         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
25383         syscall.
25384         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
25385         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
25386         syscall if possible.
25387
25388 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25389
25390         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
25391         e_ident.  Don't pass to find_mapsXX.
25392         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
25393
25394 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25395
25396         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25397         strchr-sse2-no-bsf strrchr-sse2-no-bsf
25398         * sysdeps/x86_64/multiarch/strchr.S: Update.
25399         Check bit_slow_BSF bit.
25400         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
25401         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
25402         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
25403
25404 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25405
25406         [BZ #13134]
25407         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
25408         before glibc 2.15.
25409         (tryshell): Define.
25410         (__spawni): Change last parameter to be flag.  Test
25411         SPAWN_XFLAGS_USE_PATH flag to use path or not.
25412         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
25413         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
25414         * posix/spawni.c: Likewise.
25415         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
25416         * posix/spawnp.c: Likewise.  Change normal version to use
25417         SPAWN_XFLAGS_USE_PATH.
25418         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
25419         SPAWN_XFLAGS_TRY_SHELL.
25420
25421         [BZ #13150]
25422         * posix/glob.h: Remove gcc 1.x support.
25423
25424         [BZ #13068]
25425         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
25426
25427 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25428
25429         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25430         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
25431         strrchr-sse2-bsf
25432         * sysdeps/i386/i686/multiarch/strchr.S: New file.
25433         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
25434         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
25435         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
25436         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
25437         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
25438
25439 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25440
25441         * sysdeps/x86_64/wcscmp.S: New file.
25442
25443         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
25444         wcscmp-c wcscmp-sse2
25445         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
25446         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
25447         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
25448         * wcsmbs/wcscmp.c: Allow renaming.
25449
25450 2011-09-05  David S. Miller  <davem@davemloft.net>
25451
25452         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
25453         stack slot, rather than the struct return pointer slot.
25454         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
25455         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
25456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
25457         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
25458
25459 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
25460
25461         * po/ja.po: Update from translation team.
25462
25463         [BZ #13144]
25464         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
25465         kernel in 64-bit binaries.
25466
25467 2011-09-01  David S. Miller  <davem@davemloft.net>
25468
25469         * elf/elf.h (HWCAP_SPARC_*): Move to..
25470         * sysdeps/sparc/sysdep.h: this new file and add new values.
25471         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
25472         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
25473         _DL_HWCAP_COUNT to 24.
25474         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
25475         entries.
25476         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
25477         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
25478         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
25479         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
25480         instead of magic constants.
25481         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25482
25483 2011-08-31  David S. Miller  <davem@davemloft.net>
25484
25485         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
25486         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
25487         Reimplement to do errno handling inline.
25488         (SYSCALL_ERROR_HANDLER): New macro.
25489         (__SYSCALL_STRING): Do not do errno handling in asm.
25490         (__CLONE_SYSCALL_STRING): Delete.
25491         (__INTERNAL_SYSCALL_STRING): Delete.
25492         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
25493         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
25494         (PSEUDO): Reimplement to do errno handling inline.
25495         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
25496         (SYSCALL_ERROR_HANDLER): New macro.
25497         (__SYSCALL_STRING): Do not do errno handling in asm.
25498         (__CLONE_SYSCALL_STRING): Delete.
25499         (__INTERNAL_SYSCALL_STRING): Delete.
25500         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
25501         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
25502         i386.
25503         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
25504         (inline_syscall*): Add 'err' argument.
25505         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
25506         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
25507         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
25508         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
25509
25510         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
25511         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
25512
25513 2011-08-30  Andreas Schwab  <schwab@redhat.com>
25514
25515         * elf/rtld.c (dl_main): Relocate objects in dependency order.
25516
25517 2011-08-29  Jiri Olsa <jolsa@redhat.com>
25518
25519         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
25520         directive.
25521
25522 2011-08-24  David S. Miller  <davem@davemloft.net>
25523
25524         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
25525
25526 2011-08-24  Andreas Schwab  <schwab@redhat.com>
25527
25528         * elf/Makefile: Add rules to build and run unload8 test.
25529         * elf/unload8.c: New file.
25530         * elf/unload8mod1.c: New file.
25531         * elf/unload8mod1x.c: New file.
25532         * elf/unload8mod2.c: New file.
25533         * elf/unload8mod3.c: New file.
25534
25535         * elf/dl-close.c (_dl_close_worker): Reset private search list if
25536         it wasn't used.
25537
25538 2011-08-23  David S. Miller  <davem@davemloft.net>
25539
25540         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
25541         subtract stack bias.
25542         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
25543         %sp not %fp in calculations.
25544         (_JMPBUF_UNWINDS_ADJ): Likewise.
25545
25546         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
25547         (aio_suspend): Call it to force an exception region around the
25548         AIO_MISC_WAIT() invocation.
25549
25550 2011-08-23  Andreas Schwab  <schwab@redhat.com>
25551
25552         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
25553         backslash.
25554
25555 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
25556
25557         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
25558         protection macro.
25559         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
25560         and <dl-machine.h>.
25561         (Elf64_FuncDesc): Remove.
25562
25563 2011-08-22  David S. Miller  <davem@davemloft.net>
25564
25565         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
25566         sigaltstack check, add missing cfi directives.
25567         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
25568         missing cfi directives, and sigaltstack handling.
25569
25570 2011-08-16  Andreas Schwab  <schwab@redhat.com>
25571
25572         [BZ #11724]
25573         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
25574         object is seen twice.
25575         * elf/dl-fini.c (_dl_sort_fini): Likewise.
25576
25577         * elf/Makefile (distribute): Add tst-initorder2.c.
25578         (tests): Add tst-initorder2.
25579         (modules-names): Add tst-initorder2a tst-initorder2b
25580         tst-initorder2c tst-initorder2d.  Add rules to build them.
25581         ($(objpfx)tst-initorder2.out): New rule.
25582         * elf/tst-initorder2.c: New file.
25583         * elf/tst-initorder2.exp: New file.
25584
25585 2011-08-22  Andreas Schwab  <schwab@redhat.com>
25586
25587         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
25588
25589         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
25590         dependencies back to end of function.
25591
25592         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
25593         $(elfobjdir)/ld.so.
25594
25595 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
25596
25597         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
25598         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
25599         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
25600         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
25601         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
25602         of __vdso_gettimeofday.
25603         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
25604         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
25605         attribute_hidden.
25606         (_libc_vdso_platform_setup): Remove initialization of
25607         __vdso_gettimeofday and __vdso_time.
25608
25609 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25610
25611         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
25612         and fgetc_unlocked.
25613         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
25614         getc_unlocked.
25615
25616         * elf/dl-open.c (add_to_global): Report additions to the global scope
25617         for LD_DEBUG=scopes.
25618         (dl_open_worker): Also print scope of newly loaded dependencies.
25619         (_dl_show_scope): Indicate if there is no scope.
25620
25621         [BZ #13114]
25622         * stdio-common/Makefile (tests): Add bug24.
25623         * stdio-common/bug24.c: New file.
25624
25625 2011-08-19  Andreas Jaeger  <aj@suse.de>
25626
25627         [BZ #13114]
25628         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
25629         non-existant file when using close-on-exec mode.
25630
25631 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
25632
25633         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
25634         the very first instruction.
25635
25636         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
25637         the CFI state in the end.
25638         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
25639         inclusion of dl-trampoline.h.
25640         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
25641
25642 2011-08-19  Andreas Schwab  <schwab@redhat.com>
25643
25644         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
25645         expectations for long double.
25646
25647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
25648         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
25649
25650 2011-08-14  David S. Miller  <davem@davemloft.net>
25651
25652         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
25653         artificual limit depends upon the system page size.
25654
25655 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25656
25657         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
25658         * resolv/Makefile: Define CFLAGS-libresolv.
25659
25660 2011-08-17  Andreas Schwab  <schwab@redhat.com>
25661
25662         * nss/makedb.c (compute_tables): Make variables used in nested
25663         function static.
25664
25665 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
25666
25667         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
25668         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
25669         if buffer was too small.
25670
25671         * elf/pldd.c (main): Attach to all threads in the process.
25672         Rewrite /proc handling to use *at functions.
25673
25674 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
25675
25676         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
25677         specifies first scope to show.
25678         (dl_open_worker): Update callers.  Move printing scope of new
25679         object to before the relocation.
25680         * elf/rtld.c (dl_main): Update _dl_show_scope call.
25681         * sysdeps/generic/ldsodefs.h: Update declaration.
25682
25683         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
25684         string for the scope number.
25685
25686 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
25687
25688         * nscd/servicescache.c (cache_addserv): Make sure written is always
25689         initialized.
25690
25691 2011-08-14  Roland McGrath  <roland@hack.frob.com>
25692
25693         * sysdeps/i386/i486/bits/atomic.h
25694         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
25695         statement expression, so as to suppress "set but not used" warning.
25696         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
25697
25698         * string/strncat.c (STRNCAT): Use prototype definition.
25699
25700         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
25701         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
25702         -Iprograms here.
25703         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
25704         (localedef-modules): Add localedef.
25705         (locale-modules): Add locale.
25706
25707         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
25708         * elf/rtld.c (dl_main): Invert order of assignment in last change,
25709         to avoid a warning.
25710
25711 2011-08-14  David S. Miller  <davem@davemloft.net>
25712
25713         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
25714         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
25715
25716 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
25717
25718         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
25719         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
25720         * elf/rtld.c (dl_main): Set l_name of vDSO.
25721         Call _dl_show_scope when DL_DEBUG_SCOPES.
25722         (process_dl_debug): Recognize scopes flag and also set it for all.
25723         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
25724         Declare _dl_show_scope.
25725
25726         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
25727         (do_dlopen): Pass caller_dlopen to dl_open.
25728         (__libc_dlopen_mode): Initialize caller_dlopen.
25729
25730         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
25731         of libc.  Make tolower call locale-independent.  Optimize a bit by
25732         using isdigit instead of isalnum.
25733         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
25734
25735 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
25736
25737         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
25738         was a dependency or dynamically loaded.
25739
25740 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
25741
25742         * intl/l10nflist.c: Allow architecture-specific pop function.
25743         * sysdeps/x86_64/l10nflist.c: New file.
25744
25745         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
25746         classification.
25747
25748 2011-08-10  Andreas Schwab  <schwab@redhat.com>
25749
25750         * include/dirent.h: Add libc_hidden_proto for scandirat and
25751         scandirat64.  Don't declare __scandirat64.
25752         * dirent/scandirat.c: Add libc_hidden_def.
25753         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
25754         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
25755
25756 2011-08-10  David S. Miller  <davem@davemloft.net>
25757
25758         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
25759         enum.
25760         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25761         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25762         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25763
25764 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
25765
25766         * Versions.def [libc]: Add GLIBC_2.15.
25767         * dirent/Makefile (routines): Add scandirat and scandirat64.
25768         * dirent/Versions [libc]: Export scandirat and scandirat64 for
25769         GLIBC_2.15.
25770         * dirent/dirent.h: Declare scandirat and scandirat64.
25771         * dirent/scandirat.c: New file.
25772         * dirent/scandirat64.c: New file.
25773         * sysdeps/wordsize-64/scandirat.c: New file.
25774         * sysdeps/wordsize-64/scandirat64.c: New file.
25775         * dirent/opendir.c: Define opendirat.
25776         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
25777         using scandirat.
25778         * dirent/scandir64.c: Adjust for scandir.c change.
25779         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
25780         __scandirat64, and __scandir_cancel_handler.
25781         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
25782         additional parameter and use openat instead of open (outside of ld.so).
25783         Add new __opendir as wrapper around __opendirat.
25784         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
25785         here without requiring old scandirat implementation.
25786
25787 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
25788
25789         * dirent/scandir.c (cancel_handler): Renamed to
25790         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
25791         defined.  Adjust users.
25792         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
25793         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
25794
25795 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
25796
25797         * string/test-string.h (IMPL): Use __STRING to expand name and then
25798         stringify it.
25799
25800         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
25801         of cleanups.
25802
25803 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25804
25805         * string/Makefile: Update.
25806         (strop-tests): Append strncat.
25807         * string/test-wcscmp.c: New file.
25808         New comprehensive test for wcscmp.
25809         * string/test-strcmp.c: Update.
25810         (WIDE): New define.
25811
25812 2011-07-22  Andreas Schwab  <schwab@redhat.com>
25813
25814         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
25815         line.
25816
25817 2011-07-26  Andreas Schwab  <schwab@redhat.com>
25818
25819         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25820         encoding to ACE if AI_IDN.
25821
25822 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
25823
25824         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
25825         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
25826
25827 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25828
25829         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
25830         Fix overflow bug in strncat.
25831         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
25832
25833         * string/test-strncat.c: Update.
25834         Add new tests for checking overflow bugs.
25835
25836 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25837
25838         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25839         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
25840         * sysdeps/i386/i686/multiarch/strcat.S: New file.
25841         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
25842         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
25843         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
25844         * sysdeps/i386/i686/multiarch/strncat.S: New file.
25845         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
25846         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
25847
25848         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
25849         (USE_AS_STRCAT): Define.
25850         Add strcat and strncat support.
25851         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
25852
25853 2011-07-25  Andreas Schwab  <schwab@redhat.com>
25854
25855         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
25856         __n bigger than INT_MAX+1.
25857         (__strncmp_g): Likewise.
25858
25859 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
25860
25861         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
25862         * libio/stido.h: Likewise.
25863
25864         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
25865         (AF_NFC): Define.
25866         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
25867         (AF_NFC): Define.
25868
25869         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
25870         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
25871         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
25872         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25873         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
25874
25875         [BZ #13021]
25876         * scripts/test-installation.pl: Don't expect libnss_test1 to be
25877         installed.
25878
25879         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
25880         typo.
25881         (_dl_x86_64_save_sse): Likewise.
25882
25883 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
25884
25885         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
25886         OSXSAVE.
25887         (_dl_x86_64_save_sse): Likewise.
25888
25889         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
25890
25891         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
25892
25893 2011-07-21  Andreas Schwab  <schwab@redhat.com>
25894
25895         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
25896         change.
25897         (_dl_x86_64_save_sse): Use correct AVX check.
25898
25899 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25900
25901         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
25902         bug in strncpy/strncat.
25903         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
25904
25905 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
25906
25907         * string/tester.c (test_strcat): Add tests for different alignments
25908         of source and destination.
25909         (test_strncat): Likewise.
25910
25911 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25912
25913         [BZ #12852]
25914         * posix/glob.c (glob): Check passed in values before using them in
25915         expressions to avoid some overflows.
25916         (glob_in_dir): Likewise.
25917
25918         [BZ #13007]
25919         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
25920         check for AVX enablement so that we don't crash with old kernels and
25921         new hardware.
25922         * elf/tst-audit4.c: Add same checks here.
25923         * elf/tst-audit6.c: Likewise.
25924
25925         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
25926
25927 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
25928
25929         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
25930
25931 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
25932
25933         * po/cs.po: Update from translation team.
25934         * po/bg.po: Likewise.
25935
25936 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
25937
25938         * misc/sys/cdefs.h: Add support for const attribute.
25939         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
25940         to gnu_dev_{major,minor,makedev} functions.
25941
25942 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
25943
25944         * intl/dcigettext.c (get_output_charset): Add missing bracket.
25945
25946 2011-07-20  Andreas Schwab  <schwab@redhat.com>
25947
25948         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
25949         strlen results.
25950
25951 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25952
25953         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
25954         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
25955         register in order to avoid conflicts with the soft frame pointer
25956         being held in r11 when necessary.
25957         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25958         (INTERNAL_VSYSCALL_NCS): Likewise.
25959
25960 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
25961
25962         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
25963         * elf/dl-fini.c (_dl_fini): Adjust caller.
25964         * elf/dl-close.c (_dl_close_worker): Likewise.
25965         * sysdeps/generic/ldsodefs.h: Adjust declaration.
25966
25967 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
25968
25969         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
25970         "aux_cache->nlibs < 0".
25971
25972         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
25973         in the reload-count case.
25974
25975 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
25976
25977         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25978         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
25979         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
25980         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
25981         * sysdeps/x86_64/multiarch/strcat.S: New file.
25982         * sysdeps/x86_64/multiarch/strncat.S: New file.
25983         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
25984         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
25985         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
25986         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
25987         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
25988         (USE_AS_STRCAT): Define.
25989         Add strcat and strncat support.
25990         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
25991         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
25992         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
25993         * string/strncat.c: Update.
25994         (USE_AS_STRNCAT): Define.
25995         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25996         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
25997         and i7.
25998         * sysdeps/x86_64/multiarch/init-arch.h
25999         (bit_Prefer_PMINUB_for_stringop): New.
26000         (index_Prefer_PMINUB_for_stringop): Likewise.
26001         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
26002         bit_Prefer_PMINUB_for_stringop.
26003
26004 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26005
26006         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
26007         buffer64.
26008         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
26009         of casting of buffer.
26010         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
26011         buffer32 and buffer64.
26012         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
26013         writes instead of casting of buffer.
26014         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
26015         buffer32.
26016         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
26017         casting of buffer.
26018
26019 2011-07-19  Andreas Schwab  <schwab@redhat.com>
26020
26021         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
26022
26023 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
26024
26025         * nscd/nscd.c (termination_handler): Don't do anything for a database
26026         if it has not yet been initialized.
26027
26028 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26029
26030         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26031
26032 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
26033
26034         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
26035
26036 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
26037
26038         * po/nl.po: Update from translation team.
26039         * po/sv.po: Likewise.
26040
26041 2011-07-16  Roland McGrath  <roland@hack.frob.com>
26042
26043         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
26044         now disallowed by GCC.
26045
26046         * configure.in (use-default-link): Default to yes if a test -shared
26047         link meets our qualifications.
26048         * configure: Regenerated.
26049
26050         * config.make.in (output-format): New variable.
26051         * configure.in: Check for ld --print-output-format support.
26052         * configure: Regenerated.
26053         * Makerules ($(common-objpfx)format.lds)
26054         [$(output-format) != unknown]: Just use $(output-format),
26055         instead of the linker-script munging.
26056
26057 2011-07-14  Roland McGrath  <roland@hack.frob.com>
26058
26059         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
26060         of $(common-objpfx)shlib.lds.
26061         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
26062
26063         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
26064         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
26065
26066         * configure.in (-z relro check): Adjust test code to add a large
26067         writable data section after it.
26068         * configure: Regenerated.
26069
26070 2011-07-11  Roland McGrath  <roland@hack.frob.com>
26071
26072         * configure.in (-z relro check): Fix test code to make the variable
26073         truly const.
26074         * configure: Regenerated.
26075
26076 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
26077
26078         * nscd/nscd.h (struct traced_file): Define.
26079         (struct database_dyn): Remove inotify_descr, reset_res, and filename
26080         elements.  Add traced_files.
26081         (inotify_fd): Declare.
26082         (register_traced_file): Declare.
26083         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
26084         (inotify_fd): Export.
26085         (resolv_conf_descr): Remove.
26086         (nscd_init): Move inotify descriptor creation to main.
26087         Don't register files for notification here.
26088         (register_traced_file): New function.
26089         (invalidate_cache): Don't use reset_res to determine whether to call
26090         res_init, go through the list of registered files.
26091         (main_loop_poll): The inotify descriptors are now stored in the
26092         structures for the traced files.
26093         (main_loop_epoll): Likewise
26094         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
26095         to __nss_disable_nscd.
26096         * nscd/cache.c (prune_cache): There is no single inotify descriptor
26097         for a database anymore.  Check the records for all the registered
26098         files instead.
26099         * nss/Makefile (libnss_files-routines): Add files-init.
26100         (libnss_db-routines): Add db-init.
26101         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
26102         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
26103         * nss/nss_db/db-init.c: New file.
26104         * nss/nss_files/files-init.c: New file.
26105         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
26106         __nss_lookup_function.
26107         (__nss_lookup_function): Call nss_load_library.
26108         (nss_load_all_libraries): New function.
26109         (__nss_disable_nscd): Take parameter with callback function for files
26110         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
26111         used for the cached services.
26112         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
26113         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
26114         options for features to all the files in nscd.
26115
26116         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
26117
26118 2011-07-10  Roland McGrath  <roland@hack.frob.com>
26119
26120         * csu/elf-init.c (__libc_csu_init): Comment typo.
26121
26122 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
26123
26124         * po/pl.po: Update from translation team.
26125         * po/ja.po: Likewise.
26126         * po/ru.po: Likewise.
26127         * po/ko.po: Likewise.
26128         * po/fr.po: Likewise.
26129
26130 2011-07-09  Roland McGrath  <roland@hack.frob.com>
26131
26132         * configure.in (.ctors/.dtors header and trailer check):
26133         Use an empirical test on a built program.
26134         * configure: Regenerated.
26135
26136         * configure.in (-z relro check): Use an empirical test on a built DSO.
26137         Detect, but do not require, on ia64.
26138         * configure: Regenerated.
26139
26140         * configure.in (READELF): Find it with AC_CHECK_TOOL.
26141         Update tests that use readelf to use $READELF instead.
26142         * configure: Regenerated.
26143
26144 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
26145
26146         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
26147         if the result is not used.
26148
26149 2011-07-05  Andreas Jaeger  <aj@suse.de>
26150
26151         [BZ#9696]
26152         * stdlib/tst-strtod.c: Add testcase.
26153
26154 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
26155
26156         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
26157         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
26158         The latter has a higher limit.  Take additional parameter to pass to
26159         the new function.
26160         (__pathconf): Pass file to __statfs_link_max.
26161         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
26162         __statfs_link_max.
26163         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
26164         __statfs_link_max.
26165
26166         [BZ #12868]
26167         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
26168         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26169         Handle Lustre.
26170         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
26171         (__statfs_filesize_max): Likewise.
26172         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
26173
26174 2011-07-05  Andreas Jaeger  <aj@suse.de>
26175
26176         * resolv/res_comp.c (dn_skipname): Remove unused variable.
26177
26178 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
26179
26180         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
26181         `status' variable.
26182         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
26183         Likewise.
26184
26185 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
26186
26187         * Makefile (strop-tests): Add strncat.
26188         * string/test-strncat.c: New file.
26189
26190 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
26191
26192         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
26193
26194 2011-06-21  Andreas Jaeger  <aj@suse.de>
26195
26196         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
26197         Copy rule from iconvdata/Makefile.
26198
26199 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26200
26201         [BZ #12922]
26202         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
26203         but no long options are defined, just return 'W'.
26204
26205 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
26206
26207         [BZ #9696]
26208         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
26209
26210 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
26211
26212         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
26213         netgroups to read.
26214         (innetgr): Likewise.
26215
26216 2011-07-05  Roland McGrath  <roland@hack.frob.com>
26217
26218         * config.make.in (install_root): Default to $(DESTDIR).
26219
26220 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
26221
26222         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
26223
26224 2011-07-02  Roland McGrath  <roland@hack.frob.com>
26225
26226         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
26227
26228         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
26229         containing directory rather than embedding absolute directory names.
26230
26231         * scripts/check-local-headers.sh: Rewritten using awk.
26232         Match by word, not by line.  Print error messages for matches.
26233         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
26234
26235         * Makerules [shlib-lds-flags empty]:
26236         ($(common-objpfx)libc_pic.opts): New target.
26237         ($(common-objpfx)libc_pic.os.clean): New target.
26238         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
26239
26240         * config.make.in (OBJCOPY): New variable.
26241         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
26242         * configure: Regenerated.
26243
26244         * config.make.in (use-default-link): New variable.
26245         * configure.in (use_default_link): Grok --with-default-link to set it.
26246         * configure: Regenerated.
26247         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
26248         (shlib-lds, shlib-lds-flags): Define to empty.
26249
26250         * Makerules (shlib-lds): New variable.
26251         (shlib-lds-flags): New variable.
26252         (build-shlib, build-moduile, build-module-asneeded): Use it.
26253         ($(common-objpfx)libc.so): Use $(shlib-lds).
26254         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
26255         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
26256
26257         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
26258         DT_FLAGS/DT_FLAGS_1 with zero flags.
26259
26260         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
26261         linker script munging.
26262
26263 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
26264
26265         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
26266         as 128-bit value.
26267         * crypt/sha512.c (sha512_process_block): Perform total addition using
26268         128-bit if possible.
26269         (__sha512_finish_ctx): Likewise.
26270         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
26271         as 64-bit value.
26272         * crypt/sha256.c (SWAP64): Define.
26273         (sha256_process_block): Perform total addition using 64-bit if
26274         possible.
26275         (__sha256_finish_ctx): Likewise.
26276
26277 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
26278
26279         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
26280         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26281         * nscd/hstcache.c (cache_addhst): Likewise.
26282         * nscd/grpcache.c (cache_addgr): Likewise.
26283         * nscd/aicache.c (addhstaiX): Likewise
26284         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
26285
26286 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
26287
26288         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
26289         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26290         * nscd/hstcache.c (cache_addhst): Likewise.
26291         * nscd/grpcache.c (cache_addgr): Likewise.
26292         * nscd/aicache.c (addhstaiX): Likewise
26293
26294 2011-07-01  Andreas Schwab  <schwab@redhat.com>
26295
26296         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
26297         domain only when needed.
26298
26299 2011-06-30  Andreas Schwab  <schwab@redhat.com>
26300
26301         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
26302         is always restored.
26303
26304 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
26305
26306         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
26307         are re-adding the entry.
26308         * nscd/servicescache.c (cache_addserv): Likewise.
26309
26310 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
26311
26312         * sysdeps/generic/dl-irel.h: fix protection against multiple
26313         inclusions.
26314         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
26315
26316 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
26317
26318         [BZ #12935]
26319         * malloc/memusage.sh: Fix quoting in message.
26320         * debug/xtrace.sh: Likewise.
26321
26322         * configure.in: Remove support for --experimental-malloc option, make
26323         it the default.
26324         * config.make.in: Likewise.
26325         * malloc/Makefile: Likewise.
26326
26327 2011-06-27  Andreas Schwab  <schwab@redhat.com>
26328
26329         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
26330         two-byte characters.
26331
26332 2011-06-27  Roland McGrath  <roland@hack.frob.com>
26333
26334         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
26335         AC_CACHE_CHECK invocation.
26336         * configure: Regenerated.
26337
26338         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
26339
26340 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
26341
26342         [BZ #12350]
26343         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
26344         bit from old_res_options.
26345
26346         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
26347
26348         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
26349         value type for setfct.
26350
26351 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
26352
26353         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26354         __gettimeofday instead of gettimeofday.
26355
26356 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
26357
26358         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
26359
26360 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
26361
26362         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
26363
26364         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
26365         info.
26366
26367 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26368
26369         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26370         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26371         strcpy-sse2-unaligned strncpy-sse2-unaligned
26372         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
26373         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
26374         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
26375         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
26376         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
26377         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
26378         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
26379         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
26380         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
26381         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
26382         (STRCPY): Support SSE2 and SSSE3 versions.
26383
26384 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
26385
26386         [BZ #12874]
26387         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
26388         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
26389         kernels which artificially limit size of requests.
26390
26391 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
26392
26393         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26394         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
26395         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
26396         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
26397         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
26398         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
26399         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
26400         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
26401         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
26402         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
26403         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
26404         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
26405         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
26406         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
26407         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
26408         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26409         Enable unaligned load optimization for Intel Core i3, i5 and i7
26410         processors.
26411         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
26412         Define.
26413         (index_Fast_Unaligned_Load): Define.
26414         (HAS_FAST_UNALIGNED_LOAD): Define.
26415
26416 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
26417
26418         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
26419
26420 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26421
26422         [BZ #12907]
26423         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
26424         until it is clear that the information is realy needed.
26425         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
26426
26427 2011-06-22  Andreas Schwab  <schwab@redhat.com>
26428
26429         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
26430
26431 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
26432
26433         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
26434         /sys/devices/system/cpu/online if it is usable.
26435
26436         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
26437         reading the information from the /proc filesystem to once a second.
26438
26439 2011-06-21  Andreas Jaeger  <aj@suse.de>
26440
26441         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
26442         NULL after inclusion of kernel headers.
26443
26444 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
26445
26446         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
26447         calls to internal_setent.
26448
26449         [BZ #12885]
26450         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
26451         addresses using gethostbyname4_r ignore IPv4 addresses.
26452
26453         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
26454         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
26455
26456         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
26457
26458 2011-06-20  David S. Miller  <davem@davemloft.net>
26459
26460         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
26461         inclusions.
26462         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
26463
26464         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
26465         (elf_irel): Use it.
26466         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
26467         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
26468         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
26469         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
26470         * sysdeps/x86_64/dl-irel.h: Likewise.
26471
26472         * elf/dl-runtime.c: Use elf_ifunc_invoke.
26473         * elf/dl-sym.c: Likewise.
26474
26475 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26476
26477         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
26478         need to dereference resplen2.
26479
26480 2011-06-14  Andreas Schwab  <schwab@redhat.com>
26481
26482         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
26483
26484 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
26485
26486         * Makeconfig: Define vardbdir and inst_vardbdir.
26487         * nss/Makefile: Add rules to install db-Makefile.
26488
26489         * nss/nss_db/db-XXX.c: Cleanup.
26490
26491         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
26492         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
26493         GLIBC_PRIVATE.
26494         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
26495         * nss/makedb.c: Implement -g option to specify that value strings
26496         are generated and should not be added to table iterated over for
26497         get*ent calls.
26498         * nss/nss_db/db-initgroups.c: New file.
26499
26500         * nss/getent.c: Add support for initgroups lookups through getgrouplist
26501         interface.
26502
26503         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
26504         (internal_getgrouplist): Adjust to name change.
26505         Update use_initgroups_entry if this is not the first call.
26506         * nss/databases.def: Add initgroups entry.
26507
26508         * nss/makedb.c (compute_tables): Check result of multiple hash table
26509         sizes to minimize maximum chain length.
26510
26511 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
26512
26513         * Versions.def: Add entry for libnss_db.
26514         * shlib-versions: Likewise.
26515         * nss/Makefile: Add rules to build libnss_db.
26516         * nss/Versions: Add libnss_db information.  Organize libnss_files
26517         entries better.
26518         * nss/db-Makefile: Add gshadow support.  Change rules for the new
26519         makedb progra.  Some minor improvements to generate smaller files.
26520         * nss/nss_db/nss_db.h: Move NSS database header data structures to
26521         here from...
26522         * nss/makedb.c: ...here.
26523         Improve database format to be smaller and require less memory at
26524         runtime.
26525         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
26526         db anymore.
26527         * nss/nss_db/db-netgrp.c: Likewise.
26528         * nss/nss_db/db-open.c: Likewise.
26529         * nss/nss_files/flies-XXX.x: Adjust comments.
26530         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
26531         * nss/nss_files/files-grp.c: Likewise.
26532         * nss/nss_files/files-hosts.c: Likewise.
26533         * nss/nss_files/files-network.c: Likewise.
26534         * nss/nss_files/files-proto.c: Likewise.
26535         * nss/nss_files/files-pwd.c: Likewise.
26536         * nss/nss_files/files-rpc.c: Likewise.
26537         * nss/nss_files/files-service.c: Likewise.
26538         * nss/nss_files/files-sgrp.c: Likewise.
26539         * nss/nss_files/files-spwd.c: Likewise.
26540         * nss/nss_db/db-alias.c: Removed.
26541         * nss/nss_db/dummy-db.h: Removed.
26542
26543 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
26544
26545         * nss/makedb.c: Rewritten to not use database library.
26546         * nss/Makefile: Update to build new makedb program.
26547
26548 2011-06-14  Andreas Jaeger  <aj@suse.de>
26549
26550         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
26551         memset declaration.
26552
26553 2011-06-10  Andreas Schwab  <schwab@redhat.com>
26554
26555         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
26556         tmpbuf.
26557
26558 2011-06-10  Roland McGrath  <roland@hack.frob.com>
26559
26560         * Makerules (shlib.lds): Fail if the linker script comes out empty.
26561         * elf/Makefile ($(objpfx)ld.so): Likewise.
26562
26563         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
26564         Don't list ld.so twice in dependencies.
26565
26566         * posix/bug-regex31.c: Include <stdlib.h>.
26567
26568         * nscd/hstcache.c (cache_addhst): Remove unused variable.
26569
26570         * nis/nss_compat/compat-spwd.c
26571         (getspent_next_nss_netgr): Remove unused variable.
26572         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
26573
26574         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
26575         nonmembers" output to use the right array.
26576
26577         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
26578
26579         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
26580
26581         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
26582         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
26583         * catgets/gencat.c (read_input_file): Likewise.
26584         * locale/programs/locarchive.c (enlarge_archive): Likewise.
26585
26586         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
26587         variable definition inside #if's controlling its use.
26588
26589         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
26590
26591         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
26592
26593         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
26594
26595         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
26596         unreachable code.
26597
26598         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
26599
26600         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
26601         * configure: Regenerated.
26602
26603         * Makerules: Revert last change.
26604         * elf/Makefile: Likewise.
26605
26606 2011-06-09  Roland McGrath  <roland@hack.frob.com>
26607
26608         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
26609         * elf/Makefile ($(objpfx)librtld.os): Likewise.
26610         (reloc-link): Likewise.
26611
26612 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
26613
26614         * elf/Makefile: Add rules to build pldd.
26615         * elf/pldd.c: New file.
26616         * elf/pldd-xx.c: New file.
26617
26618 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
26619
26620         * version.h: Update for 2.15 development version.
26621
26622 2011-06-07  David S. Miller  <davem@davemloft.net>
26623
26624         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
26625         ifuncs.
26626         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
26627         elf_machine_lazy_rel): Likewise.
26628         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
26629         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
26630         elf_machine_lazy_rel): Likewise.
26631         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
26632         dl_hwcap via passed in argument.
26633         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
26634         Likewise.
26635
26636 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26637
26638         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
26639
26640 2011-06-06  Roland McGrath  <roland@hack.frob.com>
26641
26642         [BZ #12849]
26643         * manual/fdl-1.1.texi: New file, verbatim from:
26644         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
26645         * manual/lgpl-2.1.texi: New file, verbatim from:
26646         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
26647         * manual/Makefile (licenses): New variable, list those new file names.
26648         (texis): Use it.
26649         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
26650
26651         * manual/fdl.texi: File removed.
26652         * manual/lesser.texi: File removed.
26653         * manual/libc.texinfo (Copying, Documentation License):
26654         Use new @include file names, put @appendix directive before @include.
26655
26656 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
26657
26658         [BZ #12841]
26659         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
26660         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
26661         (mq_open): Add __NTH.
26662
26663 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
26664
26665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26666         Assume Intel Core i3/i5/i7 processor if AVX is available.
26667
26668 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26669
26670         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
26671         typo.
26672
26673 2011-05-31  Andreas Schwab  <schwab@redhat.com>
26674
26675         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
26676         memory.  Use alloca_account.  Fix memory leak when retrying.
26677
26678 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
26679
26680         * version.h (RELEASE): Bump for 2.14 release.
26681         * include/features.h (__GLIBC_MINOR__): Bump to 14.
26682
26683         * config.make.in (RANLIB): Remove entry.
26684
26685 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
26686
26687         * po/Makefile (po-sed-cmd): Add ksh to extensions.
26688         (libc.pot): Work around missing support for .ksh extension in xgettext.
26689
26690         [BZ #12684]
26691         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
26692         if both request failed.
26693         (send_dg): In case of server errors clear resplen or *resplen2.
26694
26695         [BZ #12454]
26696         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
26697         when there are multiple maps.
26698         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
26699         (_dl_fini): Remove test here.
26700
26701         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
26702
26703 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
26704
26705         [BZ #12350]
26706         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
26707         bit from old_res_options.
26708         (gaih_inet): Likewise.
26709
26710         [BZ #11099]
26711         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
26712         as signed.
26713
26714         * resolv/res_init.c (res_setoptions): Make the code more compact.
26715
26716         [BZ #11558]
26717         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
26718         set RES_USEVC.
26719
26720         [BZ #11634]
26721         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
26722
26723         * malloc/malloc.h: Mark malloc hook variables as deprecated.
26724
26725         [BZ #11781]
26726         * malloc/malloc.h: Declare malloc hook variables as volatile.
26727
26728         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
26729         in last patch.
26730
26731         [BZ #11799]
26732         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
26733         raise in the comment.
26734         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26735         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26736         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
26737
26738 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
26739
26740         [BZ #12811]
26741         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
26742         grow the buffers more if it already has to be sufficient.
26743         (build_wcs_upper_buffer): Likewise.
26744         * posix/regexec.c (check_matching): Likewise.
26745         (clean_state_log_if_needed): Likewise.
26746         (extend_buffers): Don't enlarge buffers beyond size of the input
26747         buffer.
26748         Patches mostly by Emil Wojak <emil@wojak.eu>.
26749         * posix/bug-regex32.c: New file.
26750         * posix/Makefile (tests): Add bug-regex32.
26751
26752         * locale/findlocale.c (_nl_find_locale): Return right away if
26753         _nl_explode_name failed.
26754         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
26755
26756         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
26757
26758         * debug/xtrace.sh: Unify messages.
26759         * malloc/memusage.sh: Likewise.
26760
26761         [BZ #12813]
26762         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
26763         time symbol from vDSO.  Substitute with vsyscall if not available.
26764         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
26765         __vdso_time.
26766
26767         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
26768         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
26769         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
26770         Add sendmmsg and internal_sendmmsg.
26771         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
26772         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
26773         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
26774
26775         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
26776         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
26777         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
26778
26779 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
26780
26781         [BZ #12813]
26782         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
26783         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
26784         available.
26785         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
26786         __vdso_getcpu.
26787
26788         [BZ #12814]
26789         * iconvdata/Makefile (tests): Add bug-iconv9.
26790         * iconvdata/bug-iconv9.c: New file.
26791
26792 2011-05-27  Andreas Schwab  <schwab@redhat.com>
26793
26794         [BZ #12814]
26795         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
26796
26797 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
26798
26799         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26800         (struct user_regs_struct): Change intcs field back to cs.
26801
26802 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
26803
26804         * po/ja.po: Update from translation team.
26805
26806 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
26807
26808         [BZ #12795]
26809         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
26810         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
26811
26812 2011-05-20  Andreas Schwab  <schwab@redhat.com>
26813
26814         * stdlib/longlong.h: Update from GCC.
26815
26816 2011-05-23  Andreas Schwab  <schwab@redhat.com>
26817
26818         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
26819         parameter name.
26820         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
26821         Add parameter name.
26822         (__sysconf): Pass it down.
26823
26824 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
26825
26826         [BZ #12671]
26827         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
26828         some situations.
26829         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26830         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
26831         add in in __libc_use_alloca calls.  Adjust callers.
26832         (glob): Use malloc in some situations.
26833
26834         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
26835         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
26836         pltexit.
26837
26838 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
26839
26840         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
26841         and CLOCK_BOOTTIME_ALARM.
26842
26843         [BZ #12782]
26844         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
26845         is returned.
26846
26847         * string/_strerror.c (__strerror_r): Print negative errors as signed
26848         numbers.
26849
26850         [BZ #12777]
26851         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
26852         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
26853         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
26854
26855         * configure.in: Fix typo in redirection and correct removal of test
26856         files in two cases.
26857
26858         [BZ #12788]
26859         * locale/setlocale.c (new_composite_name): Fix test to check for
26860         identical name of all categories.
26861
26862         [BZ #12792]
26863         * libio/filedoalloc.c (local_isatty): New function.
26864         (_IO_file_doallocate): Use local_isatty.
26865         * stdio-common/perror.c (perror): In case a new stream is used
26866         forward the stream error.
26867         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
26868         error flag.
26869
26870 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
26871
26872         [BZ #11869]
26873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
26874         alloca.
26875         * include/alloca.h (extend_alloca_account): Define.
26876
26877         [BZ #11857]
26878         * posix/regex.h: Fix comments with documentation of user-accessible
26879         fields after compilation and describe correct free'ing of pattern
26880         after re_compile_pattern.
26881         Patch by Reuben Thomas <rrt@sc3d.org>.
26882
26883 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
26884
26885         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
26886         and -mno-altivec to prevent the compiler from using Altivec and/or
26887         VSX instructions when the corresponding registers are not available.
26888
26889 2011-05-19  Andreas Schwab  <schwab@redhat.com>
26890
26891         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
26892
26893 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
26894
26895         * libio/freopen.c (freopen): Use __dup2, not dup2.
26896         * libio/freopen64.c (freopen64): Likewise.
26897
26898 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
26899
26900         [BZ #12775]
26901         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
26902         * math/Makefile (tests): Add test-powl.
26903         (CFLAGS-test-powl.c): Define.
26904         * math/test-powl.c: New file.
26905
26906 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
26907
26908         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
26909
26910 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
26911
26912         [BZ #11837]
26913         * iconvdata/gb18030.c: Update to GB18020-2005.
26914
26915 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
26916
26917         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
26918         RE_SYNTAX_POSIX_AWK): Update to match recent development.
26919         Patch by Aharon Robbins <arnold@skeeve.com>.
26920
26921         [BZ #11892]
26922         * stdlib/putenv.c (putenv): Don't always create copy of the variable
26923         on the stack.
26924
26925         [BZ #11895]
26926         * misc/pselect.c (__pselect): Handle timeout value errors hidden
26927         through underflows.
26928
26929         [BZ #12766]
26930         * misc/error.c (error_at_line): Ensure file_name and old_file_name
26931         point to strings before performing equality test for error_one_per_line
26932         mode.
26933
26934         [BZ #11697]
26935         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
26936
26937         [BZ #11820]
26938         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
26939         (struct user_fpregs_struct): Avoid __uint*_t types.
26940
26941         [BZ #6420]
26942         * malloc/mtrace.c (tr_where): Add additional parameter to point to
26943         symbol info.  Use it instead of calling _dl_addr locally.
26944         (lock_and_info): New function.
26945         (tr_freehook): Call lock_and_info and pass symbol info as additional
26946         parameter to tr_where.
26947         (tr_mallochook): Likewise.
26948         (tr_reallochook): Likewise.
26949         (tr_memalignhook): Likewise.
26950
26951         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
26952         used and couldn't be at all thread-safe.
26953
26954 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
26955
26956         * libio/freopen.c (freopen): Don't close old file descriptor
26957         before the new one is opened.  Instead dup the new file descriptor
26958         to the old one after the new stream is created.
26959         * libio/freopen64.c (freopen64): Likewise.
26960         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
26961         * libio/fileops.c (_IO_new_file_close_it): Handle new
26962         _IO_FLAGS2_NOCLOSE flag.
26963         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
26964         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
26965         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
26966         _IO_FLAGS2_NOCLOSE flag.
26967         * include/unistd.h: Add hidden_proto for dup3.
26968         Define __have_dup3.
26969         * io/dup3.c: Define hidden symbol.
26970         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
26971
26972         [BZ #7101]
26973         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
26974         when an incomplete long option is used.
26975         * posix/tst-getopt_long1.c: New file.
26976         * posix/Makefile (tests): Add tst-getopt_long1.
26977
26978         [BZ #10138]
26979         * scripts/config.guess: Update from autoconf-2.68.
26980         * scripts/config.sub: Likewise.
26981
26982         [BZ #10157]
26983         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
26984         tests into ...
26985         (has_cpuclock): ...this.  New function.
26986         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
26987         macro here based on has_cpuclock code.
26988
26989         [BZ #10149]
26990         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26991         First byte (not low byte) is now always NUL.
26992         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
26993
26994         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
26995         Use non-cancelable interfaces.
26996
26997         [BZ #9809]
26998         * locale/iso-639.def: Add entry for Sorani.
26999
27000         [BZ #11901]
27001         * include/stdlib.h: Move include protection to the right place.
27002         Define abort_msg_s.  Declare __abort_msg with it.
27003         * stdlib/abort.c (__abort_msg): Adjust type.
27004         * assert/assert.c (__assert_fail_base): New function.  Majority
27005         of code from __assert_fail.  Allocate memory for __abort_msg with
27006         mmap.
27007         (__assert_fail): Now call __assert_fail_base.
27008         * assert/assert-perr.c: Remove bulk of implementation.  Use
27009         __assert_fail_base.
27010         * include/assert.hL Declare __assert_fail_base.
27011         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
27012         mmap.
27013         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
27014
27015 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
27016
27017         [BZ #11952]
27018         [BZ #12453]
27019         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
27020         until all modules are registered in the DTV.
27021         * elf/Makefile: Add rules to build and run tst-tls19.
27022         * elf/tst-tls19.c: New file.
27023         * elf/tst-tls19mod1.c: New file.
27024         * elf/tst-tls19mod2.c: New file.
27025         * elf/tst-tls19mod3.c: New file.
27026         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
27027
27028         [BZ #12083]
27029         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
27030         correctly.
27031
27032         [BZ #12601]
27033         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
27034         two-byte sequence errors.
27035         * iconvdata/Makefile (tests): Add bug-iconv8.
27036         * iconvdata/bug-iconv8.c: New file.
27037
27038         [BZ #12626]
27039         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
27040         buf2 definition.
27041
27042         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
27043
27044         [BZ #12432]
27045         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
27046         (dummy_getcfa): New function.
27047         (init): Get _Unwind_GetCFA address, use dummy if not found.
27048         (backtrace_helper): In recursion check, also check whether CFA changes.
27049         (__backtrace): Completely initialize arg.
27050
27051         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
27052         storing incomplete byte sequence in state object.  Avoid testing for
27053         guaranteed too small input if we know there is enough data available.
27054
27055 2011-05-11  Andreas Schwab  <schwab@redhat.com>
27056
27057         * Makeconfig (+link-pie): Indent.
27058         * Rules (binaries-pie): Define if $(have-fpie) and
27059         $(build-shared).
27060         (binaries-shared): Also filter out $(binaries-pie).
27061         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
27062         * nscd/Makefile (others-pie): Add nscd.
27063         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
27064         ($(objpfx)nscd): Remove command override.
27065         * login/Makefile (others-pie): Add pt_chown.
27066         ($(objpfx)pt_chown): Remove command override.
27067         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
27068         remove command overrides.
27069
27070 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
27071
27072         * libio/tst_putwc.c: Fix error messages.
27073
27074         [BZ #12724]
27075         * libio/fileops.c (_IO_new_file_close_it): Always flush when
27076         currently writing and seek to current position when not.
27077         * libio/Makefile (tests): Add bug-fclose1.
27078         * libio/bug-fclose1.c: New file.
27079
27080 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
27081
27082         [BZ #12511]
27083         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
27084         don't set DF_1_NODELETE here.
27085         (do_lookup_x): When entering new entry test for copy relocation
27086         and if necessary set DF_1_NODELETE flag.
27087         * elf/tst-unique4.cc: New file.
27088         * elf/tst-unique4.h: New file.
27089         * elf/tst-unique4lib.cc: New file.
27090         * elf/Makefile: Add rules to build and run tst-unique4.
27091         Patch by Piotr Bury <pbury@goahead.com>.
27092
27093 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
27094
27095         [BZ #12052]
27096         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
27097
27098         [BZ #12625]
27099         * misc/mntent_r.c (addmntent): Flush the stream after the output
27100
27101         [BZ #12393]
27102         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
27103         (is_trusted_path_normalize): Skip initial colon.  Append slash
27104         to empty buffer.  Duplicate is_trusted_path code but allow
27105         constructed patch to be prefix.
27106         (is_dst): Allow $ORIGIN followed by /.
27107         (_dl_dst_substitute): Correct clearing of check_for_trusted.
27108         Correct testing of result of is_trusted_path_normalize
27109         (decompose_rpath): Fix warning.
27110
27111 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
27112
27113         [BZ #11257]
27114         * grp/initgroups.c (internal_getgrouplist): When we found the service
27115         list through the initgroups entry in nsswitch.conf do not always
27116         continue on a successful lookup.  Don't always use the
27117         __nss_group_database value if it is set.
27118         * nss/nsswitch.conf (initgroups): Change action for successful db
27119         lookup to continue for compatibility.
27120
27121 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
27122
27123         [BZ #11532]
27124         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
27125         and CP774 modules.
27126         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
27127         and CP774 modules.
27128         * iconvdata/tst-tables.sh: Likewise.
27129         * iconvdata/cp770.c: New file.
27130         * iconvdata/cp771.c: New file.
27131         * iconvdata/cp772.c: New file.
27132         * iconvdata/cp773.c: New file.
27133         * iconvdata/cp774.c: New file.
27134         * iconvdata/testdata/CP770: New file.
27135         * iconvdata/testdata/CP770..UTF8: New file.
27136         * iconvdata/testdata/CP771: New file.
27137         * iconvdata/testdata/CP771..UTF8: New file.
27138         * iconvdata/testdata/CP772: New file.
27139         * iconvdata/testdata/CP772..UTF8: New file.
27140         * iconvdata/testdata/CP773: New file.
27141         * iconvdata/testdata/CP773..UTF8: New file.
27142         * iconvdata/testdata/CP774: New file.
27143         * iconvdata/testdata/CP774..UTF8: New file.
27144
27145         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
27146         END CHARMAP line.
27147         * iconvdata/gen-8bit-gap.sh: Likewise.
27148         * iconvdata/gen-8bit.sh: Likewise.
27149
27150         * locale/iso-639.def: Add ary entry.
27151
27152         [BZ #11258]
27153         * locale/C-translit.h.in: Add U20A1 transliteration.
27154
27155         [BZ #12178]
27156         * locale/iso-639.def: Add wae entry.
27157         Patch by Kevin Bortis <bortis@translate-wae.ch>.
27158
27159         [BZ #12545]
27160         * locale/programs/localedef.c (construct_output_path): Use ssize_t
27161         for n.
27162
27163         [BZ #12711]
27164         * locale/C-translit.h.in: Add entry for U20B9.
27165         Patch by pravin.d.s@gmail.com.
27166
27167 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
27168
27169         [BZ #12713]
27170         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
27171         ENAMETOOLONG use generic getcwd.
27172         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
27173         in rtld.  Use *stat64.
27174         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
27175         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
27176         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
27177         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
27178         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
27179         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
27180         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
27181         __fstatat64 macros.
27182         * include/dirent.h: Add libc_hidden_proto for rewinddir.
27183         * dirent/rewinddir.c: Add libc_hidden_def.
27184         * sysdeps/mach/hurd/rewinddir.c: Likewise.
27185         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
27186
27187         * include/dirent.h (__alloc_dir): Add flags parameter.
27188         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
27189         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
27190         __alloc_dir.
27191         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
27192         from fdopendir if O_CLOEXEC is already set.
27193
27194 2011-03-15  Alan Modra  <amodra@gmail.com>
27195
27196         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
27197         l_tls_firstbyte_offset non-zero.  Save padding offset in
27198         l_tls_firstbyte_offset for later use.
27199         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
27200         freeing static tls block.
27201
27202 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
27203
27204         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
27205         where #ifdef was intended.  The intent is to prevent ARG_MAX from
27206         being defined by the kernel headers.
27207
27208 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
27209
27210         [BZ #12734]
27211         * resolv/resolv.h: Define RES_NOTLDQUERY.
27212         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
27213         no-tld-query and set RES_NOTLDQUERY.
27214         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
27215         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
27216         modern BIND to search name as TLD unless forbidden.
27217
27218 2011-05-07  Petr Baudis  <pasky@suse.cz>
27219             Ulrich Drepper  <drepper@gmail.com>
27220
27221         [BZ #12393]
27222         * elf/dl-load.c (fillin_rpath): Move trusted path check...
27223         (is_trusted_path): ...to here.
27224         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
27225         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
27226         using is_trusted_path_normalize() in setuid scripts.
27227
27228 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27229
27230         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
27231         __BEGIN/__END_DECLS.
27232
27233 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
27234
27235         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
27236         NSS_STATUS_NOTFOUND if no record was found.
27237
27238 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27239
27240         * sunrpc/Makefile (headers): Add rpc/netdb.h.
27241         (headers-not-in-tirpc): Remove rpc/netdb.h
27242         * resolv/netdb.h: Revert last change.
27243
27244 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27245
27246         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
27247         circular dependency between libgcc.a and libc.a.
27248
27249 2011-05-05  Andreas Schwab  <schwab@redhat.com>
27250
27251         * resolv/netdb.h: Don't include <rpc/netdb.h>.
27252         * nis/Makefile: Don't install rpcsvc/*.
27253         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
27254         instead of <rpc/types.h>.
27255         (MAXHOSTNAMELEN): Define.
27256
27257 2011-05-03  Andreas Schwab  <schwab@redhat.com>
27258
27259         * elf/ldconfig.c (add_dir): Don't crash on empty path.
27260
27261 2011-04-28  Maciej Babinski  <mbabinski@google.com>
27262
27263         [BZ #12714]
27264         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
27265         gethostbyname4_r when IPv6 results are possible.
27266
27267 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
27268
27269         [BZ #12723]
27270         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
27271         _PC_PIPE_BUF handling.
27272
27273 2011-04-30  Bruno Haible  <bruno@clisp.org>
27274
27275         [BZ #12717]
27276         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
27277         * resolv/netdb.h (getnameinfo): Change type of flags parameter
27278         to 'int'.
27279         * inet/getnameinfo.c (getnameinfo): Likewise.
27280
27281 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
27282
27283         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
27284         to groups setting in database lookup.
27285         * nss/nsswitch.conf: Add initgroups entry.
27286
27287 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
27288
27289         [BZ #12685]
27290         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
27291         mode string.
27292         Patch by Eric Blake <eblake@redhat.com>.
27293
27294 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
27295
27296         * sunrpc/Makefile (need-export-routines): Add svc_run.
27297         (routines): Remove svc_run.
27298         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
27299         * sunrpc/clnt_perr.c (clnt_perrno): Export.
27300         * sunrpc/svc_run.c (svc_run): Likewise.
27301         * sunrpc/svc_udp.c (svcudp_create): Likewise.
27302
27303 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
27304
27305         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
27306         problem in reallocation in last patch.
27307
27308 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
27309
27310         * sunrpc/Makefile: Move inclusion of Rules.
27311
27312 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27313
27314         * nss/nss_files/files-initgroups.c: New file.
27315         * nss/Makefile (libnss_files-routines): Add files-initgroups.
27316         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
27317         _nss_files_initgroups_dyn.
27318
27319 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
27320
27321         * elf/elf.h (R_ARM_IRELATIVE): Define.
27322
27323 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
27324
27325         * po/ru.po: Update from translation team.
27326
27327 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27328
27329         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
27330         dependencies.
27331
27332 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
27333
27334         [BZ #12653]
27335         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
27336         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
27337         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27338         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27339         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
27340
27341 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
27342
27343         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
27344         differing bytes.
27345         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
27346         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
27347         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
27348
27349 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
27350
27351         [BZ #12420]
27352         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
27353         storing it.
27354         * stdlib/bug-getcontext.c: New file.
27355         * stdlib/Makefile: Add rules to build and run bug-getcontext.
27356
27357 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27358
27359         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
27360         instructions into .machine "z9-109".
27361         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
27362         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
27363
27364 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27365
27366         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
27367         between environment variables and auxiliary vector.
27368
27369 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
27370
27371         * Makefile: Add rules to build linkobj/libc.so.
27372         * include/libc-symbols.h: Define libc_hidden_nolink.
27373         * include/rpc/auth.h: Mark functions which are to be hidden.
27374         * include/rpc/auth_des.h: Likewise.
27375         * include/rpc/auth_unix.h: Likewise.
27376         * include/rpc/clnt.h: Likewise.
27377         * include/rpc/des_crypt.h: Likewise.
27378         * include/rpc/key_prot.h: Likewise.
27379         * include/rpc/pmap_clnt.h: Likewise.
27380         * include/rpc/pmap_prot.h: Likewise.
27381         * include/rpc/pmap_rmt.h: Likewise.
27382         * include/rpc/rpc_msg.h: Likewise.
27383         * include/rpc/svc.h: Likewise.
27384         * include/rpc/svc_auth.h: Likewise.
27385         * include/rpc/xdr.h: Likewise.
27386         * nis/Makefile: Link all DSOs against linkobj/libc.so.
27387         * nss/Makefile: Likewise.
27388         * sunrpc/Makefile: Don't install headers.  Build library with normal
27389         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
27390         * sunrpc/auth_des.c: Hide exported symbols by default, export some
27391         for the compat linking library.  Remove use of INTDEF/INTUSE.
27392         * sunrpc/auth_none.c: Likewise.
27393         * sunrpc/auth_unix.c: Likewise.
27394         * sunrpc/authdes_prot.c: Likewise.
27395         * sunrpc/authuxprot.c: Likewise.
27396         * sunrpc/clnt_gen.c: Likewise.
27397         * sunrpc/clnt_perr.c: Likewise.
27398         * sunrpc/clnt_raw.c: Likewise.
27399         * sunrpc/clnt_simp.c: Likewise.
27400         * sunrpc/clnt_tcp.c: Likewise.
27401         * sunrpc/clnt_udp.c: Likewise.
27402         * sunrpc/clnt_unix.c: Likewise.
27403         * sunrpc/des_crypt.c: Likewise.
27404         * sunrpc/des_soft.c: Likewise.
27405         * sunrpc/get_myaddr.c: Likewise.
27406         * sunrpc/key_call.c: Likewise.
27407         * sunrpc/key_prot.c: Likewise.
27408         * sunrpc/netname.c: Likewise.
27409         * sunrpc/pm_getmaps.c: Likewise.
27410         * sunrpc/pm_getport.c: Likewise.
27411         * sunrpc/pmap_clnt.c: Likewise.
27412         * sunrpc/pmap_prot.c: Likewise.
27413         * sunrpc/pmap_prot2.c: Likewise.
27414         * sunrpc/pmap_rmt.c: Likewise.
27415         * sunrpc/publickey.c: Likewise.
27416         * sunrpc/rpc_cmsg.c: Likewise.
27417         * sunrpc/rpc_common.c: Likewise.
27418         * sunrpc/rpc_dtable.c: Likewise.
27419         * sunrpc/rpc_prot.c: Likewise.
27420         * sunrpc/rpc_thread.c: Likewise.
27421         * sunrpc/rtime.c: Likewise.
27422         * sunrpc/svc.c: Likewise.
27423         * sunrpc/svc_auth.c: Likewise.
27424         * sunrpc/svc_authux.c: Likewise.
27425         * sunrpc/svc_raw.c: Likewise.
27426         * sunrpc/svc_run.c: Likewise.
27427         * sunrpc/svc_simple.c: Likewise.
27428         * sunrpc/svc_tcp.c: Likewise.
27429         * sunrpc/svc_udp.c: Likewise.
27430         * sunrpc/svc_unix.c: Likewise.
27431         * sunrpc/svcauth_des.c: Likewise.
27432         * sunrpc/xcrypt.c: Likewise.
27433         * sunrpc/xdr.c: Likewise.
27434         * sunrpc/xdr_array.c: Likewise.
27435         * sunrpc/xdr_float.c: Likewise.
27436         * sunrpc/xdr_intXX_t.c: Likewise.
27437         * sunrpc/xdr_mem.c: Likewise.
27438         * sunrpc/xdr_rec.c: Likewise.
27439         * sunrpc/xdr_ref.c: Likewise.
27440         * sunrpc/xdr_sizeof.c: Likewise.
27441         * sunrpc/xdr_stdio.c: Likewise.
27442
27443 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
27444
27445         [BZ #12650]
27446         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
27447         * sysdeps/ia64/dl-tls.h: Likewise.
27448         * sysdeps/powerpc/dl-tls.h: Likewise.
27449         * sysdeps/s390/dl-tls.h: Likewise.
27450         * sysdeps/sh/dl-tls.h: Likewise.
27451         * sysdeps/sparc/dl-tls.h: Likewise.
27452         * sysdeps/x86_64/dl-tls.h: Likewise.
27453         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
27454
27455 2011-03-14  Andreas Schwab  <schwab@redhat.com>
27456
27457         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
27458         rpath element also skip the following colon.
27459         (expand_dynamic_string_token): Add is_path parameter and pass
27460         down to DL_DST_REQUIRED and _dl_dst_substitute.
27461         (decompose_rpath): Call expand_dynamic_string_token with
27462         non-zero is_path.  Ignore empty rpaths.
27463         (_dl_map_object_from_fd): Call expand_dynamic_string_token
27464         with zero is_path.
27465
27466 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
27467
27468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27469         Make cancelable.
27470
27471 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
27472
27473         [BZ #12655]
27474         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
27475         Patch by Filipe David Manana <fdmanana@apache.org>.
27476
27477 2011-04-07  Andreas Schwab  <schwab@redhat.com>
27478
27479         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
27480         Maintain aligned stack.
27481         (CHECK_RSP): Remove unused macro.
27482
27483 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
27484
27485         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
27486         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
27487
27488 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
27489
27490         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
27491
27492         * include/features.h: Mention __USE_XOPEN2K8 in comment.
27493
27494 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
27495
27496         [BZ #12518]
27497         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
27498         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
27499         * sysdeps/x86_64/memmove.c: New file.
27500         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
27501         (memcpy): Renamed to ...
27502         (__new_memcpy): This.
27503         (memcpy): Provide GLIBC_2_14 memcpy.
27504         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
27505         (memcpy): Provide GLIBC_2_2_5 memcpy.
27506
27507 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27508
27509         [BZ #12631]
27510         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
27511
27512 2011-03-30  Andreas Schwab  <schwab@redhat.com>
27513
27514         * misc/syncfs.c: New file.
27515         * misc/Makefile (routines): Add syncfs.
27516         * posix/unistd.h: Declare syncfs.
27517         * sysdeps/unix/syscalls.list: Add syncfs.
27518
27519 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27520
27521         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
27522         open_by_handle_at.
27523         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
27524         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27525         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27526         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27527         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27528         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
27529         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27530
27531 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27532
27533         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
27534         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27535         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
27536         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27537         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27538         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27539         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27540
27541         * io/Makefile: Compile fallocate.c, fallocate64.c, and
27542         sync_file_range.c with -fexceptions.
27543         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
27544         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
27545         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
27546         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
27547         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
27548         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27549         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
27550         sync_file_range as cancellation point
27551         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
27552         now a wrapper around __call_sync_file_range with cancellation handling.
27553         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
27554         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
27555         function name to __call_sync_file_range.
27556         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
27557         Add call_sync_file_range.
27558
27559 2011-04-01  Andreas Schwab  <schwab@redhat.com>
27560
27561         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27562         bits/timex.h.
27563
27564 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
27565
27566         * iconv/iconv.h: Fix typo in comment.
27567         * io/fcntl.h: Likewise.
27568         * libio/stdio.h: Likewise.
27569         * posix/spawn.h: Likewise.
27570         * posix/unistd.h: Likewise.
27571         * stdlib/stdlib.h: Likewise.
27572         * time/time.h: Likewise.
27573         * wcsmbs/wchar.h: Likewise.
27574
27575         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
27576         open_by_handle): Add.
27577         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
27578         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
27579         Augment a few comments.
27580         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
27581         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27582         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
27583         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27584         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
27585         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
27586         open_by_handle.
27587
27588         * io/fcntl.h (AT_EMPTY_PATH): Define.
27589
27590 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
27591
27592         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
27593         * sysdeps/unix/sysv/linux/bits/time.h: New file.
27594         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
27595         to...
27596         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
27597         * Versions.def: Add GLIBC_2.14.
27598         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
27599         Export.
27600
27601 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
27602
27603         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
27604         round counter.
27605         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27606
27607 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27608
27609         [BZ #12597]
27610         * string/test-strncmp.c (do_page_test): New function.
27611         (check2): Likewise.
27612         (test_main): Call check2.
27613         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
27614
27615 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
27616
27617         [BZ #12587]
27618         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
27619         Handle cache information in CPU leaf 4.
27620         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
27621
27622 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
27623
27624         [BZ #12583]
27625         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
27626         character representation.
27627         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
27628
27629 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
27630
27631         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
27632         END(__isnan) to END(__isnanf) to match function entry point/label
27633         EALIGN(__isnanf,...).
27634
27635 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27636
27637         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
27638
27639 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
27640
27641         [BZ #12510]
27642         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
27643         copy from the symbol referenced in the relocation to initialize the
27644         used variable.
27645         Patch by Piotr Bury <pbury@goahead.com>.
27646         * elf/Makefile: Add rules to build and tst-unique3.
27647         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
27648         * elf/tst-unique3.cc: New file.
27649         * elf/tst-unique3.h: New file.
27650         * elf/tst-unique3lib.cc: New file.
27651         * elf/tst-unique3lib2.cc: New file.
27652
27653         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
27654
27655 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
27656
27657         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
27658         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
27659         to _start.
27660
27661 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
27662
27663         * elf/dl-load.c (_dl_map_object): If we are looking for the first
27664         to-be-loaded object along a path to loader is ld.so.
27665
27666 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27667             Ulrich Drepper  <drepper@gmail.com>
27668
27669         * sysdeps/x86_64/memset.S: After aligning destination, code
27670         branches to different locations depending on the value of
27671         misalignment, when multiarch is enabled. Fix this.
27672
27673 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
27674
27675         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
27676         Set _x86_64_preferred_memory_instruction for AMD processsors.
27677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27678         Set bit_Prefer_SSE_for_memop for AMD processors.
27679
27680 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
27681
27682         * libio/fmemopen.c (fmemopen): Optimize a bit.
27683
27684 2011-03-03  Andreas Schwab  <schwab@redhat.com>
27685
27686         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
27687
27688 2011-03-03  Roland McGrath  <roland@redhat.com>
27689
27690         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
27691
27692 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
27693
27694         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
27695         __bzero_ultra1 instead of __memset_ultra1.
27696
27697 2011-02-23  Andreas Schwab  <schwab@redhat.com>
27698             Ulrich Drepper  <drepper@gmail.com>
27699
27700         [BZ #12509]
27701         * include/link.h (struct link_map): Add l_orig_initfini.
27702         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
27703         returning unsuccessfully.
27704         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
27705         close of a file loaded at startup, restore the original l_initfini
27706         list.
27707         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
27708         list, store the pointer.
27709         * elf/Makefile ($(objpfx)noload-mem): New rule.
27710         (noload-ENV): Define.
27711         (tests): Add $(objpfx)noload-mem.
27712         * elf/noload.c: Include <memcheck.h>.
27713         (main): Call mtrace.  Close all opened handles.
27714
27715 2011-02-17  Andreas Schwab  <schwab@redhat.com>
27716
27717         [BZ #12454]
27718         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
27719         dependencies are missing.
27720
27721 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27722
27723         Fix __if_freereq crash: Unlike the generic version which uses free,
27724         Hurd needs munmap.
27725         * sysdeps/mach/hurd/ifreq.h: New file.
27726
27727 2011-01-27  Petr Baudis  <pasky@suse.cz>
27728             Ulrich Drepper  <drepper@gmail.com>
27729
27730         [BZ 12445]#
27731         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
27732         to extend_alloca().
27733         * stdio-common/bug23.c: New file.
27734         * stdio-common/Makefile (tests): Add bug23.
27735
27736 2010-09-28  Andreas Schwab  <schwab@redhat.com>
27737             Ulrich Drepper  <drepper@gmail.com>
27738
27739         [BZ #12489]
27740         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
27741         before performing relro protection.  At old place add assertion
27742         to make sure nothing changed.
27743
27744 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
27745             Glauber de Oliveira Costa  <glommer@gmail.com>
27746
27747         * elf/elf.h: Add new ARM TLS relocs.
27748
27749 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
27750
27751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
27752         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
27753         cast from r3.
27754         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
27755         'tests' variable.
27756         * sysdeps/wordsize-64/tst-writev.c: New file.
27757
27758 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
27759
27760         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
27761         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
27762         insns in _dl_start to prevent a TOC reference before relocs are
27763         resolved.
27764
27765 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
27766
27767         [BZ #12469]
27768         * Makeconfig: Remove RANLIB definition.
27769         * Makerules: Don't use RANLIB.
27770         * aclocal.m4: Remove ranlib test.
27771         * configure.in: No need to check for ranlib.
27772         * elf/rtld-Rules: Don't use RANLIB.
27773
27774 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27775
27776         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
27777         protection macro.
27778         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
27779         inclusion protection macro.
27780
27781         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
27782         SIGRTMIN and SIGRTMAX and print information in that case only when
27783         SIGRTMIN is defined.
27784
27785 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27786
27787         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
27788         arginfo fn returning -1.
27789
27790         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
27791         and thousands string is zero terminated.
27792
27793 2011-02-03  Andreas Schwab  <schwab@redhat.com>
27794
27795         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
27796         sysdeps/unix/sysv/linux/bits/socket.h.
27797
27798 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27799
27800         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
27801         (__CPU_COUNT): Remove old macros.
27802         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
27803         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
27804         (__CPU_ALLOC, __CPU_FREE): Add macros.
27805         (__sched_cpualloc, __sched_cpufree): Add declarations.
27806
27807 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
27808
27809         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
27810         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
27811         * nscd/aicache.c (addhstaiX): Return timeout of added value.
27812         (readdhstai): Return value of addhstaiX call.
27813         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
27814         (addgrbyX): Return value returned by cache_addgr.
27815         (readdgrbyname): Return value returned by addgrbyX.
27816         (readdgrbygid): Likewise.
27817         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
27818         (addpwbyX): Return value returned by cache_addpw.
27819         (readdpwbyname): Return value returned by addhstbyX.
27820         (readdpwbyuid): Likewise.
27821         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
27822         (addservbyX): Return value returned by cache_addserv.
27823         (readdservbyname): Return value returned by addservbyX:
27824         (readdservbyport): Likewise.
27825         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
27826         (addhstbyX): Return value returned by cache_addhst.
27827         (readdhstbyname): Return value returned by addhstbyX.
27828         (readdhstbyaddr): Likewise.
27829         (readdhstbynamev6): Likewise.
27830         (readdhstbyaddrv6): Likewise.
27831         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
27832         (readdinitgroups): Return value returned by addinitgroupsX.
27833         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
27834         (prune_cache): Keep track of timeout value of re-added entries.
27835         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
27836         * nscd/nscd.h: Adjust prototypes of readd* functions.
27837
27838 2011-02-04  Roland McGrath  <roland@redhat.com>
27839
27840         * nis/nis_server.c (nis_servstate): Use the right name for 0.
27841         (nis_stats): Likewise.
27842         * nis/nis_modify.c (nis_modify): Likewise.
27843         * nis/nis_remove.c (nis_remove): Likewise.
27844         * nis/nis_add.c (nis_add): Likewise.
27845
27846         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
27847
27848         * posix/fnmatch_loop.c: Add some consts.
27849
27850         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
27851
27852 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
27853
27854         [BZ #12460]
27855         * config.make.in (config-cflags-novzeroupper): Define.
27856         * configure.in: Substitute libc_cv_cc_novzeroupper.
27857         * elf/Makefile (AVX-CFLAGS): Define.
27858         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
27859         (CFLAGS-tst-auditmod4a.c): Likewise.
27860         (CFLAGS-tst-auditmod4b.c): Likewise.
27861         (CFLAGS-tst-auditmod6b.c): Likewise.
27862         (CFLAGS-tst-auditmod6c.c): Likewise.
27863         (CFLAGS-tst-auditmod7b.c): Likewise.
27864         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
27865
27866 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
27867
27868         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
27869         function to the callback.
27870         Patch partly by Jiri Olsa <jolsa@redhat.com>.
27871
27872 2011-02-02  Andreas Schwab  <schwab@redhat.com>
27873
27874         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
27875         of errno.
27876
27877 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
27878
27879         [BZ #11724]
27880         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
27881         of constructors.
27882         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
27883         of destructors.
27884         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
27885
27886         [BZ #11724]
27887         * elf/Makefile: Add rules to build and run new test.
27888         * elf/tst-initorder.c: New file.
27889         * elf/tst-initorder.exp: New file.
27890         * elf/tst-initordera1.c: New file.
27891         * elf/tst-initordera2.c: New file.
27892         * elf/tst-initordera3.c: New file.
27893         * elf/tst-initordera4.c: New file.
27894         * elf/tst-initorderb1.c: New file.
27895         * elf/tst-initorderb2.c: New file.
27896         * elf/tst-order-a1.c: New file.
27897         * elf/tst-order-a2.c: New file.
27898         * elf/tst-order-a3.c: New file.
27899         * elf/tst-order-a4.c: New file.
27900         * elf/tst-order-b1.c: New file.
27901         * elf/tst-order-b2.c: New file.
27902         * elf/tst-order-main.c: New file.
27903         New test case by George Gensure <werkt0@gmail.com>.
27904
27905 2010-10-01  Andreas Schwab  <schwab@redhat.com>
27906
27907         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
27908         decoding ACE if AI_CANONIDN.
27909
27910 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
27911
27912         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
27913
27914 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
27915
27916         * version.h (RELEASE): Bump for 2.13 release.
27917         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
27918
27919         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
27920
27921         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
27922         MADV_NOHUGEPAGE.
27923         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
27924         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27925         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27926         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
27927         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27928         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27929
27930         * posix/getconf.c: Update copyright year.
27931         * catgets/gencat.c: Likewise.
27932         * csu/version.c: Likewise.
27933         * debug/catchsegv.sh: Likewise.
27934         * debug/xtrace.sh: Likewise.
27935         * elf/ldconfig.c: Likewise.
27936         * elf/ldd.bash.in: Likewise.
27937         * elf/sprof.c (print_version): Likewise.
27938         * iconv/iconv_prog.c: Likewise.
27939         * iconv/iconvconfig.c: Likewise.
27940         * locale/programs/locale.c: Likewise.
27941         * locale/programs/localedef.c: Likewise.
27942         * malloc/memusage.sh: Likewise.
27943         * malloc/mtrace.pl: Likewise.
27944         * nscd/nscd.c (print_version): Likewise.
27945         * nss/getent.c: Likewise.
27946
27947         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
27948         PF_CAIF, and PF_ALG.
27949         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27950
27951 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
27952
27953         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
27954         (modules-names): Use them.
27955         (ifunc-test-modules, ifunc-pie-tests): Define.
27956         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
27957         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
27958         (test-extras): Likewise.
27959         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
27960         $(compile-command.c).
27961         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
27962         (all-built-dso): Define.
27963         (check-textrel.out, check-execstack.out): Depend on it.
27964
27965         * configure.in: Don't override --enable-multi-arch.
27966
27967 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
27968
27969         [BZ #6812]
27970         * nscd/hstcache.c (tryagain): Define.
27971         (cache_addhst): Return tryagain not notfound for temporary errors.
27972         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
27973         failed.
27974
27975 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
27976
27977         [BZ #10563]
27978         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
27979         to make the syscall.
27980         * sysdeps/unix/sysv/linux/setgroups.c: New file.
27981
27982         [BZ #12378]
27983         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
27984         and fall back to matching as normal character if the string ends before
27985         the matching ']' is found.  This is what POSIX requires.
27986         * posix/testfnm.c: Adjust test result.
27987         * posix/globtest.sh: Adjust test result.  Add new test.
27988         * posix/tst-fnmatch.input: Likewise.
27989         * posix/tst-fnmatch2.c: Add new test.
27990
27991 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
27992
27993         * elf/Makefile (check-execstack): Revert last change.  Depend on
27994         check-execstack.h.
27995         (check-execstack.h): New target.
27996         (generated): Add check-execstack.h.
27997         * elf/check-execstack.c: Include "check-execstack.h".
27998         (main): Revert last change.
27999         (handle_file): Return zero if GNU_STACK is absent and
28000         DEFAULT_STACK_PERMS doesn't include PF_X.
28001
28002 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
28003
28004         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
28005         in child fails because the descriptor is already closed.
28006         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
28007         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
28008         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
28009
28010         [BZ #12397]
28011         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
28012         syscall.
28013
28014         [BZ #10484]
28015         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
28016         temporary buffer used to handle multi lookups locally.
28017         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
28018
28019 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28020
28021         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
28022         loader is ld.so.
28023
28024 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
28025
28026         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
28027         alignment for SSE2.
28028
28029 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
28030
28031         [BZ #12394]
28032         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
28033         characters.  When rounding increased number of integer digits recompute
28034         number of groups.
28035         * stdio-common/tst-grouping.c: New file.
28036         * stdio-common/Makefile: Add rules to build and run tst-grouping.
28037
28038 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
28039
28040         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
28041         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
28042
28043         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
28044         void.
28045         * bits/select.h: Likewise.
28046
28047 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
28048
28049         * po/ja.po: Update from translation team.
28050
28051 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
28052
28053         [BZ #11155]
28054         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
28055         implementation just like for lxstat, fxstatat, et al.
28056
28057 2010-12-27  Jim Meyering  <meyering@redhat.com>
28058
28059         [BZ #12348]
28060         * posix/regexec.c (build_trtable): Return failure indication upon
28061         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28062
28063 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
28064
28065         [BZ #12201]
28066         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
28067         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
28068         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
28069         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
28070
28071         [BZ #12207]
28072         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
28073
28074         [BZ #12204]
28075         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
28076         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
28077
28078 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
28079
28080         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
28081         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
28082         script has SORT_BY_INIT_PRIORITY.
28083         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
28084         NO_CTORS_DTORS_SECTIONS is defined.
28085         * elf/soinit.c: Likewise.
28086         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
28087         NO_CTORS_DTORS_SECTIONS is defined.
28088         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
28089         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
28090         * sysdeps/sh/init-first.c: Likewise.
28091         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
28092
28093 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
28094
28095         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
28096         always use the slow path.
28097
28098 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
28099
28100         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
28101         similar rule which adds the sysdep directories to the header search in
28102         order to pick up the correct platform stackinfo.h.
28103         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
28104         perform test if it is, otherwise return successfully without testing.
28105         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
28106         DEFAULT_STACK_PERMS define in stackinfo.h.
28107         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
28108         defined in stackinfo.h.
28109         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
28110         DEFAULT_STACK_PERMS defined in stackinfo.h.
28111         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
28112         * sysdeps/ia64/stackinfo.h: Likewise.
28113         * sysdeps/s390/stackinfo.h: Likewise.
28114         * sysdeps/sh/stackinfo.h: Likewise.
28115         * sysdeps/sparc/stackinfo.h: Likewise.
28116         * sysdeps/x86_64/stackinfo.h: Likewise.
28117         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
28118         PF_X for powerpc64.  Retain PF_X for powerpc32.
28119
28120 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
28121
28122         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
28123         accurately.
28124         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
28125         GETDENTS_64BIT_ALIGNED.
28126
28127 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
28128
28129         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
28130
28131 2010-12-10  Andreas Schwab  <schwab@redhat.com>
28132
28133         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
28134         _GNU_SOURCE.
28135
28136         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
28137         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
28138         Remove __restrict.
28139         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
28140         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
28141
28142 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
28143
28144         [BZ #11655]
28145         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
28146         are initialized.
28147
28148 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
28149
28150         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
28151
28152 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
28153
28154         * po/it.po: Update from translation team.
28155
28156 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
28157
28158         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
28159         unused codes.
28160
28161 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
28162
28163         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
28164
28165 2010-11-24  Andreas Schwab  <schwab@redhat.com>
28166
28167         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
28168         specially.
28169         (gaih_getanswer_slice): Likewise.
28170
28171 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
28172
28173         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
28174
28175 2010-05-31  Petr Baudis  <pasky@suse.cz>
28176
28177         [BZ #11149]
28178         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
28179         silently even in the chroot mode.
28180
28181 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
28182
28183         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
28184         last patch a bit.  Pretty printing
28185
28186 2010-05-31  Petr Baudis <pasky@suse.cz>
28187
28188         [BZ #10085]
28189         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
28190         initialization of skip_initgroups_dyn.
28191
28192 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
28193
28194         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
28195         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
28196
28197 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
28198
28199         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
28200
28201 2010-11-11  Andreas Schwab  <schwab@redhat.com>
28202
28203         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
28204         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
28205         (tst-fnmatch-ENV): Set MALLOC_TRACE.
28206         ($(objpfx)tst-fnmatch-mem): New rule.
28207         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
28208         * posix/tst-fnmatch.c (main): Call mtrace.
28209
28210 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
28211
28212         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28213         Support Intel processor model 6 and model 0x2c.
28214
28215 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
28216
28217         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
28218           signed comparison.
28219
28220 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
28221
28222         [BZ #12205]
28223         * string/test-strncasecmp.c (check_result): New function.
28224         (do_one_test): Use it.
28225         (check1): New function.
28226         (test_main): Use it.
28227         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
28228         Support strcasecmp and strncasecmp.
28229
28230 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
28231
28232         [BZ #12194]
28233         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
28234         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28235
28236 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
28237
28238         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
28239         IFUNC support.
28240         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28241         memset-x86-64.
28242         * sysdeps/x86_64/multiarch/bzero.S: New file.
28243         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
28244         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
28245         * sysdeps/x86_64/multiarch/memset.S: New file.
28246         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
28247         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28248         Set bit_Prefer_SSE_for_memop for Intel processors.
28249         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
28250         Define.
28251         (index_Prefer_SSE_for_memop): Define.
28252         (HAS_PREFER_SSE_FOR_MEMOP): Define.
28253
28254 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
28255
28256         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
28257         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
28258
28259 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
28260
28261         [BZ #12191]
28262         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28263         (__x86_64_raw_data_cache_size_half): Likewise.
28264         (__x86_64_raw_shared_cache_size): Likewise.
28265         (__x86_64_raw_shared_cache_size_half): Likewise.
28266
28267         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
28268         (__x86_64_raw_data_cache_size_half): Likewise.
28269         (__x86_64_raw_shared_cache_size): Likewise.
28270         (__x86_64_raw_shared_cache_size_half): Likewise.
28271         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
28272         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
28273         and __x86_64_raw_shared_cache_size_half.  Round
28274         __x86_64_data_cache_size_half, __x86_64_data_cache_size
28275         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
28276         to multiple of 256 bytes.
28277
28278 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
28279
28280         [BZ #12167]
28281         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
28282         of inacessible symlinks.  Verify result of symlink before returning it.
28283         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28284         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
28285
28286 2010-10-28  Erich Ritz  <erichritz@gmail.com>
28287
28288         * math/math.h (isinf): Fix typo in comment.
28289
28290 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
28291
28292         * po/da.po: Update from translation team.
28293
28294 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
28295
28296         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
28297         is added to the list.
28298
28299 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28300             Ulrich Drepper  <drepper@gmail.com>
28301
28302         * elf/dl-object.c (_dl_new_object): Don't append the new object to
28303         the global list here.  Move code to...
28304         (_dl_add_to_namespace_list): ...here.  New function.
28305         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
28306         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
28307         * elf/dl-load.c (lose): Don't remove the element from the list.
28308         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
28309         (_dl_map_object): Likewise.
28310
28311 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
28312
28313         [BZ #12159]
28314         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
28315         into all bytes of SSE register.
28316         Patch by Richard Li <richardpku@gmail.com>.
28317
28318 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
28319
28320         [BZ #12140]
28321         * malloc/malloc.c (_int_free): Fill correct number of bytes when
28322         perturbing.
28323
28324 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
28325
28326         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
28327         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
28328         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
28329         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
28330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
28331         submachine.
28332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
28333
28334 2010-10-22  Andreas Schwab  <schwab@redhat.com>
28335
28336         * include/dlfcn.h (__RTLD_SECURE): Define.
28337         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
28338         mode & __RTLD_SECURE instead.
28339         (open_path): Rename preloaded parameter to secure.
28340         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
28341         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
28342         * elf/dl-deps.c (openaux): Likewise.
28343         * elf/rtld.c (struct map_args): Remove is_preloaded.
28344         (map_doit): Don't use it.
28345         (dl_main): Likewise.
28346         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
28347         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
28348
28349 2010-09-09  Andreas Schwab  <schwab@redhat.com>
28350
28351         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
28352         (sysd-rules-targets): Remove duplicates.
28353         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
28354         rtld-%.$o dependency.
28355
28356 2010-10-18  Andreas Schwab  <schwab@redhat.com>
28357
28358         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
28359         _dl_map_object do it.
28360
28361 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
28362
28363         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
28364         fast fma builtins, define the macros in the C99 standard.
28365         (FP_FAST_FMAF): Likewise.
28366         (FP_FAST_FMAL): Likewise.
28367         * sysdeps/x86_64/bits/mathdef.h: Likewise.
28368
28369         * bits/mathdef.h: Update copyright year.
28370         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28371
28372 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28373
28374         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
28375         builtins, define the macros in the C99 standard.
28376         (FP_FAST_FMAF): Likewise.
28377         (FP_FAST_FMAL): Likewise.
28378         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
28379         multiply/add.
28380         (FP_FAST_FMAF): Likewise.
28381
28382 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
28383
28384         [BZ #3268]
28385         * math/libm-test.inc (fma_test): Some new testcases.
28386         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
28387         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
28388         y and infinite z.  Do multiplication by C already in long double.
28389         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
28390         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
28391         y and infinite z.  Do bitwise or of inexact bit into u.d.
28392         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
28393         * sysdeps/i386/fpu/s_fmaf.S: Removed.
28394         * sysdeps/i386/fpu/s_fma.S: Removed.
28395         * sysdeps/i386/fpu/s_fmal.S: Removed.
28396
28397 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
28398
28399         [BZ #3268]
28400         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
28401         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
28402         computation is not scheduled after fetestexcept.  Fix value
28403         of minimum denormal long double.
28404
28405 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
28406
28407         [BZ #3268]
28408         * math/libm-test.inc (fma_test): Add some more tests.
28409         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
28410         correctly.
28411
28412 2010-10-15  Andreas Schwab  <schwab@redhat.com>
28413
28414         * scripts/data/localplt-s390-linux-gnu.data: New file.
28415         * scripts/data/localplt-s390x-linux-gnu.data: New file.
28416
28417 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
28418
28419         [BZ #3268]
28420         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
28421         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
28422         instead of dbl-64.
28423         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
28424         inlines.
28425         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
28426         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
28427         if one of x and y is very large and the other is subnormal.
28428         * sysdeps/s390/fpu/s_fmaf.c: New file.
28429         * sysdeps/s390/fpu/s_fma.c: New file.
28430         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
28431         * sysdeps/powerpc/fpu/s_fma.S: New file.
28432         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
28433         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
28434         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
28435
28436 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
28437
28438         [BZ #3268]
28439         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
28440         fma tests.
28441         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
28442         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
28443         * sysdeps/i386/i686/multiarch/s_fma.c: Include
28444         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
28445         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
28446         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
28447         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
28448
28449 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
28450
28451         [BZ #12078]
28452         * posix/regcomp.c (parse_branch): One more memory leak plugged.
28453         * posix/bug-regex31.input: Add test case.
28454
28455 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28456
28457         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
28458         * posix/bug-regex31.input: New file.
28459
28460         [BZ #12078]
28461         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
28462         (parse_sub_exp): Fix last change, use postorder.
28463
28464         * posix/bug-regex31.c: New file.
28465         * posix/Makefile: Add rules to build and run bug-regex31.
28466
28467         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
28468
28469         [BZ #12078]
28470         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
28471
28472         [BZ #12108]
28473         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
28474         to have entries in sys_siglist.
28475
28476         [BZ #12093]
28477         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
28478         be NULL.
28479
28480 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
28481
28482         [BZ #3268]
28483         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
28484         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
28485         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
28486         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
28487         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28488         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
28489         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
28490         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
28491         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
28492         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
28493         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
28494         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
28495         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28496         * math/ftestexcept.c (fetestexcept): Likewise.
28497         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
28498         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
28499         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
28500         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
28501         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
28502         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
28503         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
28504
28505 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
28506
28507         [BZ #12107]
28508         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
28509         newline.
28510
28511 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
28512
28513         * string/bug-strstr1.c: New file.
28514         * string/Makefile: Add rules to build and run bug-strstr1.
28515
28516 2010-10-05  Eric Blake  <eblake@redhat.com>
28517
28518         [BZ #12092]
28519         * string/str-two-way.h (two_way_long_needle): Always clear memory
28520         when skipping input due to the shift table.
28521
28522 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
28523
28524         [BZ #12005]
28525         * malloc/mcheck.c: Handle large requests.
28526
28527         [BZ #12077]
28528         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
28529         for strncmp and strncasecmp.
28530         * string/stratcliff.c: Add tests for strcmp and strncmp.
28531         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
28532
28533 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
28534
28535         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
28536         __set_fpscr.
28537
28538 2010-09-30  Andreas Jaeger  <aj@suse.de>
28539
28540         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
28541         (CGROUP_SUPER_MAGIC): Define.
28542         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28543         Handle btrfs and cgroup file systems.
28544         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
28545         Likewise.
28546
28547 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
28548
28549         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
28550         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
28551
28552 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28553
28554         [BZ #12067]
28555         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
28556         trying to locate the ELF header.
28557
28558 2010-09-27  Andreas Schwab  <schwab@redhat.com>
28559
28560         [BZ #11611]
28561         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
28562         Mask out sign-bit copies when constructing f_fsid.
28563
28564 2010-09-24  Petr Baudis <pasky@suse.cz>
28565
28566         * debug/stack_chk_fail_local.c: Add missing licence exception.
28567         * debug/warning-nop.c: Likewise.
28568
28569 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
28570
28571         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
28572         implementing getdents64 using getdents syscall, set d_type if
28573         __ASSUME_GETDENTS32_D_TYPE.
28574
28575 2010-09-16  Andreas Schwab  <schwab@redhat.com>
28576
28577         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
28578         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
28579
28580 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
28581
28582         [BZ #12037]
28583         * posix/unistd.h: Undo change of feature selection for ftruncate from
28584         2010-01-11.
28585
28586 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
28587
28588         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
28589         detection.
28590
28591 2010-09-20  Andreas Schwab  <schwab@redhat.com>
28592
28593         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
28594         fanotify_mark.
28595         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
28596
28597 2010-09-14  Andreas Schwab  <schwab@redhat.com>
28598
28599         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
28600         variables after CHECK_SP call.
28601         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
28602
28603 2010-09-13  Andreas Schwab  <schwab@redhat.com>
28604             Ulrich Drepper  <drepper@redhat.com>
28605
28606         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
28607         re-relocationg ld.so.
28608         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
28609         _dl_init_paths call.
28610         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
28611         here anymore.
28612
28613 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
28614
28615         * resolv/res_init.c (__res_vinit): Count the default server we added.
28616
28617 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
28618             Ulrich Drepper  <drepper@redhat.com>
28619
28620         [BZ #11968]
28621         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28622         (____longjmp_chk): Use %ebx for saving value across system call.
28623         Add unwind info.
28624
28625 2010-09-06  Andreas Schwab  <schwab@redhat.com>
28626
28627         * manual/Makefile: Don't mix pattern rules with normal rules.
28628
28629 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28630
28631         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
28632         operation.
28633         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
28634         * libio/iofopncook.c (_IO_cookie_init): Likewise.
28635         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
28636         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
28637         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28638         Likewise.
28639
28640 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
28641
28642         [BZ #11979]
28643         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
28644         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
28645
28646 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
28647
28648         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
28649         * sysdeps/x86_64/addmul_1.S: Likewise.
28650         * sysdeps/x86_64/lshift.S: Likewise.
28651         * sysdeps/x86_64/mul_1.S: Likewise.
28652         * sysdeps/x86_64/rshift.S: Likewise.
28653         * sysdeps/x86_64/sub_n.S: Likewise.
28654         * sysdeps/x86_64/submul_1.S: Likewise.
28655
28656 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28657
28658         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
28659         Define __sched_param instead of SCHED_* and sched_param when
28660         <bits/sched.h> is included with __need_schedparam defined.
28661         * bits/sched.h [__need_schedparam]
28662         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
28663         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
28664         (__defined_schedparam): Define to 1.
28665         (__sched_param): New structure, identical to sched_param.
28666         (__need_schedparam): Undefine.
28667
28668 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
28669
28670         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
28671         (epoll_create1): Declare.
28672
28673         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
28674
28675 2010-08-31  Andreas Schwab  <schwab@redhat.com>
28676
28677         [BZ #7066]
28678         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
28679         shifting retval into place.
28680
28681 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
28682
28683         * nis/rpcsvc/nis.h: Update copyright notice.
28684         * nis/rpcsvc/nis.x: Likewise.
28685         * nis/rpcsvc/nis_callback.h: Likewise.
28686         * nis/rpcsvc/nis_callback.x: Likewise.
28687         * nis/rpcsvc/nis_object.x: Likewise.
28688         * nis/rpcsvc/nis_tags.h: Likewise.
28689         * nis/rpcsvc/yp.h: Likewise.
28690         * nis/rpcsvc/yp.x: Likewise.
28691         * nis/rpcsvc/ypupd.h: Likewise.
28692         * nis/yp_xdr.c: Likewise.
28693         * nis/ypupdate_xdr.c: Likewise.
28694
28695         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
28696         mainly the body of pmap_getport.  Add parameters to specify timeouts.
28697         (pmap_getport): Use __libc_rpc_getport.
28698         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
28699         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
28700         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
28701
28702 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
28703
28704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
28705         fanotify_mark.
28706
28707 2010-08-27  Roland McGrath  <roland@redhat.com>
28708
28709         * sysdeps/i386/i686/multiarch/Makefile
28710         (CFLAGS-varshift.c): New variable.
28711
28712 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
28713
28714         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
28715         * sysdeps/i386/i686/multiarch/varshift.c: New file.
28716
28717         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
28718
28719         * sysdeps/x86_64/strlen.S: Minimal code improvement.
28720
28721 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
28722
28723         * sysdeps/x86_64/strlen.S: Unroll the loop.
28724         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28725         strlen-sse2 strlen-sse2-bsf.
28726         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
28727         __strlen_no_bsf if bit_Slow_BSF is set.
28728         (__strlen_sse42): Removed.
28729         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
28730         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
28731
28732 2010-08-25  Roland McGrath  <roland@redhat.com>
28733
28734         * sysdeps/x86_64/multiarch/varshift.S: File removed.
28735         * sysdeps/x86_64/multiarch/varshift.c: New file.
28736         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
28737         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
28738         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
28739         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28740
28741 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
28742
28743         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28744         strlen-sse2 strlen-sse2-bsf.
28745         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
28746         __strlen_sse2_bsf if bit_Slow_BSF is unset.
28747         (__strlen_sse2): Removed.
28748         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
28749         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
28750         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
28751         bit_Slow_BSF for Atom.
28752         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
28753         (index_Slow_BSF): Define.
28754         (HAS_SLOW_BSF): Define.
28755
28756 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
28757
28758         [BZ #10851]
28759         * resolv/res_init.c (__res_vinit): When no server address at all
28760         is given default to loopback.
28761
28762 2010-08-24  Roland McGrath  <roland@redhat.com>
28763
28764         * configure.in: Remove config-name.h generation.
28765         * configure: Regenerated.
28766         * config-name.in: File removed.
28767         * scripts/config-uname.sh: New file.
28768         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
28769         ($(objdir)config-name.h): New target.
28770
28771         * sunrpc/rpc_parse.h: Avoid nested comment.
28772
28773 2010-08-24  Richard Henderson  <rth@redhat.com>
28774             Ulrich Drepper  <drepper@redhat.com>
28775             H.J. Lu  <hongjiu.lu@intel.com>
28776
28777         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
28778         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
28779         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
28780         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
28781         _mm_alignr_epi8 with _mm_loadu_si128.
28782         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
28783         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
28784         (__m128i_shift_right): Removed.
28785         * sysdeps/i386/i686/multiarch/varshift.h: New file.
28786         * sysdeps/i386/i686/multiarch/varshift.S: New file.
28787         * sysdeps/x86_64/multiarch/varshift.h: New file.
28788         * sysdeps/x86_64/multiarch/varshift.S: New file.
28789
28790 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
28791
28792         * configure.in: Move assembler checks to before sysdep dir checking.
28793
28794 2010-08-20  Petr Baudis  <pasky@suse.cz>
28795
28796         * LICENSES: Sync the sunrpc license.
28797
28798 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
28799
28800         * sunrpc/auth_des.c: Update copyright notice once again.
28801         * sunrpc/auth_none.c: Likewise.
28802         * sunrpc/auth_unix.c: Likewise.
28803         * sunrpc/authdes_prot.c: Likewise.
28804         * sunrpc/authuxprot.c: Likewise.
28805         * sunrpc/bindrsvprt.c: Likewise.
28806         * sunrpc/clnt_gen.c: Likewise.
28807         * sunrpc/clnt_perr.c: Likewise.
28808         * sunrpc/clnt_raw.c: Likewise.
28809         * sunrpc/clnt_simp.c: Likewise.
28810         * sunrpc/clnt_tcp.c: Likewise.
28811         * sunrpc/clnt_udp.c: Likewise.
28812         * sunrpc/clnt_unix.c: Likewise.
28813         * sunrpc/des_crypt.c: Likewise.
28814         * sunrpc/des_soft.c: Likewise.
28815         * sunrpc/get_myaddr.c: Likewise.
28816         * sunrpc/getrpcport.c: Likewise.
28817         * sunrpc/key_call.c: Likewise.
28818         * sunrpc/key_prot.c: Likewise.
28819         * sunrpc/openchild.c: Likewise.
28820         * sunrpc/pm_getmaps.c: Likewise.
28821         * sunrpc/pm_getport.c: Likewise.
28822         * sunrpc/pmap_clnt.c: Likewise.
28823         * sunrpc/pmap_prot.c: Likewise.
28824         * sunrpc/pmap_prot2.c: Likewise.
28825         * sunrpc/pmap_rmt.c: Likewise.
28826         * sunrpc/rpc/auth.h: Likewise.
28827         * sunrpc/rpc/auth_unix.h: Likewise.
28828         * sunrpc/rpc/clnt.h: Likewise.
28829         * sunrpc/rpc/des_crypt.h: Likewise.
28830         * sunrpc/rpc/key_prot.h: Likewise.
28831         * sunrpc/rpc/netdb.h: Likewise.
28832         * sunrpc/rpc/pmap_clnt.h: Likewise.
28833         * sunrpc/rpc/pmap_prot.h: Likewise.
28834         * sunrpc/rpc/pmap_rmt.h: Likewise.
28835         * sunrpc/rpc/rpc.h: Likewise.
28836         * sunrpc/rpc/rpc_des.h: Likewise.
28837         * sunrpc/rpc/rpc_msg.h: Likewise.
28838         * sunrpc/rpc/svc.h: Likewise.
28839         * sunrpc/rpc/svc_auth.h: Likewise.
28840         * sunrpc/rpc/types.h: Likewise.
28841         * sunrpc/rpc/xdr.h: Likewise.
28842         * sunrpc/rpc_clntout.c: Likewise.
28843         * sunrpc/rpc_cmsg.c: Likewise.
28844         * sunrpc/rpc_common.c: Likewise.
28845         * sunrpc/rpc_cout.c: Likewise.
28846         * sunrpc/rpc_dtable.c: Likewise.
28847         * sunrpc/rpc_hout.c: Likewise.
28848         * sunrpc/rpc_main.c: Likewise.
28849         * sunrpc/rpc_parse.c: Likewise.
28850         * sunrpc/rpc_parse.h: Likewise.
28851         * sunrpc/rpc_prot.c: Likewise.
28852         * sunrpc/rpc_sample.c: Likewise.
28853         * sunrpc/rpc_scan.c: Likewise.
28854         * sunrpc/rpc_scan.h: Likewise.
28855         * sunrpc/rpc_svcout.c: Likewise.
28856         * sunrpc/rpc_tblout.c: Likewise.
28857         * sunrpc/rpc_util.c: Likewise.
28858         * sunrpc/rpc_util.h: Likewise.
28859         * sunrpc/rpcinfo.c: Likewise.
28860         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
28861         * sunrpc/rpcsvc/key_prot.x: Likewise.
28862         * sunrpc/rpcsvc/klm_prot.x: Likewise.
28863         * sunrpc/rpcsvc/mount.x: Likewise.
28864         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
28865         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
28866         * sunrpc/rpcsvc/rex.x: Likewise.
28867         * sunrpc/rpcsvc/rstat.x: Likewise.
28868         * sunrpc/rpcsvc/rusers.x: Likewise.
28869         * sunrpc/rpcsvc/sm_inter.x: Likewise.
28870         * sunrpc/rpcsvc/spray.x: Likewise.
28871         * sunrpc/rpcsvc/yppasswd.x: Likewise.
28872         * sunrpc/rtime.c: Likewise.
28873         * sunrpc/svc.c: Likewise.
28874         * sunrpc/svc_auth.c: Likewise.
28875         * sunrpc/svc_authux.c: Likewise.
28876         * sunrpc/svc_raw.c: Likewise.
28877         * sunrpc/svc_run.c: Likewise.
28878         * sunrpc/svc_simple.c: Likewise.
28879         * sunrpc/svc_tcp.c: Likewise.
28880         * sunrpc/svc_udp.c: Likewise.
28881         * sunrpc/svc_unix.c: Likewise.
28882         * sunrpc/svcauth_des.c: Likewise.
28883         * sunrpc/xcrypt.c: Likewise.
28884         * sunrpc/xdr.c: Likewise.
28885         * sunrpc/xdr_array.c: Likewise.
28886         * sunrpc/xdr_float.c: Likewise.
28887         * sunrpc/xdr_mem.c: Likewise.
28888         * sunrpc/xdr_rec.c: Likewise.
28889         * sunrpc/xdr_ref.c: Likewise.
28890         * sunrpc/xdr_sizeof.c: Likewise.
28891         * sunrpc/xdr_stdio.c: Likewise.
28892
28893         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
28894         handling.
28895
28896 2010-08-19  Andreas Schwab  <schwab@redhat.com>
28897
28898         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
28899
28900 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
28901
28902         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
28903         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
28904         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
28905         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
28906         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
28907         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
28908         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
28909         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
28910         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
28911         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
28912         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
28913         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
28914         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
28915         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
28916
28917 2010-07-26  Anton Blanchard  <anton@samba.org>
28918
28919         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
28920         * malloc/arena.c (heap_trim): Likewise.
28921
28922 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
28923
28924         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
28925         here.  Not...
28926         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
28927         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
28928
28929 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
28930
28931         * sysdeps/i386/elf/Makefile: New file.
28932
28933 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28934
28935         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
28936         from fanotify_init.
28937         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
28938         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
28939
28940 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
28941
28942         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
28943         of strncasecmp_l.
28944         * sysdeps/multiarch/strcmp.S: Likewise.
28945
28946 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
28947
28948         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28949         strncase_l-nonascii.
28950         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28951         Add strncase_l-ssse3.
28952         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
28953         * sysdeps/x86_64/strcmp.S: Likewise.
28954         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
28955         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
28956         * sysdeps/x86_64/strncase.S: New file.
28957         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
28958         * sysdeps/x86_64/strncase_l.S: New file.
28959         * string/Makefile (strop-tests): Add strncasecmp.
28960         * string/test-strncasecmp.c: New file.
28961
28962         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
28963         warning.
28964
28965         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
28966         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
28967
28968 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
28969
28970         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
28971
28972 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
28973
28974         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
28975         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
28976         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
28977
28978 2010-05-01  Alan Modra  <amodra@gmail.com>
28979
28980         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
28981         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
28982         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
28983         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
28984         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
28985         tidying.  Don't tail-call __sigjmp_save for static lib.
28986         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
28987         save location.
28988         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
28989         (CALL_MCOUNT): Add eh info, and nop after bl.
28990         (TAIL_CALL_SYSCALL_ERROR): New macro.
28991         (PSEUDO_RET): Use it.
28992         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
28993         Correct save location of integer regs and cr.
28994         (_dl_profile_resolve): Correct cr save location.  Delete nops
28995         after bl when SHARED.  Reduce cfi size a little by better
28996         placement of cfi directives.
28997         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
28998         make a stack frame.  Instead use parm save area as a temp.
28999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
29000         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
29001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
29002         Don't make a stack frame for parent, use parm save area.
29003         Increase child stack frame to 112 bytes.  Don't save unused reg,
29004         and adjust reg usage.  Set up cfi on error recovery and
29005         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
29006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29007         (__makecontext): Add dummy nop after jump to exit.
29008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
29009         Use correct parm save area and cr save, reduce stack frame.
29010         Correct cfi for possible PSEUDO_RET frame setup.
29011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
29012         Branch to local label emitted by PSEUDO_RET rather than
29013         __syscall_error.
29014
29015 2010-08-12  Andreas Schwab  <schwab@redhat.com>
29016
29017         [BZ #11904]
29018         * locale/programs/locale.c (print_assignment): New function.
29019         (show_locale_vars): Use it.
29020
29021 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
29022
29023         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
29024         field.
29025         (struct statfs64): Likewise.
29026         (_STATFS_F_FLAGS): Define.
29027         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
29028         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29029         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
29030         (ST_VALID): Define locally.
29031         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
29032         __statvfs_getflags, use the provided value.
29033         * sysdeps/unix/sysv/linux/kernel-features.h: Define
29034         __ASSUME_STATFS_F_FLAGS.
29035
29036         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
29037
29038         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
29039         Add sys/fanotify.h.
29040         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
29041         fanotify_mask for GLIBC_2.13.
29042         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
29043         fanotify_init and fanotify_mark.
29044         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
29045         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
29046
29047         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
29048         Add prlimit.
29049         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
29050         prlimit64 for GLIBC_2.13.
29051         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
29052         prlimit64.
29053         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
29054         syscall.
29055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
29056         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
29057         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
29058         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
29059         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
29060         add prlimit alias.
29061         * sysdeps/unix/sysv/linux/prlimit.c: New file.
29062
29063         [BZ #11903]
29064         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
29065         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
29066
29067         * nss/Makefile: Add rules to build and run tst-nss-test1.
29068         * shlib-versions: Add entry for libnss_test1.
29069         * nss/nss_test1.c: New file.
29070         * nss/tst-nss-test1.c: New file.
29071
29072         * nss/nsswitch.c (__nss_database_custom): Define new variable.
29073         (__nss_configure_lookup): Set appropriate entry in
29074         __nss_configure_lookup to true.
29075         * nss/nsswitch.h: Define enum with indeces of databases in
29076         databases and __nss_database_custom arrays.  Declare
29077         __nss_database_custom.
29078         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
29079         to avoid using nscd when custom rules are installed.
29080         * nss/getXXbyYY_r.c: Likewise.
29081         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
29082
29083         * nss/nss_files/files-parse.c: Whitespace fixes.
29084
29085 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
29086
29087         [BZ #11883]
29088         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
29089         * posix/fnmatch_loop.c: Likewise.
29090
29091 2010-07-17  Andi Kleen  <ak@linux.intel.com>
29092
29093         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
29094         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
29095         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
29096         * Versions.def [GLIBC_2.13]: Add.
29097
29098 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
29099
29100         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29101         Also fail if tpwd after pwuid call is NULL.
29102
29103 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29104
29105         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
29106         when converting to ms.
29107
29108 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29109
29110         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
29111         EOPNOTSUPP errors with ENOTTY.
29112         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
29113         EOPNOTSUPP errors with ENOTTY.
29114
29115 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
29116
29117         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
29118         Add strcasecmp_l-ssse3.
29119         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
29120         strcasecmp.
29121         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
29122         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
29123         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
29124
29125 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
29126
29127         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
29128
29129         * string/Makefile (strop-tests): Add strcasecmp.
29130         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
29131         strcasecmp_l-nonascii.
29132         (gen-as-const-headers): Add locale-defines.sym.
29133         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
29134         * sysdeps/x86_64/strcasecmp.S: New file.
29135         * sysdeps/x86_64/strcasecmp_l.S: New file.
29136         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
29137         * sysdeps/x86_64/locale-defines.sym: New file.
29138         * string/test-strcasecmp.c: New file.
29139
29140         * string/test-strcasestr.c: Test both ends of the range of characters.
29141         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
29142
29143 2010-07-29  Roland McGrath  <roland@redhat.com>
29144
29145         [BZ #11856]
29146         * manual/locale.texi (Yes-or-No Questions): Fix example code.
29147
29148 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
29149
29150         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
29151         for ld.so.
29152
29153 2010-07-27  Andreas Schwab  <schwab@redhat.com>
29154
29155         * manual/memory.texi (Malloc Tunable Parameters): Document
29156         M_PERTURB.
29157
29158 2010-07-26  Roland McGrath  <roland@redhat.com>
29159
29160         [BZ #11840]
29161         * configure.in (-fgnu89-inline check): Set and substitute
29162         gnu89_inline, not libc_cv_gnu89_inline.
29163         * configure: Regenerated.
29164         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
29165
29166 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
29167
29168         * string/test-strnlen.c: New file.
29169         * string/Makefile (strop-tests): Add strnlen.
29170         * string/tester.c (test_strnlen): Add a few more test cases.
29171         * string/tst-strlen.c: Better error reporting.
29172
29173         * sysdeps/x86_64/strnlen.S: New file.
29174
29175 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
29176
29177         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
29178         lower-latency instructions.
29179
29180 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
29181
29182         * string/test-strcasestr.c: New file.
29183         * string/test-strstr.c: New file.
29184         * string/Makefile (strop-tests): Add strstr and strcasestr.
29185         * string/str-two-way.h: Don't undefine MAX.
29186         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
29187
29188 2010-07-21  Andreas Schwab  <schwab@redhat.com>
29189
29190         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29191         strcasestr-nonascii.
29192         (CFLAGS-strcasestr-nonascii.c): Define.
29193         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
29194         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
29195         Remove unused attribute.
29196
29197 2010-07-20  Roland McGrath  <roland@redhat.com>
29198
29199         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
29200         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
29201         ld.so.cache was broken.  With it, there is no way to disable dsocaps
29202         like LD_HWCAP_MASK can disable hwcaps.
29203
29204 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29205
29206         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
29207
29208 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
29209
29210         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
29211         call in strcasestr.
29212         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
29213         __strcasestr_sse42_nonascii.
29214         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
29215         strcasestr-nonascii.c.
29216         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
29217
29218 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
29219
29220         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
29221         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
29222         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
29223         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
29224
29225 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
29226
29227         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
29228         fcntl.
29229
29230 2010-07-06  Andreas Schwab  <schwab@redhat.com>
29231
29232         [BZ #11577]
29233         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
29234         dl_signal_cerror.
29235
29236 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
29237
29238         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
29239         _PC_PIPE_BUF using F_GETPIPE_SZ.
29240
29241 2010-07-05  Roland McGrath  <roland@redhat.com>
29242
29243         * manual/arith.texi (Rounding Functions): Fix rint description
29244         implicit in round description.
29245
29246 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
29247
29248         * elf/Makefile: Fix linking for a few tests to make recent linker
29249         happy.
29250
29251 2010-06-30  Andreas Schwab  <schwab@redhat.com>
29252
29253         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
29254         $(common-objpfx)libc_nonshared.a.
29255
29256 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
29257
29258         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
29259         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
29260         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29261         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29262         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
29263         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
29264         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29265         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
29267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
29268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
29269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
29270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
29271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
29272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
29273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
29274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
29275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
29276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
29277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
29278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
29279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
29280         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
29281         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
29282         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
29283         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
29284         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
29285         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
29286         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
29287         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
29288         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
29289         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
29290         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
29291         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
29292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
29293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
29294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
29295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
29296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
29297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
29298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
29299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
29300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
29301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
29302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
29303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
29304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
29305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
29306
29307 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29308
29309         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
29310         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
29311         * string/memmove.c (memmove): Renamed to ...
29312         (MEMMOVE): ...this.  Default to memmove.
29313         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
29314         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
29315         (END_CHK): Define.
29316         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29317         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
29318         mempcpy-ssse3-back memmove-ssse3-back.
29319         * sysdeps/x86_64/multiarch/bcopy.S: New file .
29320         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
29321         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
29322         * sysdeps/x86_64/multiarch/memcpy.S: New file.
29323         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
29324         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
29325         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
29326         * sysdeps/x86_64/multiarch/memmove.c: New file.
29327         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
29328         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
29329         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
29330         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
29331         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
29332         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
29333         Define.
29334         (index_Fast_Copy_Backward): Define.
29335         (HAS_ARCH_FEATURE): Define.
29336         (HAS_FAST_REP_STRING): Define.
29337         (HAS_FAST_COPY_BACKWARD): Define.
29338
29339 2010-06-21  Andreas Schwab  <schwab@redhat.com>
29340
29341         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
29342         Restore proper fallback handling.
29343
29344 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
29345
29346         [BZ #11701]
29347         * posix/group_member.c (__group_member): Correct checking loop.
29348
29349         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
29350         OOM in getpwuid_r correctly.  Return error number when the caller
29351         should return, otherwise -1.
29352         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
29353         call returning > 0 value.
29354         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
29355
29356 2010-06-07  Andreas Schwab  <schwab@redhat.com>
29357
29358         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
29359         libc_nonshared.a from targets in modules-names.
29360
29361 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
29362
29363         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
29364         requires it.
29365
29366 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
29367
29368         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
29369         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
29370         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
29371         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
29372
29373 2010-06-02  Andreas Schwab  <schwab@redhat.com>
29374
29375         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
29376
29377 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
29378
29379         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
29380         and F_GETPIPE_SZ.
29381         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
29382         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
29383         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
29384         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
29385         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
29386         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
29387
29388 2010-06-14  Roland McGrath  <roland@redhat.com>
29389
29390         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
29391
29392 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
29393
29394         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
29395         __REDIRECT followed by __THROW.
29396         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
29397         * posix/getopt.h (getopt): Likewise.
29398
29399 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
29400
29401         * hurd/lookup-at.c (__file_name_lookup_at): Accept
29402         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
29403         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
29404         in AT_FLAGS.
29405         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
29406         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
29407
29408 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
29409
29410         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
29411
29412 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
29413
29414         [BZ #11640]
29415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29416         Properly check family and model.
29417
29418 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
29419
29420         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
29421
29422 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
29423
29424         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
29425
29426 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
29427
29428         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
29429         symbol reference.
29430
29431 2010-05-19  Andreas Schwab  <schwab@redhat.com>
29432
29433         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
29434         symbol reference.
29435
29436 2010-05-21  Andreas Schwab  <schwab@redhat.com>
29437
29438         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
29439         and internal_recvmmsg.
29440         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
29441         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
29442         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
29443         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
29444
29445         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
29446         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
29447         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
29448
29449 2010-05-20  Andreas Schwab  <schwab@redhat.com>
29450
29451         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
29452
29453 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
29454
29455         POWER7 optimizations.
29456         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
29457         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
29458
29459 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
29460
29461         * version.h: Update for 2.13 development version.
29462
29463 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
29464
29465         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
29466         exceptions.  Return 0.
29467
29468 2010-05-07  Roland McGrath  <roland@redhat.com>
29469
29470         * elf/ldconfig.c (main): Add a const.
29471
29472 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
29473
29474         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
29475         (args_options): Add no-idn option.
29476         (ahosts_keys_int): Add idn_flags to ai_flags.
29477         (parse_option): Handle 'i' option to clear idn_flags.
29478
29479         * malloc/malloc.c (_int_free): Possible race in the most recently
29480         added check.  Only act on the data if no current modification
29481         happened.
29482
29483 See ChangeLog.17 for earlier changes.