Mention FIPS 140-2 compliance and Sun RPC.
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
2
3         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
4         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
5         AUTH_DES and cindex for FIPS 140-2.
6         (DES Encryption): Add cindex FIPS 46-3.
7
8         * locale/locarchive.h (struct locarhandle): Add fname.
9         * locale/programs/localedef.c (main): Pass ARGV[remaining]
10         if an optional argument was specified to --list-archive,
11         otherwise NULL.
12         * locale/programs/locarchive.c (show_archive_content): Take new
13         argument fname and pass it via ah.fname to open_archive.
14         * locale/programs/localedef.h: Update decl.
15         (open_archive): If AH->fname is non-null, open that file
16         rather than the default file name, and don't ignore ENOENT.
17         (create_archive): Set AH.fname to NULL.
18         (delete_locales_from_archive): Likewise.
19         (add_locales_to_archive): Likewise.
20         * locale/programs/locfile.c (write_all_categories): Likewise.
21
22 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
23             Aldy Hernandez  <aldyh@redhat.com>
24
25         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
26         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
27         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
28         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
29         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
30         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
31         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
32         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
33         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
34         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
35         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
36         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
37         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
38         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
39         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
40         Likewise.
41         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42         Likewise.
43         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
44         Likewise.
45         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
46         Likewise.
47         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
49         Likewise.
50         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
51         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
52         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
53         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
54         Likewise.
55         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
57         * sysdeps/powerpc/preconfigure: Likewise.
58         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
59         Likewise.
60         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
61         Replace contents of file by #include of <fenv_libc.h>.
62         * sysdeps/powerpc/soft-fp/sfp-machine.h
63         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
64         and <sys/prctl.h>.
65         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
66         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
67         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
68         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
69         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
70         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
71         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
72         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
73         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
74         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
75         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
76         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
77         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
78         Allow copysignl PLT reference to be missing.
79
80 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
81             Joseph Myers  <joseph@codesourcery.com
82
83         [BZ #15948]
84         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
85         single character.
86         (add_to_tablewc): Assert sequence of wide characters is nonempty.
87
88 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
89
90         * elf/tst-tls-dlinfo.c: Don't include tls.h.
91         * elf/tst-tls1.c: Likewise.
92         * elf/tst-tls10.h: Likewise.
93         * elf/tst-tls14.c: Likewise.
94         * elf/tst-tls2.c: Likewise.
95         * elf/tst-tls3.c: Likewise.
96         * elf/tst-tls4.c: Likewise.
97         * elf/tst-tls5.c: Likewise.
98         * elf/tst-tls6.c: Likewise.
99         * elf/tst-tls7.c: Likewise.
100         * elf/tst-tls8.c: Likewise.
101         * elf/tst-tls9.c: Likewise.
102         * elf/tst-tlsmod1.c: Likewise.
103         * elf/tst-tlsmod13.c: Likewise.
104         * elf/tst-tlsmod13a.c: Likewise.
105         * elf/tst-tlsmod14a.c: Likewise.
106         * elf/tst-tlsmod16a.c: Likewise.
107         * elf/tst-tlsmod16b.c: Likewise.
108         * elf/tst-tlsmod2.c: Likewise.
109         * elf/tst-tlsmod3.c: Likewise.
110         * elf/tst-tlsmod4.c: Likewise.
111         * elf/tst-tlsmod5.c: Likewise.
112         * elf/tst-tlsmod6.c: Likewise.
113
114 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
115
116         [BZ #12486]
117         * malloc/malloc.c: remove checks for statistics.
118
119 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
120
121         [BZ #15277]
122         * inet/inet_net.c (inet_network): Detect additional invalid strings.
123         * inet/tst-network.c: Add testcase.
124
125 2013-10-17  Andreas Schwab  <schwab@suse.de>
126
127         [BZ #15218]
128         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
129         to determine canonical name.
130
131 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
132
133         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
134         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
135         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
136         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
137         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
138         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
139         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
140         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
141         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
142         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
143         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
144         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
145         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
146         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
147         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
148         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
149         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
150         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
151         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
152         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
153         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
154         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
155         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
156         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
157         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
158         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
159         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
160         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
161         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
162         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
163         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
164         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
165         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
166         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
167         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
168         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
169         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
170         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
171         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
172         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
173         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
174         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
175         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
176         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
177         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
178         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
179         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
180         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
181         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
182         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
183         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
184         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
185         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
186         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
187         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
188         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
189         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
190         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
191
192 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
193
194         [BZ #16041]
195         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
196         make result into a quiet NaN.
197
198 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
199
200         * soft-fp/adddf3.c: Fix horizontal whitespace.
201         * soft-fp/addsf3.c: Likewise.
202         * soft-fp/addtf3.c: Likewise.
203         * soft-fp/divdf3.c: Likewise.
204         * soft-fp/divsf3.c: Likewise.
205         * soft-fp/divtf3.c: Likewise.
206         * soft-fp/double.h: Likewise.
207         * soft-fp/eqdf2.c: Likewise.
208         * soft-fp/eqsf2.c: Likewise.
209         * soft-fp/eqtf2.c: Likewise.
210         * soft-fp/extenddftf2.c: Likewise.
211         * soft-fp/extended.h: Likewise.
212         * soft-fp/extendsfdf2.c: Likewise.
213         * soft-fp/extendsftf2.c: Likewise.
214         * soft-fp/extendxftf2.c: Likewise.
215         * soft-fp/fixdfdi.c: Likewise.
216         * soft-fp/fixdfsi.c: Likewise.
217         * soft-fp/fixdfti.c: Likewise.
218         * soft-fp/fixsfdi.c: Likewise.
219         * soft-fp/fixsfsi.c: Likewise.
220         * soft-fp/fixsfti.c: Likewise.
221         * soft-fp/fixtfdi.c: Likewise.
222         * soft-fp/fixtfsi.c: Likewise.
223         * soft-fp/fixtfti.c: Likewise.
224         * soft-fp/fixunsdfdi.c: Likewise.
225         * soft-fp/fixunsdfsi.c: Likewise.
226         * soft-fp/fixunsdfti.c: Likewise.
227         * soft-fp/fixunssfdi.c: Likewise.
228         * soft-fp/fixunssfsi.c: Likewise.
229         * soft-fp/fixunssfti.c: Likewise.
230         * soft-fp/fixunstfdi.c: Likewise.
231         * soft-fp/fixunstfsi.c: Likewise.
232         * soft-fp/fixunstfti.c: Likewise.
233         * soft-fp/floatdidf.c: Likewise.
234         * soft-fp/floatdisf.c: Likewise.
235         * soft-fp/floatditf.c: Likewise.
236         * soft-fp/floatsidf.c: Likewise.
237         * soft-fp/floatsisf.c: Likewise.
238         * soft-fp/floatsitf.c: Likewise.
239         * soft-fp/floattidf.c: Likewise.
240         * soft-fp/floattisf.c: Likewise.
241         * soft-fp/floattitf.c: Likewise.
242         * soft-fp/floatundidf.c: Likewise.
243         * soft-fp/floatundisf.c: Likewise.
244         * soft-fp/floatunditf.c: Likewise.
245         * soft-fp/floatunsidf.c: Likewise.
246         * soft-fp/floatunsisf.c: Likewise.
247         * soft-fp/floatunsitf.c: Likewise.
248         * soft-fp/floatuntidf.c: Likewise.
249         * soft-fp/floatuntisf.c: Likewise.
250         * soft-fp/floatuntitf.c: Likewise.
251         * soft-fp/fmadf4.c: Likewise.
252         * soft-fp/fmasf4.c: Likewise.
253         * soft-fp/fmatf4.c: Likewise.
254         * soft-fp/gedf2.c: Likewise.
255         * soft-fp/gesf2.c: Likewise.
256         * soft-fp/getf2.c: Likewise.
257         * soft-fp/ledf2.c: Likewise.
258         * soft-fp/lesf2.c: Likewise.
259         * soft-fp/letf2.c: Likewise.
260         * soft-fp/muldf3.c: Likewise.
261         * soft-fp/mulsf3.c: Likewise.
262         * soft-fp/multf3.c: Likewise.
263         * soft-fp/negdf2.c: Likewise.
264         * soft-fp/negsf2.c: Likewise.
265         * soft-fp/negtf2.c: Likewise.
266         * soft-fp/op-1.h: Likewise.
267         * soft-fp/op-2.h: Likewise.
268         * soft-fp/op-4.h: Likewise.
269         * soft-fp/op-8.h: Likewise.
270         * soft-fp/op-common.h: Likewise.
271         * soft-fp/quad.h: Likewise.
272         * soft-fp/single.h: Likewise.
273         * soft-fp/soft-fp.h: Likewise.
274         * soft-fp/sqrtdf2.c: Likewise.
275         * soft-fp/sqrtsf2.c: Likewise.
276         * soft-fp/sqrttf2.c: Likewise.
277         * soft-fp/subdf3.c: Likewise.
278         * soft-fp/subsf3.c: Likewise.
279         * soft-fp/subtf3.c: Likewise.
280         * soft-fp/truncdfsf2.c: Likewise.
281         * soft-fp/trunctfdf2.c: Likewise.
282         * soft-fp/trunctfsf2.c: Likewise.
283         * soft-fp/trunctfxf2.c: Likewise.
284         * soft-fp/unorddf2.c: Likewise.
285         * soft-fp/unordsf2.c: Likewise.
286         * soft-fp/unordtf2.c: Likewise.
287
288 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
289
290         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
291         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
292
293 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
294
295         * elf/dl-libc.c: Clear initfini list after freeing.
296
297 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
298
299         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
300         * soft-fp/addsf3.c: Likewise.
301         * soft-fp/addtf3.c: Likewise.
302         * soft-fp/divdf3.c: Likewise.
303         * soft-fp/divsf3.c: Likewise.
304         * soft-fp/divtf3.c: Likewise.
305         * soft-fp/double.h: Likewise.
306         * soft-fp/eqdf2.c: Likewise.
307         * soft-fp/eqsf2.c: Likewise.
308         * soft-fp/eqtf2.c: Likewise.
309         * soft-fp/extenddftf2.c: Likewise.
310         * soft-fp/extended.h: Likewise.
311         * soft-fp/extendsfdf2.c: Likewise.
312         * soft-fp/extendsftf2.c: Likewise.
313         * soft-fp/extendxftf2.c: Likewise.
314         * soft-fp/fixdfdi.c: Likewise.
315         * soft-fp/fixdfsi.c: Likewise.
316         * soft-fp/fixdfti.c: Likewise.
317         * soft-fp/fixsfdi.c: Likewise.
318         * soft-fp/fixsfsi.c: Likewise.
319         * soft-fp/fixsfti.c: Likewise.
320         * soft-fp/fixtfdi.c: Likewise.
321         * soft-fp/fixtfsi.c: Likewise.
322         * soft-fp/fixtfti.c: Likewise.
323         * soft-fp/fixunsdfdi.c: Likewise.
324         * soft-fp/fixunsdfsi.c: Likewise.
325         * soft-fp/fixunsdfti.c: Likewise.
326         * soft-fp/fixunssfdi.c: Likewise.
327         * soft-fp/fixunssfsi.c: Likewise.
328         * soft-fp/fixunssfti.c: Likewise.
329         * soft-fp/fixunstfdi.c: Likewise.
330         * soft-fp/fixunstfsi.c: Likewise.
331         * soft-fp/fixunstfti.c: Likewise.
332         * soft-fp/floatdidf.c: Likewise.
333         * soft-fp/floatdisf.c: Likewise.
334         * soft-fp/floatditf.c: Likewise.
335         * soft-fp/floatsidf.c: Likewise.
336         * soft-fp/floatsisf.c: Likewise.
337         * soft-fp/floatsitf.c: Likewise.
338         * soft-fp/floattidf.c: Likewise.
339         * soft-fp/floattisf.c: Likewise.
340         * soft-fp/floattitf.c: Likewise.
341         * soft-fp/floatundidf.c: Likewise.
342         * soft-fp/floatundisf.c: Likewise.
343         * soft-fp/floatunsidf.c: Likewise.
344         * soft-fp/floatunsisf.c: Likewise.
345         * soft-fp/floatuntidf.c: Likewise.
346         * soft-fp/floatuntisf.c: Likewise.
347         * soft-fp/floatuntitf.c: Likewise.
348         * soft-fp/fmadf4.c: Likewise.
349         * soft-fp/fmasf4.c: Likewise.
350         * soft-fp/fmatf4.c: Likewise.
351         * soft-fp/gedf2.c: Likewise.
352         * soft-fp/gesf2.c: Likewise.
353         * soft-fp/getf2.c: Likewise.
354         * soft-fp/ledf2.c: Likewise.
355         * soft-fp/lesf2.c: Likewise.
356         * soft-fp/letf2.c: Likewise.
357         * soft-fp/muldf3.c: Likewise.
358         * soft-fp/mulsf3.c: Likewise.
359         * soft-fp/multf3.c: Likewise.
360         * soft-fp/negdf2.c: Likewise.
361         * soft-fp/negsf2.c: Likewise.
362         * soft-fp/negtf2.c: Likewise.
363         * soft-fp/op-1.h: Likewise.
364         * soft-fp/op-2.h: Likewise.
365         * soft-fp/op-4.h: Likewise.
366         * soft-fp/op-8.h: Likewise.
367         * soft-fp/op-common.h: Likewise.
368         * soft-fp/quad.h: Likewise.
369         * soft-fp/single.h: Likewise.
370         * soft-fp/soft-fp.h: Likewise.
371         * soft-fp/sqrtdf2.c: Likewise.
372         * soft-fp/sqrtsf2.c: Likewise.
373         * soft-fp/sqrttf2.c: Likewise.
374         * soft-fp/subdf3.c: Likewise.
375         * soft-fp/subsf3.c: Likewise.
376         * soft-fp/subtf3.c: Likewise.
377         * soft-fp/truncdfsf2.c: Likewise.
378         * soft-fp/trunctfdf2.c: Likewise.
379         * soft-fp/trunctfsf2.c: Likewise.
380         * soft-fp/trunctfxf2.c: Likewise.
381         * soft-fp/unorddf2.c: Likewise.
382         * soft-fp/unordsf2.c: Likewise.
383         * soft-fp/unordtf2.c: Likewise.
384
385 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
386
387         [BZ #15672]
388         * misc/error.c (error_tail): Fix possible buffer overflow.
389
390 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
391
392         [BZ #13028]
393         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
394         address.
395
396 2013-10-14  P. J. McDermott  <pj@pehjota.net>
397
398         [BZ #832]
399         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
400         testing pipefail option.
401
402 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
403
404         * soft-fp/double.h: Indent preprocessor directives inside #if.
405         * soft-fp/extended.h: Likewise.
406         * soft-fp/op-2.h: Likewise.
407         * soft-fp/op-4.h: Likewise.
408         * soft-fp/op-common.h: Likewise.
409         * soft-fp/quad.h: Likewise.
410         * soft-fp/single.h: Likewise.
411         * soft-fp/soft-fp.h: Likewise.
412
413 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
414
415         * iconv/iconv_prog.c: Fix typos.
416         * stdio-common/psiginfo-data.h: Likewise.
417
418 2013-10-12   Reuben Thomas <rrt@sc3d.org>
419
420         [BZ #15764]
421         * locale/setlocale.c: Fix typo.
422
423 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
424
425         [BZ #16036]
426         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
427         signaling NaN arguments.
428         * soft-fp/unordsf2.c (__unordsf2): Likewise.
429         * soft-fp/unordtf2.c (__unordtf2): Likewise.
430
431         [BZ #14910]
432         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
433         unordered operands.
434         * soft-fp/gesf2.c (__gesf2): Likewise.
435         * soft-fp/getf2.c (__getf2): Likewise.
436         * soft-fp/ledf2.c (__ledf2): Likewise.
437         * soft-fp/lesf2.c (__lesf2): Likewise.
438         * soft-fp/letf2.c (__letf2): Likewise.
439
440         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
441         * soft-fp/eqsf2.c (__eqsf2): Likewise.
442         * soft-fp/eqtf2.c (__eqtf2): Likewise.
443         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
444         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
445         * soft-fp/fixdfti.c (__fixdfti): Likewise.
446         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
447         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
448         * soft-fp/fixsfti.c (__fixsfti): Likewise.
449         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
450         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
451         * soft-fp/fixtfti.c (__fixtfti): Likewise.
452         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
453         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
454         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
455         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
456         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
457         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
458         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
459         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
460         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
461         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
462         * soft-fp/floatdisf.c (__floatdisf): Likewise.
463         * soft-fp/floatsisf.c (__floatsisf): Likewise.
464         * soft-fp/floattidf.c (__floattidf): Likewise.
465         * soft-fp/floattisf.c (__floattisf): Likewise.
466         * soft-fp/floattitf.c (__floattitf): Likewise.
467         * soft-fp/floatundidf.c (__floatundidf): Likewise.
468         * soft-fp/floatundisf.c (__floatundisf): Likewise.
469         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
470         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
471         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
472         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
473         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
474         * soft-fp/gesf2.c (__gesf2): Likewise.
475         * soft-fp/getf2.c (__getf2): Likewise.
476         * soft-fp/ledf2.c (__ledf2): Likewise.
477         * soft-fp/lesf2.c (__lesf2): Likewise.
478         * soft-fp/letf2.c (__letf2): Likewise.
479
480         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
481         Undefine and redefine.
482         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
483         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
484         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
485         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
486         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
487         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
488         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
489         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
490         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
491         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
492         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
493         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
494         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
495         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
496         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
497
498         [BZ #16032]
499         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
500         without decrementing exponent if mantissa >= that for the
501         denominator, not >.
502         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
503         denominator, not >.  Decrement exponent in < case instead of
504         incrementing in >= case.
505         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
506         without decrementing exponent if mantissa >= that for the
507         denominator, not >.
508
509         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
510         computing saturated result for unsigned overflow.
511
512 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
513             Jeff Law  <law@redhat.com>
514
515         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
516         (atan2Mp): Add systemtap probe marker.
517         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
518         (__ieee754_log): Add systemtap probe marker.
519         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
520         (atanMp): Add systemtap probe marker.
521         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
522         (tanMp): Add systemtap probe marker.
523         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
524         (__slowexp): Add systemtap probe marker.
525         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
526         (__slowpow): Add systemtap probe marker.
527         * manual/probes.texi: Document probes.
528
529 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
530
531         [BZ #15362]
532         * libio/fileops.c (_IO_new_file_write): Return count of bytes
533         written.
534         (_IO_new_file_xsputn): Don't return EOF if nothing has been
535         written.
536         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
537         written to buffer but not flushed.
538         * libio/iofwrite_u.c:  Likewise.
539         * libio/iopadn.c:  Return bytes returned even if EOF was
540         encountered.
541         * libio/iowpadn.c:  Likewise.
542         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
543         if _IO_padn does not write the whole buffer.
544         [!COMPILE_WPRINTF] (PAD): Likewise.
545
546 2013-10-10  David S. Miller  <davem@davemloft.net>
547
548         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
549         directory block.
550
551 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
552
553         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
554         instead of FSF address.
555         * soft-fp/fixdfti.c: Likewise.
556         * soft-fp/fixsfti.c: Likewise.
557         * soft-fp/fixtfti.c: Likewise.
558         * soft-fp/fixunsdfti.c: Likewise.
559         * soft-fp/fixunssfti.c: Likewise.
560         * soft-fp/fixunstfti.c: Likewise.
561         * soft-fp/floattidf.c: Likewise.
562         * soft-fp/floattisf.c: Likewise.
563         * soft-fp/floattitf.c: Likewise.
564         * soft-fp/floatuntidf.c: Likewise.
565         * soft-fp/floatuntisf.c: Likewise.
566         * soft-fp/floatuntitf.c: Likewise.
567         * soft-fp/trunctfxf2.c: Likewise.
568
569         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
570         * soft-fp/fixdfti.c: Likewise.
571         * soft-fp/fixsfti.c: Likewise.
572         * soft-fp/fixtfti.c: Likewise.
573         * soft-fp/fixunsdfti.c: Likewise.
574         * soft-fp/fixunssfti.c: Likewise.
575         * soft-fp/fixunstfti.c: Likewise.
576         * soft-fp/floattidf.c: Likewise.
577         * soft-fp/floattisf.c: Likewise.
578         * soft-fp/floattitf.c: Likewise.
579         * soft-fp/floatuntidf.c: Likewise.
580         * soft-fp/floatuntisf.c: Likewise.
581         * soft-fp/floatuntitf.c: Likewise.
582         * soft-fp/trunctfxf2.c: Likewise.
583
584 2013-10-10  David S. Miller  <davem@davemloft.net>
585
586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
587
588 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
589
590         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
591         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
592         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
593         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
594         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
595         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
596         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
597
598         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
599         for NaNs before doing comparisons on argument.
600         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
601         Likewise.
602
603 2013-10-10  Will Newton  <will.newton@linaro.org>
604
605         * malloc/hooks.c (memalign_check): Ensure the value of bytes
606         passed to _int_memalign does not overflow.
607
608 2013-10-10  Torvald Riegel  <triegel@redhat.com>
609
610         * scripts/bench.pl: Add include-sources directive.
611         * benchtests/README: Update documentation.
612
613 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
614
615         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
616         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
617         instead of FP_INIT_ROUNDMODE.
618         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
619         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
620
621         [BZ #16034]
622         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
623         copy class of input value.
624         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
625         not handle exceptions.
626         * soft-fp/negsf2.c (__negsf2): Likewise.
627         * soft-fp/negtf2.c (__negtf2): Likewise.
628         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
629
630 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
631
632         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
633         semicolon.  From Linux kernel.
634
635 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
636
637         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
638
639 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
640
641         [BZ #156]
642         * manual/socket.texi: Added statement about buffer
643         for gethostbyname2_r.
644
645 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
646
647         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
648         Use .p2align directive instead, throughout.
649         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
650         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
651         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
652         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
653         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
654         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
655         * sysdeps/x86_64/strchr.S: Likewise.
656         * sysdeps/x86_64/strrchr.S: Likewise.
657
658 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
659
660         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
661
662         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
663
664         * sysdeps/generic/math_private.h (__mpsin1): Remove
665         declaration.
666         (__mpcos1): Likewise.
667         (__mpsin): New argument __range_reduce.
668         (__mpcos): Likewise.
669         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
670         (slow): Use __mpsin and __mpcos.
671         (slow1): Likewise.
672         (slow2): Likewise.
673         (sloww): Likewise.
674         (sloww1): Likewise.
675         (sloww2): Likewise.
676         (bsloww): Likewise.
677         (bsloww1): Likewise.
678         (bsloww2): Likewise.
679         (cslow2): Likewise.
680         (csloww): Likewise.
681         (csloww1): Likewise.
682         (csloww2): Likewise.
683         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
684         range_reduce.  Merge in __mpsin1.
685         (__mpcos): Likewise.
686         (__mpsin1): Remove.
687         (__mpcos1): Likewise.
688
689 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
690
691         * locale/loadlocale.c (_nl_intern_locale_data): Use
692         LOCFILE_ALIGNED_P.
693         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
694         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
695         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
696         obstack data is appropriately aligned.
697         (obstack_int32_grow_fast): Likewise.
698         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
699         * locale/programs/locfile.c (add_locale_uint32): Likewise.
700         (add_locale_uint32_array): Likewise.
701
702 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
703
704         * benchtests/Makefile: Remove ARGLIST and RET variables.
705         ($(objpfx)bench-%.c): Pass only function name to the script.
706         * benchtests/README: Update documentation.
707         * benchtests/acos-inputs: Add new directives.
708         * benchtests/acosh-inputs: Likewise.
709         * benchtests/asin-inputs: Likewise.
710         * benchtests/asinh-inputs: Likewise.
711         * benchtests/atan-inputs: Likewise.
712         * benchtests/atanh-inputs: Likewise.
713         * benchtests/cos-inputs: Likewise.
714         * benchtests/cosh-inputs: Likewise.
715         * benchtests/exp-inputs: Likewise.
716         * benchtests/log-inputs: Likewise.
717         * benchtests/pow-inputs: Likewise.
718         * benchtests/rint-inputs: Likewise.
719         * benchtests/sin-inputs: Likewise.
720         * benchtests/sinh-inputs: Likewise.
721         * benchtests/tan-inputs: Likewise.
722         * benchtests/tanh-inputs: Likewise.
723         * scripts/bench.pl: Add support for new directives.
724
725 2013-10-07  Alan Modra  <amodra@gmail.com>
726
727         * README: Fix careless merge.
728
729 2013-10-05  Alan Modra  <amodra@gmail.com>
730
731         * NEWS: Mention powerpc64le support and bugs fixed.
732         * README: Both big-endian and little-endian powerpc64 supported.
733
734 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
735
736         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
737         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
738         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
739         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
740
741 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
742
743         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
744         match prototype.
745
746 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
747
748         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
749         Move -mhard-float appending from
750         ports/sysdeps/powerpc/powerpc32/Makefile.
751         [$(with-fp) = yes] (ASFLAGS): Likewise.
752         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
753         * sysdeps/powerpc/nofpu: Move directory from
754         ports/sysdeps/powerpc/nofpu.
755         * sysdeps/powerpc/soft-fp: Move directory from
756         ports/sysdeps/powerpc/soft-fp.
757         * sysdeps/powerpc/powerpc32/405: Move directory from
758         ports/sysdeps/powerpc/powerpc32/405.
759         * sysdeps/powerpc/powerpc32/440: Move directory from
760         ports/sysdeps/powerpc/powerpc32/440.
761         * sysdeps/powerpc/powerpc32/464: Move directory from
762         ports/sysdeps/powerpc/powerpc32/464.
763         * sysdeps/powerpc/powerpc32/476: Move directory from
764         ports/sysdeps/powerpc/powerpc32/476.
765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
766         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
768         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
770         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
772         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
774         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
775         * README: Update for powerpc-*-linux-gnu software floating point
776         support in libc.
777
778         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
779         case to powerpc/powerpc32*.
780         * sysdeps/unix/sysv/linux/configure: Regenerated.
781
782         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
783         (_FPU_MASK_OM): Define as 0x04.
784         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
785         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
786         0x00c10080.
787         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
788         0x0000003c.
789         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
790
791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
792         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
793         getcontext_e500.
794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
795         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
796         setcontext_e500.
797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
798         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
799         and setcontext_e500.
800
801 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
802
803         * locale/iso-3166.def: Update iso-1366.def and related occurrences
804
805 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
806
807         * manual/threads.texi (Default Thread Attributes): Fix typo.
808
809 2013-10-04  Will Newton  <will.newton@linaro.org>
810
811         * malloc/Makefile: Add tst-memalign.
812         * malloc/tst-memalign.c: New file.
813
814         * malloc/tst-posix_memalign.c: Add comments.
815         (do_test): Add comments and call free on all potentially
816         allocated pointers. Add space after cast.
817
818         * malloc/tst-pvalloc.c: Add comments.
819         (do_test): Add comments and call free on all potentially
820         allocated pointers. Remove duplicate check for NULL pointer.
821         Add space after cast.
822
823         * malloc/tst-valloc.c: Add comments.
824         (do_test): Add comments and call free on all potentially
825         allocated pointers. Remove duplicate check for NULL pointer.
826         Add space after cast.
827
828 2013-10-04  Alan Modra  <amodra@gmail.com>
829
830         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
831         Use stdint types in rather than __attribute__((mode())).
832         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
833
834 2013-10-04  Alan Modra  <amodra@gmail.com>
835
836         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
837         Correct handling of unaligned relocs for little-endian.
838         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
839
840 2013-10-04  Alan Modra  <amodra@gmail.com>
841
842         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
843         * configure: Regenerate.
844         * nptl/shlib-versions: Powerpc*le starts at 2.18.
845         * shlib-versions: Likewise.
846
847 2013-10-04  Alan Modra  <amodra@gmail.com>
848
849         * string/tester.c (test_memrchr): Increment reported test cycle.
850
851 2013-10-04  Alan Modra  <amodra@gmail.com>
852
853         * string/test-memcpy.c (do_one_test): When reporting errors, print
854         string address and don't overrun end of string.
855
856 2013-10-04  Alan Modra  <amodra@gmail.com>
857
858         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
859         insrdi.  Make better use of reg selection to speed exit slightly.
860         Schedule entry path a little better.  Remove useless "are we done"
861         checks on entry to main loop.  Handle wrapping around zero address.
862         Correct main loop count.  Handle single left-over word from main
863         loop inline rather than by using loop_small.  Remove extra word
864         case in loop_small caused by wrong loop count.  Add little-endian
865         support.
866         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
867         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
868         cache hint.
869         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
870         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
871         support.  Avoid rlwimi.
872         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
873
874 2013-10-04  Alan Modra  <amodra@gmail.com>
875
876         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
877         insrdi.  Formatting.
878         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
879         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
880         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
881         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
882         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
883         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
884
885 2013-10-04  Alan Modra  <amodra@gmail.com>
886
887         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
888         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
889         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
890         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
891         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
892         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
893         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
894         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
895         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
896         use of regs.  Use power7 mtocrf.  Tidy function tails.
897
898 2013-10-04  Alan Modra  <amodra@gmail.com>
899
900         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
901         Formatting.  Consistently use rXXX register defines or rN defines.
902         Use early exit labels that avoid restoring unused non-volatile regs.
903         Make cr field use more consistent with rWORDn compares.  Rename
904         regs used as shift registers for unaligned loop, using rN defines
905         for short lifetime/multiple use regs.
906         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
907         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
908         addi 1,1,64 to pop stack frame.  Simplify return value code.
909         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
910
911 2013-10-04  Alan Modra  <amodra@gmail.com>
912
913         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
914         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
915         rather than rlwimi.
916         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
917         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
918         little-endian support.  Correct typos.
919         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
920         rather than rlwimi.
921         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
922         in loop and entry code to keep "and." results.
923         (strchr): Add little-endian support.  Comment.  Move cntlzd
924         earlier in tail.
925         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
926
927 2013-10-04  Alan Modra  <amodra@gmail.com>
928
929         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
930         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
931         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
932         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
933
934 2013-10-04  Alan Modra  <amodra@gmail.com>
935
936         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
937         (rTMP): Define as r11.
938         (strcmp): Add little-endian support.  Optimise tail.
939         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
940         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
941         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
942         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
943         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
944         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
945         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
946
947 2013-10-04  Alan Modra  <amodra@gmail.com>
948
949         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
950         little-endian support.  Remove unnecessary "are we done" tests.
951         Handle "s" wrapping around zero and extremely large "size".
952         Correct main loop count.  Handle single left-over word from main
953         loop inline rather than by using small_loop.  Correct comments.
954         Delete "zero" tail, use "end_max" instead.
955         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
956
957 2013-10-04  Alan Modra  <amodra@gmail.com>
958
959         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
960         support.  Don't branch over align.
961         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
962         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
963         support.  Rearrange tmp reg use to suit.  Comment.
964         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
965
966 2013-10-04  Alan Modra  <amodra@gmail.com>
967
968         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
969
970 2013-10-04  Alan Modra  <amodra@gmail.com>
971
972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
973         conditional form of branch and link when obtaining pc.
974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
975
976 2013-10-04  Alan Modra  <amodra@gmail.com>
977
978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
979         HIWORD/LOWORD.
980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
982
983 2013-10-04  Alan Modra  <amodra@gmail.com>
984
985         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
986         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
987         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
988         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
989         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
990         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
991         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
992         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
993         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
994         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
995
996 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
997             Alistair Popple <alistair@ozlabs.au.ibm.com>
998             Alan Modra <amodra@gmail.com>
999
1000         [BZ #15723]
1001         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
1002         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
1003         _dl_hwcap access for little-endian.
1004         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
1005         destroy vmx regs when saving unaligned.
1006         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
1007         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
1008         destroy vmx regs when saving unaligned.
1009
1010 2013-10-04  Alan Modra  <amodra@gmail.com>
1011
1012         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
1013         Don't use a union to pack hi/low value.
1014
1015 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1016
1017         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
1018         for little-endian.
1019         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1020         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1021         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1022         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1023         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1024
1025 2013-10-04  Alan Modra  <amodra@gmail.com>
1026
1027         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
1028         constants to usual value for .cst8 section, and remove redundant
1029         high address load.
1030         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
1031         constant for 0x1p52.  Load little-endian words of double from
1032         correct stack offsets.
1033
1034 2013-10-04  Alan Modra  <amodra@gmail.com>
1035
1036         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
1037         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
1038         words of double from correct stack offsets.
1039         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
1040         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
1041         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
1042         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1043         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1044         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1045         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1046         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1047         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1048         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1049         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1050         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1051         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1052         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1053         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1054         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
1055         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1056
1057 2013-10-04  Alan Modra  <amodra@gmail.com>
1058
1059         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
1060         64-bit int/double union.
1061         (_FPU_SETCW): Likewise.
1062         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1063         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
1064
1065 2013-10-04  Alan Modra  <amodra@gmail.com>
1066
1067         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
1068         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
1069
1070 2013-10-04  Alan Modra  <amodra@gmail.com>
1071
1072         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
1073         use vector int constants.
1074         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
1075
1076 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1077
1078         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
1079         array with long long.
1080         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
1081         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
1082         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
1083         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
1084         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
1085         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
1086         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
1087         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
1088         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
1089         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
1090         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
1091         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
1092         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
1093
1094 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1095
1096         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
1097         (__signbit): Likewise.  Correct for little-endian.
1098         (__signbitl): Call __signbit.
1099         (lrint): Correct for little-endian.
1100         (lrintf): Call lrint.
1101
1102 2013-10-04  Alan Modra  <amodra@gmail.com>
1103
1104         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
1105         union 32-bit int array member with 64-bit int array.
1106         (t515, tm256): Double rather than long double.
1107         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
1108
1109 2013-10-04  Alan Modra  <amodra@gmail.com>
1110
1111         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
1112         Delete.
1113         (IEEE854_LONG_DOUBLE_BIAS): Delete.
1114         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
1115         version of math_ldbl.h.
1116
1117 2013-10-04  Alan Modra  <amodra@gmail.com>
1118
1119         [BZ #15734], [BZ #15735]
1120         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
1121         all uses of ieee875 long double macros and unions.  Simplify test
1122         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
1123         ldbl_extract_mantissa value for ix,iy exponents.  Properly
1124         normalize after ldbl_extract_mantissa, and don't add hidden bit
1125         already handled.  Don't treat low word of ieee854 mantissa like
1126         low word of IBM long double and mask off bit when testing for
1127         zero.
1128         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
1129         all uses of ieee875 long double macros and unions.  Simplify tests
1130         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
1131         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
1132         two1022, instead use their values.  Recognise that tests for large
1133         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
1134         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
1135         Rewrite all uses of ieee875 long double macros and unions.  Simplify
1136         test for 0.0L and nan.  Correct negation.
1137         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
1138         ieee875 long double macros and unions.  Correct output for large
1139         magnitude x.  Correct absolute value calculation.
1140         (__erfcl): Likewise.
1141         * math/libm-test.inc: Add tests for errors discovered in IBM long
1142         double versions of fmodl, remainderl, erfl and erfcl.
1143
1144 2013-10-04  Alan Modra  <amodra@gmail.com>
1145
1146         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
1147         all uses of ieee854 long double macros and unions.  Simplify tests
1148         for long doubles that are fully specified by the high double.
1149         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1150         Likewise.
1151         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
1152         Remove dead code too.
1153         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1154         (__ieee754_ynl): Likewise.
1155         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
1156         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
1157         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1158         Remove dead code too.
1159         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
1160         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
1161         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1162         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
1163         Simplify.
1164         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
1165         Simplify.
1166         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
1167         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
1168         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
1169         Comment on variable precision.
1170         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
1171         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1172         Likewise.
1173         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
1174         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
1175         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
1176         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
1177         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
1178
1179 2013-10-04  Alan Modra  <amodra@gmail.com>
1180
1181         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
1182         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
1183         all uses of ieee854 long double macros and unions.
1184         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
1185         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1186         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
1187         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
1188         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
1189         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1190         Likewise.
1191         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
1192         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1193         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
1194         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1195         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
1196         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
1197         Simplify sign and nan test too.
1198         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
1199         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
1200         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
1201         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
1202         Likewise.
1203         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
1204         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
1205         Likewise.
1206         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1207         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
1208         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
1209         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
1210         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
1211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
1212
1213 2013-10-04  Alan Modra  <amodra@gmail.com>
1214
1215         * stdio-common/printf_size.c (__printf_size): Don't use
1216         union ieee854_long_double in fpnum union.
1217         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
1218         signbit macro to retrieve sign from long double.
1219         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
1220         retrieve sign from long double.
1221         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
1222         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
1223         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
1224         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
1225         * math/test-misc.c (main): Don't use union ieee854_long_double.
1226
1227 2013-10-04  Alan Modra  <amodra@gmail.com>
1228
1229         [BZ #15680]
1230         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
1231         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
1232         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
1233         calculation.  Remove unnecessary test for denormal exponent.
1234         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
1235         Correct handling of denormals.  Avoid undefined shift behaviour.
1236         Correct normalisation of low mantissa when low double is denormal.
1237         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
1238         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
1239         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
1240         Correct normalisation of low mantissa.  Test for overflow of high
1241         mantissa and normalise.
1242         (ldbl_nearbyint): Use more readable constant for two52.
1243         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
1244         (__mpn_construct_long_double): Fix test for overflow of high
1245         mantissa and correct normalisation.  Avoid undefined shift.
1246
1247 2013-10-04  Alan Modra  <amodra@gmail.com>
1248
1249         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1250         (union ibm_extended_long_double): Define as an array of ieee754_double.
1251         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
1252         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
1253         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
1254         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1255         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1256         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
1257         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
1258         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
1259         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
1260         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
1261         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1262
1263 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
1264
1265         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
1266         page size instead of calling getpagesize.
1267
1268         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
1269         (LOCFILE_ALIGN_MASK): Likewise.
1270         (LOCFILE_ALIGN_UP): Likewise.
1271         (LOCFILE_ALIGNED_P): Likewise.
1272         * locale/programs/ld-collate.c (collate_output): Use the new
1273         macros instead of __alignof__ (int32_t).
1274         * locale/weight.h (findidx): Likewise.
1275
1276 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
1277
1278         [BZ #431]
1279         * manual/string.texi: Fix strncat and wcsncat.
1280
1281 2013-10-03  Brooks Moses  <bmoses@google.com>
1282
1283         [BZ #15915]
1284         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
1285         * Makerules: ...here, and adjust associated comments.
1286
1287 2013-10-02  Will Newton  <will.newton@linaro.org>
1288
1289         * malloc/Makefile: Add tst-pvalloc.
1290         * malloc/tst-pvalloc.c: New file.
1291
1292 2013-10-02  Will Newton  <will.newton@linaro.org>
1293
1294         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
1295         improve test coverage.
1296
1297 2013-10-02  Will Newton  <will.newton@linaro.org>
1298
1299         * malloc/Makefile: Add tst-posix_memalign.
1300         * malloc/tst-posix_memalign.c: New file.
1301
1302 2013-10-01  Eric Blake  <eblake@redhat.com>
1303
1304         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
1305         Use __THROWNL rather than __THROW on static functions.
1306
1307 2013-09-30  Petr Machata  <pmachata@redhat.com>
1308
1309         * elf/elf.h (R_AARCH64_ABS16): New macro.
1310         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
1311         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
1312         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
1313         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
1314         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
1315         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
1316         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
1317         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
1318         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
1319         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
1320         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
1321         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
1322         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
1323         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
1324         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
1325         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
1326         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
1327         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
1328         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
1329         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
1330         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
1331         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
1332         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
1333         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
1334         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
1335         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
1336         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
1337         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
1338         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
1339         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
1340         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
1341         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
1342         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
1343         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
1344         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
1345         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
1346         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
1347         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
1348         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
1349         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
1350         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
1351         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
1352         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
1353         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
1354         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
1355         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
1356         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
1357         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
1358         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
1359         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
1360         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
1361         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
1362         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
1363         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
1364         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
1365         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
1366         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
1367         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
1368         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
1369         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
1370         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
1371         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
1372         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
1373         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
1374         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
1375         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
1376         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
1377         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
1378         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
1379         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
1380         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
1381         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
1382         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
1383         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
1384         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
1385         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
1386         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
1387         (R_AARCH64_TLSDESC_LDR): Likewise.
1388         (R_AARCH64_TLSDESC_ADD): Likewise.
1389         (R_AARCH64_TLSDESC_CALL): Likewise.
1390
1391 2013-09-30  Andreas Schwab  <schwab@suse.de>
1392
1393         [BZ #15048]
1394         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
1395         the nss database lookup.
1396         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1398
1399 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1400
1401         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
1402
1403 2013-09-28  P. J. McDermott  <pj@pehjota.net>
1404
1405         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
1406         ${Bash-specific parameter/pattern/string} parameter expansion.
1407         * sysdeps/unix/make-syscalls.sh: Likewise.
1408
1409 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1410
1411         * sysdeps/sh/stackguard-macros.h: New file.
1412
1413 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
1414
1415         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1416         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
1417         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
1418         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
1419         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1420         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
1421
1422 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1423
1424         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
1425         Fix thread ID register.
1426
1427 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
1428
1429         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
1430         [POSIX || UNIX98]: Require rather than permitting all symbols from
1431         <time.h>.
1432         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
1433         element of struct sched_param.
1434         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
1435         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
1436         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
1437         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
1438         constant.
1439
1440 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
1441
1442         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
1443         argument calculation.
1444
1445 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1446
1447         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
1448         Expect macro.
1449         [POSIX] (pthread_attr_t): Do not require type.
1450         [POSIX] (pthread_cond_t): Likewise.
1451         [POSIX] (pthread_condattr_t): Likewise.
1452         [POSIX] (pthread_key_t): Likewise.
1453         [POSIX] (pthread_mutex_t): Likewise.
1454         [POSIX] (pthread_mutexattr_t): Likewise.
1455         [POSIX] (pthread_once_t): Likewise.
1456         [POSIX] (pthread_t): Likewise.
1457         [POSIX-based standards] (pthread_atfork): Expect function.
1458
1459 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1460             Richard Sandiford  <richard@codesourcery.com>
1461
1462         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
1463         (swap_endianness_p): New extern variable.
1464         (set_big_endian): New inline function.
1465         (maybe_swap_uint32): Likewise.
1466         (maybe_swap_uint32_array): Likewise.
1467         (maybe_swap_uint32_obstack): Likewise.
1468         * locale/programs/locfile.c: Include <stdbool.h>.
1469         (swap_endianness_p): New variable.
1470         (add_locale_uint32): Call maybe_swap_uint32.
1471         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
1472         (write_locale_data): Call maybe_swap_uint32_array.
1473         * locale/programs/ld-collate.c (obstack_int32_grow): Call
1474         maybe_swap_uint32.
1475         (obstack_int32_grow_fast): Likewise.
1476         (output_weightwc): Call maybe_swap_uint32_obstack.
1477         (collate_output): Likewise.
1478         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
1479         (OPT_LITTLE_ENDIAN): Likewise.
1480         (options): Add --little-endian and --big-endian options.
1481         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
1482         * locale/programs/locarchive.c: Include "locfile.h".
1483         (GET): New macro.
1484         (SET): Likewise.
1485         (INC): Likewise.
1486         (create_archive): Use the new macros to access fields of
1487         structures directly mapped from or written to locale archives.
1488         (oldlocrecentcmp): Likewise.
1489         (enlarge_archive): Likewise.
1490         (insert_name): Likewise.
1491         (add_alias): Likewise.
1492         (add_locale): Likewise.
1493         (delete_locales_from_archive): Likewise.
1494         (show_archive_content): Likewise.
1495         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
1496         locale data.
1497
1498 2013-09-24  Roland McGrath  <roland@hack.frob.com>
1499
1500         * manual/freemanuals.texi: Updated from (newly) canonical copy at
1501         http://www.gnu.org/doc/freemanuals.texi.
1502         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
1503
1504 2013-09-24  Will Newton  <will.newton@linaro.org>
1505
1506         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
1507         macro.
1508
1509 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
1510
1511         * locale/hashval.h (compute_hashval): Interpret bytes of key as
1512         unsigned char.
1513
1514 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
1515
1516         * manual/threads.texi (POSIX Threads): Fix a typo.
1517
1518 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1519
1520         [BZ #14547]
1521         * string/tst-strcoll-overflow.c: New test case.
1522         * string/Makefile (xtests): Add tst-strcoll-overflow.
1523         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
1524         cache if string sizes may cause integer overflow.
1525
1526         [BZ #14547]
1527         * string/strcoll_l.c (coll_seq): New members rule, idx,
1528         save_idx and back_us.
1529         (get_next_seq_nocache): New function.
1530         (do_compare_nocache): New function.
1531         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
1532         when malloc fails.
1533
1534 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
1535
1536         [BZ #15754]
1537         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
1538         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
1539         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
1540
1541         [BZ #15754]
1542         * elf/Makefile (tests): Add tst-ptrguard1.
1543         (tests-static): Add tst-ptrguard1-static.
1544         (tst-ptrguard1-ARGS): Define.
1545         (tst-ptrguard1-static-ARGS): Define.
1546         * elf/tst-ptrguard1.c: New file.
1547         * elf/tst-ptrguard1-static.c: New file.
1548         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
1549         * sysdeps/i386/stackguard-macros.h: Likewise.
1550         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1551         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1552         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1553         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1554         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1555         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1556
1557 2013-09-23  Hector Marco  <hecmargi@upv.es>
1558             Ismael Ripoll  <iripoll@disca.upv.es>
1559             Carlos O'Donell  <carlos@redhat.com>
1560
1561         [BZ #15754]
1562         * sysdeps/generic/stackguard-macros.h: Define
1563         __pointer_chk_guard_local and POINTER_CHK_GUARD.
1564         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
1565         Define __pointer_chk_guard_local.
1566         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
1567         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
1568
1569 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
1570
1571         [BZ #15859]
1572         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
1573
1574 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1575
1576         * include/string.h (__ffs): Declare as hidden.
1577         * string/ffs.c (__ffs): Define as hidden.
1578         * sysdeps/i386/ffs.c (__ffs): Likewise.
1579         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
1580         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
1581         * sysdeps/s390/ffs.c (__ffs): Likewise.
1582         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
1583
1584 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
1585
1586         * NEWS: Mention malloc probes.
1587
1588         * malloc/arena.c (new_heap): New memory_heap_new probe.
1589         (grow_heap): New memory_heap_more probe.
1590         (shrink_heap): New memory_heap_less probe.
1591         (heap_trim): New memory_heap_free probe.
1592         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
1593         (systrim): New memory_sbrk_less probe.
1594         * manual/probes.texi: Document them.
1595
1596         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
1597         * manual/probes.texi: Document it.
1598
1599         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
1600         (__libc_realloc): Add memory_realloc_retry probe.
1601         (__libc_memalign): Add memory_memalign_retry probe.
1602         (__libc_valloc): Add memory_valloc_retry probe.
1603         (__libc_pvalloc): Add memory_pvalloc_retry probe.
1604         (__libc_calloc): Add memory_calloc_retry probe.
1605         * manual/probes.texi: Document them.
1606
1607         * malloc/arena.c (get_free_list): Add probe
1608         memory_arena_reuse_free_list.
1609         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
1610         and memory_arena_reuse.
1611         (arena_get2) [!PER_THREAD]: Likewise.
1612         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
1613         memory_arena_reuse_realloc.
1614         * manual/probes.texi: Document them.
1615
1616         * malloc/malloc.c (__libc_free): Add
1617         memory_mallopt_free_dyn_thresholds probe.
1618         (__libc_mallopt): Add multiple memory_mallopt probes.
1619         * manual/probes.texi: Document them.
1620
1621         * malloc/malloc.c: Include stap-probe.h.
1622         (__libc_mallopt): Add memory_mallopt probe.
1623         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
1624         * manual/probes.texi: New.
1625         * manual/Makefile (chapters): Add probes.
1626         * manual/threads.texi: Set next node.
1627
1628 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
1629
1630         [BZ #15963, #13985]
1631         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
1632         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
1633         Add `Chinese' to `nan' entry name.
1634
1635 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1636
1637         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
1638         (POLYNOMIAL): Likewise.
1639         (TAYLOR_SINCOS): Likewise.
1640         (TAYLOR_SLOW): Likewise.
1641         (__sin): Use TAYLOR_SINCOS.
1642         (__cos): Likewise.
1643         (slow): Use TAYLOR_SLOW.
1644         (sloww): Likewise.
1645         (bsloww): Likewise.
1646         (csloww): Likewise.
1647
1648 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1649
1650         * stdlib/strtod_l.c: Fix buffer overrun.
1651
1652 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1653
1654         * benchtests/Makefile (bench): Add sincos.
1655         * benchtests/bench-sincos.c: New file.
1656
1657         * math/libm-test.inc (cos_test_data): New test inputs.
1658         (sin_test_data): Likewise.
1659
1660         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1661         macro.
1662         (__sin): Use it.
1663         (__cos): Likewise.
1664         (slow1): Likewise.
1665         (slow2): Likewise.
1666         (sloww1): Likewise.
1667         (sloww2): Likewise.
1668         (bsloww1): Likewise.
1669         (bsloww2): Likewise.
1670         (cslow2): Likewise.
1671         (csloww1): Likewise.
1672         (csloww2): Likewise.
1673
1674         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1675         function.
1676         (__sin): Use it.
1677         (__cos): Likewise.
1678
1679         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1680         gotos.
1681         (__cos): Likewise.
1682
1683 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1684
1685         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1686         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1687         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1688         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1689         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1690         * elf/cache.c (print_entry): Handle the new cache flags.
1691
1692 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1693             Aldy Hernandez  <aldyh@redhat.com>
1694
1695         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1696         Change condition to [_SOFT_FLOAT].
1697         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1698         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1699         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1700         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1701         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1702         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1703         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1704         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1705         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1706         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1707         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1708         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1709         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1710         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1711         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1712         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1713         declaration.
1714
1715 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1716
1717         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1718         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1719         (__longjmp): Use LOAD_GP to load saved GPRs.
1720         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1721         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1722         (__sigsetjmp): Use SAVE_GP to save GPRs.
1723
1724         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1725         Do not append -msoft-float.
1726         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1727
1728 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1729
1730         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1731
1732 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1733
1734         [BZ #15966]
1735         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1736         (_FPU_GETCW): Use initial "__" on variable and field names but not
1737         on macro parameter name.
1738         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1739         parentheses around reference to macro parameter.
1740
1741 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1742
1743         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1744         prototype.
1745         (ctype_startup): Use uint32_t in cast and sizeof for
1746         ctype->charnames.
1747
1748 2013-09-11  Jia Liu  <proljc@gmail.com>
1749
1750         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1751         __daddr_t_defined.
1752         [__FreeBSD__]: Likewise.
1753
1754 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1755
1756         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1757         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1758         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1759         (strchr): Remove __strchr_sse42 ifunc selection.
1760         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1761         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1762
1763 2013-09-11  Will Newton  <will.newton@linaro.org>
1764
1765         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1766         parameter to RES. Remove hardcoded 1000 value.
1767         * benchtests/bench-skeleton.c (main): Pass RES parameter
1768         to TIMING_INIT and multiply result by 1000.
1769
1770 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1771
1772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1773
1774 2013-09-11  Andreas Schwab  <schwab@suse.de>
1775
1776         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1777         if not defined.
1778         (O_TMPFILE) [__USE_GNU]: Define.
1779         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1780         Define.
1781
1782 2013-09-11  Will Newton  <will.newton@linaro.org>
1783
1784         [BZ #15857]
1785         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1786         does not overflow.
1787
1788 2013-09-11  Will Newton  <will.newton@linaro.org>
1789
1790         [BZ #15856]
1791         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1792         does not overflow.
1793
1794 2013-09-11  Will Newton  <will.newton@linaro.org>
1795
1796         [BZ #15855]
1797         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1798         does not overflow.
1799
1800 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1801
1802         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1803         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1804         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1805         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1806         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1807
1808 2013-09-10  Allan McRae  <allan@archlinux.org>
1809
1810         [BZ #15748]
1811         * manual/arith.texi (Parsing of Floats): Clarify
1812         cross-reference.
1813
1814         [BZ #15849]
1815         * manual/install.texi (Running make install): Mention
1816         --enable-pt-chown.
1817         * INSTALL: Regenerated.
1818
1819 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1820
1821         * csu/init-first.c (_init): Remove the !SHARED condition around
1822         FPU control word initialization.
1823         * elf/dl-support.c (_dl_fpu_control): New variable.
1824         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1825         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1826         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1827         * math/test-fpucw-static.c: New file.
1828         * math/test-fpucw-ieee.c: New file.
1829         * math/test-fpucw-ieee-static.c: New file.
1830         * math/Makefile (tests): Add `test-fpucw-ieee' and
1831         `$(tests-static)'.
1832         (tests-static): New variable.
1833         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1834         dependency to...
1835         [($(build-shared),yes)]
1836         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1837         ... this.
1838         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1839         New dependency.
1840
1841 2013-09-09  Allan McRae  <allan@archlinux.org>
1842
1843         [BZ #15939]
1844         * manual/string.texi (Collation Functions): Fix typo in
1845         strcoll example.
1846         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1847
1848         [BZ #15893]
1849         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1850
1851         [BZ #15892]
1852         * libio/memstream.c (open_memstream): Fix memory leak.
1853         * libio/wmemstream.c (open_wmemstream): Likewise.
1854
1855         [BZ #15895]
1856         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1857
1858 2013-09-09  Will Newton  <will.newton@linaro.org>
1859
1860         * malloc/Makefile: Add tst-realloc to tests.
1861         * malloc/tst-realloc.c: New file.
1862
1863 2013-09-09  Allan McRae  <allan@archlinux.org>
1864
1865         [BZ #15844]
1866         * COPYING: Update from GNU website to fix FSF address.
1867         * COPYING.LIB: Likewise.
1868
1869 2013-09-06  David S. Miller  <davem@davemloft.net>
1870
1871         * po/zh_TW.po: Update Chinese (traditional) translation from
1872         translation project.
1873
1874 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1875             Joseph Myers  <joseph@codesourcery.com>
1876
1877         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1878         "localeinfo.h".
1879         (obstack_chunk_alloc): New macro.
1880         (obstack_chunk_free): Likewise.
1881         (record_offset): New function.
1882         (init_locale_data): Likewise.
1883         (align_locale_data): Likewise.
1884         (add_locale_empty): Likewise.
1885         (add_locale_raw_data): Likewise.
1886         (add_locale_raw_obstack): Likewise.
1887         (add_locale_string): Likewise.
1888         (add_locale_wstring): Likewise.
1889         (add_locale_uint32): Likewise.
1890         (add_locale_uint32_array): Likewise.
1891         (add_locale_char): Likewise.
1892         (start_locale_structure): Likewise.
1893         (end_locale_structure): Likewise.
1894         (start_locale_prelude): Likewise.
1895         (end_locale_prelude): Likewise.
1896         (write_locale_data): Take locale_file structure rather than an
1897         iovec.
1898         * locale/programs/locfile.h: Include "obstack.h".
1899         (struct locale_file): Change to store locale file contents instead
1900         of header.
1901         (init_locale_data): New prototype.
1902         (align_locale_data): Likewise.
1903         (add_locale_empty): Likewise.
1904         (add_locale_raw_data): Likewise.
1905         (add_locale_raw_obstack): Likewise.
1906         (add_locale_string): Likewise.
1907         (add_locale_wstring): Likewise.
1908         (add_locale_uint32): Likewise.
1909         (add_locale_uint32_array): Likewise.
1910         (add_locale_char): Likewise.
1911         (start_locale_structure): Likewise.
1912         (end_locale_structure): Likewise.
1913         (start_locale_prelude): Likewise.
1914         (end_locale_prelude): Likewise.
1915         (write_locale_data): Update prototype.
1916         * locale/programs/3level.h (struct TABLE): Remove result field.
1917         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
1918         Use new locale_file interface.
1919         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
1920         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
1921         * locale/programs/ld-address.c (address_output): Use new
1922         locale_file interface.
1923         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
1924         NO_ADD_LOCALE.
1925         (collate_finish): Don't call collseq_table_finalize.
1926         (collate_output): Use new locale_file interface.
1927         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
1928         in file.
1929         (NO_FINALIZE): Change to NO_ADD_LOCALE.
1930         (TABLE): Move defines earlier in file.
1931         (ELEMENT): Likewise.
1932         (DEFAULT): Likewise.
1933         (wctrans_table_add): Move macro and inline function earlier in
1934         file.
1935         (struct wctype_table): Move type earlier in file.
1936         (add_locale_wctype_table): New static prototype.
1937         (struct locale_ctype_t): Use logical types instead of struct iovec
1938         pointers for members.
1939         (ctype_output): Use new locale_file interface.
1940         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
1941         new locale_file interface.
1942         (allocate_arrays): Update for use of new locale_file interface.
1943         * locale/programs/ld-identification.c (identification_output): Use
1944         new locale_file interface.
1945         * locale/programs/ld-measurement.c (measurement_output): Likewise.
1946         * locale/programs/ld-messages.c (messages_output): Likewise.
1947         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1948         * locale/programs/ld-name.c (name_output): Likewise.
1949         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1950         * locale/programs/ld-paper.c (paper_output): Likewise.
1951         * locale/programs/ld-telephone.c (telephone_output): Likewise.
1952         * locale/programs/ld-time.c (time_output): Likewise.
1953
1954 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1955
1956         * benchtests/Makefile: Add memrchr benchmark.
1957         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
1958         benchmark as memrchr.
1959         * benchtests/bench-memrchr-ifunc.c: New file.
1960         * benchtests/bench-memrchr.c: New file.
1961
1962 2013-09-06   Will Newton  <will.newton@linaro.org>
1963
1964         * benchtests/Makefile (string-bench): Add memcpy.
1965
1966 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
1967             Cong Wang  <amwang@redhat.com>
1968
1969         * sysdeps/unix/sysv/linux/bits/in.h
1970         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
1971         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
1972         before __USE_KERNEL_IPV6_DEFS uses.
1973         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
1974         IPPROTO_BEETPH.
1975         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
1976         sockaddr_in6, or ipv6_mreq.
1977
1978 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1979
1980         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
1981         memory access for final bytes in some large inputs.
1982         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
1983
1984 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1985
1986         * string/test-memrchr.c: New file.
1987         * string/test-memrchr-ifunc.c: New file.
1988         * string/Makefile: Add new memrchr testcase.
1989
1990 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
1991
1992         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
1993         fanotify_init returns EPERM.
1994
1995 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1996
1997         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
1998         errors.
1999         (top level): Treat second token from macro or constant entries for
2000         allowed headers as allowed.
2001         * include/complex.h: Condition internal declarations on
2002         [!_ISOMAC].
2003         * include/fenv.h: Condition include of <stdbool.h> and internal
2004         declarations on [!_ISOMAC].
2005
2006 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
2007
2008         [BZ #15923]
2009         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
2010
2011 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2012
2013         * configure.in (--enable-versioning): Remove configure option.
2014         (libc_cv_asm_symver_directive): Remove configure test.
2015         (libc_cv_ld_version_script_option): Likewise.
2016         (VERSIONING): Remove variable and AC_SUBST.
2017         (DO_VERSIONING): Remove AC_DEFINE.
2018         * configure: Regenerated.
2019         * config.h.in (DO_VERSIONING): Remove macro.
2020         * Makerules [$(versioning) = yes]: Change conditionals to
2021         [$(build-shared) = yes].
2022         * config.make.in (versioning): Remove variable.
2023         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
2024         [$(build-shared) = yes].
2025         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
2026         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
2027         * elf/Makefile [$(versioning) = yes]: Change conditionals to
2028         [$(build-shared) = yes].
2029         * extra-lib.mk [$(versioning) = yes]: Likewise.
2030         * hurd/Makefile [$(versioning) = yes]: Likewise.
2031         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
2032         [SHARED].
2033         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
2034         [SHARED].
2035         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2036         [SHARED && !NO_HIDDEN].
2037         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
2038         [SHARED].
2039         [SHARED && DO_VERSIONING]: Likewise..
2040         * libio/Makefile [$(versioning) = yes]: Change conditionals to
2041         [$(build-shared) = yes].
2042         * manual/install.texi (--disable-versioning): Remove
2043         documentation.
2044         * INSTALL: Regenerated.
2045         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
2046         to [SHARED].
2047         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
2048         [$(build-shared) = yes].
2049         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
2050         * sysdeps/i386/i686/multiarch/strstr-c.c
2051         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2052         [SHARED && !NO_HIDDEN].
2053         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
2054         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
2055         * sysdeps/powerpc/powerpc32/dl-machine.c
2056         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
2057         * sysdeps/powerpc/powerpc32/sysdep.h
2058         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
2059         to [SHARED && PIC && !NO_HIDDEN].
2060         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
2061         conditional to [SHARED].
2062
2063 2013-09-04   Will Newton  <will.newton@linaro.org>
2064
2065         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
2066         * benchtests/bench-string.h: Include bench-timing.h instead
2067         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
2068         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
2069         call to HP_TIMING_DIFF_INIT.
2070         * benchtests/bench-memccpy.c: Use bench-timing.h macros
2071         instead of hp-timing.h macros.
2072         * benchtests/bench-memchr.c: Likewise.
2073         * benchtests/bench-memcmp.c: Likewise.
2074         * benchtests/bench-memcpy.c: Likewise.
2075         * benchtests/bench-memmem.c: Likewise.
2076         * benchtests/bench-memmove.c: Likewise.
2077         * benchtests/bench-memset.c: Likewise.
2078         * benchtests/bench-rawmemchr.c: Likewise.
2079         * benchtests/bench-strcasecmp.c: Likewise.
2080         * benchtests/bench-strcasestr.c: Likewise.
2081         * benchtests/bench-strcat.c: Likewise.
2082         * benchtests/bench-strchr.c: Likewise.
2083         * benchtests/bench-strcmp.c: Likewise.
2084         * benchtests/bench-strcpy.c: Likewise.
2085         * benchtests/bench-strcpy_chk.c: Likewise.
2086         * benchtests/bench-strlen.c: Likewise.
2087         * benchtests/bench-strncasecmp.c: Likewise.
2088         * benchtests/bench-strncat.c: Likewise.
2089         * benchtests/bench-strncmp.c: Likewise.
2090         * benchtests/bench-strncpy.c: Likewise.
2091         * benchtests/bench-strnlen.c: Likewise.
2092         * benchtests/bench-strpbrk.c: Likewise.
2093         * benchtests/bench-strrchr.c: Likewise.
2094         * benchtests/bench-strspn.c: Likewise.
2095         * benchtests/bench-strstr.c: Likewise.
2096
2097 2013-09-04  Will Newton  <will.newton@linaro.org>
2098
2099         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
2100
2101 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
2102
2103         [BZ #15427]
2104         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
2105         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
2106         * math/libm-test.inc (lgamma_test_data): Add more tests.
2107         * sysdeps/i386/fpu/libm-test-ulps: Update.
2108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2109
2110 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
2111
2112         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
2113         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2114         Add ifunc.
2115         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2116         Add strcmp-sse2-unaligned
2117         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
2118
2119 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2120
2121         * Versions.def (libc): Add GLIBC_2.19.
2122
2123 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2124
2125         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
2126         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
2127
2128 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
2129
2130         [BZ #14155]
2131         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
2132         intermediate calculations in recurrence.
2133         (__ieee754_ynf): Likewise.
2134         * math/libm-test.inc (jn_test_data): Do not allow spurious
2135         underflow exception.  Add more tests.
2136         (yn_test_data): Add more tests.
2137         * sysdeps/i386/fpu/libm-test-ulps: Update.
2138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2139
2140 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
2141
2142         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
2143
2144 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2145
2146         * csu/init-first.c: Fix then/than typos.
2147         * locale/programs/ld-collate.c: Likewise.
2148         * locale/programs/linereader.h: Likewise.
2149         * manual/charset.texi: Likewise.
2150         * manual/filesys.texi: Likewise.
2151         * manual/stdio.texi: Likewise.
2152         * manual/string.texi: Likewise.
2153         * stdlib/fmtmsg.c: Likewise.
2154         * sysdeps/i386/stpncpy.S: Likewise.
2155         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2156         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
2157         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2158         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2159
2160 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2161
2162         * elf/dl-open.c: Fix typos.
2163         * iconvdata/gbbig5.c: Likewise.
2164         * iconvdata/iso-2022-jp.c: Likewise.
2165         * iconv/gconv_int.h: Likewise.
2166         * iconv/loop.c: Likewise.
2167         * nis/rpcsvc/nis.h: Likewise.
2168         * resolv/ns_name.c: Likewise.
2169         * stdio-common/vfscanf.c: Likewise.
2170         * streams/stropts.h: Likewise.
2171         * sunrpc/rpc_thread.c: Likewise.
2172         * sysdeps/i386/strpbrk.S: Likewise.
2173         * sysdeps/ieee754/k_standard.c: Likewise.
2174         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2175         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2176         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2177         * sysdeps/mach/hurd/profil.c: Likewise.
2178         * sysdeps/s390/dl-procinfo.h: Likewise.
2179         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2180         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2181         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2182         * sysdeps/x86_64/dl-trampoline.S: Likewise.
2183         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2184
2185 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
2186
2187         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
2188         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
2189
2190 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
2191
2192         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
2193         aix specific files.
2194         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
2195         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
2196         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
2197         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
2198         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
2199         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
2200         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
2201         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
2202
2203 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2204             Roland McGrath  <roland@hack.frob.com>
2205
2206         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
2207         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
2208
2209 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2210
2211         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
2212         __executable_start symbol instead of _start.
2213
2214 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2215
2216         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
2217         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
2218         Move macros to...
2219         * sysdeps/gnu/ldsodefs.h: ... this new file.
2220
2221         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
2222         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
2223         instead of ELFOSABI_LINUX.
2224
2225         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
2226         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
2227         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
2228         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
2229         Likewise.
2230         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
2231         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
2232         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
2233         Likewise.
2234         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
2235         (ibm_extended_long_double): Add ieee_nan member.
2236         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
2237         (do_test): New function.
2238
2239         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
2240         TEST_TRUNC.
2241         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
2242         functions, renamed from truncdfsf_test, trunctfsf_test,
2243         trunctfdf_test.
2244         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
2245         functions.
2246         (do_test): Run all these.
2247
2248 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
2249
2250         * argp/argp-help.c: Fix typos.
2251         * argp/argp-parse.c: Likewise.
2252         * debug/backtracesyms.c: Likewise.
2253         * elf/elf.h: Likewise.
2254         * malloc/malloc.c: Likewise.
2255         * nis/nis_print.c: Likewise.
2256         * resolv/res_comp.c: Likewise.
2257         * stdlib/stdlib.h: Likewise.
2258         * sunrpc/clnt_tcp.c: Likewise.
2259         * sunrpc/clnt_udp.c: Likewise.
2260         * sunrpc/clnt_unix.c: Likewise.
2261         * sysdeps/unix/bsd/ptsname.c: Likewise.
2262         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2263         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
2264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
2265         Likewise.
2266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2267         Likewise.
2268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2269         Likewise.
2270         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2271
2272 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2273
2274         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
2275         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2276
2277 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
2278
2279         [BZ #15897]
2280         * dlfcn/Makefile (tests): Add bug-dl-leaf.
2281         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
2282         ($(objpfx)bug-dl-leaf): New rule.
2283         ($(objpfx)bug-dl-leaf.so): Likewise.
2284         ($(objpfx)bug-dl-leaf.out): Likewise.
2285         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
2286         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
2287         * dlfcn/bug-dl-leaf.c: New test.
2288         * dlfcn/bug-dl-leaf-lib.c: Likewise.
2289         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
2290         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
2291         (dlclose): Likewise.
2292         (dlmopen): Likewise.
2293
2294 2013-08-27  Roland McGrath  <roland@hack.frob.com>
2295
2296         * include/netdb.h [!_ISOMAC]:
2297         Don't include <tls.h>.
2298         (h_errno, __libc_h_errno): Move declaration and macros out of
2299         [_LIBC_REENTRANT].
2300
2301         * include/resolv.h [_RESOLV_H_]:
2302         Don't include <tls.h>.
2303         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
2304         * resolv/res_libc.c: Don't include <tls.h>.
2305         (_res): Use __attribute__ ((nocommon)) in place of
2306         __attribute__ ((section (".bss"))).
2307
2308         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
2309         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
2310
2311         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
2312
2313         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
2314         only under [SIOCGIFCONF && SIOCGIFNETMASK].
2315
2316         * resolv/res_mkquery.c: Include <sys/time.h>.
2317
2318         * inet/ifreq.c: Moved to ...
2319         * sysdeps/unix/ifreq.c: ... here.
2320         * inet/ifreq.c: New file, true stub version.
2321
2322         * socket/sa_len.c: New file.
2323         * socket/Makefile (aux): Add it.
2324         * sysdeps/unix/sysv/linux/Makefile
2325         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
2326         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
2327         and #include <socket/sa_len.c>.
2328         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
2329         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
2330
2331         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
2332         * bits/socket.h: ... here.
2333
2334         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
2335         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
2336         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
2337
2338 2013-08-27  Andreas Schwab  <schwab@suse.de>
2339
2340         [BZ #15736]
2341         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
2342         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
2343         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
2344         * string/test-strcasecmp.c (test_main): Run tests in several
2345         locales.
2346         * string/test-strncasecmp.c (test_main): Likewise.
2347
2348         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
2349         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
2350         to __strcasecmp_nonascii and __strncasecmp_nonascii.
2351         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
2352         (__strncasecmp_ssse3) [PIC]: Likewise.
2353
2354 2013-08-26  Roland McGrath  <roland@hack.frob.com>
2355
2356         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
2357
2358         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
2359         instead of explicitly declaring xdecrypt.
2360         * nis/nss_nis/nis-publickey.c: Likewise.
2361
2362 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2363
2364         [BZ #15890]
2365         * nscd/aicache.c: Include res_hconf.h.
2366         (addhstaiX): Initialize res_hconf.
2367
2368 2013-08-26  Andreas Schwab  <schwab@suse.de>
2369
2370         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
2371         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
2372
2373 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2374
2375         * nscd/aicache.c (addhstaiX): Fix indentation.
2376
2377 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
2378
2379         * configure.ac: Quote $build_pt_chown test.
2380         * configure: Regenerated.
2381
2382 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
2383
2384         [BZ #15532]
2385         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
2386         * math/s_cexpf.c (__cexpf): Likewise.
2387         * math/s_cexpl.c (__cexpl): Likewise.
2388         * math/libm-test.inc (cexp_test_data): Correct expected return
2389         value for NaN + i0.  Add another test.
2390
2391 2013-08-22  David S. Miller  <davem@davemloft.net>
2392
2393         * po/ca.po: Update Catalan translation from translation project.
2394         * po/uk.po: Add Ukrainian translations from translation project.
2395
2396 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
2397
2398         [BZ #15797]
2399         * math/s_fdim.c (__fdim): Check for infinite arguments if result
2400         is infinite, not alongside NaN test.
2401         * math/s_fdimf.c (__fdimf): Likewise.
2402         * math/s_fdiml.c (__fdiml): Likewise.
2403         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
2404         errno is unchanged.
2405
2406 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
2407
2408         * argp/argp-help.c: Fix typos.
2409         * crypt/speeds.c: Likewise.
2410         * csu/check_fds.c: Likewise.
2411         * elf/dl-load.c: Likewise.
2412         * elf/dl-open.c: Likewise.
2413         * elf/reldep3.c: Likewise.
2414         * elf/reldep.c: Likewise.
2415         * elf/sprof.c: Likewise.
2416         * iconv/iconv_charmap.c: Likewise.
2417         * iconv/skeleton.c: Likewise.
2418         * iconv/strtab.c: Likewise.
2419         * io/lockf64.c: Likewise.
2420         * libio/libioP.h: Likewise.
2421         * resolv/gai_notify.c: Likewise.
2422         * resolv/ns_name.c: Likewise.
2423         * resolv/ns_samedomain.c: Likewise.
2424         * resolv/res_send.c: Likewise.
2425         * stdlib/random.c: Likewise.
2426         * sunrpc/rpc/xdr.h: Likewise.
2427         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
2428         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
2429         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
2430         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
2431         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
2432         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
2433         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
2434         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
2435         * sysdeps/mach/hurd/check_fds.c: Likewise.
2436         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2437         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2438         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2439         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2440         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2441         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2442         * sysdeps/pthread/aio_notify.c: Likewise.
2443         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2444         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
2445         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
2446         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2447         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2448
2449 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2450
2451         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
2452         version if bit_Slow_SSE4_2 is set.
2453         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2454         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2455
2456 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2457
2458         [BZ #15867]
2459         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
2460         trampoline stack frame information.
2461         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
2462         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
2463         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
2464         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
2465         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
2466         * sysdeps/unix/sysv/linux/powerpc/init-first.c
2467         (_libc_vdso_platform_setup): Initialize the signal trampolines.
2468         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
2469         sa_flags value.
2470         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
2471         interrupting a syscall and set with option SA_SIGINFO.
2472
2473 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2474
2475         [BZ #15531]
2476         * math/s_cproj.c (__cproj): Only return an infinity if one part of
2477         argument is infinite.
2478         * math/s_cprojf.c (__cprojf): Likewise.
2479         * math/s_cprojl.c (__cprojl): Likewise.
2480         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
2481         * math/libm-test.inc (cproj_test_data): Add more tests.
2482
2483         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
2484
2485         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
2486         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
2487         size.  Use __ffs to determine corresponding shift.
2488
2489 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2490             Roland McGrath  <roland@hack.frob.com>
2491
2492         * Makefile (INSTALL): Remove trailing blank lines from output of
2493         makeinfo.
2494
2495 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2496
2497         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
2498         Align 32 bit compat elf_greg to 8 bytes.
2499
2500 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2501
2502         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
2503
2504 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2505
2506         * string/strcoll_l.c (coll_seq): New structure.
2507         (get_next_seq_cached): New function.
2508         (get_next_seq): New function.
2509         (do_compare): New function.
2510         (STRCOLL): Use GNU style definition.  Simplify implementation
2511         by using get_next_seq, get_next_seq_cached and do_compare.
2512
2513 2013-08-16  Florian Weimer  <fweimer@redhat.com>
2514
2515         [BZ #14699]
2516         CVE-2013-4237
2517         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
2518         member.
2519         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
2520         member.
2521         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
2522         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
2523         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
2524         conditional.
2525         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
2526         GETDENTS_64BIT_ALIGNED.
2527         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2528         * manual/filesys.texi (Reading/Closing Directory): Document
2529         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
2530         strongly.
2531         * manual/conf.texi (Limits for Files): Add portability note to
2532         NAME_MAX, PATH_MAX.
2533         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2534
2535 2013-08-13  Andreas Schwab  <schwab@suse.de>
2536
2537         [BZ #15749]
2538         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
2539         of fabs.
2540         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
2541         LDBL_MAX_EXP >= 16384]: Add tests for it.
2542
2543 2013-08-12  David S. Miller  <davem@davemloft.net>
2544
2545         * version.h (RELEASE): Set to "development".
2546         (VERSION): Set to "2.18.90".
2547         * NEWS: Add 2.19 section.
2548
2549 2013-08-03  David S. Miller  <davem@davemloft.net>
2550
2551         * po/ko.po: Update Korean translation from translation project.
2552
2553 2013-08-01  David S. Miller  <davem@davemloft.net>
2554
2555         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
2556         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
2557         Bilka.
2558
2559 2013-07-30  David S. Miller  <davem@davemloft.net>
2560
2561         * po/fr.po: Update French translation from translation project.
2562
2563 2013-07-28  David S. Miller  <davem@davemloft.net>
2564
2565         * po/cs.po: Update Czech translation from translation project.
2566
2567         * po/sv.po: Update Swedish translation from translation project.
2568
2569 2013-07-27  David S. Miller  <davem@davemloft.net>
2570
2571         * po/eo.po: Update Esperanto translation from translation project.
2572
2573         * po/vi.po: Update Vietnamese translation from translation project.
2574
2575         * po/de.po: Update German translation from translation project.
2576
2577 2013-07-26  David S. Miller  <davem@davemloft.net>
2578
2579         * po/bg.po: Update Bulgarian translation from translation project.
2580
2581         * po/nl.po: Update Dutch translation from translation project.
2582         * po/pl.po: Update Polish translation from translation project.
2583         * po/ru.po: Update Russian translation from translation project.
2584
2585 2013-07-24  David S. Miller  <davem@davemloft.net>
2586
2587         * po/libc.pot: Update.
2588
2589 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2590
2591         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
2592         variable page size.
2593         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
2594         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
2595         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
2596
2597 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2598
2599         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
2600
2601 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2602             Andreas Schwab  <schwab@suse.de>
2603             Roland McGrath  <roland@hack.frob.com>
2604             Joseph Myers  <joseph@codesourcery.com>
2605             Carlos O'Donell  <carlos@redhat.com>
2606
2607         [BZ #15755]
2608         * config.h.in: Define HAVE_PT_CHOWN.
2609         * config.make.in (build-pt-chown): New variable.
2610         * configure.in (--enable-pt_chown): New configure option.
2611         * configure: Regenerate.
2612         * login/Makefile: Include Makeconfig.  Build pt_chown only if
2613         build-pt-chown is enabled.
2614         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
2615         pt_chown to fix pty ownership.
2616         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
2617         CLOSE_ALL_FDS.
2618         * manual/install.texi (Configuring and compiling): Mention
2619         --enable-pt_chown. Add @findex for grantpt.
2620         * INSTALL: Regenerate.
2621
2622 2013-07-20  David S. Miller  <davem@davemloft.net>
2623
2624         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
2625         difference between 32-bit and 64-bit.
2626
2627 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
2628
2629         [BZ #15711]
2630         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
2631         Avoid system header dependency with -ffreestanding.
2632         ($(objpfx)bits/syscall%d): Likewise.
2633
2634 2013-07-13  David S. Miller  <davem@davemloft.net>
2635
2636         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
2637         underflows from atanl/atan2l due to bug 15319.
2638         (casinh_test_data): Likewise.
2639
2640 2013-07-07  David S. Miller  <davem@davemloft.net>
2641
2642         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
2643
2644 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
2645
2646         * sysdeps/i386/fpu/libm-test-ulps: Update.
2647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2648
2649 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2650
2651         * configure.in (--enable-lock-elision): Fix message text.
2652         * INSTALL: Regenerate.
2653         * configure: Regenerate.
2654
2655 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2656
2657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2658
2659 2013-07-03  Andreas Jaeger  <aj@suse.de>
2660
2661         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2662         define.
2663         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2664         (ptrace_peeksiginfo_args): Add.
2665         (__ptrace_peeksiginfo_flags): Add.
2666         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2667         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2668         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2669
2670 2013-07-03  Allan McRae  <allan@archlinux.org>
2671
2672         * sysdeps/i386/fpu/libm-test-ulps: Update.
2673
2674 2013-07-02  David S. Miller  <davem@davemloft.net>
2675
2676         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2677
2678 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2679
2680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2681
2682 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2683
2684         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2686
2687 2013-07-02  Andi Kleen <ak@linux.intel.com>
2688
2689         * config.h.in (ENABLE_LOCK_ELISION): Add.
2690         * configure.in (--enable-lock-elision): Add option.
2691         * manual/install.texi: Document --enable lock elision.
2692         * configure: Regenerate
2693         * INSTALL: Regenerate.
2694
2695 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2696
2697         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2698         SSE4.2 strcasecmp for libc.a.
2699         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2700
2701 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2702
2703         [BZ #13304]
2704         * soft-fp/op-common.h (_FP_FMA): New macro.
2705         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2706         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2707         (_FP_MUL_MEAT_1_imm): ... here.
2708         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2709         (_FP_MUL_MEAT_1_wide): ... here.
2710         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2711         (_FP_MUL_MEAT_1_hard): ... here.
2712         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2713         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2714         (_FP_MUL_MEAT_2_wide): ... here.
2715         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2716         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2717         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2718         (_FP_MUL_MEAT_2_gmp): ... here.
2719         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2720         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2721         (_FP_MUL_MEAT_4_wide): ... here.
2722         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2723         (_FP_MUL_MEAT_4_gmp): ... here.
2724         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2725         (_FP_WFRACBITS_DW_S): Likewise.
2726         (_FP_WFRACXBITS_DW_S): Likewise.
2727         (_FP_HIGHBIT_DW_S): Likewise.
2728         (FP_FMA_S): Likewise.
2729         (_FP_FRAC_HIGH_DW_S): Likewise.
2730         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2731         (_FP_WFRACBITS_DW_D): Likewise.
2732         (_FP_WFRACXBITS_DW_D): Likewise.
2733         (_FP_HIGHBIT_DW_D): Likewise.
2734         (FP_FMA_D): Likewise.
2735         (_FP_FRAC_HIGH_DW_D): Likewise.
2736         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2737         (_FP_WFRACBITS_DW_E): Likewise.
2738         (_FP_WFRACXBITS_DW_E): Likewise.
2739         (_FP_HIGHBIT_DW_E): Likewise.
2740         (FP_FMA_E): Likewise.
2741         (_FP_FRAC_HIGH_DW_E): Likewise.
2742         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2743         (_FP_WFRACBITS_DW_Q): Likewise.
2744         (_FP_WFRACXBITS_DW_Q): Likewise.
2745         (_FP_HIGHBIT_DW_Q): Likewise.
2746         (FP_FMA_Q): Likewise.
2747         (_FP_FRAC_HIGH_DW_Q): Likewise.
2748         * soft-fp/fmasf4.c: New file.
2749         * soft-fp/fmadf4.c: Likewise.
2750         * soft-fp/fmatf4.c: Likewise.
2751
2752 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2753
2754         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2755         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2756         Silvermont.
2757         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2758         macro.
2759         (index_Slow_SSE4_2): Likewise.
2760         (index_Prefer_PMINUB_for_stringop): Likewise.
2761         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2762         bit_Slow_SSE4_2 is set.
2763         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2764         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2765
2766 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2767
2768         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2769         rtld_global._dl_hwcap2.
2770         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2771         POWER8.
2772         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2773         POWER8 feature descriptions defined in _dl_hwcap2.
2774         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2775         string handling for POWER8 feature bits.
2776         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2777         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2778         _dl_powerpc_cap_flags.
2779         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2780         * sysdeps/powerpc/rtld-global-offsets.sym
2781         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2782         _dl_hwcap2 in the rtld_global_ro structure.
2783
2784 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2785
2786         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2787         hardware capabilities in support of AT_HWCAP2.
2788         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2789         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2790         GLRO(dl_hwcap2).
2791         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2792         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2793         explicitly the unknown a_type display mechanism is used.
2794         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2795         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2796         struct member.
2797         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2798         to macro prototype for AT_HWCAP2 support.
2799         * sysdeps/i386/dl-procinfo.h: Likewise.
2800         * sysdeps/s390/dl-procinfo.h: Likewise.
2801         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2802         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2803         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2804         return -1 for unknown a_type display fallback.
2805         * sysdeps/sparc/dl-procinfo.h: Likewise.
2806         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2807         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2808
2809 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2810
2811         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2812         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2813
2814 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2815
2816         [BZ #12492]
2817         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2818         mprotect making __stack_prot writable.
2819
2820 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2821             Joseph Myers  <joseph@codesourcery.com>
2822
2823         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2824         as being properly aligned.
2825
2826 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2827
2828         * dlfcn/modstatic5.c: New file.
2829         * dlfcn/tststatic5.c: New file.
2830         * dlfcn/Makefile (tests): Add tststatic5.
2831         (tests-static): Likewise.
2832         (modules-names): Add modstatic5.
2833         (tststatic5-ENV): New variable.
2834         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2835
2836         [BZ #15022]
2837         * elf/dl-support.c (_dl_main_map): New variable.
2838         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2839         (_dl_nns, _dl_load_adds): Set to 1.
2840         (_dl_initial_searchlist): Refer to _dl_main_map.
2841         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2842         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2843         call to _dl_get_origin.
2844         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2845         around call_map.
2846         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2847         * dlfcn/modstatic3.c: New file.
2848         * dlfcn/tststatic3.c: New file.
2849         * dlfcn/tststatic4.c: New file.
2850         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2851         (tests-static): Likewise.
2852         (modules-names): Add modstatic3.
2853         (tststatic3-ENV, tststatic4-ENV): New variables.
2854         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2855         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2856
2857 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2858
2859         * configure.in (CC): Require GCC version 4.4 or later.
2860         * configure: Regenerated.
2861         * manual/install.texi (Tools for Compilation): Update GCC version
2862         requirement.
2863         * INSTALL: Regenerated.
2864
2865 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2866
2867         [BZ #15674]
2868         * string/test-memcmp.c (check2): New.
2869         (main): Call check2.
2870
2871         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2872
2873 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2874
2875         [BZ #15022]
2876         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2877         over to...
2878         (dl_open_worker) [!SHARED]: ... here.
2879
2880 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2881
2882         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2883
2884 2013-06-25  Richard Henderson  <rth@redhat.com>
2885
2886         * locale/programs/locarchive.c: Include <libc-internal.h>
2887
2888 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2889
2890         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2891         trailing whitespace removed.
2892
2893 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2894
2895         [BZ #10283]
2896         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2897         * locale/programs/locarchive.c: Include libc-mmap.h.
2898         (prepare_address_space): Take two new outputs (the mmap base and len).
2899         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2900         values.
2901         (create_archive): Declare new mmap base and len values for
2902         prepare_address_space, and store the result in ah.
2903         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2904         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2905         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2906         Declare new mmap base and len values for
2907         prepare_address_space, and store the result in new_ah.
2908         (open_archive): Declare new mmap base and len values for
2909         prepare_address_space, and store the result in ah.
2910         (close_archive): If ah->mmap_base is not NULL, use that and
2911         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2912         * sysdeps/generic/libc-mmap.h: New file.
2913
2914 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2915
2916         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
2917         (ALIGN_UP): Likewise.
2918         (PTR_ALIGN_DOWN): Likewise.
2919         (PTR_ALIGN_UP): Likewise.
2920
2921 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2922
2923         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
2924         entry mapped to PPC_PLATFORM_POWER8.
2925         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
2926         POWER8.
2927         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
2928         (_dl_string_platform): Add case for exporting platform position for
2929         POWER8.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
2931         search path to sysdeps/powerpc/powerpc32/power8 directory.
2932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
2933         search path to sysdeps/powerpc/powerpc64/power8 directory.
2934         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
2935         power7 directories.
2936         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
2937         power7 directories.
2938
2939 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2940
2941         * INSTALL: Regenerate.
2942
2943         * nscd/connections.c (nscd_init): Fix comment.
2944
2945 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
2946
2947         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
2948
2949         [BZ #15667]
2950         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
2951         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2952
2953 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2954
2955         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
2956         DL_DST_REQ_STATIC.
2957         (DL_DST_REQ_STATIC): Remove macro.
2958
2959 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
2960
2961         [BZ #7006]
2962         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
2963         with a shift of 0 bits.
2964
2965 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2966
2967         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
2968         $(tststatic-ENV).
2969
2970 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2971
2972         [BZ #15655]
2973         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
2974
2975 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2976
2977         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
2978         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
2979         accepts -fno-tree-loop-distribute-patterns.
2980         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
2981         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
2982         recursive call.
2983         * string/memset.c (memset): Likewise.
2984         * string/test-memmove.c (simple_memmove): Disable loop transformation
2985         to library calls.
2986         * string/test-memset.c (simple_memset): Likewise.
2987         * benchtests/bench-memmove.c (simple_memmove): Likewise.
2988         * benchtests/bench-memset.c (simple_memset): Likewise.
2989         * configure: Regenerated.
2990
2991 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
2992
2993         * math/test-misc.c (main): Ignore fesetround failure when failures
2994         of subsequent rounding tests would be ignored.
2995
2996         [BZ #15654]
2997         * math/fedisblxcpt.c (fedisableexcept): Return 0.
2998         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
2999         * math/fegetenv.c (__fegetenv): Return 0.
3000         * math/fegetexcept.c (fegetexcept): Return 0.
3001         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
3002         FE_TONEAREST.
3003         * math/feholdexcpt.c (feholdexcept): Return 0.
3004         * math/fesetenv.c (__fesetenv): Return 0.
3005         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
3006         argument FE_TONEAREST.
3007         * math/feupdateenv.c (__feupdateenv): Return 0.
3008         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
3009
3010 2013-06-18  Roland McGrath  <roland@hack.frob.com>
3011
3012         * elf/rtld-Rules (rtld-compile-command.S): New variable.
3013         (rtld-compile-command.s, rtld-compile-command.c): New variables.
3014         ($(objpfx)rtld-%.os rules): Use them.
3015
3016 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3017
3018         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
3019         fields.
3020
3021 2013-06-17  Roland McGrath  <roland@hack.frob.com>
3022
3023         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
3024         length of target pattern, then descending length of dependency pattern.
3025         * configure.in (AWK): Require gawk 3.1.2 or newer.
3026         * manual/install.texi (Tools for Compilation): Say that we do.
3027         * configure: Regenerated.
3028
3029         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
3030         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
3031         * scripts/sysd-rules.awk: ... this new script.
3032         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
3033         than a glob-style pattern.
3034
3035 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
3036
3037         * math/test-misc.c (main): Do not treat incorrectly rounded
3038         conversions as failure unless ROUNDING_TESTS passes.
3039
3040 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
3041
3042         [BZ #15631]
3043         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
3044         restore exception state around main square root computation, then
3045         check for inexactness explicitly.
3046
3047         * math/libm-test.inc (fma_test_data): Add another test.
3048
3049 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3050
3051         * manual/threads.texi (Non-POSIX Extensions): New document
3052         node.  Document pthread_getattr_default_np and
3053         pthread_setattr_default_np.
3054
3055         * Versions.def (libpthread): Add GLIBC_2.18.
3056         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
3057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3058         Likewise.
3059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3060         Likewise.
3061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3062         Likewise.
3063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3064         Likewise.
3065         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
3066         Likewise.
3067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3068         Likewise.
3069         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3070         Likewise.
3071         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3072         Likewise.
3073         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3074         Likewise.
3075
3076 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3077
3078         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3079         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
3080
3081 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3082             H.J. Lu  <hjl.tools@gmail.com>
3083
3084         [BZ #15627]
3085         * sysdeps/x86_64/rtld-memset.c: Remove file.
3086         * sysdeps/x86_64/rtld-memset.S: New file.
3087
3088 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
3089
3090         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
3091         (test_in_one_mode): Take arguments for whether the rounding mode
3092         is supported for each floating-point type.
3093         (do_test): Pass new arguments to test_in_one_mode using
3094         ROUNDING_TESTS.
3095
3096 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3097
3098         * posix/tst-waitid.c (do_test): Distinguish different instances of
3099         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
3100         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
3101         before entering the kernel for waitpid.
3102
3103 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3104
3105         * NEWS: Fix note on clock function precision.  Text by Roland
3106         McGrath.
3107
3108 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3109
3110         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
3111         it into place only when and if the sanity check passes.
3112
3113 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
3114
3115         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
3116         output for whether conversion result is exact.  Take argument
3117         indicating whether type is IBM long double.
3118         (round_for_all): Change need_exact field to ibm_ld.
3119         * stdlib/tst-strtod-round.c (struct exactness): New type.
3120         (struct test): Change bool ld_ok field to struct exactness exact.
3121         (TEST): Update all definitions for change to field.
3122         (tests): Regenerate array contents.
3123         (test_in_one_mode): Take pointer to new field instead of old ld_ok
3124         field value.  Check for IBM long double here.
3125         (do_test): Update calls to test_in_one_mode.
3126
3127 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3128
3129         [BZ #12515]
3130         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
3131         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
3132
3133 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3134
3135         [BZ #15605]
3136         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
3137         generated by the compiler on loop optimizations.
3138         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
3139         general definitions.
3140
3141 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
3142
3143         * math/bug-nextafter.c: Include <math-tests.h>.
3144         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3145         the relevant type.
3146         * math/bug-nexttoward.c: Include <math-tests.h>.
3147         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3148         the relevant type.
3149         * math/test-misc.c: Include <math-tests.h>.
3150         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3151         the relevant type.
3152
3153 2013-06-12  Andreas Jaeger  <aj@suse.de>
3154
3155         * po/ia.po: Update Interlingua translation from translation
3156         project.
3157
3158 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3159
3160         * include/fenv.h: Include stdbool.h.
3161         (struct rm_ctx): New structure.
3162         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
3163         Define macro.
3164         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
3165         (SET_RESTORE_ROUNDF): Likewise.
3166         (SET_RESTORE_ROUNDL): Likewise.
3167         (SET_RESTORE_ROUND_NOEX): Likewise.
3168         (SET_RESTORE_ROUND_NOEXF): Likewise.
3169         (SET_RESTORE_ROUND_NOEXL): Likewise.
3170         (SET_RESTORE_ROUND_53BIT): Likewise.
3171         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
3172         (libc_feresetround_noexf_ctx): Likewise.
3173         (libc_feresetround_noexl_ctx): Likewise.
3174         (libc_feholdsetround_53bit_ctx): Likewise.
3175         (libc_feresetround_53bit_ctx): Likewise.
3176         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
3177         (libc_feholdexcept_setround_sse_ctx): New function.
3178         (libc_fesetenv_sse_ctx): Likewise.
3179         (libc_feupdateenv_sse_ctx): Likewise.
3180         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
3181         (libc_feholdexcept_setround_387_ctx): Likewise.
3182         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
3183         (libc_feholdsetround_387_prec_ctx): Likewise.
3184         (libc_feholdsetround_387_ctx): Likewise.
3185         (libc_feholdsetround_387_53bit_ctx): Likewise.
3186         (libc_feholdsetround_sse_ctx): Likewise.
3187         (libc_feresetround_sse_ctx): Likewise.
3188         (libc_feresetround_387_ctx): Likewise.
3189         (libc_feupdateenv_387_ctx): Likewise.
3190         (libc_feholdexcept_setroundf_ctx): Define macro.
3191         (libc_fesetenvf_ctx): Likewise.
3192         (libc_feupdateenvf_ctx): Likewise.
3193         (libc_feholdsetroundf_ctx): Likewise.
3194         (libc_feresetroundf_ctx): Likewise.
3195         (libc_feholdexcept_setround_ctx): Likewise.
3196         (libc_fesetenv_ctx): Likewise.
3197         (libc_feupdateenv_ctx): Likewise.
3198         (libc_feholdsetround_ctx): Likewise.
3199         (libc_feresetround_ctx): Likewise.
3200         (libc_feholdexcept_setroundl_ctx): Likewise.
3201         (libc_feupdateenvl_ctx): Likewise.
3202         (libc_feholdsetroundl_ctx): Likewise.
3203         (libc_feresetroundl_ctx): Likewise.
3204         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
3205         (libc_feresetround_53bit_ctx): Likewise.
3206
3207 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3208
3209         * locale/iso-639.def: Convert to UTF-8.
3210
3211 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
3212
3213         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
3214         (EXCEPTION_TESTS_double): Likewise.
3215         (EXCEPTION_TESTS_long_double): Likewise.
3216         (EXCEPTION_TESTS): Likewise.
3217         * math/libm-test.inc (test_exceptions): Only test exceptions if
3218         EXCEPTION_TESTS (FLOAT).
3219
3220 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3221
3222         * benchtests/Makefile (string-bench): Add strcpy_chk and
3223         stpcpy_chk.
3224         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
3225         * benchtests/bench-stpcpy_chk.c: New file.
3226         * benchtests/bench-strcpy_chk-ifunc.c: New file.
3227         * benchtests/bench-strcpy_chk.c: New file.
3228         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
3229         code.
3230         (do_test): Likewise.
3231
3232 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3233
3234         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
3235         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
3236         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
3237         with tabs where appropriate.
3238         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
3239         dl-procinfo.h.
3240         [PPC_PLATFORM_PPC440]: Likewise.
3241         [PPC_PLATFORM_PPC464]: Likewise.
3242         [PPC_PLATFORM_PPC476]: Likewise.
3243         (_dl_string_platform): Add support for detecting ppc405, ppc440,
3244         ppc464, and ppc476 platform strings merging from ports/
3245         dl-procinfo.h.
3246
3247 2013-06-11  Andreas Schwab  <schwab@suse.de>
3248
3249         [BZ #14991]
3250         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
3251         (from_ucs4_idx): Regenerate.
3252         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
3253         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
3254         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
3255         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
3256         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
3257         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
3258         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
3259         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
3260         from FROM_LOOP and TO_LOOP specific macros.
3261         (BODY): Handle combining characters.
3262         * iconvdata/BIG5HKSCS.irreversible: Update.
3263         * iconvdata/BIG5HKSCS.precomposed: New file.
3264         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
3265         characters.
3266         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
3267
3268 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3269
3270         * include/sys/time.h: Fix indentation and add copyright header.
3271
3272         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
3273         (do_test): Likewise.
3274         * string/test-memchr.c (do_one_test): Likewise.
3275         (do_test): Likewise.
3276         * string/test-memcmp.c (do_one_test): Likewise.
3277         (do_test): Likewise.
3278         * string/test-memcpy.c (do_one_test): Likewise.
3279         (do_test): Likewise.
3280         * string/test-memmem.c (do_one_test): Likewise.
3281         (do_test): Likewise.
3282         (do_random_tests): Likewise.
3283         * string/test-memmove.c (do_one_test): Likewise.
3284         (do_test): Likewise.
3285         * string/test-memset.c (do_one_test): Likewise.
3286         (do_test): Likewise.
3287         * string/test-rawmemchr.c (do_one_test): Likewise.
3288         (do_test): Likewise.
3289         * string/test-strcasecmp.c (do_one_test): Likewise.
3290         (do_test): Likewise.
3291         * string/test-strcasestr.c (do_one_test): Likewise.
3292         (do_test): Likewise.
3293         * string/test-strcat.c (do_one_test): Likewise.
3294         (do_test): Likewise.
3295         * string/test-strchr.c (do_one_test): Likewise.
3296         (do_test): Likewise.
3297         * string/test-strcmp.c (do_one_test): Likewise.
3298         (do_test): Likewise.
3299         * string/test-strcpy.c (do_one_test): Likewise.
3300         (do_test): Likewise.
3301         * string/test-string.h: Likewise.
3302         (test_init): Likewise.
3303         * string/test-strlen.c (do_one_test): Likewise.
3304         (do_test): Likewise.
3305         * string/test-strncasecmp.c (do_one_test): Likewise.
3306         (do_test): Likewise.
3307         * string/test-strncat.c (do_one_test): Likewise.
3308         (do_test): Likewise.
3309         * string/test-strncmp.c (do_one_test): Likewise.
3310         (do_test_limit): Likewise.
3311         (do_test): Likewise.
3312         * string/test-strncpy.c (do_one_test): Likewise.
3313         (do_test): Likewise.
3314         * string/test-strnlen.c (do_one_test): Likewise.
3315         (do_test): Likewise.
3316         * string/test-strpbrk.c (do_one_test): Likewise.
3317         (do_test): Likewise.
3318         * string/test-strrchr.c (do_one_test): Likewise.
3319         (do_test): Likewise.
3320         * string/test-strspn.c (do_one_test): Likewise.
3321         (do_test): Likewise.
3322         * string/test-strstr.c (do_one_test): Likewise.
3323         (do_test): Likewise.
3324
3325         * benchtests/Makefile (string-bench): Add string benchmarks.
3326         * benchtests/bench-bcopy-ifunc.c: New file.
3327         * benchtests/bench-bcopy.c: New file.
3328         * benchtests/bench-bzero-ifunc.c: New file.
3329         * benchtests/bench-bzero.c: New file.
3330         * benchtests/bench-memccpy-ifunc.c: New file.
3331         * benchtests/bench-memccpy.c: New file.
3332         * benchtests/bench-memchr-ifunc.c: New file.
3333         * benchtests/bench-memchr.c: New file.
3334         * benchtests/bench-memcmp-ifunc.c: New file.
3335         * benchtests/bench-memcmp.c: New file.
3336         * benchtests/bench-memmem-ifunc.c: New file.
3337         * benchtests/bench-memmem.c: New file.
3338         * benchtests/bench-memmove-ifunc.c: New file.
3339         * benchtests/bench-memmove.c: New file.
3340         * benchtests/bench-mempcpy-ifunc.c: New file.
3341         * benchtests/bench-mempcpy.c: New file.
3342         * benchtests/bench-memset-ifunc.c: New file.
3343         * benchtests/bench-memset.c: New file.
3344         * benchtests/bench-rawmemchr-ifunc.c: New file.
3345         * benchtests/bench-rawmemchr.c: New file.
3346         * benchtests/bench-stpcpy-ifunc.c: New file.
3347         * benchtests/bench-stpcpy.c: New file.
3348         * benchtests/bench-stpncpy-ifunc.c: New file.
3349         * benchtests/bench-stpncpy.c: New file.
3350         * benchtests/bench-strcasecmp-ifunc.c: New file.
3351         * benchtests/bench-strcasecmp.c: New file.
3352         * benchtests/bench-strcasestr-ifunc.c: New file.
3353         * benchtests/bench-strcasestr.c: New file.
3354         * benchtests/bench-strcat-ifunc.c: New file.
3355         * benchtests/bench-strcat.c: New file.
3356         * benchtests/bench-strchr-ifunc.c: New file.
3357         * benchtests/bench-strchr.c: New file.
3358         * benchtests/bench-strchrnul-ifunc.c: New file.
3359         * benchtests/bench-strchrnul.c: New file.
3360         * benchtests/bench-strcmp-ifunc.c: New file.
3361         * benchtests/bench-strcmp.c: New file.
3362         * benchtests/bench-strcpy-ifunc.c: New file.
3363         * benchtests/bench-strcpy.c: New file.
3364         * benchtests/bench-strcspn-ifunc.c: New file.
3365         * benchtests/bench-strcspn.c: New file.
3366         * benchtests/bench-strlen-ifunc.c: New file.
3367         * benchtests/bench-strlen.c: New file.
3368         * benchtests/bench-strncasecmp-ifunc.c: New file.
3369         * benchtests/bench-strncasecmp.c: New file.
3370         * benchtests/bench-strncat-ifunc.c: New file.
3371         * benchtests/bench-strncat.c: New file.
3372         * benchtests/bench-strncmp-ifunc.c: New file.
3373         * benchtests/bench-strncmp.c: New file.
3374         * benchtests/bench-strncpy-ifunc.c: New file.
3375         * benchtests/bench-strncpy.c: New file.
3376         * benchtests/bench-strnlen-ifunc.c: New file.
3377         * benchtests/bench-strnlen.c: New file.
3378         * benchtests/bench-strpbrk-ifunc.c: New file.
3379         * benchtests/bench-strpbrk.c: New file.
3380         * benchtests/bench-strrchr-ifunc.c: New file.
3381         * benchtests/bench-strrchr.c: New file.
3382         * benchtests/bench-strspn-ifunc.c: New file.
3383         * benchtests/bench-strspn.c: New file.
3384         * benchtests/bench-strstr-ifunc.c: New file.
3385         * benchtests/bench-strstr.c: New file.
3386
3387         * benchtests/Makefile: Disable parallel execution of targets.
3388         (string-bench): Add memcpy.
3389         (benchset): New variable to store a list of benchmark sets.
3390         (bench-func): Renamed from bench.
3391         (bench-set): New target.
3392         (bench): Depend on bench-func and bench-set.
3393         * benchtests/README: Add section on benchmark sets.
3394         * benchtests/bench-memcpy-ifunc.c: New file.
3395         * benchtests/bench-memcpy.c: New file.
3396         * benchtests/bench-string.h: New file.
3397
3398 2013-06-11  Andreas Schwab  <schwab@suse.de>
3399
3400         [BZ #15577]
3401         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
3402         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
3403         values in the triple.
3404         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
3405         terminator in the group key.
3406
3407 2013-06-11  Andreas Jaeger  <aj@suse.de>
3408
3409         * po/zh_TW.po: Update Chinese (traditional) translation from
3410         translation project.
3411
3412 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3413
3414         * include/time.h (__clock_gettime): Add libc_hidden_proto.
3415         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
3416         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
3417         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3418         (clock_getcpuclockid): Likewise.
3419         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
3420         Add weak_alias and libc_hidden_def.
3421         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
3422         * rt/clock_gettime.c (clock_gettime): Rename to
3423         __clock_gettime.  Add weak_alias and libc_hidden_def.
3424         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
3425         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
3426         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
3427         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
3428         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
3429         Likewise.
3430         * rt/clock_settime.c (clock_settime): Rename to
3431         __clock_settime.  Add weak_alias and libc_hidden_def.
3432         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
3433
3434 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
3435
3436         * mach/err_boot.sub: Remove trailing whitespace.
3437         * mach/err_ipc.sub: Likewise.
3438         * mach/err_mach.sub: Likewise.
3439
3440         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
3441         (ROUNDING_TESTS_double): Likewise.
3442         (ROUNDING_TESTS_long_double): Likewise.
3443         (ROUNDING_TESTS): Likewise.
3444         * math/libm-test.inc: Include <math-tests.h>.
3445         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
3446         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3447         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3448         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3449
3450 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3451
3452         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
3453         of assigning.
3454
3455 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
3456
3457         * sysdeps/gnu/errlist.awk: Do not generate space at end of
3458         otherwise empty TRANS lines.
3459         * sysdeps/gnu/errlist.c: Regenerated.
3460
3461         * catgets/gencat.c (error_print): Use (void) in function
3462         definition.
3463         * crypt/crypt_util.c (__init_des): Likewise.
3464         * crypt/speeds.c (Stop): Likewise.
3465         (main): Likewise.
3466         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
3467         * inet/ruserpass.c (token): Likewise.
3468         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
3469         * intl/localealias.c (extend_alias_table): Likewise.
3470         * intl/plural-exp.c (init_germanic_plural): Likewise.
3471         * libio/fcloseall.c (__fcloseall): Likewise.
3472         * libio/genops.c (_IO_flush_all): Likewise.
3473         (_IO_flush_all_linebuffered): Likewise.
3474         (_IO_cleanup): Likewise.
3475         (_IO_iter_begin): Likewise.
3476         (_IO_iter_end): Likewise.
3477         (_IO_list_lock): Likewise.
3478         (_IO_list_unlock): Likewise.
3479         (_IO_list_resetlock): Likewise.
3480         * libio/getchar.c (getchar): Likewise.
3481         * libio/getchar_u.c (getchar_unlocked): Likewise.
3482         * libio/getwchar.c (getwchar): Likewise.
3483         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3484         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
3485         * login/getpt.c (__getpt): Likewise.
3486         * login/tst-utmp.c (main): Likewise.
3487         * malloc/hooks.c (__malloc_check_init): Likewise.
3488         * malloc/malloc.c (__malloc_stats): Likewise.
3489         * malloc/mtrace.c (tr_break): Likewise.
3490         (mtrace): Likewise.
3491         (muntrace): Likewise.
3492         * misc/fstab.c (endfsent): Likewise.
3493         * misc/getclktck.c (__getclktck): Likewise.
3494         * misc/getdtsz.c (__getdtablesize): Likewise.
3495         * misc/gethostid.c (gethostid): Likewise.
3496         * misc/getpagesize.c (__getpagesize): Likewise.
3497         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
3498         (__get_nprocs): Likewise.
3499         (__get_phys_pages): Likewise.
3500         (__get_avphys_pages): Likewise.
3501         * misc/getttyent.c (getttyent): Likewise.
3502         (setttyent): Likewise.
3503         (endttyent): Likewise.
3504         * misc/getusershell.c (getusershell): Likewise.
3505         (endusershell): Likewise.
3506         (setusershell): Likewise.
3507         (initshells): Likewise.
3508         * misc/hsearch.c (__hdestroy): Likewise.
3509         * misc/sync.c (sync): Likewise.
3510         * misc/syslog.c (closelog_internal): Likewise.
3511         (closelog): Likewise.
3512         * misc/ttyslot.c (ttyslot): Likewise.
3513         * misc/vhangup.c (vhangup): Likewise.
3514         * posix/fork.c (__fork): Likewise.
3515         * posix/getegid.c (__getegid): Likewise.
3516         * posix/geteuid.c (__geteuid): Likewise.
3517         * posix/getgid.c (__getgid): Likewise.
3518         * posix/getpid.c (__getpid): Likewise.
3519         * posix/getppid.c (__getppid): Likewise.
3520         * posix/getuid.c (__getuid): Likewise.
3521         * posix/pause.c (pause): Likewise.
3522         * posix/setpgrp.c (setpgrp): Likewise.
3523         * posix/setsid.c (__setsid): Likewise.
3524         * posix/test-vfork.c (noop): Likewise.
3525         * resolv/gethnamaddr.c (_endhtent): Likewise.
3526         (_gethtent): Likewise.
3527         (ht_endhostent): Likewise.
3528         (gethostent): Likewise.
3529         (dns_service): Likewise.
3530         * stdlib/drand48.c (drand48): Likewise.
3531         * stdlib/lrand48.c (lrand48): Likewise.
3532         * stdlib/mrand48.c (mrand48): Likewise.
3533         * stdlib/rand.c (rand): Likewise.
3534         * stdlib/random.c (__random): Likewise.
3535         * stdlib/setenv.c (clearenv): Likewise.
3536         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
3537         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
3538         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3539         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
3540         (__get_nprocs): Likewise.
3541         (__get_phys_pages): Likewise.
3542         (__get_avphys_pages): Likewise.
3543         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
3544         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
3545         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
3546         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
3547         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
3548         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
3549         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
3550         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
3551         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3552         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
3553         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
3554         * sysdeps/mach/hurd/sync.c (sync): Likewise.
3555         * sysdeps/posix/clock.c (clock): Likewise.
3556         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
3557         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
3558         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
3559         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3560         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
3561         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3562         (__get_nprocs_conf): Likewise.
3563         (__get_phys_pages): Likewise.
3564         (__get_avphys_pages): Likewise.
3565         * time/clock.c (clock): Likewise.
3566         * time/tzset.c (__tzname_max): Likewise.
3567
3568 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
3569
3570         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
3571         (__bswap_32): Do not use "register".
3572         * crypt/crypt.c (_ufc_doit_r): Likewise.
3573         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
3574         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
3575         * gmon/gmon.c (__monstartup): Likewise.
3576         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
3577         * hurd/hurdmalloc.c (more_memory): Likewise.
3578         (malloc): Likewise.
3579         (free): Likewise.
3580         (realloc): Likewise.
3581         (malloc_fork_prepare): Likewise.
3582         (malloc_fork_parent): Likewise.
3583         (malloc_fork_child): Likewise.
3584         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
3585         (_svcauth_des): Likewise.
3586         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3587         * inet/inet_net.c (inet_network): Likewise.
3588         * inet/inet_netof.c (inet_netof): Likewise.
3589         * inet/rcmd.c (__validuser2_sa): Likewise.
3590         * io/fts.c (fts_open): Likewise.
3591         (fts_load): Likewise.
3592         (fts_close): Likewise.
3593         (fts_read): Likewise.
3594         (fts_children): Likewise.
3595         (fts_build): Likewise.
3596         (fts_stat): Likewise.
3597         (fts_sort): Likewise.
3598         (fts_alloc): Likewise.
3599         (fts_lfree): Likewise.
3600         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
3601         (_IO_file_xsgetn): Likewise.
3602         (_IO_file_xsgetn_mmap): Likewise.
3603         * libio/iofopncook.c (_IO_cookie_read): Likewise.
3604         (_IO_cookie_write): Likewise.
3605         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
3606         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
3607         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
3608         * malloc/obstack.c (_obstack_begin): Likewise.
3609         (_obstack_begin_1): Likewise.
3610         (_obstack_newchunk): Likewise.
3611         (_obstack_allocated_p): Likewise.
3612         (obstack_free): Likewise.
3613         (_obstack_memory_used): Likewise.
3614         * misc/getttyent.c (getttynam): Likewise.
3615         (getttyent): Likewise.
3616         (skip): Likewise.
3617         (value): Likewise.
3618         * misc/getusershell.c (initshells): Likewise.
3619         * misc/syslog.c (__vsyslog_chk): Likewise.
3620         * misc/ttyslot.c (ttyslot): Likewise.
3621         * nis/nis_hash.c (__nis_hash): Likewise.
3622         * posix/fnmatch_loop.c (FCT): Likewise.
3623         * posix/getconf.c (print_all): Likewise.
3624         (main): Likewise.
3625         * posix/getopt.c (exchange): Likewise.
3626         * posix/glob.c (globfree): Likewise.
3627         (prefix_array): Likewise.
3628         (__glob_pattern_type): Likewise.
3629         * resolv/arpa/nameser.h (NS_GET16): Likewise.
3630         (NS_GET32): Likewise.
3631         (NS_PUT16): Likewise.
3632         (NS_PUT32): Likewise.
3633         * resolv/gethnamaddr.c (getanswer): Likewise.
3634         (gethostbyname2): Likewise.
3635         (gethostbyaddr): Likewise.
3636         (_gethtent): Likewise.
3637         (_gethtbyname2): Likewise.
3638         (_gethtbyaddr): Likewise.
3639         * resolv/ns_print.c (dst_s_get_int16): Likewise.
3640         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3641         * resolv/res_init.c (__res_vinit): Likewise.
3642         (net_mask): Likewise.
3643         * resolv/res_mkquery.c (outchar): Likewise.
3644         (PRINT): Likewise.
3645         * stdio-common/printf_fp.c (outchar): Likewise.
3646         (PRINT): Likewise.
3647         * stdio-common/printf_fphex.c (outchar): Likewise.
3648         (PRINT): Likewise.
3649         * stdio-common/printf_size.c (outchar): Likewise.
3650         (PRINT): Likewise.
3651         * stdio-common/test_rdwr.c (main): Likewise.
3652         * stdio-common/tfformat.c (matches): Likewise.
3653         * stdio-common/vfprintf.c (outchar): Likewise.
3654         (printf_unknown): Likewise.
3655         (buffered_vfprintf): Likewise.
3656         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
3657         * stdio-common/xbug.c (AppendToBuffer): Likewise.
3658         (ReadFile): Likewise.
3659         * stdlib/qsort.c (SWAP): Likewise.
3660         (_quicksort): Likewise.
3661         * stdlib/setenv.c (__add_to_environ): Likewise.
3662         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3663         * stdlib/strtol_l.c (__strtol_l): Likewise.
3664         * stdlib/tst-strtod.c (main): Likewise.
3665         * stdlib/tst-strtol.c (main): Likewise.
3666         * stdlib/tst-strtoll.c (main): Likewise.
3667         * string/bits/string2.h (__strcmp_cc): Likewise.
3668         (__strcmp_cg): Likewise.
3669         (__strcspn_c1): Likewise.
3670         (__strcspn_c2): Likewise.
3671         (__strcspn_c3): Likewise.
3672         (__strspn_c1): Likewise.
3673         (__strspn_c2): Likewise.
3674         (__strspn_c3): Likewise.
3675         (__strsep_1c): Likewise.
3676         (__strsep_2c): Likewise.
3677         (__strsep_3c): Likewise.
3678         * string/memccpy.c (__memccpy): Likewise.
3679         * string/stpcpy.c (__stpcpy): Likewise.
3680         * string/strcmp.c (strcmp): Likewise.
3681         * string/strrchr.c (strrchr): Likewise.
3682         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3683         Likewise.
3684         * sysdeps/mach/hurd/getcwd.c
3685         (_hurd_canonicalize_directory_name_internal): Likewise.
3686         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3687         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3688         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3689         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3690         Likewise, in both definitions.
3691         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3692         definitions.
3693         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3694         64] (__bswap_64): Likewise.
3695         * time/test_time.c (main): Likewise.
3696         * time/tzfile.c (__tzfile_read): Likewise.
3697         (__tzfile_compute): Likewise.
3698         * time/tzset.c (__tzset_parse_tz): Likewise.
3699         (tzset_internal): Likewise.
3700         (compute_change): Likewise.
3701         * wcsmbs/wcscat.c (__wcscat): Likewise.
3702         * wcsmbs/wcschr.c (wcschr): Likewise.
3703         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3704         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3705         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3706         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3707         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3708         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3709         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3710         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3711         * wcsmbs/wmemset.c (wmemset): Likewise.
3712
3713 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3714
3715         * scripts/config.guess: Update to version 2013-05-16.
3716         * scripts/config.sub: Update to version 2013-04-24.
3717         * scripts/install-sh: Update to version 2011-11-20.07.
3718         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3719         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3720
3721 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3722
3723         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3724         * elf/sln.c: Likewise.
3725         * hurd/hurd/ioctl.h: Likewise.
3726         * hurd/hurdmalloc.c: Likewise.
3727         * hurd/xattr.c: Likewise.
3728         * include/shlib-compat.h: Likewise.
3729         * inet/ruserpass.c: Likewise.
3730         * libio/iofgets_u.c: Likewise.
3731         * libio/iofgetws_u.c: Likewise.
3732         * locale/programs/ld-identification.c: Likewise.
3733         * locale/programs/ld-time.c: Likewise.
3734         * mach/msg-destroy.c: Likewise.
3735         * nss/nss_files/files-netgrp.c: Likewise.
3736         * resolv/res_data.c: Likewise.
3737         * soft-fp/op-1.h: Likewise.
3738         * soft-fp/op-2.h: Likewise.
3739         * soft-fp/op-4.h: Likewise.
3740         * soft-fp/op-common.h: Likewise.
3741         * stdio-common/printf_fphex.c: Likewise.
3742         * stdlib/strtod_l.c: Likewise.
3743         * sunrpc/rpc/clnt.h: Likewise.
3744         * sysdeps/generic/framestate.c: Likewise.
3745         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3746         * sysdeps/i386/bsd-setjmp.S: Likewise.
3747         * sysdeps/i386/__longjmp.S: Likewise.
3748         * sysdeps/i386/setjmp.S: Likewise.
3749         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3750         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3751         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3752         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3753         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3754         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3755         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3756         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3757         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3758         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3759         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3760         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3761         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3762         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3763         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3764         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3765         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3766         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3767         * sysdeps/ieee754/support.c: Likewise.
3768         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3769         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3770         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3771         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3772         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3773         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3774         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3775         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3776         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3777         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3778         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3779         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3780         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3781         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3782         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3783         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3784         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3786
3787 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3788
3789         * posix/transbug.c: Remove executable mode.
3790
3791 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * crypt/speeds.c: Remove trailing whitespace.
3794         * dlfcn/default.c: Likewise.
3795         * elf/ifuncdep2.c: Likewise.
3796         * elf/ifuncmain1.c: Likewise.
3797         * elf/ifuncmain1vis.c: Likewise.
3798         * elf/testobj.h: Likewise.
3799         * elf/tst-stackguard1.c: Likewise.
3800         * gmon/sys/gmon.h: Likewise.
3801         * hurd/hurdmsg.c: Likewise.
3802         * hurd/new-fd.c: Likewise.
3803         * hurd/ports-get.c: Likewise.
3804         * iconvdata/ibm1008_420.c: Likewise.
3805         * inet/tst-getni1.c: Likewise.
3806         * inet/tst-getni2.c: Likewise.
3807         * libio/ioungetc.c: Likewise.
3808         * libio/wfiledoalloc.c: Likewise.
3809         * manual/libm-err-tab.pl: Likewise.
3810         * math/w_dremf.c: Likewise.
3811         * misc/ftruncate.c: Likewise.
3812         * posix/bug-glob2.c: Likewise.
3813         * posix/tst-pcre.c: Likewise.
3814         * posix/wait4.c: Likewise.
3815         * resolv/README: Likewise.
3816         * resolv/res_debug.h: Likewise.
3817         * resolv/tst-inet_ntop.c: Likewise.
3818         * setjmp/bug269-setjmp.c: Likewise.
3819         * soft-fp/extended.h: Likewise.
3820         * soft-fp/op-1.h: Likewise.
3821         * soft-fp/op-2.h: Likewise.
3822         * soft-fp/op-4.h: Likewise.
3823         * soft-fp/op-8.h: Likewise.
3824         * soft-fp/testit.c: Likewise.
3825         * stdio-common/bug16.c: Likewise.
3826         * stdlib/random.c: Likewise.
3827         * sunrpc/rpcsvc/rquota.x: Likewise.
3828         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3829         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3830         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3831         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3832         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3833         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3834         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3835         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3836         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3837         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3838         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3839         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3840         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3841         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3842         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3843         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3844         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3845         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3846         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3847         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3848         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3849         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3850         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3851         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3852         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3853         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3854         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3855         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3856         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3857         * sysdeps/ieee754/s_lib_version.c: Likewise.
3858         * sysdeps/mach/hurd/check_fds.c: Likewise.
3859         * sysdeps/mach/hurd/getsockname.c: Likewise.
3860         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3861         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3862         * sysdeps/powerpc/bits/link.h: Likewise.
3863         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3864         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3865         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3866         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3867         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3868         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3869         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3870         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3871         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3872         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3873         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3874         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3875         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3876         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3877         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3878         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3879         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3881         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3882         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3883         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3884         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3885         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3886         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3887         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3888         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3889         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3890         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3891         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3892         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3893         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3894         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3895         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3896         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3897         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3898         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3899         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3900         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3901         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3902         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3903         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3904         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3905         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3906         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3907         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3908         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3909         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3910         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3911         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3912         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3913         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3914         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3915         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3916         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3917         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3918         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3919         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3920         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3921         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
3922         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3923         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3924         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3925         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3926         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3927         * sysdeps/powerpc/sysdep.h: Likewise.
3928         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3929         * sysdeps/s390/s390-64/sub_n.S: Likewise.
3930         * sysdeps/sh/dl-trampoline.S: Likewise.
3931         * sysdeps/sh/memset.S: Likewise.
3932         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
3933         * sysdeps/sh/strlen.S: Likewise.
3934         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
3935         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
3936         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3937         * sysdeps/sparc/sparc32/rem.S: Likewise.
3938         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
3939         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
3940         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3941         * sysdeps/sparc/sparc32/udiv.S: Likewise.
3942         * sysdeps/sparc/sparc32/urem.S: Likewise.
3943         * sysdeps/sparc/sparc64/add_n.S: Likewise.
3944         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3945         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
3946         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
3947         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
3948         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3949         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3950         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3951         * sysdeps/unix/bsd/times.c: Likewise.
3952         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
3953         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3957         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3958         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3959         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3960         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
3961         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
3962         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
3963         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3964         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
3965         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3966         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3967         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3968         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3969         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3970         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
3971         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
3972         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3973         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
3974         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3975         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
3976         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
3977         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3978         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
3979         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3980         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
3981         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
3982         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
3983         * sysdeps/x86_64/strcspn.S: Likewise.
3984
3985 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3986
3987         * locale/C-translit.h: Revert #include <stdint.h> because this is a
3988         generated file.  Regenerate properly from gen-translit.pl.
3989         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
3990         locale/C-translit.h.
3991
3992 2013-06-05  Andreas Schwab  <schwab@suse.de>
3993
3994         [BZ #15100]
3995         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
3996         week as 6 instead of -1.
3997         * time/tst-strptime.c (day_tests): Add test case.
3998
3999 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4000
4001         * sysdeps/generic/math_private.h
4002         (libc_feholdexcept_setround_53bit): Replace with
4003         libc_feholdsetround_53bit.
4004         (libc_feupdateenv_53bit): Replace with
4005         libc_feresetround_53bit.
4006         (SET_RESTORE_ROUND_53BIT): Adjust.
4007
4008 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4009
4010         * string/test-strchrnul.c: Add copyright header.
4011
4012         * posix/tst-getaddrinfo4.c: Increase test timeout.
4013
4014 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
4015
4016         [BZ #15536]
4017         * math/libm-test.inc (MAX_EXP): Remove
4018         (MIN_EXP): Define.
4019         (ulp): Use MIN_EXP - MANT_DIG.
4020         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
4021
4022 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
4023
4024         * po/be.po: Revert last change.
4025         * po/zh_CN.po: Likewise.
4026         * po/header.pot: Likewise.
4027
4028 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
4029
4030         * Makefile ($(common-objpfx)linkobj/libc.so): Define
4031         link-libc-deps to empty as target-specific variable.
4032         * Makerules (link-libc-args): New variable.
4033         (libc-for-link): Likewise.
4034         (link-libc-deps): Likewise.
4035         (lib%.so): Depend on $(link-libc-deps).  Link with
4036         $(link-libc-args).
4037         (build-module): Link with $(link-libc-args).
4038         (build-module-asneeded): Likewise.
4039         (build-module-helper-objlist): Filter out $(link-libc-deps) from
4040         list of objects.
4041         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
4042         target-specific variable.
4043         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
4044         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
4045         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
4046         libc.
4047         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
4048         libc and ld.so.
4049         ($(objpfx)libpcprofile.so): Likewise.
4050         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
4051         libc_nonshared.a.
4052         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
4053         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
4054         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
4055         $(link-libc-deps).
4056         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
4057         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
4058         * login/Makefile ($(objpfx)libutil.so): Likewise.
4059         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
4060         * math/Makefile ($(objpfx)libm.so): Likewise.
4061         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
4062         $(objpfx)libnsl.so): Define libc-for-link as target-specific
4063         variable instead of depending directly on libc.
4064         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
4065         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
4066         $(link-libc-deps).
4067         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
4068         libc.
4069         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
4070         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
4071         ($(objpfx)libanl.so): Likewise.
4072         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
4073         ld.so.
4074         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
4075         $(link-libc-deps).
4076         * sysdeps/i386/fpu/Makefile: Remove file.
4077         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
4078         ($(objpfx)libm.so): Remove dependency on ld.so.
4079
4080 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
4081
4082         [BZ # 15553]
4083         * nis/yp_xdr.c (XDRMAXNAME): Define.
4084         (XDRMAXRECORD): Define.
4085         (xdr_domainname): Use XDRMAXNAME.
4086         (xdr_mapname): Likewise.
4087         (xdr_peername): Likewise.
4088         (xdr_keydat): Use XDRMAXRECORD.
4089         (xdr_valdat): Likewise.
4090
4091 2013-05-30  Jeff Law  <law@redhat.com>
4092
4093         [BZ #14256]
4094         * manual/errno.texi (ESTALE): Update to account for more than
4095         just NFS file systems.
4096         * sysdeps/gnu/errlist.c: Regenerated.
4097
4098 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4099
4100         [BZ #15465]
4101         * elf/Makefile (tests): Add tst-null-argv.
4102         (modules-names):  Add tst-null-argv-lib.
4103         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
4104         (tst-null-argv-ENV): Set environment for tst-null-argv.
4105         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
4106         (RTLD_PROGNAME): New macro.
4107         * elf/tst-null-argv.c: New test case.
4108         * elf/tst-null-argv-lib.c: Library for test case.
4109         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
4110         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4111         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
4112         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
4113         * elf/dl-init.c (call_init): Likewise.
4114         (_dl_init): Likewise.
4115         * elf/dl-load.c (print_search_path): Likewise.
4116         (_dl_map_object): Likewise.
4117         * elf/dl-lookup.c (do_lookup_x): Likewise.
4118         (add_dependency): Likewise.
4119         (_dl_lookup_symbol_x): Likewise.
4120         (_dl_debug_bindings): Likewise.
4121         * elf/dl-open.c (_dl_show_scope): Likewise.
4122         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4123         * elf/dl-version.c (match_symbol): Likewise.
4124         (_dl_check_map_versions): Likewise.
4125         * elf/rtld.c (dl_main): Likewise.
4126         (print_unresolved): Use RTLD_PROGNAME.
4127         (print_missing_version): Likewise.
4128         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4129         (elf_machine_rela): Likewise.
4130         * sysdeps/powerpc/powerpc32/dl-machine.c
4131         (__process_machine_rela): Likewise.
4132         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4133         Likewise.
4134         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4135         Likewise.
4136         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
4137         Likewise.
4138         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4139         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
4140         Likewise.
4141         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4142         Likewise.
4143         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4144
4145 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
4146
4147         * po/be.po: Add descriptive title.
4148         * po/zh_CN.po: Likewise.
4149         * po/header.pot: Likewise.
4150
4151 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
4152
4153         * locale/programs/locarchive.c (create_archive): Inlucde fname in
4154         error message.
4155         (enlarge_archive): Likewise.
4156
4157 2013-05-28  Ben North  <ben@redfrontdoor.org>
4158
4159         * manual/arith.texi (frexp): It is the magnitude of the return
4160         value which lies in [0.5, 1), not the return value itself.
4161
4162 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4163
4164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4165
4166 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
4167
4168         * stdio-common/bug26.c (main): Correct fscanf template.
4169
4170         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
4171         declare _dl_skip_args.
4172
4173         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
4174         Don't declare.
4175
4176         * manual/platform.texi: Add missing @end deftypefun.
4177
4178 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4179
4180         [BZ #15529]
4181         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
4182         bit of mantissa of 2^16382.
4183         * math/libm-test.inc (hypot_test_data): Add more tests.
4184
4185         * math/libm-test.inc: Add drem and pow10 to list of tested
4186         functions.
4187         (pow10_test): New function.
4188         (drem_test): Likewise.
4189         (drem_test_tonearest): Likewise.
4190         (drem_test_towardzero): Likewise.
4191         (drem_test_downward): Likewise.
4192         (drem_test_upward): Likewise.
4193         (main): Call the new functions.
4194
4195         * math/libm-test.inc (finite_test_data): Remove.
4196         (finite_test): Run tests from isfinite_test_data.
4197         (gamma_test_data): Remove.
4198         (gamma_test): Run tests from lgamma_test_data.
4199         * sysdeps/i386/fpu/libm-test-ulps: Update.
4200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4201
4202 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4203
4204         * manual/platform.texi: Add PowerPC PPR function set documentation.
4205         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
4206         implementation.
4207
4208 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
4209
4210         * math/libm-test.inc (MAX_EXP): Define.
4211         (ULPDIFF): Define.
4212         (ulp): New function.
4213         (check_float_internal): Use ULPDIFF.
4214         (cpow_test): Disable failing test.
4215         (check_ulp): Test ulp() implemetnation.
4216         (main): Call check_ulp before starting tests.
4217
4218 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4219
4220         * math/gen-libm-test.pl (generate_testfile): Do not handle
4221         START_DATA and END_DATA.
4222         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
4223         END_DATA.
4224         (acos_tonearest_test_data): Likewise.
4225         (acos_towardzero_test_data): Likewise.
4226         (acos_downward_test_data): Likewise.
4227         (acos_upward_test_data): Likewise.
4228         (acosh_test_data): Likewise.
4229         (asin_test_data): Likewise.
4230         (asin_tonearest_test_data): Likewise.
4231         (asin_towardzero_test_data): Likewise.
4232         (asin_downward_test_data): Likewise.
4233         (asin_upward_test_data): Likewise.
4234         (asinh_test_data): Likewise.
4235         (atan_test_data): Likewise.
4236         (atanh_test_data): Likewise.
4237         (atan2_test_data): Likewise.
4238         (cabs_test_data): Likewise.
4239         (cacos_test_data): Likewise.
4240         (cacosh_test_data): Likewise.
4241         (carg_test_data): Likewise.
4242         (casin_test_data): Likewise.
4243         (casinh_test_data): Likewise.
4244         (catan_test_data): Likewise.
4245         (catanh_test_data): Likewise.
4246         (cbrt_test_data): Likewise.
4247         (ccos_test_data): Likewise.
4248         (ccosh_test_data): Likewise.
4249         (ceil_test_data): Likewise.
4250         (cexp_test_data): Likewise.
4251         (cimag_test_data): Likewise.
4252         (clog_test_data): Likewise.
4253         (clog10_test_data): Likewise.
4254         (conj_test_data): Likewise.
4255         (copysign_test_data): Likewise.
4256         (cos_test_data): Likewise.
4257         (cos_tonearest_test_data): Likewise.
4258         (cos_towardzero_test_data): Likewise.
4259         (cos_downward_test_data): Likewise.
4260         (cos_upward_test_data): Likewise.
4261         (cosh_test_data): Likewise.
4262         (cosh_tonearest_test_data): Likewise.
4263         (cosh_towardzero_test_data): Likewise.
4264         (cosh_downward_test_data): Likewise.
4265         (cosh_upward_test_data): Likewise.
4266         (cpow_test_data): Likewise.
4267         (cproj_test_data): Likewise.
4268         (creal_test_data): Likewise.
4269         (csin_test_data): Likewise.
4270         (csinh_test_data): Likewise.
4271         (csqrt_test_data): Likewise.
4272         (ctan_test_data): Likewise.
4273         (ctan_tonearest_test_data): Likewise.
4274         (ctan_towardzero_test_data): Likewise.
4275         (ctan_downward_test_data): Likewise.
4276         (ctan_upward_test_data): Likewise.
4277         (ctanh_test_data): Likewise.
4278         (ctanh_tonearest_test_data): Likewise.
4279         (ctanh_towardzero_test_data): Likewise.
4280         (ctanh_downward_test_data): Likewise.
4281         (ctanh_upward_test_data): Likewise.
4282         (erf_test_data): Likewise.
4283         (erfc_test_data): Likewise.
4284         (exp_test_data): Likewise.
4285         (exp_tonearest_test_data): Likewise.
4286         (exp_towardzero_test_data): Likewise.
4287         (exp_downward_test_data): Likewise.
4288         (exp_upward_test_data): Likewise.
4289         (exp10_test_data): Likewise.
4290         (exp2_test_data): Likewise.
4291         (expm1_test_data): Likewise.
4292         (fabs_test_data): Likewise.
4293         (fdim_test_data): Likewise.
4294         (finite_test_data): Likewise.
4295         (floor_test_data): Likewise.
4296         (fma_test_data): Likewise.
4297         (fma_towardzero_test_data): Likewise.
4298         (fma_downward_test_data): Likewise.
4299         (fma_upward_test_data): Likewise.
4300         (fmax_test_data): Likewise.
4301         (fmin_test_data): Likewise.
4302         (fmod_test_data): Likewise.
4303         (fpclassify_test_data): Likewise.
4304         (frexp_test_data): Likewise.
4305         (gamma_test_data): Likewise.
4306         (hypot_test_data): Likewise.
4307         (ilogb_test_data): Likewise.
4308         (isfinite_test_data): Likewise.
4309         (isgreater_test_data): Likewise.
4310         (isgreaterequal_test_data): Likewise.
4311         (isinf_test_data): Likewise.
4312         (isless_test_data): Likewise.
4313         (islessequal_test_data): Likewise.
4314         (islessgreater_test_data): Likewise.
4315         (isnan_test_data): Likewise.
4316         (isnormal_test_data): Likewise.
4317         (issignaling_test_data): Likewise.
4318         (isunordered_test_data): Likewise.
4319         (j0_test_data): Likewise.
4320         (j1_test_data): Likewise.
4321         (jn_test_data): Likewise.
4322         (ldexp_test_data): Likewise.
4323         (lgamma_test_data): Likewise.
4324         (lrint_test_data): Likewise.
4325         (lrint_tonearest_test_data): Likewise.
4326         (lrint_towardzero_test_data): Likewise.
4327         (lrint_downward_test_data): Likewise.
4328         (lrint_upward_test_data): Likewise.
4329         (llrint_test_data): Likewise.
4330         (llrint_tonearest_test_data): Likewise.
4331         (llrint_towardzero_test_data): Likewise.
4332         (llrint_downward_test_data): Likewise.
4333         (llrint_upward_test_data): Likewise.
4334         (log_test_data): Likewise.
4335         (log10_test_data): Likewise.
4336         (log1p_test_data): Likewise.
4337         (log2_test_data): Likewise.
4338         (logb_test_data): Likewise.
4339         (logb_downward_test_data): Likewise.
4340         (lround_test_data): Likewise.
4341         (llround_test_data): Likewise.
4342         (modf_test_data): Likewise.
4343         (nearbyint_test_data): Likewise.
4344         (nextafter_test_data): Likewise.
4345         (nexttoward_test_data): Likewise.
4346         (pow_test_data): Likewise.
4347         (pow_tonearest_test_data): Likewise.
4348         (pow_towardzero_test_data): Likewise.
4349         (pow_downward_test_data): Likewise.
4350         (pow_upward_test_data): Likewise.
4351         (remainder_test_data): Likewise.
4352         (remainder_tonearest_test_data): Likewise.
4353         (remainder_towardzero_test_data): Likewise.
4354         (remainder_downward_test_data): Likewise.
4355         (remainder_upward_test_data): Likewise.
4356         (remquo_test_data): Likewise.
4357         (rint_test_data): Likewise.
4358         (rint_tonearest_test_data): Likewise.
4359         (rint_towardzero_test_data): Likewise.
4360         (rint_downward_test_data): Likewise.
4361         (rint_upward_test_data): Likewise.
4362         (round_test_data): Likewise.
4363         (scalb_test_data): Likewise.
4364         (scalbn_test_data): Likewise.
4365         (scalbln_test_data): Likewise.
4366         (signbit_test_data): Likewise.
4367         (sin_test_data): Likewise.
4368         (sin_tonearest_test_data): Likewise.
4369         (sin_towardzero_test_data): Likewise.
4370         (sin_downward_test_data): Likewise.
4371         (sin_upward_test_data): Likewise.
4372         (sincos_test_data): Likewise.
4373         (sinh_test_data): Likewise.
4374         (sinh_tonearest_test_data): Likewise.
4375         (sinh_towardzero_test_data): Likewise.
4376         (sinh_downward_test_data): Likewise.
4377         (sinh_upward_test_data): Likewise.
4378         (sqrt_test_data): Likewise.
4379         (tan_test_data): Likewise.
4380         (tan_tonearest_test_data): Likewise.
4381         (tan_towardzero_test_data): Likewise.
4382         (tan_downward_test_data): Likewise.
4383         (tan_upward_test_data): Likewise.
4384         (tanh_test_data): Likewise.
4385         (tgamma_test_data): Likewise.
4386         (trunc_test_data): Likewise.
4387         (y0_test_data): Likewise.
4388         (y1_test_data): Likewise.
4389         (yn_test_data): Likewise.
4390         (significand_test_data): Likewise.
4391
4392         * math/gen-libm-test.pl (@functions): Remove variable.
4393         (generate_testfile): Don't handle START and END lines.
4394         * math/libm-test.inc (START): New macro.
4395         (END): Likewise.
4396         (END_COMPLEX): Likewise.
4397         (acos_test): Use END macro without arguments.
4398         (acos_test_tonearest): Likewise.
4399         (acos_test_towardzero): Likewise.
4400         (acos_test_downward): Likewise.
4401         (acos_test_upward): Likewise.
4402         (acosh_test): Likewise.
4403         (asin_test): Likewise.
4404         (asin_test_tonearest): Likewise.
4405         (asin_test_towardzero): Likewise.
4406         (asin_test_downward): Likewise.
4407         (asin_test_upward): Likewise.
4408         (asinh_test): Likewise.
4409         (atan_test): Likewise.
4410         (atanh_test): Likewise.
4411         (atan2_test): Likewise.
4412         (cabs_test): Likewise.
4413         (cacos_test): Use END_COMPLEX macro without arguments.
4414         (cacosh_test): Likewise.
4415         (carg_test): Use END macro without arguments.
4416         (casin_test): Use END_COMPLEX macro without arguments.
4417         (casinh_test): Likewise.
4418         (catan_test): Likewise.
4419         (catanh_test): Likewise.
4420         (cbrt_test): Use END macro without arguments.
4421         (ccos_test): Use END_COMPLEX macro without arguments.
4422         (ccosh_test): Likewise.
4423         (ceil_test): Use END macro without arguments.
4424         (cexp_test): Use END_COMPLEX macro without arguments.
4425         (cimag_test): Use END macro without arguments.
4426         (clog_test): Use END_COMPLEX macro without arguments.
4427         (clog10_test): Likewise.
4428         (conj_test): Likewise.
4429         (copysign_test): Use END macro without arguments.
4430         (cos_test): Likewise.
4431         (cos_test_tonearest): Likewise.
4432         (cos_test_towardzero): Likewise.
4433         (cos_test_downward): Likewise.
4434         (cos_test_upward): Likewise.
4435         (cosh_test): Likewise.
4436         (cosh_test_tonearest): Likewise.
4437         (cosh_test_towardzero): Likewise.
4438         (cosh_test_downward): Likewise.
4439         (cosh_test_upward): Likewise.
4440         (cpow_test): Use END_COMPLEX macro without arguments.
4441         (cproj_test): Likewise.
4442         (creal_test): Use END macro without arguments.
4443         (csin_test): Use END_COMPLEX macro without arguments.
4444         (csinh_test): Likewise.
4445         (csqrt_test): Likewise.
4446         (ctan_test): Likewise.
4447         (ctan_test_tonearest): Likewise.
4448         (ctan_test_towardzero): Likewise.
4449         (ctan_test_downward): Likewise.
4450         (ctan_test_upward): Likewise.
4451         (ctanh_test): Likewise.
4452         (ctanh_test_tonearest): Likewise.
4453         (ctanh_test_towardzero): Likewise.
4454         (ctanh_test_downward): Likewise.
4455         (ctanh_test_upward): Likewise.
4456         (erf_test): Use END macro without arguments.
4457         (erfc_test): Likewise.
4458         (exp_test): Likewise.
4459         (exp_test_tonearest): Likewise.
4460         (exp_test_towardzero): Likewise.
4461         (exp_test_downward): Likewise.
4462         (exp_test_upward): Likewise.
4463         (exp10_test): Likewise.
4464         (exp2_test): Likewise.
4465         (expm1_test): Likewise.
4466         (fabs_test): Likewise.
4467         (fdim_test): Likewise.
4468         (finite_test): Likewise.
4469         (floor_test): Likewise.
4470         (fma_test): Likewise.
4471         (fma_test_towardzero): Likewise.
4472         (fma_test_downward): Likewise.
4473         (fma_test_upward): Likewise.
4474         (fmax_test): Likewise.
4475         (fmin_test): Likewise.
4476         (fmod_test): Likewise.
4477         (fpclassify_test): Likewise.
4478         (frexp_test): Likewise.
4479         (gamma_test): Likewise.
4480         (hypot_test): Likewise.
4481         (ilogb_test): Likewise.
4482         (isfinite_test): Likewise.
4483         (isgreater_test): Likewise.
4484         (isgreaterequal_test): Likewise.
4485         (isinf_test): Likewise.
4486         (isless_test): Likewise.
4487         (islessequal_test): Likewise.
4488         (islessgreater_test): Likewise.
4489         (isnan_test): Likewise.
4490         (isnormal_test): Likewise.
4491         (issignaling_test): Likewise.
4492         (isunordered_test): Likewise.
4493         (j0_test): Likewise.
4494         (j1_test): Likewise.
4495         (jn_test): Likewise.
4496         (ldexp_test): Likewise.
4497         (lgamma_test): Likewise.
4498         (lrint_test): Likewise.
4499         (lrint_test_tonearest): Likewise.
4500         (lrint_test_towardzero): Likewise.
4501         (lrint_test_downward): Likewise.
4502         (lrint_test_upward): Likewise.
4503         (llrint_test): Likewise.
4504         (llrint_test_tonearest): Likewise.
4505         (llrint_test_towardzero): Likewise.
4506         (llrint_test_downward): Likewise.
4507         (llrint_test_upward): Likewise.
4508         (log_test): Likewise.
4509         (log10_test): Likewise.
4510         (log1p_test): Likewise.
4511         (log2_test): Likewise.
4512         (logb_test): Likewise.
4513         (logb_test_downward): Likewise.
4514         (lround_test): Likewise.
4515         (llround_test): Likewise.
4516         (modf_test): Likewise.
4517         (nearbyint_test): Likewise.
4518         (nextafter_test): Likewise.
4519         (nexttoward_test): Likewise.
4520         (pow_test): Likewise.
4521         (pow_test_tonearest): Likewise.
4522         (pow_test_towardzero): Likewise.
4523         (pow_test_downward): Likewise.
4524         (pow_test_upward): Likewise.
4525         (remainder_test): Likewise.
4526         (remainder_test_tonearest): Likewise.
4527         (remainder_test_towardzero): Likewise.
4528         (remainder_test_downward): Likewise.
4529         (remainder_test_upward): Likewise.
4530         (remquo_test): Likewise.
4531         (rint_test): Likewise.
4532         (rint_test_tonearest): Likewise.
4533         (rint_test_towardzero): Likewise.
4534         (rint_test_downward): Likewise.
4535         (rint_test_upward): Likewise.
4536         (round_test): Likewise.
4537         (scalb_test): Likewise.
4538         (scalbn_test): Likewise.
4539         (scalbln_test): Likewise.
4540         (signbit_test): Likewise.
4541         (sin_test): Likewise.
4542         (sin_test_tonearest): Likewise.
4543         (sin_test_towardzero): Likewise.
4544         (sin_test_downward): Likewise.
4545         (sin_test_upward): Likewise.
4546         (sincos_test): Likewise.
4547         (sinh_test): Likewise.
4548         (sinh_test_tonearest): Likewise.
4549         (sinh_test_towardzero): Likewise.
4550         (sinh_test_downward): Likewise.
4551         (sinh_test_upward): Likewise.
4552         (sqrt_test): Likewise.
4553         (tan_test): Likewise.
4554         (tan_test_tonearest): Likewise.
4555         (tan_test_towardzero): Likewise.
4556         (tan_test_downward): Likewise.
4557         (tan_test_upward): Likewise.
4558         (tanh_test): Likewise.
4559         (tgamma_test): Likewise.
4560         (trunc_test): Likewise.
4561         (y0_test): Likewise.
4562         (y1_test): Likewise.
4563         (yn_test): Likewise.
4564         (significand_test): Likewise.
4565
4566 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
4567
4568         [BZ #15381]
4569         * libio/genops.c (_IO_no_init): Initialize wide struct info.
4570
4571 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4572
4573         [BZ #14894]
4574         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
4575         __ppc_mdoio and __ppc_mdoom.
4576         * manual/platform.texi: Document new functions __ppc_yield,
4577         __ppc_mdoio and __ppc_mdoom.
4578
4579 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
4580
4581         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
4582         (main): Mention "tls" pseudo-hwcap is legacy.
4583         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
4584
4585 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4586
4587         * math/gen-libm-test.pl (parse_args): Output only string of
4588         arguments as text for test name, not full call or descriptions of
4589         tests for extra outputs.
4590         (generate_testfile): Do not pass function name to parse_args.
4591         Generate this_func variable from START.
4592         * math/libm-test.inc (struct test_f_f_data): Rename test_name
4593         field to arg_str.
4594         (struct test_ff_f_data): Likewise.
4595         (test_ff_f_data_nexttoward): Likewise.
4596         (struct test_fi_f_data): Likewise.
4597         (struct test_fl_f_data): Likewise.
4598         (struct test_if_f_data): Likewise.
4599         (struct test_fff_f_data): Likewise.
4600         (struct test_c_f_data): Likewise.
4601         (struct test_f_f1_data): Likewise.  Remove field extra_name.
4602         (struct test_fF_f1_data): Likewise.
4603         (struct test_ffI_f1_data): Likewise.
4604         (struct test_c_c_data): Rename test_name field to arg_str.
4605         (struct test_cc_c_data): Likewise.
4606         (struct test_f_i_data): Likewise.
4607         (struct test_ff_i_data): Likewise.
4608         (struct test_f_l_data): Likewise.
4609         (struct test_f_L_data): Likewise.
4610         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
4611         and extra2_name.
4612         (COMMON_TEST_SETUP): New macro.
4613         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4614         (COMMON_TEST_CLEANUP): Likewise.
4615         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4616         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
4617         macros.
4618         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
4619         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
4620         macros.
4621         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
4622         (RUN_TEST_fff_f): Take argument string.  Call new setup and
4623         cleanup macros.
4624         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
4625         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
4626         macros.
4627         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
4628         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
4629         macros.
4630         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4631         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
4632         cleanup macros.
4633         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4634         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
4635         cleanup macros.
4636         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4637         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
4638         cleanup macros.
4639         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4640         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
4641         macros.
4642         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
4643         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
4644         macros.
4645         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
4646         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
4647         macros.
4648         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
4649         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
4650         cleanup macros.
4651         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
4652         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
4653         cleanup macros.
4654         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
4655         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
4656         macros.
4657         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
4658         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
4659         cleanup macros.
4660         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4661         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4662         macros.
4663         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4664         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4665         macros.
4666         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4667         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4668         cleanup macros.
4669         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4670
4671 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4672
4673         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4674         to _sifields.sigfault.
4675         (si_addr_lsb): Define new macro.
4676         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4677         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4678         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4679
4680 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4681
4682         [BZ #15441]
4683         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4684         returns -1.
4685         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4686         null return -1.
4687         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4688         loading the domain.
4689
4690 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4691
4692         * math/gen-libm-test.pl (parse_args): Do not include expected
4693         result in test name.
4694         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4695         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4696         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4697         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4698         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4700
4701 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4702
4703         * benchtests/Makefile: Sort function entries.
4704
4705         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4706         tanh, asinh, acosh, atanh.
4707         * benchtests/acos-inputs: New file.
4708         * benchtests/acosh-inputs: New file.
4709         * benchtests/asin-inputs: New file.
4710         * benchtests/asinh-inputs: New file.
4711         * benchtests/atanh-inputs: New file.
4712         * benchtests/cosh-inputs: New file.
4713         * benchtests/log-inputs: New file.
4714         * benchtests/sinh-inputs: New file.
4715         * benchtests/tanh-inputs: New file.
4716
4717 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4718
4719         [BZ #15339]
4720         * posix/tst-getaddrinfo4.c: New test.
4721         * posix/Makefile (tests): Add it.
4722
4723 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4724
4725         [BZ #15339]
4726         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4727         when no services were used.
4728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4729         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4730
4731 2013-05-21  Andreas Schwab  <schwab@suse.de>
4732
4733         [BZ #15014]
4734         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4735         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4736         successful.
4737         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4738         redundant variable declarations and reallocation of buffer when
4739         parsing as IPv6 address.  Always set NSS status when called from
4740         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4741         buffer too small.  Correct computation of needed size.
4742         * nss/Makefile (tests): Add test-digits-dots.
4743         * nss/test-digits-dots.c: New test.
4744
4745 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4746
4747         * benchtests/Makefile: Remove instructions for adding
4748         benchmark tests.
4749         * benchtests/README: New file to explain how to execute and
4750         enhance the benchmark tests.
4751
4752 2013-05-21  Andreas Schwab  <schwab@suse.de>
4753
4754         [BZ #15493]
4755         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4756         * setjmp/tst-sigsetjmp.c: New test.
4757
4758 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4759
4760         * sysdeps/x86_64/memset.S (memset): New implementation.
4761         (__bzero): Likewise.
4762         (__memset_tail): New function.
4763
4764 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4765
4766         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4767         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4768         __memcpy_sse2_unaligned ifunc selection.
4769         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4770         Add memcpy-sse2-unaligned.S.
4771         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4772         Add: __memcpy_sse2_unaligned.
4773
4774 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4775
4776         [BZ #15490]
4777         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4778         math_force_eval before restoring floating-point envrionment.
4779         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4780         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4781         Likewise.
4782         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4783         <math_private.h>.
4784         (__nearbyintl): Use math_force_eval before restoring
4785         floating-point environment.
4786         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4787
4788         * math/gen-libm-test.pl (special_functions): Remove.
4789         (parse_args): Don't handle TEST_extra.  Handle functions with no
4790         return value.
4791         * math/libm-test.inc (struct test_sincos_data): Replace with
4792         struct test_fFF_11_data.
4793         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4794         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4795         (sincos_test_data): Change element type to struct
4796         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4797         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4798         RUN_TEST_LOOP_sincos.
4799         * math/README.libm-test: Don't mention special handling of
4800         individual functions.
4801         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4802         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4803         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4804         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4805         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4807
4808         * math/gen-libm-test.pl (get_variable): Remove function.
4809         (parse_args): Don't show pointer parameters to call in test
4810         names.  Use "extra output N" in test names for extra outputs
4811         rather than naming variables.
4812
4813 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4814
4815         [BZ #15488]
4816         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4817         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4818         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4819         double tests.
4820         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4821         disable.
4822         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4823         check_long_double.
4824
4825         * math/gen-libm-test.pl (@tests): Remove variable.
4826         ($count): Likewise.
4827         (new_test): Remove function.
4828         (show_exceptions): New function.
4829         (special_functions): Use show_exceptions instead of new_test.
4830         (parse_args): Likewise.
4831         (generate_testfile): Pass only function name in generated call to
4832         print_max_error or print_complex_max_error.
4833         (get_ulps): Do not handle complex tests specially.
4834         (output_test): Rename to ...
4835         (get_all_ulps_for_test): ... this.  Return a string rather than
4836         printing to a file.  Require ulps to be present.
4837         (output_ulps): Generate arrays rather than #defines.
4838         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4839         (struct ulp_data): New type.
4840         (BUILD_COMPLEX_ULP): Remove macro.
4841         (compare_ulp_data): New function.
4842         (find_ulps): Likewise.
4843         (find_test_ulps): Likewise.
4844         (find_function_ulps): Likewise.
4845         (find_complex_function_ulps): Likewise.
4846         (print_max_error): Determine allowed ulps using
4847         find_function_ulps.
4848         (print_complex_max_error): Determine allowed ulps using
4849         find_complex_function_ulps.
4850         (check_float_internal): Determine max ulps using find_test_ulps.
4851         (check_float): Do not take max_ulp parameter.  Update call to
4852         check_float_internal.
4853         (check_complex): Likewise.
4854         (check_int): Do not take max_ulp parameter.
4855         (check_long): Likewise.
4856         (check_bool): Likewise.
4857         (check_longlong): Likewise.
4858         (struct test_f_f_data): Remove max_ulp field.
4859         (struct test_ff_f_data): Likewise.
4860         (struct test_ff_f_data_nexttoward): Likewise.
4861         (struct test_fi_f_data): Likewise.
4862         (struct test_fl_f_data): Likewise.
4863         (struct test_if_f_data): Likewise.
4864         (struct test_fff_f_data): Likewise.
4865         (struct test_c_f_data): Likewise.
4866         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4867         (struct test_fF_f1_data): Likewise.
4868         (struct test_ffI_f1_data): Likewise.
4869         (struct test_c_c_data): Remove max_ulp field.
4870         (struct test_cc_c_data): Likewise.
4871         (struct test_f_i_data): Likewise.
4872         (struct test_ff_i_data): Likewise.
4873         (struct test_f_l_data): Likewise.
4874         (struct test_f_L_data): Likewise.
4875         (struct test_sincos_data): Likewise.
4876         (RUN_TEST_f_f): Do not handle ulps.
4877         (RUN_TEST_LOOP_f_f): Likewise.
4878         (RUN_TEST_2_f): Likewise.
4879         (RUN_TEST_LOOP_2_f): Likewise.
4880         (RUN_TEST_fff_f): Likewise.
4881         (RUN_TEST_LOOP_fff_f): Likewise.
4882         (RUN_TEST_c_f): Likewise.
4883         (RUN_TEST_LOOP_c_f): Likewise.
4884         (RUN_TEST_f_f1): Likewise.
4885         (RUN_TEST_LOOP_f_f1): Likewise.
4886         (RUN_TEST_fF_f1): Likewise.
4887         (RUN_TEST_LOOP_fF_f1): Likewise.
4888         (RUN_TEST_fI_f1): Likewise.
4889         (RUN_TEST_LOOP_fI_f1): Likewise.
4890         (RUN_TEST_ffI_f1): Likewise.
4891         (RUN_TEST_LOOP_ffI_f1): Likewise.
4892         (RUN_TEST_c_c): Likewise.
4893         (RUN_TEST_LOOP_c_c): Likewise.
4894         (RUN_TEST_cc_c): Likewise.
4895         (RUN_TEST_LOOP_cc_c): Likewise.
4896         (RUN_TEST_f_i): Likewise.
4897         (RUN_TEST_LOOP_f_i): Likewise.
4898         (RUN_TEST_f_i_tg): Likewise.
4899         (RUN_TEST_LOOP_f_i_tg): Likewise.
4900         (RUN_TEST_ff_i_tg): Likewise.
4901         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4902         (RUN_TEST_f_b): Likewise.
4903         (RUN_TEST_LOOP_f_b): Likewise.
4904         (RUN_TEST_f_b_tg): Likewise.
4905         (RUN_TEST_LOOP_f_b_tg): Likewise.
4906         (RUN_TEST_f_l): Likewise.
4907         (RUN_TEST_LOOP_f_l): Likewise.
4908         (RUN_TEST_f_L): Likewise.
4909         (RUN_TEST_LOOP_f_L): Likewise.
4910         (RUN_TEST_sincos): Likewise.
4911         (RUN_TEST_LOOP_sincos): Likewise.
4912
4913 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
4914
4915         [BZ #15480]
4916         [BZ #15485]
4917         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
4918         main case of finite arguments, set rounding mode to FE_TONEAREST
4919         and discard exceptions.
4920         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
4921         exceptions.
4922         (remainder_tonearest_test_data): New variable.
4923         (remainder_test_tonearest): New function.
4924         (remainder_towardzero_test_data): New variable.
4925         (remainder_test_towardzero): New function.
4926         (remainder_downward_test_data): New variable.
4927         (remainder_test_downward): New function.
4928         (remainder_upward_test_data): New variable.
4929         (remainder_test_upward): New function.
4930         (main): Call the new test functions.
4931
4932         * math/libm-test.inc (struct test_f_f1_data): Remove field
4933         extra_init.
4934         (struct test_fF_f1_data): Likewise.
4935         (struct test_ffI_f1_data): Likewise.
4936         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
4937         based on value of EXTRA_EXPECTED.
4938         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4939         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
4940         EXTRA_VAR based on value of EXTRA_EXPECTED.
4941         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4942         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
4943         EXTRA_VAR based on value of EXTRA_EXPECTED.
4944         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4945         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
4946         EXTRA_VAR based on value of EXTRA_EXPECTED.
4947         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4948         * math/gen-libm-test.pl (parse_args): Don't output initializers
4949         for extra output values.
4950
4951         * math/libm-test.inc (check_int): Expect result to be exactly
4952         equal to expected value and do not handle ulps.
4953         (check_long): Likewise.
4954         (check_longlong): Likewise.
4955
4956         * math/libm-test.inc (ceil_test_data): Test for "inexact"
4957         exceptions.
4958         (cimag_test_data): Likewise.
4959         (conj_test_data): Likewise.
4960         (copysign_test_data): Likewise.
4961         (cproj_test_data): Likewise.
4962         (creal_test_data): Likewise.
4963         (fabs_test_data): Likewise.
4964         (fdim_test_data): Likewise.
4965         (finite_test_data): Likewise.
4966         (floor_test_data): Likewise.
4967         (fmax_test_data): Likewise.
4968         (fmin_test_data): Likewise.
4969         (fmod_test_data): Likewise.
4970         (fpclassify_test_data): Likewise.
4971         (frexp_test_data): Likewise.
4972         (ilogb_test_data): Likewise.
4973         (isfinite_test_data): Likewise.
4974         (isgreater_test_data): Likewise.
4975         (isgreaterequal_test_data): Likewise.
4976         (isinf_test_data): Likewise.
4977         (isless_test_data): Likewise.
4978         (islessequal_test_data): Likewise.
4979         (islessgreater_test_data): Likewise.
4980         (isnan_test_data): Likewise.
4981         (isnormal_test_data): Likewise.
4982         (issignaling_test_data): Likewise.
4983         (isunordered_test_data): Likewise.
4984         (ldexp_test_data): Likewise.
4985         (lrint_test_data): Likewise.
4986         (lrint_test_data) [TEST_FLOAT]: Disable one test.
4987         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
4988         (lrint_tonearest_test_data): Test for "inexact" exceptions.
4989         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4990         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
4991         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4992         test input.
4993         (lrint_towardzero_test_data): Test for "inexact" exceptions.
4994         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4995         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
4996         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
4997         that test input.
4998         (lrint_downward_test_data): Test for "inexact" exceptions.
4999         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5000         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
5001         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5002         test input.
5003         (lrint_upward_test_data): Test for "inexact" exceptions.
5004         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
5005         test input.
5006         (llrint_test_data): Test for "inexact" exceptions.
5007         (llrint_test_data) [TEST_FLOAT]: Disable one test.
5008         (llrint_tonearest_test_data): Test for "inexact" exceptions.
5009         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5010         (llrint_towardzero_test_data): Test for "inexact" exceptions.
5011         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5012         (llrint_downward_test_data): Test for "inexact" exceptions.
5013         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5014         (llrint_upward_test_data): Test for "inexact" exceptions.
5015         (logb_test_data): Likewise.
5016         (logb_downward_test_data): Likewise.
5017         (nextafter_test_data): Likewise.
5018         (nexttoward_test_data): Likewise.
5019         (remainder_test_data): Likewise.
5020         (remquo_test_data): Likewise.
5021         (scalbn_test_data): Likewise.
5022         (scalbln_test_data): Likewise.
5023         (signbit_test_data): Likewise.
5024         (sqrt_test_data): Likewise.
5025         (significand_test_data): Likewise.
5026
5027 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5028
5029         [BZ #15424]
5030         * benchtests/bench-modf.c (struct args): Mark arg0 as
5031         volatile.
5032         * scripts/bench.pl: Mark members of struct args as volatile.
5033
5034 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5035
5036         [BZ # 15497]
5037         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
5038         negative infinity on POWER6 or lower.
5039         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
5040
5041 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5042
5043         [BZ #15442]
5044         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
5045         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
5046         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
5047         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
5048         (_FP_SETQNAN): New macro.
5049         (_FP_SETQNAN_SEMIRAW): Likewise.
5050         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
5051         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
5052         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
5053         (FP_EXTEND): Use _FP_FRAC_SNANP.
5054         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
5055         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
5056         into account.
5057         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5058         New macro.
5059         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5060         Likewise.
5061
5062 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5063
5064         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
5065         with DIVIDE_BY_ZERO_EXCEPTION.
5066         (gamma_test_data): Likewise.
5067         (lgamma_test_data): Likewise.
5068         (log_test_data): Likewise.
5069         (log10_test_data): Likewise.
5070         (log2_test_data): Likewise.
5071         (tgamma_test_data): Likewise.
5072
5073         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
5074         (acos_test_tonearest): Likewise.
5075         (acos_test_towardzero): Likewise.
5076         (acos_test_downward): Likewise.
5077         (acos_test_upward): Likewise.
5078         (acosh_test): Likewise.
5079         (asin_test): Likewise.
5080         (asin_test_tonearest): Likewise.
5081         (asin_test_towardzero): Likewise.
5082         (asin_test_downward): Likewise.
5083         (asin_test_upward): Likewise.
5084         (asinh_test): Likewise.
5085         (atan_test): Likewise.
5086         (atanh_test): Likewise.
5087         (atan2_test): Likewise.
5088         (cabs_test): Likewise.
5089         (cacos_test): Likewise.
5090         (cacosh_test): Likewise.
5091         (casin_test): Likewise.
5092         (casinh_test): Likewise.
5093         (catan_test): Likewise.
5094         (catanh_test): Likewise.
5095         (cbrt_test): Likewise.
5096         (ccos_test): Likewise.
5097         (ccosh_test): Likewise.
5098         (cexp_test): Likewise.
5099         (clog_test): Likewise.
5100         (clog10_test): Likewise.
5101         (cos_test): Likewise.
5102         (cos_test_tonearest): Likewise.
5103         (cos_test_towardzero): Likewise.
5104         (cos_test_downward): Likewise.
5105         (cos_test_upward): Likewise.
5106         (cosh_test): Likewise.
5107         (cosh_test_tonearest): Likewise.
5108         (cosh_test_towardzero): Likewise.
5109         (cosh_test_downward): Likewise.
5110         (cosh_test_upward): Likewise.
5111         (cpow_test): Likewise.
5112         (csin_test): Likewise.
5113         (csinh_test): Likewise.
5114         (csqrt_test): Likewise.
5115         (ctan_test): Likewise.
5116         (ctan_test_tonearest): Likewise.
5117         (ctan_test_towardzero): Likewise.
5118         (ctan_test_downward): Likewise.
5119         (ctan_test_upward): Likewise.
5120         (ctanh_test): Likewise.
5121         (ctanh_test_tonearest): Likewise.
5122         (ctanh_test_towardzero): Likewise.
5123         (ctanh_test_downward): Likewise.
5124         (ctanh_test_upward): Likewise.
5125         (erf_test): Likewise.
5126         (erfc_test): Likewise.
5127         (exp_test): Likewise.
5128         (exp_test_tonearest): Likewise.
5129         (exp_test_towardzero): Likewise.
5130         (exp_test_downward): Likewise.
5131         (exp_test_upward): Likewise.
5132         (exp10_test): Likewise.
5133         (exp2_test): Likewise.
5134         (expm1_test): Likewise.
5135         (fmod_test): Likewise.
5136         (gamma_test): Likewise.
5137         (hypot_test): Likewise.
5138         (j0_test): Likewise.
5139         (j1_test): Likewise.
5140         (jn_test): Likewise.
5141         (lgamma_test): Likewise.
5142         (log_test): Likewise.
5143         (log10_test): Likewise.
5144         (log1p_test): Likewise.
5145         (log2_test): Likewise.
5146         (logb_test_downward): Likewise.
5147         (pow_test): Likewise.
5148         (pow_test_tonearest): Likewise.
5149         (pow_test_towardzero): Likewise.
5150         (pow_test_downward): Likewise.
5151         (pow_test_upward): Likewise.
5152         (remainder_test): Likewise.
5153         (remquo_test): Likewise.
5154         (sin_test): Likewise.
5155         (sin_test_tonearest): Likewise.
5156         (sin_test_towardzero): Likewise.
5157         (sin_test_downward): Likewise.
5158         (sin_test_upward): Likewise.
5159         (sincos_test): Likewise.
5160         (sinh_test): Likewise.
5161         (sinh_test_tonearest): Likewise.
5162         (sinh_test_towardzero): Likewise.
5163         (sinh_test_downward): Likewise.
5164         (sinh_test_upward): Likewise.
5165         (sqrt_test): Likewise.
5166         (tan_test): Likewise.
5167         (tan_test_tonearest): Likewise.
5168         (tan_test_towardzero): Likewise.
5169         (tan_test_downward): Likewise.
5170         (tan_test_upward): Likewise.
5171         (tanh_test): Likewise.
5172         (tgamma_test): Likewise.
5173         (y0_test): Likewise.
5174         (y1_test): Likewise.
5175         (yn_test): Likewise.
5176
5177         * math/gen-libm-test.pl (adjust_arg): Remove function.
5178         (special_function): Remove argument $in_func.  Only handle
5179         generating output for tables of tests, not inside functions.
5180         (parse_args): Likewise.
5181         (generate_testfile): Remove variable $in_func.  Update call to
5182         parse_args.
5183         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
5184         (MINUS_ZERO_INIT): Rename macro to minus_zero.
5185         (PLUS_INFTY_INIT): Rename macro to plus_infty.
5186         (MINUS_INFTY_INIT): Rename macro to minus_infty.
5187         (QNAN_VALUE_INIT): Rename macro to qnan_value.
5188         (MAX_VALUE_INIT): Rename macro to max_value.
5189         (MIN_VALUE_INIT): Rename macro to min_value.
5190         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
5191         (plus_zero): Remove variable.
5192         (minus_zero): Likewise.
5193         (plus_infty): Likewise.
5194         (minus_infty): Likewise.
5195         (qnan_value): Likewise.
5196         (max_value): Likewise.
5197         (min_value): Likewise.
5198         (min_subnorm_value): Likewise.
5199
5200 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5201
5202         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
5203         uint64_t or uint32_t usage.
5204         * crypt/sha256-block.c: Likewise.
5205         * crypt/sha256-crypt.c: Likewise.
5206         * crypt/sha256.c: Likewise.
5207         * crypt/sha512-block.c: Likewise.
5208         * crypt/sha512-crypt.c: Likewise.
5209         * crypt/sha512.c: Likewise.
5210         * debug/backtrace-tst.c: Likewise.
5211         * debug/pcprofiledump.c: Likewise.
5212         * elf/cache.c: Likewise.
5213         * elf/dl-cache.c: Likewise.
5214         * elf/dl-misc.c: Likewise.
5215         * elf/dl-profile.c: Likewise.
5216         * elf/dl-support.c: Likewise.
5217         * elf/ldconfig.c: Likewise.
5218         * elf/sprof.c: Likewise.
5219         * iconv/dummy-repertoire.c: Likewise.
5220         * iconv/iconv_charmap.c: Likewise.
5221         * iconv/skeleton.c: Likewise.
5222         * iconvdata/8bit-generic.c: Likewise.
5223         * iconvdata/cp737.h: Likewise.
5224         * iconvdata/cp775.h: Likewise.
5225         * iconvdata/ibm1008.h: Likewise.
5226         * iconvdata/ibm1025.h: Likewise.
5227         * iconvdata/ibm1046.h: Likewise.
5228         * iconvdata/ibm1097.h: Likewise.
5229         * iconvdata/ibm1112.h: Likewise.
5230         * iconvdata/ibm1122.h: Likewise.
5231         * iconvdata/ibm1123.h: Likewise.
5232         * iconvdata/ibm1124.h: Likewise.
5233         * iconvdata/ibm1129.h: Likewise.
5234         * iconvdata/ibm1130.h: Likewise.
5235         * iconvdata/ibm1132.h: Likewise.
5236         * iconvdata/ibm1133.h: Likewise.
5237         * iconvdata/ibm1137.h: Likewise.
5238         * iconvdata/ibm1140.h: Likewise.
5239         * iconvdata/ibm1141.h: Likewise.
5240         * iconvdata/ibm1142.h: Likewise.
5241         * iconvdata/ibm1143.h: Likewise.
5242         * iconvdata/ibm1144.h: Likewise.
5243         * iconvdata/ibm1145.h: Likewise.
5244         * iconvdata/ibm1146.h: Likewise.
5245         * iconvdata/ibm1147.h: Likewise.
5246         * iconvdata/ibm1148.h: Likewise.
5247         * iconvdata/ibm1149.h: Likewise.
5248         * iconvdata/ibm1153.h: Likewise.
5249         * iconvdata/ibm1154.h: Likewise.
5250         * iconvdata/ibm1155.h: Likewise.
5251         * iconvdata/ibm1156.h: Likewise.
5252         * iconvdata/ibm1157.h: Likewise.
5253         * iconvdata/ibm1158.h: Likewise.
5254         * iconvdata/ibm1160.h: Likewise.
5255         * iconvdata/ibm1161.h: Likewise.
5256         * iconvdata/ibm1162.h: Likewise.
5257         * iconvdata/ibm1163.h: Likewise.
5258         * iconvdata/ibm1164.h: Likewise.
5259         * iconvdata/ibm1166.h: Likewise.
5260         * iconvdata/ibm1167.h: Likewise.
5261         * iconvdata/ibm12712.h: Likewise.
5262         * iconvdata/ibm1390.h: Likewise.
5263         * iconvdata/ibm1399.h: Likewise.
5264         * iconvdata/ibm16804.h: Likewise.
5265         * iconvdata/ibm4517.h: Likewise.
5266         * iconvdata/ibm4899.h: Likewise.
5267         * iconvdata/ibm4909.h: Likewise.
5268         * iconvdata/ibm4971.h: Likewise.
5269         * iconvdata/ibm5347.h: Likewise.
5270         * iconvdata/ibm803.h: Likewise.
5271         * iconvdata/ibm856.h: Likewise.
5272         * iconvdata/ibm901.h: Likewise.
5273         * iconvdata/ibm902.h: Likewise.
5274         * iconvdata/ibm9030.h: Likewise.
5275         * iconvdata/ibm9066.h: Likewise.
5276         * iconvdata/ibm921.h: Likewise.
5277         * iconvdata/ibm922.h: Likewise.
5278         * iconvdata/ibm9448.h: Likewise.
5279         * iconvdata/isiri-3342.h: Likewise.
5280         * iconvdata/jis0201.h: Likewise.
5281         * include/link.h: Likewise.
5282         * include/netdb.h: Likewise.
5283         * inet/check_native.c: Likewise.
5284         * inet/check_pf.c: Likewise.
5285         * inet/getipv4sourcefilter.c: Likewise.
5286         * inet/getnameinfo.c: Likewise.
5287         * inet/getsourcefilter.c: Likewise.
5288         * inet/htonl.c: Likewise.
5289         * inet/setipv4sourcefilter.c: Likewise.
5290         * inet/setsourcefilter.c: Likewise.
5291         * inet/test-inet6_opt.c: Likewise.
5292         * inet/tst-network.c: Likewise.
5293         * locale/C-collate.c: Likewise.
5294         * locale/C-ctype.c: Likewise.
5295         * locale/C-time.c: Likewise.
5296         * locale/C-translit.h: Likewise.
5297         * locale/loadarchive.c: Likewise.
5298         * locale/programs/3level.h: Likewise.
5299         * locale/programs/charmap.c: Likewise.
5300         * locale/programs/charmap.h: Likewise.
5301         * locale/programs/ld-address.c: Likewise.
5302         * locale/programs/ld-collate.c: Likewise.
5303         * locale/programs/ld-ctype.c: Likewise.
5304         * locale/programs/ld-identification.c: Likewise.
5305         * locale/programs/ld-measurement.c: Likewise.
5306         * locale/programs/ld-messages.c: Likewise.
5307         * locale/programs/ld-monetary.c: Likewise.
5308         * locale/programs/ld-name.c: Likewise.
5309         * locale/programs/ld-numeric.c: Likewise.
5310         * locale/programs/ld-paper.c: Likewise.
5311         * locale/programs/ld-telephone.c: Likewise.
5312         * locale/programs/ld-time.c: Likewise.
5313         * locale/programs/linereader.c: Likewise.
5314         * locale/programs/locale.c: Likewise.
5315         * locale/programs/locarchive.c: Likewise.
5316         * locale/programs/locfile.h: Likewise.
5317         * locale/programs/repertoire.c: Likewise.
5318         * locale/programs/simple-hash.c: Likewise.
5319         * locale/programs/simple-hash.h: Likewise.
5320         * malloc/memusage.c: Likewise.
5321         * malloc/memusagestat.c: Likewise.
5322         * nis/nis_defaults.c: Likewise.
5323         * nis/nis_hash.c: Likewise.
5324         * nis/nis_print.c: Likewise.
5325         * nis/nis_xdr.c: Likewise.
5326         * nscd/connections.c: Likewise.
5327         * nscd/hstcache.c: Likewise.
5328         * nscd/nscd_gethst_r.c: Likewise.
5329         * nscd/nscd_getserv_r.c: Likewise.
5330         * nscd/nscd_helper.c: Likewise.
5331         * nscd/servicescache.c: Likewise.
5332         * nss/makedb.c: Likewise.
5333         * nss/nss_db/db-XXX.c: Likewise.
5334         * nss/nss_db/db-initgroups.c: Likewise.
5335         * nss/nss_db/db-netgrp.c: Likewise.
5336         * nss/nss_files/files-network.c: Likewise.
5337         * nss/nss_files/files-parse.c: Likewise.
5338         * posix/bug-regex5.c: Likewise.
5339         * posix/fnmatch_loop.c: Likewise.
5340         * posix/regcomp.c: Likewise.
5341         * posix/regexec.c: Likewise.
5342         * posix/tst-rfc3484-2.c: Likewise.
5343         * posix/tst-rfc3484-3.c: Likewise.
5344         * posix/tst-rfc3484.c: Likewise.
5345         * resolv/nss_dns/dns-canon.c: Likewise.
5346         * resolv/nss_dns/dns-network.c: Likewise.
5347         * resolv/res_init.c: Likewise.
5348         * resolv/res_mkquery.c: Likewise.
5349         * resolv/tst-aton.c: Likewise.
5350         * stdlib/cxa_atexit.c: Likewise.
5351         * stdlib/cxa_finalize.c: Likewise.
5352         * stdlib/gen-fpioconst.c: Likewise.
5353         * stdlib/strtol_l.c: Likewise.
5354         * string/tst-endian.c: Likewise.
5355         * sunrpc/auth_des.c: Likewise.
5356         * sunrpc/clnt_udp.c: Likewise.
5357         * sunrpc/rtime.c: Likewise.
5358         * sunrpc/svcauth_des.c: Likewise.
5359         * sunrpc/xdr.c: Likewise.
5360         * sunrpc/xdr_intXX_t.c: Likewise.
5361         * sunrpc/xdr_rec.c: Likewise.
5362         * sysdeps/generic/ldconfig.h: Likewise.
5363         * sysdeps/generic/ldsodefs.h: Likewise.
5364         * sysdeps/generic/memusage.h: Likewise.
5365         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5366         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
5367         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
5368         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5369         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5370         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5371         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5372         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5373         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5374         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5375         * sysdeps/posix/getaddrinfo.c: Likewise.
5376         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5377         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5378         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
5379         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5380         * sysdeps/powerpc/test-gettimebase.c: Likewise.
5381         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
5382         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
5383         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
5384         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
5385         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
5386         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5387         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5388         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
5389         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
5390         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
5391         * sysdeps/x86_64/dl-tls.h: Likewise.
5392         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
5393         * time/alt_digit.c: Likewise.
5394         * time/era.c: Likewise.
5395         * wcsmbs/tst-c16c32-1.c: Likewise.
5396
5397 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5398
5399         * math/libm-test.inc (struct test_sincos_data): New type.
5400         (RUN_TEST_LOOP_sincos): New macro.
5401         (sincos_test_data): New variable.
5402         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
5403
5404 2013-05-16  Richard Henderson  <rth@redhat.com>
5405
5406         * math/atest-exp2.c (LIMB64): New macro.
5407         (CONSTSZ): New macro.
5408         (mp_exp1, mp_exp_m1, mp_log2): New variables.
5409         (hexdig): Move ...
5410         (print_mpn_fp): ... to function scope.
5411         (read_mpn_hex): Remove.
5412         (get_log2): Remove.
5413         (exp2_mpn): Use mp_log2.
5414         (main): Use mp_exp1.
5415
5416 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5417
5418         * math/libm-test.inc: Remove comment about not testing "inexact"
5419         exceptions.
5420         (INEXACT_EXCEPTION): New macro.
5421         (NO_INEXACT_EXCEPTION): Likewise.
5422         (INVALID_EXCEPTION_OK): Update value.
5423         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5424         (OVERFLOW_EXCEPTION_OK): Likewise.
5425         (UNDERFLOW_EXCEPTION_OK): Likewise.
5426         (IGNORE_ZERO_INF_SIGN): Likewise.
5427         (ERRNO_UNCHANGED): Likewise.
5428         (ERRNO_EDOM): Likewise.
5429         (ERRNO_ERANGE): Likewise.
5430         (test_exceptions): Handle testing "inexact" exceptions.
5431         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
5432         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
5433         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
5434         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
5435         INEXACT_EXCEPTION.
5436         (rint_towardzero_test_data): Likewise.
5437         (rint_downward_test_data): Likewise.
5438         (rint_upward_test_data): Likewise.
5439
5440         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
5441         with OVERFLOW_EXCEPTION.
5442         (exp10_test_data): Likewise.
5443         (exp2_test_data): Likewise.
5444         (expm1_test_data): Likewise.
5445         (lgamma_test_data): Likewise.
5446         (pow_test_data): Likewise.
5447         (tgamma_test_data): Likewise.
5448         (yn_test_data): Remove duplicate test of overflow.
5449
5450         * math/libm-test.inc (struct test_cc_c_data): New type.
5451         (RUN_TEST_LOOP_cc_c): New macro.
5452         (cpow_test_data): New variable.
5453         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
5454
5455         * math/libm-test.inc (struct test_f_L_data): New type.
5456         (RUN_TEST_LOOP_f_L): New macro.
5457         (llrint_test_data): New variable.
5458         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
5459         (llrint_tonearest_test_data): New variable.
5460         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
5461         (llrint_towardzero_test_data): New variable.
5462         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
5463         (llrint_downward_test_data): New variable.
5464         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
5465         (llrint_upward_test_data): New variable.
5466         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
5467         (llround_test_data): New variable.
5468         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
5469
5470 2013-05-13  Peter Collingbourne  <pcc@google.com>
5471
5472         * math/atest-exp2.c (get_log2): Remove const attribute.
5473
5474 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5475
5476         * math/libm-test.inc (struct test_f_l_data): New type.
5477         (RUN_TEST_LOOP_f_l): New macro.
5478         (lrint_test_data): New variable.
5479         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
5480         (lrint_tonearest_test_data): New variable.
5481         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
5482         (lrint_towardzero_test_data): New variable.
5483         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
5484         (lrint_downward_test_data): New variable.
5485         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
5486         (lrint_upward_test_data): New variable.
5487         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
5488         (lround_test_data): New variable.
5489         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
5490
5491 2013-05-15  Peter Collingbourne  <pcc@google.com>
5492
5493         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
5494         (EXTRACT_WORDS64) Use where appropriate.
5495         (INSERT_WORDS64) Likewise.
5496
5497         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
5498         constraints with x constraints.
5499         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
5500
5501         * malloc/obstack.c (_obstack_compat): Add initializer.
5502
5503 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5504
5505         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
5506         si_trapno and add si_addr_lsb to _sifields.sigfault.
5507         (si_trapno): Remove macro.
5508         (si_addr_lsb): Define new macro.
5509         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5510
5511 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5512
5513         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
5514         instead of TEST_f_l.
5515         (llrint_test_tonearest): Likewise.
5516         (llrint_test_towardzero): Likewise.
5517         (llrint_test_downward): Likewise.
5518         (llrint_test_upward): Likewise.
5519         (llround_test): Likewise.
5520
5521         * math/libm-test.inc (struct test_f_i_data): Add comment.
5522         (RUN_TEST_LOOP_f_b): New macro.
5523         (RUN_TEST_LOOP_f_b_tg): Likewise.
5524         (finite_test_data): New variable.
5525         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
5526         (isfinite_test_data): New variable.
5527         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5528         (isinf_test_data): New variable.
5529         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5530         (isnan_test_data): New variable.
5531         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5532         (isnormal_test_data): New variable.
5533         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5534         (issignaling_test_data): New variable.
5535         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5536         (signbit_test_data): New variable.
5537         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5538
5539         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
5540         with INVALID_EXCEPTION.
5541         (acosh_test_data): Likewise.
5542         (asin_test_data): Likewise.
5543         (atanh_test_data): Likewise.
5544         (fmod_test_data): Likewise.
5545         (log_test_data): Likewise.
5546         (log10_test_data): Likewise.
5547         (log2_test_data): Likewise.
5548         (pow_test_data): Likewise.
5549         (sqrt_test_data): Likewise.
5550         (y0_test_data): Likewise.
5551         (y1_test_data): Likewise.
5552         (yn_test_data): Likewise.
5553
5554         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
5555         function contents.
5556
5557         * math/libm-test.inc (struct test_ff_i_data): New type.
5558         (RUN_TEST_LOOP_ff_i_tg): New macro.
5559         (isgreater_test_data): New variable.
5560         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5561         (isgreaterequal_test_data): New variable.
5562         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5563         (isless_test_data): New variable.
5564         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5565         (islessequal_test_data): New variable.
5566         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5567         (islessgreater_test_data): New variable.
5568         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5569         (isunordered_test_data): New variable.
5570         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5571
5572 2013-05-14  David S. Miller  <davem@davemloft.net>
5573
5574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5575
5576 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
5577
5578         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
5579
5580         * math/libm-test.inc (struct test_fF_f1_data): Change type of
5581         extra_test to int.
5582         (struct test_f_i_data): Change type of max_ulp to int.
5583
5584         * math/libm-test.inc (test_ffI_f1_data): New type.
5585         (RUN_TEST_LOOP_ffI_f1): New macro.
5586         (remquo_test_data): New variable.
5587         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
5588
5589         * setjmp/tst-setjmp-fp.c: New file.
5590         * setjmp/Makefile (tests): Add tst-setjmp-fp.
5591         (link-libm): New variable.
5592         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
5593
5594         * math/libm-test.inc (struct test_f_i_data): New type.
5595         (RUN_TEST_LOOP_f_i): New macro.
5596         (RUN_TEST_LOOP_f_i_tg): Likewise.
5597         (fpclassify_test_data): New variable.
5598         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
5599         (ilogb_test_data): New variable.
5600         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
5601
5602         * math/libm-test.inc (scalbln_test): Correct function name in END
5603         call.
5604
5605         * math/libm-test.inc (struct test_f_f1_data): Add comment.
5606         (RUN_TEST_LOOP_fI_f1): New macro.
5607         (frexp_test_data): New variable.
5608         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
5609
5610         * math/libm-test.inc (struct test_fF_f1_data): New type.
5611         (RUN_TEST_LOOP_fF_f1): New macro.
5612         (modf_test_data): New variable.
5613         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
5614
5615         * math/libm-test.inc (struct test_f_f1_data): New type.
5616         (RUN_TEST_LOOP_f_f1): New macro.
5617         (gamma_test_data): New variable.
5618         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5619         (lgamma_test_data): New variable.
5620         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5621
5622 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
5623
5624         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
5625         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
5626         (main): Comment "tls" pseudo-hwcap.
5627
5628 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
5629
5630         * math/libm-test.inc (struct test_fl_f_data): New type.
5631         (RUN_TEST_LOOP_fl_f): New variable.
5632         (scalbln_test_data): New variable.
5633         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
5634
5635         * math/libm-test.inc (struct test_fi_f_data): New type.
5636         (RUN_TEST_LOOP_fi_f): New macro.
5637         (ldexp_test_data): New variable.
5638         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
5639         (scalbn_test_data): New variable.
5640         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
5641
5642         * math/libm-test.inc (struct test_c_f_data): New type.
5643         (RUN_TEST_LOOP_c_f): New macro.
5644         (cabs_test_data): New variable.
5645         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
5646         (carg_test_data): New variable.
5647         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
5648         (cimag_test_data): New variable.
5649         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
5650         (creal_test_data): New variable.
5651         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
5652
5653         * math/libm-test.inc (struct test_if_f_data): New type.
5654         (RUN_TEST_LOOP_if_f): New macro.
5655         (jn_test_data): New variable.
5656         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
5657         (yn_test_data): New variable.
5658         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
5659
5660         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5661
5662 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5663
5664         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5665         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5666
5667 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5668
5669         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5670         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5671         (bench-deps): Add bench-timing.h.
5672         * benchtests-bench-skeleton.c: Include bench-timing.h.
5673         (main): Use TIMING_* macros instead of clock_gettime.
5674         * benchtests/bench-timing.h: New file.
5675
5676         [BZ #14582]
5677         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5678         Renamed from _LIB_VERSION.
5679         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5680
5681 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5682
5683         * math/libm-test.inc (struct test_fff_f_data): New type.
5684         (RUN_TEST_LOOP_fff_f): New macro.
5685         (fma_test_data): New variable.
5686         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5687         (fma_towardzero_test_data): New variable.
5688         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5689         (fma_downward_test_data): New variable.
5690         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5691         (fma_upward_test_data): New variable.
5692         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5693
5694         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5695         (struct test_c_c_data): New type.
5696         (RUN_TEST_LOOP_c_c): New macro.
5697         (cacos_test_data): New variable.
5698         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5699         (cacosh_test_data): New variable.
5700         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5701         (casin_test_data): New variable.
5702         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5703         (casinh_test_data): New variable.
5704         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5705         (catan_test_data): New variable.
5706         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5707         (catanh_test_data): New variable.
5708         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5709         (ccos_test_data): New variable.
5710         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5711         (ccosh_test_data): New variable.
5712         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5713         (cexp_test_data): New variable.
5714         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5715         (clog_test_data): New variable.
5716         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5717         (clog10_test_data): New variable.
5718         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5719         (conj_test_data): New variable.
5720         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5721         (cproj_test_data): New variable.
5722         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5723         (csin_test_data): New variable.
5724         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5725         (csinh_test_data): New variable.
5726         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5727         (csqrt_test_data): New variable.
5728         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5729         (ctan_test_data): New variable.
5730         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5731         (ctan_tonearest_test_data): New variable.
5732         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5733         (ctan_towardzero_test_data): New variable.
5734         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5735         (ctan_downward_test_data): New variable.
5736         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5737         (ctan_upward_test_data): New variable.
5738         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5739         (ctanh_test_data): New variable.
5740         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5741         (ctanh_tonearest_test_data): New variable.
5742         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5743         (ctanh_towardzero_test_data): New variable.
5744         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5745         (ctanh_downward_test_data): New variable.
5746         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5747         (ctanh_upward_test_data): New variable.
5748         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5749         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5750         of BUILD_COMPLEX.
5751
5752         * math/libm-test.inc (struct test_ff_f_data): New type.
5753         (struct test_ff_f_data_nexttoward): Likewise.
5754         (RUN_TEST_LOOP_2_f): New macro.
5755         (RUN_TEST_LOOP_ff_f): Likewise.
5756         (atan2_test_data): New variable.
5757         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5758         (copysign_test_data): New variable.
5759         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5760         (fdim_test_data): New variable.
5761         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5762         (fmax_test_data): New variable.
5763         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5764         (fmin_test_data): New variable.
5765         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5766         (fmod_test_data): New variable.
5767         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5768         (hypot_test_data): New variable.
5769         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5770         (nextafter_test_data): New variable.
5771         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5772         (nexttoward_test_data): New variable.
5773         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5774         (pow_test_data): New variable.
5775         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5776         (pow_tonearest_test_data): New variable.
5777         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5778         (pow_towardzero_test_data): New variable.
5779         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5780         (pow_downward_test_data): New variable.
5781         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5782         (pow_upward_test_data): New variable.
5783         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5784         (remainder_test_data): New variable.
5785         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5786         (scalb_test_data): New variable.
5787         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5788         * sysdeps/i386/fpu/libm-test-ulps: Update.
5789
5790 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5791
5792         * math/libm-test.inc (fma_test): Use max_value instead of local
5793         variable fltmax.
5794         (nextafter_test): Likewise.
5795
5796         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5797         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5798         (acos_downward_test_data): New variable.
5799         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5800         (acos_upward_test_data): New variable.
5801         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5802         (acosh_test_data): New variable.
5803         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5804         (asin_test_data): New variable.
5805         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5806         (asin_tonearest_test_data): New variable.
5807         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5808         (asin_towardzero_test_data): New variable.
5809         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5810         (asin_downward_test_data): New variable.
5811         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5812         (asin_upward_test_data): New variable.
5813         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5814         (asinh_test_data): New variable.
5815         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5816         (atan_test_data): New variable.
5817         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5818         (atanh_test_data): New variable.
5819         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5820         (cbrt_test_data): New variable.
5821         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5822         (ceil_test_data): New variable.
5823         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5824         (cos_test_data): New variable.
5825         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5826         (cos_tonearest_test_data): New variable.
5827         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5828         (cos_towardzero_test_data): New variable.
5829         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5830         (cos_downward_test_data): New variable.
5831         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5832         (cos_upward_test_data): New variable.
5833         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5834         (cosh_test_data): New variable.
5835         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5836         (cosh_tonearest_test_data): New variable.
5837         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5838         (cosh_towardzero_test_data): New variable.
5839         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5840         (cosh_downward_test_data): New variable.
5841         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5842         (cosh_upward_test_data): New variable.
5843         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5844         (erf_test_data): New variable.
5845         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5846         (erfc_test_data): New variable.
5847         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5848         (exp_test_data): New variable.
5849         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5850         (exp_tonearest_test_data): New variable.
5851         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5852         (exp_towardzero_test_data): New variable.
5853         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5854         (exp_downward_test_data): New variable.
5855         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5856         (exp_upward_test_data): New variable.
5857         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5858         (exp10_test_data): New variable.
5859         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5860         (exp2_test_data): New variable.
5861         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5862         (expm1_test_data): New variable.
5863         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5864         (fabs_test_data): New variable.
5865         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5866         (floor_test_data): New variable.
5867         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5868         (j0_test_data): New variable.
5869         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5870         (j1_test_data): New variable.
5871         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5872         (log_test_data): New variable.
5873         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5874         (log10_test_data): New variable.
5875         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5876         (log1p_test_data): New variable.
5877         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5878         (log2_test_data): New variable.
5879         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5880         (logb_test_data): New variable.
5881         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5882         (logb_downward_test_data): New variable.
5883         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5884         (nearbyint_test_data): New variable.
5885         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5886         (rint_test_data): New variable.
5887         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5888         (rint_tonearest_test_data): New variable.
5889         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5890         (rint_towardzero_test_data): New variable.
5891         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5892         (rint_downward_test_data): New variable.
5893         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5894         (rint_upward_test_data): New variable.
5895         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5896         (round_test_data): New variable.
5897         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5898         (sin_test_data): New variable.
5899         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5900         (sin_tonearest_test_data): New variable.
5901         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5902         (sin_towardzero_test_data): New variable.
5903         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5904         (sin_downward_test_data): New variable.
5905         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5906         (sin_upward_test_data): New variable.
5907         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5908         (sinh_test_data): New variable.
5909         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5910         (sinh_tonearest_test_data): New variable.
5911         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5912         (sinh_towardzero_test_data): New variable.
5913         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5914         (sinh_downward_test_data): New variable.
5915         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5916         (sinh_upward_test_data): New variable.
5917         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5918         (sqrt_test_data): New variable.
5919         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
5920         (tan_test_data): New variable.
5921         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
5922         (tan_tonearest_test_data): New variable.
5923         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5924         (tan_towardzero_test_data): New variable.
5925         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5926         (tan_downward_test_data): New variable.
5927         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5928         (tan_upward_test_data): New variable.
5929         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5930         (tanh_test_data): New variable.
5931         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
5932         (tgamma_test_data): New variable.
5933         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
5934         (trunc_test_data): New variable.
5935         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
5936         (y0_test_data): New variable.
5937         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
5938         (y1_test_data): New variable.
5939         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
5940         (significand_test_data): New variable.
5941         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
5942
5943 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
5944
5945         [BZ #12387]
5946         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
5947
5948 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5949
5950         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
5951
5952 2013-05-10  Andreas Jaeger  <aj@suse.de>
5953
5954         [BZ #15448]
5955         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5956         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
5957
5958 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5959
5960         * math/gen-libm-test.pl (adjust_arg): New function.
5961         (special_functions): Handle generating output in both functions
5962         and arrays.
5963         (parse_args): Likewise.
5964         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
5965         $in_func argument to parse_args.
5966         * math/libm-test.inc (struct test_f_f_data): New type.
5967         (IF_ROUND_INIT_): New macro.
5968         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
5969         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5970         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5971         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5972         (ROUND_RESTORE_): Likewise.
5973         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
5974         (ROUND_RESTORE_FE_TONEAREST): Likewise.
5975         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
5976         (ROUND_RESTORE_FE_UPWARD): Likewise.
5977         (RUN_TEST_LOOP_f_f): New macro.
5978         (acos_test_data): New variable.
5979         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
5980         (acos_tonearest_test_data): New variable.
5981         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5982
5983 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5984
5985         * benchtests/bench-skeleton.c (startup): Fix coding style.
5986
5987 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5988
5989         [BZ #6809]
5990         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
5991         negative infinity argument.
5992         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
5993         negative infinity argument.
5994         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
5995         negative infinity argument.
5996         * math/libm-test.inc (tgamma_test): Expect errno to be set for
5997         domain errors.
5998
5999 2013-05-10  Florian Weimer  <fweimer@redhat.com>
6000
6001         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
6002         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
6003         * iconv/iconv_prog.c (main): Likewise.
6004         * locale/programs/charmap-dir.c (charmap_readdir)
6005         (fopen_uncompressed): Likewise.
6006         * locale/programs/locfile.c (siblings_uncached)
6007         (write_locale_data): Use lstat64 instead of lstat.
6008         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
6009         stat.
6010
6011 2013-05-10  Andreas Jaeger  <aj@suse.de>
6012
6013         [BZ #15395]
6014         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
6015         localization.
6016         Include <locale.h>.
6017
6018 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
6019
6020         * elf/dl-close.c (_dl_close_worker): Add comments.
6021
6022 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
6023
6024         [BZ #15359]
6025         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
6026         high part of pi/2.
6027         (__ieee754_rem_pio2l): Update comments.
6028
6029         [BZ #15429]
6030         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
6031         high part of pi/2.
6032         (__ieee754_rem_pio2l): Update comments.
6033
6034         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
6035         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
6036
6037         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
6038         M_PI_4l.
6039
6040         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
6041         (M_PI_34_LOG10El): Likewise.
6042         (M_PI2_LOG10El): Likewise.
6043         (M_PI4_LOG10El): Likewise.
6044         (M_PI_LOG10El): Likewise.
6045
6046 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6047
6048         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6049
6050 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
6051
6052         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
6053         (MINUS_ZERO_INIT): Likewise.
6054         (PLUS_INFTY_INIT): Likewise.
6055         (MINUS_INFTY_INIT): Likewise.
6056         (QNAN_VALUE_INIT): Likewise.
6057         (MAX_VALUE_INIT): Likewise.
6058         (MIN_VALUE_INIT): Likewise.
6059         (MIN_SUBNORM_VALUE_INIT): Likewise.
6060         (plus_zero): Initialize with PLUS_ZERO_INIT.
6061         (minus_zero): Initialize with MINUS_ZERO_INIT.
6062         (plus_infty): Initialize with PLUS_INFTY_INIT.
6063         (minus_infty): Initialize with MINUS_INFTY_INIT.
6064         (qnan_value): Initialize with QNAN_VALUE_INIT.
6065         (max_value): Initialize with MAX_VALUE_INIT.
6066         (min_value): Initialize with MIN_VALUE_INIT.
6067         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
6068
6069         * math/libm-test.inc (RUN_TEST_if_f): New macro.
6070         (jn_test): Use TEST_if_f instead of TEST_ff_f.
6071         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
6072         (yn_test): Use TEST_if_f instead of TEST_ff_f.
6073
6074         * math/libm-test.inc (RUN_TEST_f_f): New macro.
6075         (RUN_TEST_2_f): Likewise.
6076         (RUN_TEST_ff_f): Likewise.
6077         (RUN_TEST_fi_f): Likewise.
6078         (RUN_TEST_fl_f): Likewise.
6079         (RUN_TEST_fff_f): Likewise.
6080         (RUN_TEST_c_f): Likewise.
6081         (RUN_TEST_f_f1): Likewise.
6082         (RUN_TEST_fF_f1): Likewise.
6083         (RUN_TEST_fI_f1): Likewise.
6084         (RUN_TEST_ffI_f1): Likewise.
6085         (RUN_TEST_c_c): Likewise.
6086         (RUN_TEST_cc_c): Likewise.
6087         (RUN_TEST_f_i): Likewise.
6088         (RUN_TEST_f_i_tg): Likewise.
6089         (RUN_TEST_ff_i_tg): Likewise.
6090         (RUN_TEST_f_b): Likewise.
6091         (RUN_TEST_f_b_tg): Likewise.
6092         (RUN_TEST_f_l): Likewise.
6093         (RUN_TEST_f_L): Likewise.
6094         (RUN_TEST_sincos): Likewise.
6095         * math/gen-libm-test.pl (new_test): Take new argument to indicate
6096         whether to show exceptions.  Do not include ");\n" in return
6097         value.
6098         (special_functions): Output call to RUN_TEST_sincos instead of
6099         check_float calls.  Update calls to new_test.
6100         (parse_args): Output call to single RUN_TEST_* macro instead of
6101         check_* calls and other assignments.  Update calls to new_test.
6102
6103         [BZ #2546]
6104         [BZ #2560]
6105         [BZ #5159]
6106         [BZ #15426]
6107         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
6108         input to result for tgamma overflow.
6109         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
6110         (gamma_coeff): New variable.
6111         (NCOEFF): New macro.
6112         (gamma_positive): New function.
6113         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
6114         underflow here.  Use gamma_positive instead of exp (lgamma) for
6115         other arguments.
6116         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
6117         (gamma_coeff): New variable.
6118         (NCOEFF): New macro.
6119         (gammaf_positive): New function.
6120         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
6121         underflow here.  Use gamma_positive instead of exp (lgamma) for
6122         other arguments.
6123         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
6124         (gamma_coeff): New variable.
6125         (NCOEFF): New macro.
6126         (gammal_positive): New function.
6127         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
6128         underflow here.  Use gamma_positive instead of exp (lgamma) for
6129         other arguments.
6130         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
6131         (gamma_coeff): New variable.
6132         (NCOEFF): New macro.
6133         (gammal_positive): New function.
6134         (__ieee754_gammal_r): Handle positive infinity, overflow and
6135         underflow here.  Handle NaN the same as positive infinity.  Remove
6136         check x < 0xffffffff for negative integers.  Use gamma_positive
6137         instead of exp (lgamma) for other arguments.
6138         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
6139         (gamma_coeff): New variable.
6140         (NCOEFF): New macro.
6141         (gammal_positive): New function.
6142         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
6143         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
6144         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6145         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
6146         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
6147         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6148         * sysdeps/generic/math_private.h (__gamma_productf): New
6149         prototype.
6150         (__gamma_product): Likewise.
6151         (__gamma_productl): Likewise.
6152         * math/Makefile (libm-calls): Add gamma_product.
6153         * math/libm-test.inc (tgamma_test): Add more tests.
6154         * sysdeps/i386/fpu/libm-test-ulps: Update.
6155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6156
6157 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
6158
6159         * benchtests/bench-skeleton.c (main): Preheat CPU.
6160
6161 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
6162
6163         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
6164
6165 2013-05-07  Roland McGrath  <roland@hack.frob.com>
6166
6167         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
6168         and _dl_skip_args_internal.
6169
6170 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
6171
6172         * manual/message.texi (Message Translation): Talk about users.
6173         Message to key mapping impacts design.
6174
6175 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6176
6177         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
6178
6179         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
6180
6181         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
6182         * sysdeps/wordsize-64/glob64.c: ... here.
6183
6184         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
6185         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
6186         New macros.
6187
6188         * debug/getlogin_r_chk.c: Moved to ...
6189         * login/getlogin_r_chk.c: ... here.
6190         * debug/Makefile (routines): Move getlogin_r_chk to ...
6191         * login/Makefile (routines): ... here.
6192         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
6193         * login/Versions (libc: GLIBC_2.4): ... here.
6194
6195         * io/poll.c (__poll): Renamed from poll.
6196         Add libc_hidden_def.
6197         (poll): Define as weak alias.
6198
6199         * debug/ptsname_r_chk.c: Moved to ...
6200         * login/ptsname_r_chk.c: ... here.
6201         * debug/Makefile (routines): Move ptsname_r_chk to ...
6202         * login/Makefile (routines): ... here.
6203         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
6204         * login/Versions (libc: GLIBC_2.4): ... here.
6205
6206         * posix/getlogin.c: Moved to ...
6207         * login/getlogin.c: ... here.
6208         * posix/getlogin_r.c: Moved to ...
6209         * login/getlogin_r.c: ... here.
6210         * posix/getlogin_r.c: Moved to ...
6211         * login/getlogin_r.c: ... here.
6212         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
6213         * login/Makefile (routines): ... here.
6214         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
6215         * login/Versions (libc: GLIBC_2.0): ... here.
6216
6217         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
6218         (setrlimit): Define as weak alias.
6219
6220         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
6221         Call __ names for open, ftruncate, and close.
6222         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
6223         (truncate): Define as weak alias.
6224
6225 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
6226
6227         * math/gen-libm-test.pl (parse_args): Initialize x before each
6228         test of frexp, modf and remquo.
6229
6230         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
6231         test signgam value.
6232
6233 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6234
6235         [BZ #15418]
6236         [BZ #15419]
6237         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
6238         internal tests.
6239         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6240
6241 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6242
6243         * elf/dl-writev.h: New file.
6244         * elf/dl-misc.c: Include it.
6245         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
6246         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
6247
6248 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
6249
6250         * math/libm-test.inc (noXFails): Remove variable.
6251         (noXPasses): Likewise.
6252         (BUILD_COMPLEX_INT): Remove macro.
6253         (print_screen): Remove xfail argument.
6254         (print_screen_max_error): Likewise.
6255         (update_stats): Likewise.
6256         (print_max_error): Likewise.  Update calls to other affected
6257         functions.
6258         (print_complex_max_error): Likewise.
6259         (test_single_exception): Update calls to print_screen.
6260         (test_single_errno): Likewise.
6261         (check_float_internal): Remove xfail argument.  Update calls to
6262         other affected functions.
6263         (check_float): Likewise.
6264         (check_complex): Likewise.
6265         (check_int): Likewise.
6266         (check_long): Likewise.
6267         (check_bool): Likewise.
6268         (check_longlong): Likewise.
6269         (main): Don't print noXFails and noXPasses.
6270         * math/gen-libm-test.pl (top level): Don't mention expected
6271         failure handling in comment.
6272         (new_test): Don't handle expected failures.
6273         (parse_args): Don't mention expected failure handling in comment.
6274         (generate_testfile): Don't handle expected failures.
6275         (parse_ulps): Likewise.
6276         (print_ulps_file): Likewise.
6277         (get_failure): Remove function.
6278         (output_test): Don't handle expected failures.
6279         * make/README.libm-test: Don't mention expected failure handling.
6280
6281         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
6282         (minus_zero): Likewise.
6283         (plus_infty): Likewise.
6284         (minus_infty): Likewise.
6285         (qnan_value): Likewise.
6286         (max_value): Likewise.
6287         (min_value): Likewise.
6288         (min_subnorm_value): Likewise.
6289         (initialize): Do not initialize those variables dynamically.
6290
6291 2013-05-03  Roland McGrath  <roland@hack.frob.com>
6292
6293         * io/open.c (__open_2): Moved to ...
6294         * io/open_2.c: ... this new file.
6295         * io/open64.c (__open64_2): Moved to ...
6296         * io/open64_2.c: ... this new file.
6297         * io/openat.c (__openat_2): Moved to ...
6298         * io/openat_2.c: ... this new file.
6299         * io/openat64.c (__openat64_2): Moved to ...
6300         * io/openat64_2.c: ... this new file.
6301         * io/Makefile (routines): Add them.
6302         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
6303         * sysdeps/unix/sysv/linux/open_2.c: File removed.
6304         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
6305         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
6306         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
6307         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
6308         (__openat64): Add hidden_ver.
6309         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
6310         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
6311
6312         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6313         Separately conditionalize setting of GLRO(dl_sysinfo) so
6314         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
6315         as well, but the actual setting is only under [NEED_DL_SYSINFO].
6316
6317 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6318
6319         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
6320         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
6321         definition.
6322         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
6323         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6324         (_libc_vdso_platform_setup): Add __vdso_time initialization.
6325         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
6326         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
6327
6328 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
6329
6330         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
6331         test signgam value.
6332
6333         * math/libm-test.inc (hypot_test): Do not use
6334         IGNORE_ZERO_INF_SIGN.
6335
6336 2013-05-03  Andreas Jaeger  <aj@suse.de>
6337
6338         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
6339         Linux 3.9.
6340         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
6341         (PF_MAX): Adjust for VSOCK change.
6342
6343 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6344
6345         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6346
6347 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
6348
6349         [BZ #15264]
6350         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
6351         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
6352         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
6353
6354 2013-05-02  David S. Miller  <davem@davemloft.net>
6355
6356         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6357
6358 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
6359
6360         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
6361
6362 2013-05-01  Roland McGrath  <roland@hack.frob.com>
6363
6364         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
6365
6366 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
6367
6368         [BZ #14952]
6369         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
6370         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6371         Use __attribute__ ((__gnu_inline__)).
6372         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6373         Don't use __attribute__ ((__gnu_inline__)).
6374
6375 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
6376
6377         [BZ #15423]
6378         * math/s_catan.c (__catan): Handle small real or imaginary part of
6379         input specially to avoid spurious underflow.
6380         * math/s_catanf.c (__catanf): Likewise.
6381         * math/s_catanh.c (__catanh): Likewise.
6382         * math/s_catanhf.c (__catanhf): Likewise.
6383         * math/s_catanhl.c (__catanhl): Likewise.
6384         * math/s_catanl.c (__catanl): Likewise.
6385         * math/libm-test.inc (catan_test): Add more tests.
6386         (catanh_test): Likewise.
6387         * sysdeps/i386/fpu/libm-test-ulps: Update.
6388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6389
6390 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6391
6392         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6393
6394 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
6395
6396         [BZ #15416]
6397         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
6398         accurately for denominator in atan2.
6399         * math/s_catanf.c (__catanf): Likewise.
6400         * math/s_catanh.c (__catanh): Likewise.
6401         * math/s_catanhf.c (__catanhf): Likewise.
6402         * math/s_catanhl.c (__catanhl): Likewise.
6403         * math/s_catanl.c (__catanl): Likewise.
6404         * math/libm-test.inc (catan_test): Add more tests.
6405         (catanh_test): Likewise.
6406         * sysdeps/i386/fpu/libm-test-ulps: Update.
6407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6408
6409 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6410
6411         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
6412
6413         * benchtests/Makefile (bench): Remove slow benchmarks.
6414         * benchtests/atan-inputs: Add slow benchmark inputs.
6415         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
6416         (BENCH_FUNC): Accept variant offset.
6417         (VARIANT): Define.
6418         * benchtests/bench-skeleton.c (main): Run benchmark for each
6419         variant.
6420         * benchtests/cos-inputs: Add slow benchmark inputs.
6421         * benchtests/exp-inputs: Likewise.
6422         * benchtests/pow-inputs: Likewise.
6423         * benchtests/sin-inputs: Likewise.
6424         * benchtests/slowatan-inputs: Remove.
6425         * benchtests/slowatan.c: Remove.
6426         * benchtests/slowcos-inputs: Remove.
6427         * benchtests/slowcos.c: Remove.
6428         * benchtests/slowexp-inputs: Remove.
6429         * benchtests/slowexp.c: Remove.
6430         * benchtests/slowpow-inputs: Remove.
6431         * benchtests/slowpow.c: Remove.
6432         * benchtests/slowsin-inputs: Remove.
6433         * benchtests/slowsin.c: Remove.
6434         * benchtests/slowtan-inputs: Remove.
6435         * benchtests/slowtan.c: Remove.
6436         * benchtests/tan-inputs: Add slow benchmark inputs.
6437         * scripts/bench.pl: Parse comments and directives.
6438
6439         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
6440         in CPPFLAGS.
6441         ($(objpfx)bench-%.c): Remove *-ITER.
6442         * benchtests/bench-modf.c: Remove definition of ITER.
6443         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
6444         (main): Loop for DURATION seconds instead of fixed number of
6445         iterations.
6446         * scripts/bench.pl: Don't expect iterations in parameters.
6447
6448 2013-04-29  Roland McGrath  <roland@hack.frob.com>
6449
6450         * io/fchdir.c (__fchdir): Renamed from fchdir.
6451         (fchdir): Define as weak alias.
6452
6453 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6454
6455         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
6456         (ERRNO_EDOM): Likewise.
6457         (ERRNO_ERANGE): Likewise.
6458         (noErrnoTests): New variable.
6459         (init_max_error): Set errno to 0.
6460         (test_single_errno): New function.
6461         (test_errno): Likewise.
6462         (check_float_internal): Call test_errno.  Set errno to 0.
6463         (check_complex): Refer to errno tests in comment.
6464         (check_int): Call test_errno.  Set errno to 0.
6465         (check_long): Likewise.
6466         (check_bool): Likewise.
6467         (check_longlong): Likewise.
6468         (cos_test): Use ERRNO_* flags for errno tests instead of
6469         check_int.
6470         (expm1_test): Likewise.
6471         (fmod_test): Likewise.
6472         (ilogb_test): Likewise.
6473         (lgamma_test): Likewise.
6474         (pow_test): Likewise.
6475         (remainder_test): Likewise.
6476         (sin_test): Likewise.
6477         (tan_test): Likewise.
6478         (yn_test): Likewise.
6479         (initialize): Set errno to 0.
6480         (main): Print number of errno tests.
6481         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
6482
6483 2013-04-29  Andreas Jaeger  <aj@suse.de>
6484
6485         [BZ #15084]
6486         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
6487         and RES_USEVC.
6488
6489         [BZ #15085]
6490         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
6491         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
6492         unimplemented.
6493
6494         [BZ #15380]
6495         * stdlib/random.c (__initstate): Return NULL if
6496         __initstate fails.
6497
6498         [BZ #15086]
6499         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
6500         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
6501         RES_SNGLKUPREOP.
6502
6503 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6504
6505         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6506
6507 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6508
6509         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
6510         of individual tests.
6511         (casin_test): Likewise.
6512         (casinh_test): Likewise.
6513
6514 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
6515
6516         [BZ #15409]
6517         * math/s_catan.c (__catan): Handle arguments with large real or
6518         imaginary part separately without squaring.
6519         * math/s_catanf.c (__catanf): Likewise.
6520         * math/s_catanh.c (__catanh): Likewise.
6521         * math/s_catanhf.c (__catanhf): Likewise.
6522         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6523         and redefine.
6524         (__catanhl): Handle arguments with large real or imaginary part
6525         separately without squaring.
6526         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6527         and redefine.
6528         (__catanl): Handle arguments with large real or imaginary part
6529         separately without squaring.
6530         * math/libm-test.inc (catan_test): Add more tests.
6531         (catanh_test): Likewise.
6532         * sysdeps/i386/fpu/libm-test-ulps: Update.
6533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6534
6535 2013-04-27  Andreas Jaeger  <aj@suse.de>
6536
6537         [BZ #15007]
6538         * stdlib/stdlib.h: Update guards for qecvt.
6539         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
6540         <stdlib.h>.
6541
6542 2013-04-27  Allan McRae  <allan@archlinux.org>
6543
6544         * sysdeps/i386/fpu/libm-test-ulps: Update.
6545
6546 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
6547
6548         [BZ #15406]
6549         * math/s_catan.c: Include <float.h>.
6550         (__catan): Ensure underflow exception occurs for underflowed
6551         result.
6552         * math/s_catanf.c: Include <float.h>.
6553         (__catanf): Ensure underflow exception occurs for underflowed
6554         result.
6555         * math/s_catanh.c: Include <float.h>.
6556         (__catanh): Ensure underflow exception occurs for underflowed
6557         result.
6558         * math/s_catanhf.c: Include <float.h>.
6559         (__catanhf): Ensure underflow exception occurs for underflowed
6560         result.
6561         * math/s_catanhl.c: Include <float.h>.
6562         (__catanhl): Ensure underflow exception occurs for underflowed
6563         result.
6564         * math/s_catanl.c: Include <float.h>.
6565         (__catanl): Ensure underflow exception occurs for underflowed
6566         result.
6567         * math/libm-test.inc (catan_test): Add more tests.
6568         (catanh_test): Likewise.
6569
6570         [BZ #15405]
6571         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
6572         underflowed result.
6573         * math/s_ccoshf.c (__ccoshf): Likewise.
6574         * math/s_ccoshl.c (__ccoshl): Likewise.
6575         * math/s_csin.c (__csin): Likewise.
6576         * math/s_csinf.c (__csinf): Likewise.
6577         * math/s_csinh.c (__csinh): Likewise.
6578         * math/s_csinhf.c (__csinhf): Likewise.
6579         * math/s_csinhl.c (__csinhl): Likewise.
6580         * math/s_csinl.c (__csinl): Likewise.
6581         * math/libm-test.inc (ccos_test): Add more tests.
6582         (ccosh_test): Likewise.
6583         (csin_test): Likewise.
6584         (csinh_test): Likewise.
6585
6586 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6587
6588         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
6589         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
6590         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
6591         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
6592         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
6593         powerpc/power5+/fpu folders.
6594         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
6595
6596
6597 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6598
6599         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6600
6601 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
6602
6603         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
6604         additions to variable.
6605         [$(config-machine) = x86_64] (modules-names): Likewise.
6606         ($(objpfx)tst-audit3): Remove dependency.
6607         ($(objpfx)tst-audit3.out): Likewise.
6608         ($(objpfx)tst-audit4): Likewise.
6609         ($(objpfx)tst-audit4.out): Likewise.
6610         ($(objpfx)tst-audit5): Likewise.
6611         ($(objpfx)tst-audit5.out): Likewise.
6612         ($(objpfx)tst-audit6): Likewise.
6613         ($(objpfx)tst-audit6.out): Likewise.
6614         ($(objpfx)tst-audit7): Likewise.
6615         ($(objpfx)tst-audit7.out): Likewise.
6616         (tst-audit3-ENV): Remove variable.
6617         (tst-audit4-ENV): Likewise.
6618         (tst-audit5-ENV): Likewise.
6619         (tst-audit6-ENV): Likewise.
6620         (tst-audit7-ENV): Likewise.
6621         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
6622         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
6623         addition to variable.
6624         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
6625         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
6626         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
6627         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
6628         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
6629         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
6630         tst-audit3, tst-audit4 and tst-audit5.
6631         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
6632         tst-audit6 and tst-audit7.
6633         [$(subdir) = elf] (modules-names): Add audit modules for those
6634         tests.
6635         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
6636         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
6637         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
6638         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
6639         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
6640         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
6641         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
6642         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
6643         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
6644         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
6645         [$(subdir) = elf] (tst-audit3-ENV): New variable.
6646         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
6647         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
6648         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
6649         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
6650         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
6651         Likewise.
6652         [$(subdir) = elf && $(config-cflags-avx) = yes]
6653         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
6654         [$(subdir) = elf && $(config-cflags-avx) = yes]
6655         (CFLAGS-tst-auditmod4a.c): Likewise.
6656         [$(subdir) = elf && $(config-cflags-avx) = yes]
6657         (CFLAGS-tst-auditmod4b.c): Likewise.
6658         [$(subdir) = elf && $(config-cflags-avx) = yes]
6659         (CFLAGS-tst-auditmod6b.c): Likewise.
6660         [$(subdir) = elf && $(config-cflags-avx) = yes]
6661         (CFLAGS-tst-auditmod6c.c): Likewise.
6662         [$(subdir) = elf && $(config-cflags-avx) = yes]
6663         (CFLAGS-tst-auditmod7b.c): Likewise.
6664         * elf/tst-audit3.c: Move to ...
6665         * sysdeps/x86_64/tst-audit3.c: ... here.
6666         * elf/tst-audit4.c: Move to ...
6667         * sysdeps/x86_64/tst-audit4.c: ... here.
6668         * elf/tst-audit5.c: Move to ...
6669         * sysdeps/x86_64/tst-audit5.c: ... here.
6670         * elf/tst-audit6.c: Move to ...
6671         * sysdeps/x86_64/tst-audit6.c: ... here.
6672         * elf/tst-audit7.c: Move to ...
6673         * sysdeps/x86_64/tst-audit7.c: ... here.
6674         * elf/tst-auditmod3a.c: Move to ...
6675         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6676         * elf/tst-auditmod3b.c: Move to ...
6677         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6678         * elf/tst-auditmod4a.c: Move to ...
6679         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6680         * elf/tst-auditmod4b.c: Move to ...
6681         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6682         * elf/tst-auditmod5a.c: Move to ...
6683         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6684         * elf/tst-auditmod5b.c: Move to ...
6685         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6686         * elf/tst-auditmod6a.c: Move to ...
6687         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6688         * elf/tst-auditmod6b.c: Move to ...
6689         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6690         * elf/tst-auditmod6c.c: Move to ...
6691         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6692         * elf/tst-auditmod7a.c: Move to ...
6693         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6694         * elf/tst-auditmod7b.c: Move to ...
6695         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6696
6697 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6698
6699         [BZ #15366]
6700         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6701         define unconditionally.
6702         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6703         define unconditionally.
6704         (INT8_C, INT16_C, etc.): Likewise.
6705
6706 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6707
6708         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6709         __ehdr_start with hidden visibility.
6710
6711         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6712
6713 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6714
6715         * math/libm-test.inc (cos_test): Use accurate hex constants.
6716         (sincost_test): Likewise.
6717
6718 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6719
6720         * math/libm-test.inc (catan_test): Add more tests.
6721         (catanh_test): Likewise.
6722
6723         * math/s_catanf.c (__catanf): Use suffixed floating-point
6724         constants.
6725         * math/s_catanhf.c (__catanhf): Likewise.
6726         * math/s_catanhl.c (__catanhl): Likewise.
6727         * math/s_catanl.c (__catanl): Likewise.
6728
6729         [BZ #15394]
6730         * math/s_catan.c (__catan): Calculate imaginary part of result
6731         with log1p not log unless computing log of number close to 0.
6732         * math/s_catanf.c (__catanf): Likewise.
6733         * math/s_catanl.c (__catanl): Likewise.
6734         * math/s_catanh.c (__catanh): Calculate real part of result with
6735         log1p not log unless computing log of number close to 0.
6736         * math/s_catanhf.c (__catanhf): Likewise.
6737         * math/s_catanhl.c (__catanhl): Likewise.
6738         * math/libm-test.inc (catan_test): Add more tests.
6739         (catanh_test): Likewise.
6740         * sysdeps/i386/fpu/libm-test-ulps: Update.
6741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6742
6743 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6744
6745         * benchtests/Makefile: Mention files in which fast and slow
6746         paths of math functions are implemented.
6747
6748 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6749
6750         * sysdeps/posix/timespec_get.c: New file.
6751
6752 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6753
6754         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6755         POWER.
6756         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6757         for POWER.
6758         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6759         powerpc/power5/fpu folders.
6760         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6761         * benchtests/Makefile: Add modf testcase.
6762         * benchtests/bench-modf.c: New file: Benchmark test for mo
6763
6764 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6765
6766         [BZ #14888]
6767         * time/Makefile (tests): Add tst-strptime-whitespace.
6768         * time/strptime_l.c (get_number): Use ISSPACE.
6769         (__strptime_internal): Likewise.
6770         * time/tst-strptime-whitespace.c: New test case.
6771
6772 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6773
6774         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6775         member.
6776         (_nss_files_init): Set it here.
6777
6778 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6779
6780         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6781         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6782         unsigned.
6783
6784 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6785
6786         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6787
6788 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6789
6790         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6791         size just once.
6792
6793 2013-04-21  David S. Miller  <davem@davemloft.net>
6794
6795         * po/ru.po: Update Russion translation from translation project.
6796
6797 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6798
6799         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6800         and setfsgid.
6801
6802 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6803
6804         * configure.in: Remove i386 configure warning. Remove i386 case.
6805         * configure: Regenerate.
6806         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6807         Add example to error message.
6808         * sysdeps/i386/configure: Regenerate.
6809
6810 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6811
6812         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6813         slowtan.
6814         * benchtests/cos-inputs: New file.
6815         * benchtests/slowcos-inputs: New file.
6816         * benchtests/slowcos.c: New file.
6817         * benchtests/slowtan-inputs: New file.
6818         * benchtests/slowtan.c: New file.
6819         * benchtests/tan-inputs: New file.
6820
6821 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6822
6823         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6824         considered kosher.
6825
6826 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6827
6828         * benchtests/Makefile: Include cppflags-iterator.mk to add
6829         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6830
6831         * Makefile.in (bench-clean): New target.
6832         * benchtests/Makefile (bench-clean): Likewise.
6833
6834 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6835
6836         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6837
6838 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6839
6840         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6841
6842 2013-04-15  Andreas Schwab  <schwab@suse.de>
6843
6844         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6845         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6846         * nscd/pwdcache.c (cache_addpw): Likewise.
6847         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6848         more than recsize.
6849
6850 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6851
6852         * benchtests/Makefile (bench): Write all output to
6853         bench-out.tmp together.
6854
6855 2013-04-15  Andreas Schwab  <schwab@suse.de>
6856
6857         * nscd/nscd.c (main): Don't fork again after closing files.
6858
6859 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6860
6861         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6862
6863         * benchtests/Rules (bench-deps): Collect dependencies into a
6864         single variable.  Add Makefile to dependencies.
6865         ($(objpfx)bench-%.c): Depend on bench-deps.
6866
6867 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6868             Xavier Roche  <roche+kml2@exalead.com>
6869
6870         [BZ #15361]
6871         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6872         just that it's a file descriptor.
6873         * manual/llio.texi (Synchronizing AIO Operations): Update description
6874         for EBADF error from aio_fsync.
6875
6876 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6877
6878         * Rules (bench): Move target definition...
6879         * benchtests/Makefile: ... here.
6880
6881 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6882
6883         * math/libm-test.inc (cos_test): Fix PI/2 test.
6884         (sincos_test): Likewise.
6885         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6886         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6887
6888 2013-04-11  Andreas Schwab  <schwab@suse.de>
6889
6890         [BZ #13988]
6891         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6892         accept exponent character only when digits were seen.
6893         * stdio-common/Makefile (tests): Add bug26.
6894         * stdio-common/bug26.c: New file.
6895
6896         [BZ #14293]
6897         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6898         non-freeable.
6899
6900 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6901
6902         * Makeconfig (rtld-prefix): Define built linker prefix.
6903         * Rules (run-bench): Use it.
6904         * math/Makefile (run-regen-ulps): Likewise.
6905
6906         * Rules (bench): Remove eval.
6907
6908 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6909             Roland McGrath  <roland@hack.frob.com>
6910             Ondrej Bilka  <neleai@seznam.cz>
6911
6912         [BZ #15346]
6913         * time/getdate.c: Include ctype.h and alloca.h.
6914         (__getdate_r): Trim leading and trailing spaces of input.
6915         * time/tst-getdate.c (tests): Add tests with leading and
6916         trailing spaces.
6917
6918 2013-04-08  Roland McGrath  <roland@hack.frob.com>
6919
6920         [BZ #14280]
6921         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
6922         when computing value.
6923
6924 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6925
6926         * math/README.libm-test (How can I generate "libm-test-ulps"?):
6927         Use testrun.sh to run libm tests.
6928
6929         [BZ #15309]
6930         * elf/dl-open.c (dl_open_worker): memset all of seen array.
6931
6932 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
6933
6934         [BZ #15264]
6935         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
6936
6937 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6938
6939         * Makefile.in (regen-ulps): New target.
6940         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
6941         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
6942         [ifneq (no,$(PERL)] (regen-ulps): New target.
6943         [ifeq (no,$(PERL)] (regen-ulps): New target.
6944         * math/libm-test.inc (ulps_file_name): Define.
6945         (output_dir): New variable.
6946         (options): Add "output-dir" option.
6947         (parse_opt): Handle 'o' case.
6948         (main): If output_dir is non-NULL use it as a prefix
6949         otherwise use "".
6950         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
6951
6952 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6953
6954         [BZ #10060, #10062]
6955         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
6956         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
6957         fail configure if __sync_val_compare_and_swap is not inlined.
6958         * sysdeps/i386/configure: Regenerate.
6959         * configure.in: Build for i686 when configured for i386.
6960         * configure: Regenerate.
6961         * README: Remove i386 reference.
6962
6963 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6964
6965         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
6966         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6967
6968 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6969
6970         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
6971         (lmsnanval): New variables.
6972         (F): Add conversion tests.
6973         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
6974         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
6975
6976         * stdio-common/tstdiomisc.c (F): Properly collect individual
6977         tests' results.
6978
6979         [BZ #14686, #15336]
6980         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
6981         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
6982         Instead, use input NaN values or generate a qNaN by arithmetic
6983         operation.  Also fix bugs to comply with the standard.
6984         * math/libm-test.inc (remainder_test): Add more tests.
6985
6986         [BZ #15335, #15342]
6987         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
6988         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
6989         input NaN values or generate a qNaN by arithmetic operation.
6990
6991         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
6992         unreachable code.
6993
6994         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
6995         definitions.
6996
6997 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
6998
6999         [BZ #14478]
7000         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
7001         underflowed result.
7002         * math/s_cexpf.c (__cexpf): Likewise.
7003         * math/s_cexpl.c (__cexpl): Likewise.
7004         * math/libm-test.inc (cexp_test): Add more tests.
7005
7006 2013-04-03  Andreas Schwab  <schwab@suse.de>
7007
7008         [BZ #15330]
7009         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
7010         order arrays from heap if bigger than alloca cutoff.
7011
7012 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7013
7014         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
7015         (SNAN_TESTS_double): Refer to GCC PR56831.
7016         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
7017         GCC PR56828.
7018
7019 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7020
7021         * Rules (bench): Move bench.out after the run is complete.
7022
7023         * Rules (bench): Echo currently running benchmark.
7024
7025         * benchtests/Makefile (bench): Add atan and slowatan.
7026         * benchtests/atan-inputs: New file.
7027         * benchtests/slowatan-inputs: New file.
7028         * benchtests/slowatan.c: New file.
7029
7030         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
7031         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
7032         its value.
7033
7034         [BZ #15305]
7035         * sysdeps/unix/sysv/linux/kernel-features.h
7036         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
7037         __ASSUME_XFS_RESTRICTED_CHOWN.
7038         * sysdeps/unix/sysv/linux/pathconf.c
7039         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
7040         Save and restore errno.
7041
7042 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
7043
7044         [BZ #15327]
7045         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
7046         arguments using __kernel_casinh.
7047         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
7048         arguments using __kernel_casinhf.
7049         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
7050         arguments using __kernel_casinhl.
7051         * math/libm-test.inc (cacosh_test): Add more tests.
7052         * sysdeps/i386/fpu/libm-test-ulps: Update.
7053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7054
7055 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
7056
7057         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
7058         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
7059
7060         * bench/Makefile (bench): Add sin and slowsin.
7061         * benchtests/sin-inputs: New file.
7062         * benchtests/slowsin-inputs: New file.
7063         * benchtests/slowsin.c: New file.
7064
7065         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
7066         (bench): Add slowexp and slowpow.
7067         (exp-ITER): Increase iterations.
7068         (pow-ITER): Likewise.
7069         * benchtests/exp-inputs: Change input.
7070         * benchtests/pow-inputs: Likewise.
7071         * benchtests/slowexp-inputs: New file.
7072         * benchtests/slowexp.c: New file.
7073         * benchtests/slowpow-inputs: New file.
7074         * benchtests/slowpow.c: New file.
7075
7076 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7077
7078         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
7079         instructions.
7080         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7081         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
7082         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
7083         * benchtests/Makefile: Add rint benchtest.
7084         * benchtests/rint-inputs: Input for rint benchtest.
7085
7086 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7087
7088         * Versions.def (libm): Add GLIBC_2.18.
7089         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
7090         hidden libm prototypes.
7091         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
7092         * math/Makefile (libm-calls): Add s_issignaling.
7093         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
7094         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
7095         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
7096         declaration.
7097         * math/math.h [__USE_GNU] (issignaling): New macro.
7098         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
7099         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
7100         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
7101         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
7102         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
7103         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
7104         * manual/arith.texi (issignaling): New section.
7105         * manual/libm-err-tab.pl (@all_functions): Update comment.
7106         * math/gen-libm-test.pl (parse_args): Apply special handling for
7107         issignaling.
7108         * math/libm-test.inc (print_float, issignaling_test): New
7109         functions.
7110         (check_float_internal): Add issignaling checks.
7111         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
7112         default definition.
7113         * sysdeps/powerpc/math-tests.h: New file.
7114         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
7115         tests.
7116         * math/test-snan.c (TEST_FUNC): Likewise.
7117
7118 2013-03-30  David S. Miller  <davem@davemloft.net>
7119
7120         * po/de.po: Update from translation team.
7121
7122 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
7123
7124         [BZ #10357]
7125         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7126         imaginary part less than 1.0 and real part less than 0.5
7127         specially.
7128         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7129         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7130         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
7131         (cacos_test): Add more tests.
7132         (casin_test): Likewise.
7133         (casinh_test): Likewise.
7134         * sysdeps/i386/fpu/libm-test-ulps: Update.
7135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7136
7137 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7138
7139         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
7140         ONE with its value.
7141
7142         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
7143         (__pow_mp): Replace ONE and MONE with their values.
7144         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7145         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
7146         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7147         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
7148         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7149         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7150
7151         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
7152
7153         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
7154         (__pow_mp): Replace ZERO and MZERO with their values.
7155         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7156         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7157         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7158         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
7159         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7160         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
7161         (__sqr): Likewise.
7162
7163         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
7164
7165         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
7166
7167 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7168
7169         * include/stdlib.h [!SHARED] (__call_tls_dtors):
7170         Declare with __attribute__ ((weak)).
7171         * stdlib/exit.c (__libc_atexit) [!SHARED]:
7172         Call __call_tls_dtors only if it's not NULL.
7173
7174 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7175
7176         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
7177         didn't do it already, then set _dl_phdr and _dl_phnum based on the
7178         magic __ehdr_start linker symbol if it's defined.
7179         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
7180         them up here if it was already done.
7181
7182         * elf/dl-support.c (_dl_phdr): Make pointer to const.
7183         (_dl_aux_init): Use const in cast when setting it.
7184         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
7185         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
7186         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
7187
7188         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
7189         Declare them here.
7190         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
7191         * csu/libc-tls.c: Nor here.
7192         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
7193
7194         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
7195         (__libc_message): Never call vsyslog.
7196
7197 2013-03-28  Alan Modra  <amodra@gmail.com>
7198
7199         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
7200         Define as empty.
7201         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
7202         Likewise.
7203
7204 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7205
7206         [BZ #15214]
7207         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
7208         underflow.
7209         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7210
7211 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7212
7213         [BZ #15304]
7214         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7215         Don't add gid passed as argument.
7216
7217         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
7218
7219 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
7220
7221         [BZ #15307]
7222         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7223         imaginary part between 1.0 and 1.5 and real part less than 0.5
7224         specially.
7225         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7226         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7227         * math/libm-test.inc (cacos_test): Add more tests.
7228         (casin_test): Likewise.
7229         (casinh_test): Likewise.
7230         * sysdeps/i386/fpu/libm-test-ulps: Update.
7231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7232
7233 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7234
7235         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
7236         constants.
7237         (norm): Likewise.
7238         (denorm): Likewise.
7239         (__dbl_mp): Likewise.
7240         (add_magnitudes): Likewise.
7241         (sub_magnitudes): Likewise.
7242         (__add): Likewise.
7243         (__sub): Likewise.
7244         (__mul): Likewise.
7245         (__sqr): Likewise.
7246         (__inv): Likewise.
7247         (__dvd): Likewise.
7248
7249         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
7250         commented code.
7251         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
7252         (__dubcos): Likewise.
7253         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
7254         (__ieee754_acos): Likewise.
7255         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7256         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
7257         (__exp1): Likewise.
7258         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7259         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7260         (log1): Likewise.
7261         (my_log2): Likewise.
7262         (checkint): Likewise.
7263         * sysdeps/ieee754/dbl-64/e_remainder.c
7264         (__ieee754_remainder): Likewise.
7265         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7266         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
7267         (bsloww): Likewise.
7268         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7269
7270         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7271         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
7272         MANTISSA_STORE_T to store computations on mantissa.  Use
7273         macros for rounding and division.
7274         (denorm): Likewise.
7275         (__dbl_mp): Likewise.
7276         (add_magnitudes): Likewise.
7277         (sub_magnitudes): Likewise.
7278         (__mul): Likewise.
7279         (__sqr): Likewise.
7280         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7281         powers of two in terms of TWOPOW macro.
7282         (mp_no): Make type of mantissa as MANTISSA_T.
7283         [!RADIXI]: Define RADIXI.
7284         [!TWO52]: Define TWO52.
7285         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7286
7287 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7288
7289         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
7290         llroundl symbol when building for PPC32.
7291
7292 2013-03-24  Mark H Weaver  <mhw@netris.org>
7293
7294         * manual/arith.texi (Normalization Functions): Fix prototypes for
7295         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
7296
7297 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7298
7299         [BZ #13889]
7300         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
7301         high value to check if expl overflow.
7302         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
7303         to check for underflow and overflow.
7304         * math/libm-test.inc: Add exp test.
7305
7306 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
7307
7308         [BZ #11120]
7309         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
7310         with NOT_IN_libc.
7311
7312 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7313
7314         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
7315         symbol.
7316
7317 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7318
7319         * math/gen-libm-test.pl (parse_args, special_functions): Properly
7320         wrap blocks consisting of several statements.
7321
7322         * sysdeps/generic/math-tests.h: New file.
7323         * sysdeps/i386/fpu/math-tests.h: Likewise.
7324         * math/test-snan.c: Include it.
7325         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
7326
7327 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7328
7329         [BZ #15285]
7330         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
7331         (__ieee754_j0l): Do not improve calculations using cos of twice
7332         input for inputs above LDBL_MAX / 2.0L.
7333         (__ieee754_y0l): Likewise.
7334         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
7335         (__ieee754_j1l): Do not improve calculations using cos of twice
7336         input for inputs above LDBL_MAX / 2.0L.
7337         (__ieee754_y1l): Likewise.
7338         * math/libm-test.inc (j0_test): Add another test.
7339         (j1_test): Likewise.
7340         (y0_test): Likewise.
7341         (y1_test): Likewise.
7342         * sysdeps/i386/fpu/libm-test-ulps: Update.
7343
7344 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7345
7346         * Rules ($(objpfx)bench-%.c): Include code from a C source
7347         file.
7348
7349 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7350
7351         [BZ #15287]
7352         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7353         imaginary part 1.0 and real part less than 0.5 specially.
7354         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7355         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7356         * math/libm-test.inc (cacos_test): Add more tests.
7357         (casin_test): Likewise.
7358         (casinh_test): Likewise.
7359         * sysdeps/i386/fpu/libm-test-ulps: Update.
7360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7361
7362 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7363
7364         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
7365         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
7366
7367 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
7368
7369         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
7370         * config.make.in (config-cflags-sse4): Remove variable.
7371         (config-cflags-avx): Likewise.
7372         (config-cflags-sse2avx): Likewise.
7373         (config-cflags-novzeroupper): Likewise.
7374         (config-asflags-i686): Likewise.
7375         (have-mfma4): Likewise.
7376         (have-as-vis3): Likewise.
7377         (MIG): Likewise.
7378         * configure.in (MIG): Do not AC_SUBST.
7379         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
7380         (libc_cv_cc_sse4): Do not AC_SUBST.
7381         (libc_cv_cc_avx): Likewise.
7382         (libc_cv_cc_sse2avx): Likewise.
7383         (libc_cv_cc_novzeroupper): Likewise.
7384         (libc_cv_cc_fma4): Likewise.
7385         (libc_cv_as_i686): Likewise.
7386         (libc_cv_sparc_as_vis3): Likewise.
7387         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
7388         LIBC_CONFIG_VAR.
7389         (config-asflags-i686): Likewise.
7390         (config-cflags-avx): Likewise.
7391         (config-cflags-sse2avx): Likewise.
7392         (have-mfma4): Likewise.
7393         (config-cflags-novzeroupper): Likewise.
7394         * sysdeps/mach/configure.in (MIG): Likewise.
7395         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
7396         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
7397         LIBC_CONFIG_VAR.
7398         (config-cflags-avx): Likewise.
7399         (config-cflags-sse2avx): Likewise.
7400         (have-mfma4): Likewise.
7401         (config-cflags-novzeroupper): Likewise.
7402         * configure: Regenerated.
7403         * sysdeps/i386/configure: Likewise.
7404         * sysdeps/mach/configure: Likewise.
7405         * sysdeps/sparc/configure: Likewise.
7406         * sysdeps/x86_64/configure: Likewise.
7407
7408 2013-03-20  Roland McGrath  <roland@hack.frob.com>
7409
7410         [BZ #14812]
7411         * locale/programs/localedef.c (options): Put N_ translation marker
7412         on argument names, not just descriptions.
7413
7414 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7415
7416         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
7417
7418 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
7419
7420         [BZ #14176]
7421         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
7422
7423 2013-03-19  Roland McGrath  <roland@hack.frob.com>
7424
7425         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
7426         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
7427         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
7428         [!BEFORE_ABORT] (before_abort): New function.
7429         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
7430         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
7431         (writev_for_fatal): New function.
7432         (WRITEV_FOR_FATAL): New macro; call that.
7433         (backtrace_and_maps): New function.
7434         (BEFORE_ABORT): New macro; call that.
7435         (struct str_list): Type removed.
7436         (__libc_message, __libc_fatal): Functions removed.
7437         Include <sysdeps/posix/libc_fatal.c> instead.
7438
7439 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
7440
7441         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
7442         constants.
7443         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
7444         double constants.
7445
7446 2013-03-19  Andreas Schwab  <schwab@suse.de>
7447
7448         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
7449         * sysdeps/gnu/configure: Regenerate.
7450
7451         * configure.in: Substitute libc_cv_rtlddir.
7452         * configure: Regenerate.
7453         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
7454         * Makeconfig (rtlddir, inst_rtlddir): New variables.
7455         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
7456         * elf/Makefile (install-others, CFLAGS-interp.c)
7457         (ldso_install, common-ldd-rewrite): Likewise.
7458         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
7459         $(inst_slibdir)/$(rtld-installed-name).
7460         * scripts/rellns-sh: Add -p option.
7461         * Makerules (make-shlib-link): Use rellns-sh to get relative name
7462         for source.
7463
7464 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7465
7466         * manual/nptl.texi: Renamed to ...
7467         * manual/threads.texi: ... this.
7468         * manual/Makefile (chapters): Update.
7469
7470 2013-03-18  Roland McGrath  <roland@hack.frob.com>
7471
7472         [BZ #14812]
7473         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
7474         on argument names, not just descriptions.
7475         * malloc/memusagestat.c (options): Likewise.
7476         * nss/getent.c (options): Likewise.
7477
7478 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
7479
7480         [BZ #14812]
7481         * iconv/iconv_prog.c (options): Put N_ translation marker
7482         on argument names, not just descriptions.
7483         * iconv/iconvconfig.c (options): Likewise.
7484
7485 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
7486
7487         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
7488         implementation which is faster on all x86_64 architectures.
7489         Tested on AMD, Intel Nehalem, SNB, IVB.
7490         * sysdeps/x86_64/strnlen.S: Likewise.
7491
7492         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7493         Remove all multiarch strlen and strnlen versions.
7494         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7495         Remove strlen and strnlen related parts.
7496
7497         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
7498         Inline strlen part.
7499         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
7500
7501         * sysdeps/x86_64/multiarch/strlen.S: Remove.
7502         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
7503         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
7504         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
7505         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7506         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
7507
7508 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
7509
7510         * manual/memory.texi (Malloc Tunable Parameters):
7511         Sort parameters alphabetically. Add comments for missing entries.
7512
7513 2013-03-17  David S. Miller  <davem@davemloft.net>
7514
7515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7516
7517 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
7518
7519         [BZ #15283]
7520         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
7521         for arguments at most half maximum finite value.
7522         * math/libm-test.inc (j0_test): Add more tests.
7523         (j1_test): Likewise.
7524         (y0_test): Likewise.
7525         (y1_test): Likewise.
7526         * sysdeps/i386/fpu/libm-test-ulps: Update.
7527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7528
7529         [BZ #14155]
7530         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
7531         1 / x and functions P and Q for arguments above 0x1p256L.
7532         (__ieee754_y0l): Likewise.
7533         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7534         (__ieee754_y1l): Likewise.
7535         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
7536         (j1_test): Likewise.
7537         (y0_test): Likewise.
7538         (y1_test): Likewise.
7539
7540 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7541
7542         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
7543         variable.
7544
7545 2013-03-15  Roland McGrath  <roland@hack.frob.com>
7546
7547         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
7548         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
7549         zero since it's initialized to EXEC_PAGESIZE.
7550
7551         * sysdeps/unix/sysv/linux/ldsodefs.h
7552         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
7553         * sysdeps/generic/ldsodefs.h: ... here.
7554
7555 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
7556
7557         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
7558
7559         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
7560         math/test-snan.c.
7561         * math/test-snan.c: Renamed from
7562         sysdeps/powerpc/fpu/test-powerpc-snan.c.
7563         * math/Makefile (tests): Add test-snan.
7564         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
7565         test-powerpc-snan.
7566
7567         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
7568         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
7569         functions.
7570         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
7571         __builtin_nan family of functions.
7572         * math/libm-test.inc (initialize): Initialize qnan_value with
7573         __builtin_nan family of functions.
7574         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
7575         Remove variables.
7576         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
7577         Remove functions.
7578         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
7579         storage class.  Initialize qNaN_var and sNaN_var with
7580         __builtin_nan and __builtin_nans families of functions,
7581         respectively.
7582
7583         * math/libm-test.inc (acosh_test): Also test with qNaN input.
7584         (sqrt_test): Remove duplicate test with qNaN input.
7585         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
7586         (round_test, signbit_test, significand_test): Note missing +/-Inf
7587         as well as qNaN tests.
7588
7589         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
7590         qNaN_var.  Fix a few strings, too.
7591         * math/libm-test.inc (nan_value): Rename to qnan_value.
7592         * math/gen-libm-test.pl (%beautify): Adjust to that.
7593         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
7594         * math/test-misc.c (main): Likewise.
7595         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
7596         to __qnan_bytes, and __qnan_union, respectively.
7597         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
7598         Likewise.
7599         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
7600         and lqnanval, respectively.
7601         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
7602         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
7603         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
7604         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
7605
7606         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
7607         * math/test-misc.c (main) [__x86_64__]: Enable test for long
7608         doubles.
7609
7610         * math/test-misc.c (main): Fix copy'n'pastos.
7611         * misc/tst-efgcvt.c (special): Likewise.
7612
7613         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
7614         Remove declarations.
7615
7616 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7617
7618         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
7619         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
7620         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
7621         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
7622
7623 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7624
7625         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
7626         macro to return vdso values correctly in IFUNC implementations.
7627         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7628         Optimization by using IFUNC.
7629
7630 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7631             Richard Henderson  <rth@redhat.com>
7632             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7633
7634         * Makefile.in (bench): New target.
7635         * NEWS: Mention the benchmark framework.
7636         * Rules (bench): Likewise.
7637         (binaries-bench): Generate binaries for functions to
7638         benchmark.
7639         * benchtests/Makefile: New makefile for benchmark tests.
7640         * benchtests/bench-skeleton.c: New skeleton file for benchmark
7641         programs.
7642         * benchtests/exp-inputs: New input file for EXP function.
7643         * benchtests/pow-inputs: New input file for POW function.
7644         * scripts/bench.pl: New script to generate source files for
7645         benchmark programs.
7646
7647 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7648
7649         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7650         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
7651         computations on mantissa.  Use macros for rounding and
7652         division.
7653         (denorm): Likewise.
7654         (__dbl_mp): Likewise.
7655         (add_magnitudes): Likewise.
7656         (sub_magnitudes): Likewise.
7657         (__mul): Likewise.
7658         (__sqr): Likewise.
7659         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7660         powers of two in terms of TWOPOW macro.
7661         (mp_no): Make type of mantissa as MANTISSA_T.
7662         [!RADIXI]: Define RADIXI.
7663         [!TWO52]: Define TWO52.
7664         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7665
7666         * manual/nptl.texi (cindex): Modify threads to pthreads.
7667
7668 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7669
7670         * sysdeps/x86_64/preconfigure: Regenerated.
7671
7672 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7673
7674         [BZ #14155]
7675         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7676         0x1p28 and above.
7677         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7678         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7679         0x1p28 and above.
7680         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7681         * math/libm-test.inc (j0_test): Do not allow one spurious
7682         underflow exception.
7683         (y1_test): Likewise.
7684
7685 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7686
7687         * manual/Makefile (chapters): Add nptl.
7688         * manual/debug.texi (Debugging Support): Add link to Threads
7689         chapter.
7690         * manual/nptl.texi: New file.
7691
7692         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7693
7694 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7695
7696         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7697         for non-NULL pointer before the memory validity test. Pointed
7698         out by Holger Brunck <holger.brunck@keymile.com>.
7699
7700 2013-03-13  Andreas Schwab  <schwab@suse.de>
7701
7702         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7703         instead of .os.
7704
7705 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7706
7707         * timezone/zic.c: Update from tzcode 2013b.
7708
7709 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7710
7711         * manual/install.texi (Configuring and compiling):
7712         Mention i686 and i586.
7713         * INSTALL: Regenerate.
7714
7715 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7716
7717         * sysdeps/init_array/elf-init.c: New file.
7718         * csu/elf-init.c
7719         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7720         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7721
7722         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7723         __gmon_start__ as global, but as static with a .preinit_array pointer.
7724         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7725         * sysdeps/init_array/crti.S: New file, empty except for comments.
7726         * sysdeps/init_array/crtn.S: Likewise.
7727
7728 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7729
7730         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7731         definining bcopy.
7732         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7733         Remove Prefer_SSE_for_memop.
7734         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7735         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7736         HAS_PREFER_SSE_FOR_MEMOP.
7737         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7738         memset-x86-64.
7739         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7740         Remove bzero, memset ifunc support.
7741         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7742         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7743         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7744         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7745
7746 2013-03-11  Andreas Schwab  <schwab@suse.de>
7747
7748         [BZ #15234]
7749         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7750         by SHLIB_COMPAT.
7751         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7752         (GLIBC_2.16): Remove pthread_atfork.
7753
7754 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7755
7756         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7757         (ptestcases.h): Likewise.
7758
7759 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7760
7761         * Makeconfig ($(common-objpfx)config.status): Depend on
7762         sysdeps/*/preconfigure{,.in} too.
7763
7764 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7767         (__free_hook): Use void * instead of __malloc_ptr_t.
7768         (__malloc_hook): Likewise.
7769         (__realloc_hook): Likewise.
7770         (__memalign_hook): Likewise.
7771         (__after_morecore_hook): Likewise.
7772         * malloc/arena.c (save_malloc_hook): Likewise.
7773         (save_free_hook): Likewise.
7774         * malloc/hooks.c (malloc_hook_ini): Likewise.
7775         (realloc_hook_ini): Likewise.
7776         (memalign_hook_ini): Likewise.
7777         * malloc/malloc.c (malloc_hook_ini): Likewise.
7778         (realloc_hook_ini): Likewise.
7779         (memalign_hook_ini): Likewise.
7780         (__free_hook): Likewise.
7781         (__malloc_hook): Likewise.
7782         (__realloc_hook): Likewise.
7783         (__memalign_hook): Likewise.
7784         (__libc_malloc): Likewise.
7785         (__libc_free): Likewise.
7786         (__libc_realloc): Likewise.
7787         (__libc_memalign): Likewise.
7788         (__libc_valloc): Likewise.
7789         (__libc_pvalloc): Likewise.
7790         (__libc_calloc): Likewise.
7791         (__posix_memalign): Likewise.
7792         * malloc/morecore.c (__sbrk): Likewise.
7793         (__default_morecore): Likewise.
7794
7795         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7796
7797         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7798         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7799         __malloc_ptrdiff_t.
7800
7801         * malloc/malloc.h (__malloc_size_t): Remove macro.
7802         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7803         __malloc_size_t.
7804         (old_memalign_hook): Likewise.
7805         (old_realloc_hook): Likewise.
7806         (struct hdr): Likewise.
7807         (flood): Likewise.
7808         (mallochook): Likewise.
7809         (memalignhook): Likewise.
7810         (reallochook): Likewise.
7811         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7812         (tr_old_realloc_hook): Likewise.
7813         (tr_old_memalign_hook): Likewise.
7814         (tr_mallochook): Likewise.
7815         (tr_reallochook): Likewise.
7816         (tr_memalignhook): Likewise.
7817
7818 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7819
7820         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7821         default_ldbl_pack and using as default implementation.
7822         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7823         implementation.
7824         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7825         redundant definition.
7826         (ldbl_insert_mantissa): Likewise.
7827         (ldbl_canonicalize): Likewise.
7828         (ldbl_nearbyint): Likewise.
7829         (ldbl_pack): Rename to ldbl_pack_ppc.
7830         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7831         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7832         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7833
7834 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7835
7836         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7837         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7838         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7839         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7840         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7841         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7842         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7843         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7844
7845 2013-03-07  Andreas Jaeger  <aj@suse.de>
7846
7847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7848         bits/mman-linux.h.
7849
7850 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7851
7852         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7853         Include mpa.h and declare __MPEXP.
7854         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7855         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7856         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7857         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7858         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7859         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7860         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7861
7862         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7863         (__slowpow): Use long double EXPL and LOGL functions to
7864         compute POW.
7865         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7866         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7867         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7868         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7869         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7870         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7871
7872         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7873         intermediate variable to calculate exponent.
7874         (__sqr): Likewise.
7875         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7876         Likewise.
7877         (__sqr): Likewise.
7878
7879         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7880         [!NO__SQR]: Define __sqr.
7881         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7882         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7883         sysdeps/ieee754/dbl-64/mpa.c.
7884         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7885
7886         [BZ #12723]
7887         * posix/Makefile (tests): Add tst-pathconf.
7888         * posix/tst-pathconf.c: New test case.
7889         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7890         _PC_PIPE_BUF.
7891         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7892
7893 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7894
7895         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7896
7897 2013-03-06  Andreas Jaeger  <aj@suse.de>
7898
7899         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7900         definition via __MAP_ANONYMOUS.
7901
7902         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7903         it's not part of Linux headers.
7904
7905         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7906         (MAP_HUGE_MASK): Define.
7907
7908         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7909         Define.
7910         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7911         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7912         Define.
7913         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7914         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7915         Define.
7916         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7917         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
7918         Define.
7919         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7920
7921         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
7922         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
7923         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
7924         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
7925         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
7926         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
7927
7928         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7929         Handle f2fs.
7930
7931         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7932         Handle f2fs and efivarfs.
7933
7934         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
7935         f2fs.
7936
7937         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
7938         (EFIVARFS_MAGIC): Add.
7939         (F2FS_LINK_MAX): Add.
7940
7941 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7942
7943         * stdio-common/vfprintf.c: Replace __builtin_expect with
7944         __glibc_unlikely.
7945
7946 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
7947
7948         [BZ #13550]
7949         * sysdeps/generic/bp-sym.h: Remove file.
7950         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
7951         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
7952         <bp-sym.h> and <bp-asm.h>.
7953         (__longjmp): Don't use BP_SYM.
7954         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
7955         and <bp-asm.h>.
7956         (memcpy): Don't use BP_SYM.
7957         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
7958         <bp-sym.h> and <bp-asm.h>.
7959         (memcpy): Don't use BP_SYM.
7960         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
7961         <bp-asm.h>.
7962         (memcpy): Don't use BP_SYM.
7963         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
7964         <bp-asm.h>.
7965         (memset): Don't use BP_SYM.
7966         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7967         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7968         (__bzero): Don't use BP_SYM.
7969         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7970         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7971         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
7972         <bp-sym.h> and <bp-asm.h>.
7973         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7974         pointers.
7975         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
7976         <bp-sym.h> and <bp-asm.h>.
7977         (memcpy): Don't use BP_SYM.
7978         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
7979         <bp-sym.h> and <bp-asm.h>.
7980         (memset): Don't use BP_SYM.
7981         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7982         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7983         (__bzero): Don't use BP_SYM.
7984         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7985         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7986         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
7987         <bp-sym.h> and <bp-asm.h>.
7988         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7989         pointers.
7990         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
7991         <bp-sym.h> and <bp-asm.h>.
7992         (memcpy): Don't use BP_SYM.
7993         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
7994         <bp-sym.h> and <bp-asm.h>.
7995         (memset): Don't use BP_SYM.
7996         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7997         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7998         (__bzero): Don't use BP_SYM.
7999         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8000         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8001         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
8002         <bp-sym.h> and <bp-asm.h>.
8003         (__memchr): Don't use BP_SYM.
8004         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
8005         <bp-sym.h> and <bp-asm.h>.
8006         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8007         pointers.
8008         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
8009         <bp-sym.h> and <bp-asm.h>.
8010         (memcpy): Don't use BP_SYM.
8011         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
8012         <bp-sym.h> and <bp-asm.h>.
8013         (__mempcpy): Don't use BP_SYM.
8014         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
8015         <bp-sym.h> and <bp-asm.h>.
8016         (__memrchr): Don't use BP_SYM.
8017         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
8018         <bp-sym.h> and <bp-asm.h>.
8019         (memset): Don't use BP_SYM.
8020         (__bzero): Likewise.
8021         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
8022         <bp-sym.h> and <bp-asm.h>.
8023         (__rawmemchr): Don't use BP_SYM.
8024         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
8025         <bp-sym.h> and <bp-asm.h>.
8026         (__STRCMP): Don't use BP_SYM.
8027         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
8028         <bp-sym.h> and <bp-asm.h>.
8029         (strchr): Don't use BP_SYM.
8030         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
8031         <bp-sym.h> and <bp-asm.h>.
8032         (__strchrnul): Don't use BP_SYM.
8033         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
8034         <bp-sym.h> and <bp-asm.h>.
8035         (strlen): Don't use BP_SYM.
8036         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
8037         <bp-sym.h> and <bp-asm.h>.
8038         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8039         pointers.
8040         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
8041         <bp-sym.h> and <bp-asm.h>.
8042         (__strnlen): Don't use BP_SYM.
8043         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
8044         <bp-sym.h> and <bp-asm.h>.
8045         (__GI__setjmp): Don't use BP_SYM.
8046         (_setjmp): Likewise.
8047         (__sigsetjmp): Likewise.
8048         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
8049         (L(start_addresses)): Don't use BP_SYM.
8050         (_start): Likewise.
8051         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
8052         <bp-asm.h>.
8053         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
8054         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
8055         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8056         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8057         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
8058         <bp-asm.h>.
8059         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
8060         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
8061         about bounded pointers.
8062         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8063         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8064         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
8065         <bp-asm.h>.
8066         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8067         about bounded pointers.  Remove GKM FIXME comments.
8068         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8069         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
8070         <bp-asm.h>.
8071         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
8072         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
8073         Remove GKM FIXME comments.
8074         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8075         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8076         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
8077         <bp-asm.h>.
8078         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8079         about bounded pointers.  Remove GKM FIXME comment.
8080         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
8081         and <bp-asm.h>.
8082         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8083         pointers.
8084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
8085         <bp-sym.h> and <bp-asm.h>.
8086         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
8088         <bp-sym.h> and <bp-asm.h>.
8089         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8090         comment.
8091
8092 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8093
8094         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
8095         call free(NULL).
8096
8097 2013-03-05  David S. Miller  <davem@davemloft.net>
8098
8099         * po/es.po: Update from translation team.
8100
8101 2013-03-05  Andreas Jaeger  <aj@suse.de>
8102
8103         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
8104         <bits/mman-linux.h>.
8105         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8106         is fine.
8107         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
8108         <bits/mman-linux.h> to end of file.
8109         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8110         is fine.
8111         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
8112         <bits/mman-linux.h> to end of file.
8113         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8114         is fine.
8115         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
8116         <bits/mman-linux.h> to end of file.
8117
8118         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
8119         (MCL_CURRENT, MCL_FUTURE): Define here.
8120
8121 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8122
8123         [BZ #15232]
8124         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
8125         attribute_hidden.
8126         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8127
8128 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8129
8130         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
8131         fourth parameter needed for rt_sigprocmask syscall.
8132         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
8133         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8134         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
8135         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8136         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8137         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
8138
8139 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
8140
8141         [BZ #13550]
8142         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
8143         comment about bounded pointers.
8144         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
8145         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
8146
8147 2013-03-04  Andreas Jaeger  <aj@suse.de>
8148
8149         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
8150         common definitions.
8151
8152         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
8153         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
8154         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
8155         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8156         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8157         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8158
8159 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8160
8161         [BZ #15055]
8162         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
8163         __ieee754_sqrl instead of __sqrl.
8164
8165 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
8166
8167         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
8168         * sysdeps/powerpc/fpu_control.h: ... here.
8169         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
8170         * sysdeps/powerpc/bits/fenvinline.h: ... here.
8171         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
8172         * sysdeps/powerpc/bits/mathinline.h: ... here.
8173
8174 2013-03-01  Roland McGrath  <roland@hack.frob.com>
8175
8176         * elf/dl-hwcaps.c (_dl_important_hwcaps):
8177         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
8178         to just [NEED_DL_SYSINFO_DSO].
8179         * elf/dl-support.c: Likewise.
8180         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
8181         * elf/rtld.c (dl_main): Likewise.
8182         * elf/setup-vdso.h (setup_vdso): Likewise.
8183         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
8184         * sysdeps/unix/sysv/linux/dl-sysdep.c
8185         (_dl_discover_osversion): Likewise.
8186
8187 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
8188
8189         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
8190         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8191
8192 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8193
8194         * NEWS: Mention libm performance improvements and non-x86 PI
8195         futex support.
8196
8197         * csu/libc-start.c (__pthread_initialize_minimal): Change
8198         function arguments.
8199         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8200
8201 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
8202
8203         [BZ #13550]
8204         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
8205         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
8206         <bp-sym.h> and <bp-asm.h>.
8207         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8208         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
8209         and <bp-asm.h>.
8210         (memcpy): Don't use BP_SYM.
8211         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
8212         <bp-asm.h>.
8213         (__mpn_add_n): Don't use BP_SYM.
8214         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
8215         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
8216         and <bp-asm.h>.
8217         (__mpn_addmul_1): Don't use BP_SYM.
8218         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8219         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
8220         <bp-sym.h>.
8221         (_setjmp): Don't use BP_SYM.
8222         (__novmx_setjmp): Likewise.
8223         (__GI__setjmp): Likewise.
8224         (__vmx_setjmp): Likewise.
8225         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
8226         <bp-sym.h>.
8227         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
8228         (__bzero): Don't use BP_SYM.
8229         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8230         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8231         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
8232         <bp-sym.h> and <bp-asm.h>.
8233         (memcpy): Don't use BP_SYM.
8234         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
8235         <bp-sym.h> and <bp-asm.h>.
8236         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8237         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
8238         <bp-sym.h> and <bp-asm.h>.
8239         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8240         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
8241         <bp-asm.h>.
8242         (__mpn_lshift): Don't use BP_SYM.
8243         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8244         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
8245         <bp-asm.h>.
8246         (memset): Don't use BP_SYM.
8247         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8248         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8249         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
8250         <bp-asm.h>.
8251         (__mpn_mul_1): Don't use BP_SYM.
8252         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8253         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
8254         <bp-sym.h> and <bp-asm.h>.
8255         (memcmp): Don't use BP_SYM.
8256         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
8257         <bp-sym.h> and <bp-asm.h>.
8258         (memcpy): Don't use BP_SYM.
8259         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
8260         <bp-sym.h> and <bp-asm.h>.
8261         (memset): Don't use BP_SYM.
8262         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
8263         <bp-sym.h> and <bp-asm.h>.
8264         (strncmp): Don't use BP_SYM.
8265         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
8266         <bp-sym.h> and <bp-asm.h>.
8267         (memcpy): Don't use BP_SYM.
8268         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
8269         <bp-sym.h> and <bp-asm.h>.
8270         (memset): Don't use BP_SYM.
8271         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
8272         <bp-sym.h> and <bp-asm.h>.
8273         (__memchr): Don't use BP_SYM.
8274         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
8275         <bp-sym.h> and <bp-asm.h>.
8276         (memcmp): Don't use BP_SYM.
8277         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
8278         <bp-sym.h> and <bp-asm.h>.
8279         (memcpy): Don't use BP_SYM.
8280         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
8281         <bp-sym.h> and <bp-asm.h>.
8282         (__mempcpy): Don't use BP_SYM.
8283         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
8284         <bp-sym.h> and <bp-asm.h>.
8285         (__memrchr): Don't use BP_SYM.
8286         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
8287         <bp-sym.h> and <bp-asm.h>.
8288         (memset): Don't use BP_SYM.
8289         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
8290         <bp-sym.h> and <bp-asm.h>.
8291         (__rawmemchr): Don't use BP_SYM.
8292         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
8293         <bp-sym.h> and <bp-asm.h>.
8294         (__STRCMP): Don't use BP_SYM.
8295         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
8296         <bp-sym.h> and <bp-asm.h>.
8297         (strchr): Don't use BP_SYM.
8298         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
8299         <bp-sym.h> and <bp-asm.h>.
8300         (__strchrnul): Don't use BP_SYM.
8301         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
8302         <bp-sym.h> and <bp-asm.h>.
8303         (strlen): Don't use BP_SYM.
8304         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
8305         <bp-sym.h> and <bp-asm.h>.
8306         (strncmp): Don't use BP_SYM.
8307         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
8308         <bp-sym.h> and <bp-asm.h>.
8309         (__strnlen): Don't use BP_SYM.
8310         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
8311         <bp-asm.h>.
8312         (__mpn_rshift): Don't use BP_SYM.
8313         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8314         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
8315         <bp-sym.h> and <bp-asm.h>.
8316         (__sigsetjmp): Don't use BP_SYM.
8317         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
8318         (L(start_addresses)): Don't use BP_SYM.
8319         (_start): Likewise.
8320         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
8321         <bp-asm.h>.
8322         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
8323         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8324         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8325         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
8326         <bp-asm.h>.
8327         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
8328         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8329         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8330         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
8331         <bp-asm.h>.
8332         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8333         comments.
8334         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8335         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
8336         <bp-asm.h>.
8337         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
8338         FIXME comments.
8339         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8340         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8341         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
8342         <bp-asm.h>.
8343         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8344         comment.
8345         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
8346         and <bp-asm.h>.
8347         (strncmp): Don't use BP_SYM,
8348         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
8349         <bp-asm.h>.
8350         (__mpn_sub_n): Don't use BP_SYM.
8351         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8352         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
8353         and <bp-asm.h>.
8354         (__mpn_submul_1): Don't use BP_SYM.
8355         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
8357         <bp-sym.h> and <bp-asm.h>.
8358         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
8360         <bp-sym.h> and <bp-asm.h>.
8361         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8362         comment.
8363
8364 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8365
8366         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
8367         Use ZK to minimize writes to Z.
8368         (sub_magnitudes): Simplify code a bit.
8369         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
8370         Use ZK to minimize writes to Z.
8371         (sub_magnitudes): Simplify code a bit.
8372
8373 2013-02-27  Roland McGrath  <roland@hack.frob.com>
8374
8375         * csu/gmon-start.c: Add special exception to license text.
8376
8377 2013-02-27  Richard Henderson  <rth@redhat.com>
8378
8379         * scripts/config.guess: Update from config.git.
8380         * scripts/config.sub: Likewise.
8381
8382 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8383
8384         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
8385
8386         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
8387
8388         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
8389
8390         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
8391
8392         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
8393
8394 2013-02-26  Roland McGrath  <roland@hack.frob.com>
8395
8396         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
8397         [$(build-shared = yes].
8398
8399 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8400
8401         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
8402         (__mul): Reduce iterations for calculating mantissa.
8403
8404         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
8405         MPTWO.
8406         (__mpranred): Likewise.
8407
8408         [BZ #15160]
8409         * malloc/memusagestat.c (main): Draw graphs for heap and stack
8410         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
8411
8412 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8413
8414         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
8415         Define __attribute__.
8416
8417 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8418
8419         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
8420         unused.
8421         * posix/regex_internal.h (__attribute): Remove.
8422         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
8423         (re_string_context_at): Likewise.
8424         (bitset_not): Use __attribute__ and mark function as possibly
8425         unused.
8426         (bitset_merge): Likewise.
8427         (bitset_mask): Likewise.
8428         (re_string_char_size_at): Likewise.
8429         (re_string_wchar_at): Likewise.
8430         (re_string_elem_size_at): Likewise.
8431
8432 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8433
8434         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
8435         code.
8436         (cc32): Likewise.
8437
8438         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
8439         (__acr): Likewise.
8440         (__cpy): Likewise.
8441         (norm): Likewise.
8442         (denorm): Likewise.
8443         (__dbl_mp): Likewise.
8444         (add_magnitudes): Likewise.
8445         (sub_magnitudes): Likewise.
8446         (__mul): Likewise.
8447         (__inv): Likewise.
8448
8449         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
8450         style.
8451
8452         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
8453         style.
8454
8455         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
8456         code.
8457
8458         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
8459         up changes with default code.
8460         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
8461         Likewise.
8462
8463 2013-02-24  Allan McRae  <allan@archlinux.org>
8464
8465         * manual/socket.texi (The Internet Namespace): Order menu items
8466         to match that in the file.
8467
8468         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
8469         node listing of the info page menu.
8470
8471 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
8472
8473         [BZ #13550]
8474         * sysdeps/i386/bp-asm.h: Remove file.
8475         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8476         (PARMS): Do not use macros from bp-asm.h.
8477         (S1): Likewise.
8478         (S2): Likewise.
8479         (SIZE): Likewise.
8480         (__mpn_add_n): Do not use BP_SYM
8481         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
8482         "bp-asm.h".
8483         (PARMS): Do not use macros from bp-asm.h.
8484         (S1): Likewise.
8485         (SIZE): Likewise.
8486         (__mpn_addmul_1): Do not use BP_SYM
8487         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
8488         "bp-asm.h".
8489         (PARMS): Do not use macros from bp-asm.h.
8490         (SIGMSK): Likewise.
8491         (_setjmp): Likewise.  Do not use BP_SYM.
8492         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
8493         "bp-asm.h".
8494         (PARMS): Do not use macros from bp-asm.h.
8495         (SIGMSK): Likewise.
8496         (setjmp): Likewise.  Do not use BP_SYM.
8497         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
8498         "bp-asm.h".
8499         (PARMS): Do not use macros from bp-asm.h.
8500         (__frexp): Do not use BP_SYM.
8501         (frexp): Likewise.
8502         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
8503         "bp-asm.h".
8504         (PARMS): Do not use macros from bp-asm.h.
8505         (__frexpf): Do not use BP_SYM.
8506         (frexpf): Likewise.
8507         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
8508         "bp-asm.h".
8509         (PARMS): Do not use macros from bp-asm.h.
8510         (__frexpl): Do not use BP_SYM.
8511         (frexpl): Likewise.
8512         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
8513         "bp-asm.h".
8514         (PARMS): Do not use macros from bp-asm.h.
8515         (__remquo): Do not use BP_SYM.
8516         (remquo): Likewise.
8517         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
8518         "bp-asm.h".
8519         (PARMS): Do not use macros from bp-asm.h.
8520         (__remquof): Do not use BP_SYM.
8521         (remquof): Likewise.
8522         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
8523         "bp-asm.h".
8524         (PARMS): Do not use macros from bp-asm.h.
8525         (__remquol): Do not use BP_SYM.
8526         (remquol): Likewise.
8527         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
8528         "bp-asm.h".
8529         (PARMS): Do not use macros from bp-asm.h.
8530         (DEST): Likewise.
8531         (SRC): Likewise.
8532         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
8533         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
8534         "bp-asm.h".
8535         (PARMS): Do not use macros from bp-asm.h.
8536         (strlen): Do not use BP_SYM.
8537         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
8538         "bp-asm.h".
8539         (PARMS): Do not use macros from bp-asm.h.
8540         (S1): Likewise.
8541         (S2): Likewise.
8542         (SIZE): Likewise.
8543         (__mpn_add_n): Do not use BP_SYM.
8544         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
8545         "bp-asm.h".
8546         (PARMS): Do not use macros from bp-asm.h.
8547         (S1): Likewise.
8548         (SIZE): Likewise.
8549         (__mpn_addmul_1): Do not use BP_SYM.
8550         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
8551         weak_alias.
8552         (bzero): Likewise.
8553         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
8554         "bp-asm.h".
8555         (PARMS): Do not use macros from bp-asm.h.
8556         (S): Likewise.
8557         (SIZE): Likewise.
8558         (__mpn_lshift): Do not use BP_SYM.
8559         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
8560         "bp-asm.h".
8561         (PARMS): Do not use macros from bp-asm.h.
8562         (DEST): Likewise.
8563         (SRC): Likewise.
8564         (LEN): Likewise.
8565         (memcpy): Likewise.  Do not use BP_SYM.
8566         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
8567         libc_hidden_def and weak_alias.
8568         (mempcpy): Do not use BP_SYM in weak_alias.
8569         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
8570         "bp-asm.h".
8571         (PARMS): Do not use macros from bp-asm.h.
8572         (DEST): Likewise.
8573         (LEN): Likewise.
8574         [!BZERO_P] (CHR): Likewise.
8575         (memset): Likewise.  Do not use BP_SYM.
8576         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
8577         "bp-asm.h".
8578         (PARMS): Do not use macros from bp-asm.h.
8579         (S1): Likewise.
8580         (SIZE): Likewise.
8581         (__mpn_mul_1): Do not use BP_SYM.
8582         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
8583         "bp-asm.h".
8584         (PARMS): Do not use macros from bp-asm.h.
8585         (S): Likewise.
8586         (SIZE): Likewise.
8587         (__mpn_rshift): Do not use BP_SYM.
8588         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
8589         "bp-asm.h".
8590         (PARMS): Do not use macros from bp-asm.h.
8591         (STR): Likewise.
8592         (CHR): Likewise.
8593         (strchr): Likewise.  Do not use BP_SYM.
8594         (index): Do not use BP_SYM in weak_alias.
8595         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
8596         "bp-asm.h".
8597         (PARMS): Do not use macros from bp-asm.h.
8598         (DEST): Likewise.
8599         (SRC): Likewise.
8600         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
8601         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
8602         "bp-asm.h".
8603         (PARMS): Do not use macros from bp-asm.h.
8604         (strlen): Do not use BP_SYM.
8605         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
8606         "bp-asm.h".
8607         (PARMS): Do not use macros from bp-asm.h.
8608         (S1): Likewise.
8609         (S2): Likewise.
8610         (SIZE): Likewise.
8611         (__mpn_sub_n): Do not use BP_SYM.
8612         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
8613         "bp-asm.h".
8614         (PARMS): Do not use macros from bp-asm.h.
8615         (S1): Likewise.
8616         (SIZE): Likewise.
8617         (__mpn_submul_1): Do not use BP_SYM.
8618         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
8619         "bp-asm.h".
8620         (PARMS): Do not use macros from bp-asm.h.
8621         (S1): Likewise.
8622         (S2): Likewise.
8623         (SIZE): Likewise.
8624         (__mpn_add_n): Do not use BP_SYM.
8625         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
8626         weak_alias.
8627         (bzero): Likewise.
8628         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
8629         "bp-asm.h".
8630         (PARMS): Do not use macros from bp-asm.h.
8631         (BLK2): Likewise.
8632         (LEN): Likewise.
8633         (memcmp): Do not use BP_SYM.
8634         (bcmp): Do not use BP_SYM in weak_alias.
8635         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
8636         "bp-asm.h".
8637         (PARMS): Do not use macros from bp-asm.h.
8638         (DEST): Likewise.
8639         (SRC): Likewise.
8640         (LEN): Likewise.
8641         (memcpy): Likewise.  Do not use BP_SYM.
8642         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
8643         "bp-asm.h".
8644         (PARMS): Do not use macros from bp-asm.h.
8645         (DEST): Likewise.
8646         (SRC): Likewise.
8647         (LEN): Likewise.
8648         (memmove): Likewise.  Do not use BP_SYM.
8649         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
8650         "bp-asm.h".
8651         (PARMS): Do not use macros from bp-asm.h.
8652         (DEST): Likewise.
8653         (SRC): Likewise.
8654         (LEN): Likewise.
8655         (__mempcpy): Likewise.  Do not use BP_SYM.
8656         (mempcpy): Do not use BP_SYM in weak_alias.
8657         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
8658         "bp-asm.h".
8659         (PARMS): Do not use macros from bp-asm.h.
8660         (DEST): Likewise.
8661         (LEN): Likewise.
8662         [!BZERO_P] (CHR): Likewise.
8663         (memset): Likewise.  Do not use BP_SYM.
8664         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8665         "bp-asm.h".
8666         (PARMS): Do not use macros from bp-asm.h.
8667         (STR2): Likewise.
8668         (strcmp): Do not use BP_SYM.
8669         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
8670         "bp-asm.h".
8671         (PARMS): Do not use macros from bp-asm.h.
8672         (STR): Likewise.
8673         (DELIM): Likewise.
8674         [USE_AS_STRTOK_R] (SAVE): Likewise.
8675         (FUNCTION): Likewise.  Do not use BP_SYM.
8676         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8677         aliases.
8678         (strtok_r): Likewise.
8679         (__GI___strtok_r): Likewise.
8680         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8681         (PARMS): Do not use macros from bp-asm.h.
8682         (S): Likewise.
8683         (SIZE): Likewise.
8684         (__mpn_lshift): Do not use BP_SYM.
8685         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8686         (PARMS): Do not use macros from bp-asm.h.
8687         (STR): Likewise.
8688         (CHR): Likewise.
8689         (__memchr): Do not use BP_SYM.
8690         (memchr): Do not use BP_SYM in weak_alias.
8691         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8692         (PARMS): Do not use macros from bp-asm.h.
8693         (BLK2): Likewise.
8694         (LEN): Likewise.
8695         (memcmp): Do not use BP_SYM.
8696         (bcmp): Do not use BP_SYM in weak_alias.
8697         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8698         (PARMS): Do not use macros from bp-asm.h.
8699         (S1): Likewise.
8700         (SIZE): Likewise.
8701         (__mpn_mul_1): Do not use BP_SYM.
8702         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8703         "bp-asm.h".
8704         (PARMS): Do not use macros from bp-asm.h.
8705         (STR): Likewise.
8706         (CHR): Likewise.
8707         (__rawmemchr): Do not use BP_SYM.
8708         (rawmemchr): Do not use BP_SYM in weak_alias.
8709         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8710         (PARMS): Do not use macros from bp-asm.h.
8711         (S): Likewise.
8712         (SIZE): Likewise.
8713         (__mpn_rshift): Do not use BP_SYM.
8714         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8715         (PARMS): Do not use macros from bp-asm.h.
8716         (SIGMSK): Likewise.
8717         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8718         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8719         (_start): Do not use BP_SYM.
8720         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8721         (PARMS): Do not use macros from bp-asm.h.
8722         (DEST): Likewise.
8723         (SRC): Likewise.
8724         (__stpcpy): Likewise.  Do not use BP_SYM.
8725         (stpcpy): Do not use BP_SYM in weak_alias.
8726         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8727         "bp-asm.h".
8728         (PARMS): Do not use macros from bp-asm.h.
8729         (DEST): Likewise.
8730         (SRC): Likewise.
8731         (LEN): Likewise.
8732         (__stpncpy): Likewise.  Do not use BP_SYM.
8733         (stpncpy): Do not use BP_SYM in weak_alias.
8734         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8735         (PARMS): Do not use macros from bp-asm.h.
8736         (STR): Likewise.
8737         (CHR): Likewise.
8738         (strchr): Likewise.  Do not use BP_SYM.
8739         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8740         "bp-asm.h".
8741         (PARMS): Do not use macros from bp-asm.h.
8742         (STR): Likewise.
8743         (CHR): Likewise.
8744         (__strchrnul): Likewise.  Do not use BP_SYM.
8745         (strchrnul): Do not use BP_SYM in weak_alias.
8746         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8747         "bp-asm.h".
8748         (PARMS): Do not use macros from bp-asm.h.
8749         (STOP): Likewise.
8750         (strcspn): Do not use BP_SYM.
8751         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8752         "bp-asm.h".
8753         (PARMS): Do not use macros from bp-asm.h.
8754         (STR): Likewise.
8755         (STOP): Likewise.
8756         (strpbrk): Likewise.  Do not use BP_SYM.
8757         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8758         "bp-asm.h".
8759         (PARMS): Do not use macros from bp-asm.h.
8760         (STR): Likewise.
8761         (CHR): Likewise.
8762         (strrchr): Likewise.  Do not use BP_SYM.
8763         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8764         (PARMS): Do not use macros from bp-asm.h.
8765         (SKIP): Likewise.
8766         (strspn): Do not use BP_SYM.
8767         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8768         (PARMS): Do not use macros from bp-asm.h.
8769         (STR): Likewise.
8770         (DELIM): Likewise.
8771         (SAVE): Likewise.
8772         (FUNCTION): Likewise.  Do not use BP_SYM.
8773         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8774         aliases.
8775         (strtok_r): Likewise.
8776         (__GI___strtok_r): Likewise.
8777         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8778         (PARMS): Do not use macros from bp-asm.h.
8779         (S1): Likewise.
8780         (S2): Likewise.
8781         (SIZE): Likewise.
8782         (__mpn_sub_n): Do not use BP_SYM.
8783         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8784         "bp-asm.h".
8785         (PARMS): Do not use macros from bp-asm.h.
8786         (S1): Likewise.
8787         (SIZE): Likewise.
8788         (__mpn_submul_1): Do not use BP_SYM.
8789         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8790         <bp-sym.h>.
8791         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8792         and <bp-asm.h>.
8793         (PARMS): Do not use macros from bp-asm.h.
8794         (FLAGS): Likewise.
8795         (PTID): Likewise.
8796         (TLS): Likewise.
8797         (CTID): Likewise.
8798         (__clone): Do not use BP_SYM.
8799         (clone): Do not use BP_SYM in weak_alias.
8800         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8801         and <bp-asm.h>.
8802         (PARMS): Do not use macros from bp-asm.h.
8803         (LEN): Likewise.
8804         (__mmap64): Do not use BP_SYM.
8805         (mmap64): Do not use BP_SYM in weak_alias.
8806         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8807         <bp-sym.h> and <bp-asm.h>.
8808         (PARMS): Do not use macros from bp-asm.h.
8809         (__posix_fadvise64_l64): Do not use BP_SYM.
8810         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8811         (PARMS): Do not use macros from bp-asm.h.
8812         (NSOPS): Likewise.
8813         (semtimedop): Do not use BP_SYM.
8814         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8815         and <bp-asm.h>.
8816
8817 2013-02-21  Allan McRae  <allan@archlinux.org>
8818
8819         * manual/message.texi (Charset conversion in gettext):
8820         Move @end statement to beginning of line.
8821
8822 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8823
8824         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8825         static.
8826         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8827         Likewise.
8828
8829         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8830         (denorm): Likewise.
8831         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8832         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8833
8834 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8835
8836         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8837         tail-call to the resolved function if pltexit isn't needed.
8838
8839 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8840
8841         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8842         or Y being zero as being unlikely.
8843         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8844         Likewise.
8845
8846 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8847
8848         * manual/nss.texi (System Databases and Name Service Switch):
8849         Remove frobnicate @pxref.
8850
8851 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8852
8853         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8854         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8855
8856 2013-02-20  Petr Machata  <pmachata@redhat.com>
8857
8858         * elf/elf.h (R_ARM_TARGET1): New macro.
8859         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8860         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8861         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8862         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8863         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8864         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8865         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8866         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8867         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8868         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8869         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8870         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8871         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8872         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8873         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8874         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8875         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8876         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8877         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8878         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8879         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8880         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8881         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8882         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8883         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8884         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8885         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8886         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8887         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8888         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8889         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8890         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8891         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8892         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8893         (R_ARM_THM_GOT_BREL12): Likewise.
8894         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8895         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8896         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8897         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8898         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8899         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8900         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8901         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8902         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8903
8904 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8905
8906         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8907         __attribute_used__ to __attribute__ ((unused)).
8908
8909 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8910
8911         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8912         powerpc mpa.c.
8913         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
8914         comment formatting.
8915         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
8916
8917 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
8918
8919         [BZ #13550]
8920         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
8921         Remove macro.
8922         (ENTER): Remove both macro definitions.
8923         (LEAVE): Likewise.
8924         (CHECK_BOUNDS_LOW): Likewise.
8925         (CHECK_BOUNDS_HIGH): Likewise.
8926         (CHECK_BOUNDS_BOTH): Likewise.
8927         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
8928         (RETURN_BOUNDED_POINTER): Likewise.
8929         (RETURN_NULL_BOUNDED_POINTER): Likewise.
8930         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
8931         (POP_ERRNO_LOCATION_RETURN): Likewise.
8932         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
8933         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8934         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
8935         macros.
8936         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8937         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
8938         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
8939         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
8940         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
8941         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
8942         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
8943         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
8944         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
8945         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8946         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8947         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
8948         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8949         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
8950         removed macros.
8951         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8952         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
8953         macros.
8954         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8955         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
8956         * sysdeps/i386/i586/memset.S (memset): Likewise.
8957         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
8958         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8959         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
8960         macros.
8961         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8962         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
8963         Change uses of L(2) to L(out).
8964         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
8965         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8966         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
8967         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8968         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
8969         removed macros.
8970         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8971         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
8972         macros.
8973         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8974         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
8975         (RETURN): Do not use macro LEAVE.
8976         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
8977         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8978         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
8979         * sysdeps/i386/i686/memset.S (memset): Likewise.
8980         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8981         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
8982         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8983         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
8984         Likewise.
8985         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8986         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
8987         L(1_2) and L(1_3) into L(1).
8988         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8989         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
8990         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8991         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
8992         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8993         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
8994         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
8995         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8996         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
8997         macros.
8998         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
8999         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9000         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
9001         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
9002         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
9003         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9004         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
9005         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
9006         * sysdeps/i386/strcspn.S (strcspn): Likewise.
9007         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
9008         * sysdeps/i386/strrchr.S (strrchr): Likewise.
9009         * sysdeps/i386/strspn.S (strspn): Likewise.
9010         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
9011         conditional code.
9012         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9013         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
9014         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9015         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
9016         L(1_3) into L(1_1).
9017         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
9018         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9019         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
9020         macros.
9021         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9022
9023 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
9024
9025         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
9026         macro.
9027
9028 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9029
9030         * math/atest-exp.c (exp_mpn): Remove ROUND.
9031         * math/atest-exp2.c (exp_mpn): Likewise.
9032         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
9033
9034         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
9035         * stdlib/tst-tls-atexit-lib.c: Likewise.
9036         * stdlib/tst-tls-atexit.c: Likewise.
9037
9038 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9039
9040         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
9041         and __attribute_alloc_size__.
9042
9043 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9044
9045         * include/programs/xmalloc.h: Change __attribute_alloc_size to
9046         __attribute_alloc_size__.
9047         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
9048         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
9049
9050 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9051
9052         * include/programs/xmalloc.h: New file.
9053         * catgets/gencat.c: Include it.
9054         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
9055         * elf/pldd.c: Likewise.
9056         * iconv/iconv_charmap.c: Likewise.
9057         * iconv/iconvconfig.c: Likewise.
9058         * iconv/strtab.c: Likewise.
9059         * locale/programs/locale.c: Likewise.
9060         * locale/programs/localedef.h: Likewise.
9061         * locale/programs/simple-hash.c: Likewise.
9062         * nscd/nscd.h: Likewise.
9063         * nss/makedb.c: Likewise.
9064         * sysdeps/generic/ldconfig.h: Likewise.
9065
9066 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9067
9068         * Versions.def: Add GLIBC_2.18.
9069         * include/link.h (struct link_map): New member l_tls_dtor_count.
9070         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
9071         (__call_tls_dtors): Likewise.
9072         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
9073         __cxa_thread_atexit_impl.
9074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9075         Likewise.
9076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9077         Likewise.
9078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9079         Likewise.
9080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9081         Likewise.
9082         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
9084         Likewise.
9085         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
9086         Likewise.
9087         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9088         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
9089         Likewise.
9090         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
9091         (tests): Add test case tst-tls-atexit.
9092         (modules-names): Add shared library for tst-tls-atexit.
9093         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
9094         (GLIBC_PRIVATE): Add __call_tls_dtors.
9095         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
9096         for libstdc++.
9097         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
9098         * stdlib/tst-tls-atexit.c: New test case.
9099         * stdlib/tst-tls-atexit-lib.c: New test case.
9100
9101         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
9102
9103         * elf/Versions (ld): Add _dl_find_dso_for_object.
9104         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
9105         * elf/dl-open.c (_dl_find_dso_for_object): New function.
9106         (dl_open_worker): Use _dl_find_dso_for_object.
9107         * elf/dl-sym.c (do_sym): Likewise.
9108         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
9109
9110 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9111
9112         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
9113         Syntactic changes only.
9114         (_dl_runtime_profile): Do a tail-call to the resolved function.
9115
9116 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
9117
9118         [BZ #13550]
9119         * sysdeps/x86_64/bp-asm.h: Remove file.
9120         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
9121         <bp-sym.h> and <bp-asm.h>.
9122         (__clone): Do not use BP_SYM.
9123         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
9124         <bp-sym.h> and <bp-asm.h>.
9125         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9126         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
9127         "bp-asm.h".
9128         (_setjmp): Do not use BP_SYM.
9129         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
9130         "bp-asm.h".
9131         (setjmp): Do not use BP_SYM.
9132         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
9133         libc_hidden_def.
9134         (mempcpy): Do not use BP_SYM in weak_alias.
9135         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
9136         "bp-asm.h".
9137         (strchr): Do not use BP_SYM.
9138         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
9139         "bp-asm.h".
9140         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
9141         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
9142         (_start): Do not use BP_SYM.
9143         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
9144         "bp-asm.h".
9145         (strcat): Do not use BP_SYM.
9146         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
9147         "bp-asm.h".
9148         (STRCMP): Do not use BP_SYM.
9149         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
9150         "bp-asm.h".
9151         (STRCPY): Do not use BP_SYM.
9152         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
9153         "bp-asm.h".
9154         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
9155         "bp-asm.h".
9156         (FUNCTION): Do not use BP_SYM.
9157         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
9158         weak_alias.
9159         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
9160
9161 2013-02-17  Andreas Jaeger  <aj@suse.de>
9162
9163         * time/Versions: Sort entries.
9164         * string/Versions: Likewise.
9165         * resolv/Versions: Likewise.
9166         * posix/Versions: Likewise.
9167         * iconv/Versions: Likewise.
9168         * elf/Versions: Likewise.
9169         * wcsmbs/Versions: Likewise.
9170
9171 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9172
9173         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
9174         loop termination condition.
9175
9176         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
9177         variable to calculate EZ.
9178         (__sqr): Likewise.
9179
9180         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
9181         the lower precision input.
9182
9183 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
9184
9185         [BZ #13550]
9186         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
9187         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
9188         (run-via-rtld-prefix): Do not handle %-bp tests.
9189         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
9190         (all-object-suffixes): Remove .ob.
9191         (bppfx): Remove variable.
9192         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
9193         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
9194         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
9195         [$(build-bounded) = yes] (libtype.ob): Likewise.
9196         * Makerules (elide-routines.ob): Remove variable.
9197         (do-tests-clean): Do not handle *-bp.out.
9198         (common-mostlyclean): Do not handle *-bp and *-bp.out.
9199         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
9200         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
9201         (tests): Do not include $(tests-bp.out).
9202         (xtests): Do not include $(xtests-bp.out).
9203         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
9204         [$(build-bounded) = yes] ($(addprefix
9205         $(objpfx),$(binaries-bounded))): Remove rule.
9206         ($(objpfx)%-bp.out): Remove rule.
9207         * config.make.in (build-bounded): Remove variable.
9208         * crypt/Makefile [$(build-bounded) = yes]
9209         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
9210         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
9211         append to variable.
9212         [$(build-bounded) = yes] (install-lib): Likewise.
9213         [$(build-bounded) = yes] (generated): Likewise.
9214         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
9215         Remove rule.
9216         * intl/Makefile [$(build-bounded) = yes]
9217         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
9218         * math/Makefile [$(build-bounded) = yes]
9219         ($(tests:%=$(objpfx)%-bp): Likewise.
9220         * misc/Makefile [$(build-bounded) = yes]
9221         ($(objpfx)tst-tsearch-bp): Likewise.
9222         * nptl/Makeconfig (bounded-thread-library): Remove variable.
9223         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
9224         Remove dependency.
9225         * string/Makefile (o-objects.ob): Remove variable.
9226         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
9227         (CFLAGS-.ob): Remove variable.
9228         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
9229         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
9230         both definitions of variable.
9231         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
9232         (ASFLAGS-.ob): Remove variable.
9233
9234 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
9235
9236         [BZ #13550]
9237         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
9238         Remove __BOUNDED_POINTERS__ from condition.
9239         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
9240         * string/bits/string2.h [!__NO_STRING_INLINES &&
9241         !__BOUNDED_POINTERS__]: Likewise.
9242         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
9243         Likewise.
9244         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
9245         Remove conditional code.
9246         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
9247         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
9248         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
9249         condition.
9250
9251         [BZ #13550]
9252         * csu/libc-start.c: Do not include <bp-sym.h>.
9253         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
9254         * elf/dl-open.c: Do not include <bp-sym.h>.
9255         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
9256         * math/fegetenv.c: Do not include <bp-sym.h>.
9257         (fegetenv): Do not use BP_SYM in versioned symbols.
9258         * nptl/sysdeps/pthread/bits/libc-lockP.h
9259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
9260         <bp-sym.h>.
9261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9262         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
9263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9264         (__pthread_mutex_destroy): Likewise.
9265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9266         (__pthread_mutex_lock): Likewise.
9267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9268         (__pthread_mutex_trylock): Likewise.
9269         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9270         (__pthread_mutex_unlock): Likewise.
9271         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9272         (__pthread_mutexattr_init): Likewise.
9273         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9274         (__pthread_mutexattr_destroy): Likewise.
9275         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9276         (__pthread_mutexattr_settype): Likewise.
9277         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9278         (__pthread_rwlock_init): Likewise.
9279         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9280         (__pthread_rwlock_destroy): Likewise.
9281         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9282         (__pthread_rwlock_rdlock): Likewise.
9283         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9284         (__pthread_rwlock_tryrdlock): Likewise.
9285         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9286         (__pthread_rwlock_wrlock): Likewise.
9287         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9288         (__pthread_rwlock_trywrlock): Likewise.
9289         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9290         (__pthread_rwlock_unlock): Likewise.
9291         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9292         (__pthread_key_create): Likewise.
9293         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9294         (__pthread_setspecific): Likewise.
9295         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9296         (__pthread_getspecific): Likewise.
9297         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
9298         Likewise.
9299         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9300         (_pthread_cleanup_push_defer): Likewise.
9301         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9302         (_pthread_cleanup_pop_restore): Likewise.
9303         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9304         (pthread_setcancelstate): Likewise.
9305         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
9306         <bp-sym.h>.
9307         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
9308         (memchr): Do not use BP_SYM in weak_alias.
9309         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
9310         (fegetenv): Do not use BP_SYM in versioned symbols.
9311         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
9312         (fesetenv): Do not use BP_SYM in versioned symbols.
9313         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9314         (feupdateenv): Do not use BP_SYM in versioned symbols.
9315         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9316         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9317         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
9318         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
9319         (open64): Do not use BP_SYM in weak_alias.
9320         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
9321         (fegetenv): Do not use BP_SYM in versioned symbols.
9322         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
9323         (fesetenv): Do not use BP_SYM in versioned symbols.
9324         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9325         (feupdateenv): Do not use BP_SYM in versioned symbols.
9326         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
9327         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
9328         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
9329         (feraiseexcept): Do not use BP_SYM in versioned symbols.
9330         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9331         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9332         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
9333         <bp-sym.h>.
9334         (__libc_start_main): Do not use BP_SYM.
9335
9336 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9337
9338         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
9339         redundant return line.
9340         (norm): Likewise.
9341         (denorm): Likewise.
9342         (dbl_mp): Likewise.
9343         (sub_magnitudes): Likewise.
9344         (__add): Likewise.
9345         (__sub): Likewise.
9346         (__mul): Likewise.
9347         (__inv): Likewise.
9348         (__dvd): Likewise.
9349         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
9350         (norm): Likewise.
9351         (denorm): Likewise.
9352         (dbl_mp): Likewise.
9353         (sub_magnitudes): Likewise.
9354         (__add): Likewise.
9355         (__sub): Likewise.
9356         (__mul): Likewise.
9357         (__inv): Likewise.
9358         (__dvd): Likewise.
9359
9360         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
9361         instead of __mul.
9362         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9363         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
9364         (cc32): Likewise.
9365
9366         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
9367         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
9368         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
9369         of __mul for squares.
9370         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
9371         function
9372         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
9373         Likewise.
9374         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
9375         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9376
9377 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
9378
9379         [BZ #13550]
9380         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
9381         code.
9382         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
9383         prototype or function definition.  Rename ubp_* variables and
9384         parameters.  Remove argv definitions conditional on
9385         [__BOUNDED_POINTERS__].
9386         * debug/backtrace.c (__backtrace): Do not use __unbounded.
9387         * elf/dl-runtime.c (_dl_fixup): Likewise.
9388         * include/set-hooks.h (RUN_HOOK): Likewise.
9389         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
9390         definition.
9391         * string/strcpy.c (strcpy): Do not use __unbounded.
9392         * sysdeps/generic/frame.h (struct layout): Likewise.
9393         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
9394         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
9395         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
9396         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
9397         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
9398         (__backtrace): Likewise.
9399         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
9400         use __ptrvalue.
9401         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9402         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9403         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9404         Likewise.
9405         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9406         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
9407         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9408         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9409         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
9410         Do not use __unbounded.
9411         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
9412         Rename __unboundedrlimits parameter to rlimits in prototype.
9413         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
9414         Do not use __unbounded.
9415         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
9416         not use __ptrvalue.
9417         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9418         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
9419         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9420         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
9421         __ptrvalue or __unbounded.
9422         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
9423         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
9424         use __unbounded.
9425         (__new_msgctl): Do not use __ptrvalue.
9426         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
9427         __unbounded.
9428         (__libc_msgrcv): Do not use __ptrvalue.
9429         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
9430         startup_info): Do not use __unbounded.
9431         (__libc_start_main): Likewise.  Rename ubp_* variables and
9432         parameters.  Remove argv definitions conditional on
9433         [__BOUNDED_POINTERS__].
9434         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
9435         __ptrvalue.
9436         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
9437         use __unbounded.
9438         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
9439         or __ptrvalue.
9440         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
9441         use __unbounded.
9442         (__new_shmctl): Do not use __ptrvalue.
9443         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9444         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9445         Likewise.
9446         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9447         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
9448         (__libc_sigaction): Likewise.
9449         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
9450         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
9451         Likewise.
9452         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9453
9454 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
9455
9456         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
9457
9458         * string/mempcpy.c: Implement by calling memcpy.
9459
9460 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9461
9462         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
9463
9464         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
9465         evaluation.
9466
9467         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
9468         values in the mantissa.
9469
9470         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
9471         minimize writes to Z.
9472         (sub_magnitudes): Simplify code a bit.
9473
9474 2013-02-12  Roland McGrath  <roland@hack.frob.com>
9475
9476         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
9477         from the message.  The linker prefixes all warnings with that already.
9478
9479 2013-02-12  Andreas Schwab  <schwab@suse.de>
9480
9481         [BZ #15078]
9482         * posix/regexec.c (extend_buffers): Add parameter min_len.
9483         (check_matching): Pass minimum needed length.
9484         (clean_state_log_if_needed): Likewise.
9485         (get_subexp): Likewise.
9486         * posix/Makefile (tests): Add bug-regex34.
9487         (bug-regex34-ENV): Define.
9488         * posix/bug-regex34.c: New file.
9489
9490         [BZ #11561]
9491         * posix/regcomp.c (parse_bracket_exp): When looking up collating
9492         elements compare against the byte sequence of it, not its name.
9493         * posix/Makefile (tests): Add bug-regex35.
9494         (bug-regex35-ENV): Define.
9495         * posix/bug-regex35.c: New file.
9496
9497 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9498
9499         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
9500         comment.
9501         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
9502         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
9503         (CHECK_EOL): Add undef.
9504
9505 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
9506
9507         * bits/stdlib-bsearch.h: New file.
9508         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
9509         * stdlib/stdlib.h: Likewise.
9510
9511 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9512
9513         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
9514         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
9515         declaration.
9516         * manual/search.texi (Array Search Function): Add missing const in
9517         lfind prototype.
9518         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
9519         declaration to use rlim_t.
9520         (Basic Scheduling Functions): Remove erroneous const from
9521         sched_getparam prototype.  Remove erroneous * from
9522         sched_get_priority_max and sched_get_priority_min prototypes.
9523         (Resource Usage): Fix summary @comment on vtimes to refer to
9524         sys/vtimes.h rather than vtimes.h.
9525         Add missing *s in vtimes prototype.
9526         (Limits on Resources): Fix ulimit prototype to return long int.
9527         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
9528         prototypes to use long int rather than double.
9529         (BSD Random): Fix initstate and setstate to use char *, not void *.
9530         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
9531         prototype to make second argument 'struct aiocb64 *const[]'.
9532         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
9533         (Status of AIO Operations): Remove erroneous const in aio_return and
9534         aio_return64 prototypes.
9535         (Synchronizing I/O): Fix sync prototype to return void.
9536         * manual/startup.texi (Suboptions): Remove an erroneous const in
9537         getsubopt prototype.
9538         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
9539         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
9540         use size_t rather than int.
9541         (Scanning All Users): Likewise for getpwent_r.
9542         (Setting Groups): Add missing const to setgroups prototype.
9543         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
9544         * manual/socket.texi (Host Names): Fix gethostbyaddr and
9545         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
9546         'const void *' rather than 'const char *'.
9547         (Host Address Functions): Likewise for inet_ntop.
9548         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
9549         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
9550         ssize_t for return value.
9551         (Sending Data): Likewise for send, sendto, sendmsg.
9552         (Socket Option Functions): Add a missing const in setsockopt prototype.
9553         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
9554         use wchar_t for the argument.
9555         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
9556         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
9557         take no arguments.
9558         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
9559         double/float/long double for second argument.
9560         Fix return types of significand, significandf, significandl.
9561         * manual/filesys.texi (Setting Permissions): Use mode_t for second
9562         argument in fchmod prototype.
9563         (File Owner): Use uid_t and gid_t in fchown prototype.
9564         (File Times): Add const to utimes, futimes, and lutimes prototypes.
9565         (Making Special Files): Use mode_t and dev_t in mknod prototype.
9566         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
9567         use 'const struct dirent **' as argument types to CMP function pointer
9568         argument.
9569         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
9570         (File Times): Fix summary magic @comment for struct utimbuf and utime
9571         to refer to utime.h, not time.h.
9572         * manual/string.texi (Argz Functions): Add missing const in
9573         argz_extract and argz_next prototypes.
9574         (Finding Tokens in a String): Likewise for basename.
9575         (String/Array Comparison): Fix typo in wcscasecmp prototype.
9576         (Copying and Concatenation): Fix typo in wmemmove prototype.
9577         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
9578         (Signal Stack): Remove erroneous const in sigstack prototype.
9579         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
9580         prototype.
9581         (Simple Calendar Time): Likewise for stime.
9582         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
9583         prototype.
9584         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
9585         say sys/sysctl.h instead.
9586         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
9587         and vsyslog prototypes.
9588
9589 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9590
9591         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
9592         Remove.
9593
9594 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9595
9596         * misc/sys/mman.h: Fix typo in mremap comment.
9597
9598 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9599
9600         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
9601         the '\0' terminator.
9602
9603 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9604
9605         [BZ #13550]
9606         * debug/segfault.c: Don't include <bp-checks.h>.
9607         * sysdeps/generic/bp-checks.h: Remove file.
9608         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
9609         (__GETDENTS): Don't use CHECK_N.
9610         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
9611         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
9612         (__getgroups): Don't use CHECK_N.
9613         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9614         (setgroups): Don't use CHECK_N.
9615         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
9616         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9617         (__libc_msgrcv): Don't use CHECK_N.
9618         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
9619         (__libc_msgsnd): Don't use CHECK_N.
9620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
9621         <bp-checks.h>.
9622         (__libc_pread): Don't use CHECK_N.
9623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
9624         include <bp-checks.h>.
9625         (__libc_pread64): Don't use CHECK_N.
9626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
9627         include <bp-checks.h>.
9628         (__libc_pwrite): Don't use CHECK_N.
9629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
9630         include <bp-checks.h>.
9631         (__libc_pwrite64): Don't use CHECK_N.
9632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
9633         <bp-checks.h>.
9634         (__libc_pread): Don't use CHECK_N.
9635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
9636         include <bp-checks.h>.
9637         (__libc_pread64): Don't use CHECK_N.
9638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
9639         include <bp-checks.h>.
9640         (__libc_pwrite): Don't use CHECK_N.
9641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
9642         include <bp-checks.h>.
9643         (__libc_pwrite64): Don't use CHECK_N.
9644         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
9645         (do_pread): Don't use CHECK_N.
9646         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
9647         (do_pread64): Don't use CHECK_N.
9648         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
9649         (do_pwrite): Don't use CHECK_N.
9650         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
9651         (do_pwrite64): Don't use CHECK_N.
9652         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
9653         (__libc_readv): Don't use CHECK_N.
9654         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
9655         (semop): Don't use CHECK_N.
9656         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
9657         <bp-checks.h>.
9658         (semtimedop): Don't use CHECK_N.
9659         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
9660         (__libc_pread): Don't use CHECK_N.
9661         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9662         <bp-checks.h>.
9663         (__libc_pread64): Don't use CHECK_N.
9664         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9665         <bp-checks.h>.
9666         (__libc_pwrite): Don't use CHECK_N.
9667         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9668         <bp-checks.h>.
9669         (__libc_pwrite64): Don't use CHECK_N.
9670         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9671         <bp-checks.h>.
9672         (__libc_msgrcv): Don't use CHECK_N.
9673         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9674         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9675         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9676         (__libc_writev): Don't use CHECK_N.
9677
9678 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9679
9680         * string/strcpy.c: Removed unused variable.
9681
9682         * Makeconfig (+sysdep-includes): Define with := rather than =.
9683         Use an existing include/ subdir of each sysdeps dir before it.
9684
9685 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9686
9687         * nscd/connection.c (register_traced_file): Comment function.
9688         [HAVE_INOTIFY] (union __inev): Define.
9689         [HAVE_INOTIFY] (inotify_check_files): New function.
9690         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9691         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9692         clear_db_cache.
9693         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9694
9695 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9696
9697         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9698         loaded if not already and that a failure is permanent.
9699
9700 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9701
9702         [BZ #15006]
9703         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9704         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9705
9706 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9707
9708         [BZ #13550]
9709         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9710         (CHECK_1_NULL_OK): Likewise.
9711         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9712         (__fxstat): Do not use CHECK_1.
9713         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9714         <bp-checks.h>.
9715         (___fxstat64): Do not use CHECK_1.
9716         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9717         <bp-checks.h>.
9718         (__fxstatat): Do not use CHECK_1.
9719         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9720         <bp-checks.h>.
9721         (__fxstatat64): Do not use CHECK_1.
9722         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9723         <bp-checks.h>.
9724         (__fxstat): Do not use CHECK_1.
9725         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9726         <bp-checks.h>.
9727         (__fxstatat): Do not use CHECK_1.
9728         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9729         <bp-checks.h>.
9730         (__getresgid): Do not use CHECK_1.
9731         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9732         <bp-checks.h>.
9733         (__getresuid): Do not use CHECK_1.
9734         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9735         <bp-checks.h>.
9736         (__lxstat): Do not use CHECK_1.
9737         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9738         <bp-checks.h>.
9739         (__old_msgctl): Do not use CHECK_1.
9740         (__new_msgctl): Likewise.
9741         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9742         <bp-checks.h>.
9743         (__new_setrlimit): Do not use CHECK_1.
9744         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9745         <bp-checks.h>.
9746         (__old_shmctl): Do not use CHECK_1.
9747         (__new_shmctl): Likewise.
9748         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9749         <bp-checks.h>.
9750         (__xstat): Do not use CHECK_1.
9751         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9752         (__lxstat): Do not use CHECK_1.
9753         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9754         <bp-checks.h>.
9755         (___lxstat64): Do not use CHECK_1.
9756         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9757         (__old_msgctl): Do not use CHECK_1.
9758         (__new_msgctl): Likewise.
9759         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9760         <bp-checks.h>.
9761         (__gettimeofday): Do not use CHECK_1.
9762         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9763         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9764         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9765         <bp-checks.h>.
9766         (__gettimeofday): Do not use CHECK_1.
9767         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9768         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9769         (__new_shmctl): Do not use CHECK_1.
9770         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9771         <bp-checks.h>.
9772         (do_sigtimedwait): Do not use CHECK_1.
9773         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9774         <bp-checks.h>.
9775         (do_sigwaitinfo): Do not use CHECK_1.
9776         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9777         <bp-checks.h>.
9778         (msgctl): Do not use CHECK_1.
9779         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9780         <bp-checks.h>.
9781         (shmctl): Do not use CHECK_1.
9782         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9783         (ustat): Do not use CHECK_1.
9784         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9785         <bp-checks.h>.
9786         (__fxstat): Do not use CHECK_1.
9787         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9788         <bp-checks.h>.
9789         (__fxstatat): Do not use CHECK_1.
9790         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9791         <bp-checks.h>.
9792         (__lxstat): Do not use CHECK_1.
9793         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9794         <bp-checks.h>.
9795         (__xstat): Do not use CHECK_1.
9796         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9797         (__xstat): Do not use CHECK_1.
9798         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9799         (___xstat64): Do not use CHECK_1.
9800
9801         [BZ #13550]
9802         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9803         definitions.
9804         (CHECK_BOUNDS_HIGH): Likewise.
9805         * string/strcpy.c: Do not include <bp-checks.h>.
9806         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9807
9808 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9809
9810         * nscd/nscd-client.h (__nscd_drop_map_ref):
9811         Add __attribute__ ((unused)).
9812         * nis/nss-nisplus.h (niserr2nss): Likewise.
9813
9814         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9815         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9816
9817         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9818         Remove inline keyword.
9819         * include/rounding-mode.h (round_away): Likewise.
9820         * libio/wfileops.c (adjust_wide_data): Likewise.
9821         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9822         (__m128i_strloadu_tolower): Likewise.
9823         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9824         (__m128i_strloadu_tolower): Likewise.
9825         * time/mktime.c (ydhms_diff): Likewise.
9826         * locale/elem-hash.h (elem_hash): Likewise.
9827         * locale/setlocale.c (setdata): Likewise.
9828         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9829         (re_string_wchar_at): Likewise.
9830         (bitset_not, bitset_merge, bitset_mask): Likewise.
9831         [!(__GNUC__ > 3)] (inline): Remove macro.
9832         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9833         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9834         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9835         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9836         * string/memcmp.c (memcmp_bytes): Likewise.
9837         * locale/programs/locarchive.c (compute_hashval): Likewise.
9838         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9839         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9840         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9841         * nss/getent.c (print_rpc, print_protocols): Likewise.
9842         (print_passwd, print_group, print_aliases): Likewise.
9843         * nis/nss-nisplus.h (niserr2nss): Likewise.
9844         * nscd/connections.c (restart_p): Likewise.
9845         Change return type to bool.
9846
9847 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9848
9849         * Makeconfig (all-Depend-files): Add existing
9850         $(sorted-subdirs:=/Depend) files.
9851         (all-subdirs): Remove nss.
9852         * sysdeps/unix/inet/Subdirs: Add it here instead.
9853         * hesiod/Depend: New file.
9854
9855         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9856         instead of calling alloca.
9857
9858         * io/lseek.c (__lseek): Rename to __libc_lseek.
9859         Define __lseek as an alias.
9860
9861         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9862
9863 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9864
9865         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9866         else clause and remove check for non-standard endianness.
9867
9868 2013-02-04  David S. Miller  <davem@davemloft.net>
9869
9870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9871
9872 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9873
9874         [BZ #13550]
9875         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9876         (__ubp_memchr): Remove prototype.
9877         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9878         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9879         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9880         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9881         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9882         Remove alias.
9883         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9884         (__ubp_memchr): Likewise.
9885         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9886         (__ubp_memchr): Likewise.
9887         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9888         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9889         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9890         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9891         CHECK_STRING.
9892         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9893         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9894         (__getcwd): Do not use CHECK_STRING.
9895         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9896         <bp-checks.h>.
9897         (__real_chown): Do not use CHECK_STRING.
9898         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9899         <bp-checks.h>.
9900         (fchownat): Do not use CHECK_STRING.
9901         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9902         CHECK_STRING.
9903         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9904         <bp-checks.h>.
9905         (__lchown): Do not use CHECK_STRING.
9906         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9907         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9908         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9909         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9911         include <bp-checks.h>.
9912         (truncate64): Do not use CHECK_STRING.
9913         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9914         <bp-checks.h>.
9915         (__real_chown): Do not use CHECK_STRING.
9916         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9917         <bp-checks.h>.
9918         (__lchown): Do not use CHECK_STRING.
9919         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9920         <bp-checks.h>.
9921         (__chown): Do not use CHECK_STRING.
9922         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
9923         <bp-checks.h>.
9924         (truncate64): Do not use CHECK_STRING.
9925         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
9926         Likewise.
9927         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
9928         (__xmknod): Do not use CHECK_STRING.
9929         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
9930         <bp-checks.h>.
9931         (__xmknodat): Do not use CHECK_STRING.
9932         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9933         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9934
9935 2013-02-04  Andreas Schwab  <schwab@suse.de>
9936
9937         [BZ #14142]
9938         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
9939         * include/netdb.h: Likewise for h_errno.
9940         * elf/tst-stackguard1.c: Include <tls.h>.
9941
9942 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9943
9944         * elf/link.h (struct link_map): Extend the l_addr comment.
9945         * include/link.h (struct link_map): Likewise.
9946
9947 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
9948
9949         [BZ #13550]
9950         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
9951         (BOUNDED_1): Remove macro.
9952         * debug/backtrace.c: Don't include <bp-checks.h>.
9953         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
9954         (__backtrace): Likewise.
9955         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
9956         <bp-checks.h>.
9957         (__backtrace): Don't use BOUNDED_1.
9958         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
9959         <bp-checks.h>.
9960         (__backtrace): Don't use BOUNDED_1.
9961         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
9962         (__backtrace): Don't use BOUNDED_1.
9963         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
9964         (shmat): Don't use BOUNDED_N.
9965
9966 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
9967
9968         [BZ #13550]
9969         * sysdeps/generic/bp-start.h: Remove file.
9970         * csu/libc-start.c: Don't include <bp-start.h>.
9971         (LIBC_START_MAIN): Set up __environ directly instead of using
9972         INIT_ARGV_and_ENVIRON.
9973         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
9974         <bp-start.h>.
9975
9976         [BZ #13550]
9977         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
9978         definitions.
9979         (CHECK_FCNTL): Likewise.
9980         (CHECK_N_PAGES): Likewise.
9981
9982         [BZ #13550]
9983         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
9984         definitions.
9985         (CHECK_SIGSET_NULL_OK): Likewise.
9986         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
9987         <bp-checks.h>.
9988         (sigpending): Don't use CHECK_SIGSET.
9989         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
9990         <bp-checks.h>.
9991         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9992         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
9993         <bp-checks.h>.
9994         (do_sigsuspend): Don't use CHECK_SIGSET.
9995         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
9996         use CHECK_SIGSET.
9997         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
9998         (do_sigwait): Don't use CHECK_SIGSET.
9999         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
10000         use CHECK_SIGSET.
10001         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
10002         include <bp-checks.h>.
10003         (sigpending): Don't use CHECK_SIGSET.
10004         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
10005         include <bp-checks.h>.
10006         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10007         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
10008         <bp-checks.h>.
10009         (sigpending): Don't use CHECK_SIGSET.
10010         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
10011         <bp-checks.h>.
10012         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10013
10014         [BZ #13550]
10015         * sysdeps/generic/bp-semctl.h: Remove file.
10016         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
10017         <bp-checks.h> and <bp-semctl.h>.
10018         (__old_semctl): Don't use CHECK_SEMCTL.
10019         (__new_semctl): Likewise.
10020         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
10021         and <bp-semctl.h>.
10022         (__old_semctl): Don't use CHECK_SEMCTL.
10023         (__new_semctl): Likewise.
10024         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
10025         <bp-checks.h> and <bp-semctl.h>.
10026         (__old_semctl): Don't use CHECK_SEMCTL.
10027         (__new_semctl): Likewise.
10028         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
10029         <bp-checks.h> and <bp-semctl.h>.
10030         (semctl): Don't use CHECK_SEMCTL.
10031
10032         [BZ #13550]
10033         * Makerules (elide-bp-thunks): Remove variable.
10034         (elide-routines.oS): Don't use $(elide-bp-thunks).
10035         (elide-routines.os): Likewise.
10036         (elide-routines.o): Likewise.
10037         (elide-routines.op): Likewise.
10038         (elide-routines.og): Likewise.
10039         (objects): Don't use $(bp-thunks).
10040         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
10041         include.
10042         (common-generated): Do not add s-proto-bp.d.
10043         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
10044         (int): Likewise.
10045         (typ): Likewise.
10046         Do not generate makefile rules for bounded-pointer thunks.
10047         * sysdeps/generic/bp-thunks.h: Remove file.
10048         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
10049         * sysdeps/unix/s-proto-bp.S: Likewise.
10050
10051         [BZ #15062]
10052         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
10053         parts of result separately when argument is not close to line from
10054         -i to i and one part of argument is small.
10055         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10056         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10057         * math/libm-test.inc (cacos_test): Add more tests.
10058         (casin_test): Likewise.
10059         (casinh_test): Likewise.
10060         * sysdeps/i386/fpu/libm-test-ulps: Update.
10061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10062
10063 2013-01-31  David S. Miller  <davem@davemloft.net>
10064
10065         * po/de.po: Update from translation team.
10066
10067 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10068
10069         * time/tzfile.c: Include stdint.h for SIZE_MAX.
10070
10071 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
10072
10073         * configure.in (_AC_PROG_CC_C89): New definition.
10074         * configure: Regenerate.
10075
10076         * configure.in (AC_PROG_CPP): New definition.
10077         * configure: Regenerate.
10078
10079 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10080
10081         * debug/tst-backtrace.h: New file.
10082         * debug/tst-backtrace2.c: Include tst-backtrace.h.
10083         (ret): Remove variable.
10084         (x): Likewise.
10085         (FAIL): Remove macro.
10086         (NO_INLINE): Likewise.
10087         (fn1): Use match function instead of strstr.
10088         * debug/tst-backtrace3.c: Include tst-backtrace.h.
10089         (ret): Remove variable.
10090         (x): Likewise.
10091         (FAIL): Remove macro.
10092         (NO_INLINE): Likewise.
10093         (fn): Use match function instead of strstr.
10094         * debug/tst-backtrace4.c: Include tst-backtrace.h.
10095         (ret): Remove variable.
10096         (x): Likewise.
10097         (FAIL): Remove macro.
10098         (NO_INLINE): Likewise.
10099         (handle_signal): Use match function instead of strstr.
10100         * debug/tst-backtrace5.c: Include tst-backtrace.h.
10101         (ret): Remove variable.
10102         (x): Likewise.
10103         (FAIL): Remove macro.
10104         (NO_INLINE): Likewise.
10105         (handle_signal): Use match function instead of strstr.
10106
10107 2013-01-23  Roland McGrath  <roland@hack.frob.com>
10108
10109         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
10110
10111 2013-01-23  David S. Miller  <davem@davemloft.net>
10112
10113         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
10114         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
10115         argument of CAS if possible.
10116         * sysdeps/sparc/sparc64/bits/atomic.h
10117         (__arch_compare_and_exchange_val_32_acq): Likewise.
10118         (__arch_compare_and_exchange_val_64_acq): Likewise.
10119
10120 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
10121
10122         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
10123         * sysdeps/posix/ulimit.c: ... this.
10124         Include <limits.h>.
10125         * sysdeps/unix/bsd/ulimit.c: Remove file.
10126
10127 2013-01-23  Adam Conrad  <adconrad@0c3.net>
10128
10129         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
10130         (LDFLAGS-tst-array5): Likewise.
10131
10132 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10133
10134         [BZ #15036]
10135         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
10136         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
10137         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
10138         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
10139
10140 2013-01-21  David S. Miller  <davem@davemloft.net>
10141
10142         * sysdeps/sparc/backtrace.c: New file.
10143         * sysdeps/sparc/sparc32/backtrace.h: New file.
10144         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
10145         * sysdeps/sparc/sparc64/backtrace.h: New file.
10146         * sysdeps/sparc/sparc64/backtrace.c: Delete.
10147         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
10148         -funwind-tables.
10149
10150 2013-01-21  Andreas Schwab  <schwab@suse.de>
10151
10152         [BZ #15020]
10153         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
10154         closed its stdout.
10155
10156 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
10157
10158         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
10159         "mpa2.h".
10160         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10161
10162 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
10163             Mark Mitchell  <mark@codesourcery.com>
10164             Tom de Vries  <tom@codesourcery.com>
10165             Paul Pluzhnikov  <ppluzhnikov@google.com>
10166
10167         * debug/tst-backtrace2.c: New file.
10168         * debug/tst-backtrace3.c: Likewise.
10169         * debug/tst-backtrace4.c: Likewise.
10170         * debug/tst-backtrace5.c: Likewise.
10171         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
10172         (CFLAGS-tst-backtrace3.c): Likewise.
10173         (CFLAGS-tst-backtrace4.c): Likewise.
10174         (CFLAGS-tst-backtrace5.c): Likewise.
10175         (LDFLAGS-tst-backtrace2): Likewise.
10176         (LDFLAGS-tst-backtrace3): Likewise.
10177         (LDFLAGS-tst-backtrace4): Likewise.
10178         (LDFLAGS-tst-backtrace5): Likewise.
10179         (tests): Add new tests tst-backtrace2, tst-backtrace3,
10180         tst-backtrace4 and tst-backtrace5.
10181
10182 2013-01-18  Anton Blanchard  <anton@samba.org>
10183             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10184
10185         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
10186         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
10187         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
10188         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
10189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10190         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
10191         "+r" and remove output regs list as redundant.  Add explicit inline
10192         asm to specify register of return val to work around compiler codegen
10193         bug.  Remove (int) cast on return value.  Add return type parameter to
10194         use in macro so that this macro does not truncate return value for
10195         64-bit values.
10196         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
10197         pass to INTERNAL_VSYSCALL_NCS.
10198         (INLINE_VSYSCALL): Add 'long int' as return type to
10199         INTERNAL_VSYSCALL_NCS macro invocation.
10200         (INTERNAL_VSYSCALL): Add 'long int' as return type to
10201         INTERNAL_VSYSCALL_NCS macro invocation.
10202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10203
10204 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10205
10206         [BZ #14496]
10207         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
10208         Fix application of SIMD FP exception mask.
10209
10210         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
10211         mp_no from a power of two.
10212         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
10213         __mpexp_twomm1.  Use __pow_mp.
10214
10215         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
10216         multiplication.
10217
10218 2013-01-17  David S. Miller  <davem@davemloft.net>
10219
10220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10221
10222 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10223
10224         [BZ #15023]
10225         * include/complex.h: Condition contents on [!_COMPLEX_H].
10226         (__kernel_casinhf): New prototype.
10227         (__kernel_casinh): Likewise.
10228         (__kernel_casinhl): Likewise.
10229         * math/Makefile (libm_calls): Add k_casinh.
10230         * math/k_casinh.c: New file.
10231         * math/k_casinhf.c: Likewise.
10232         * math/k_casinhl.c: Likewise.
10233         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
10234         finite nonzero arguments.
10235         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
10236         finite nonzero arguments.
10237         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
10238         finite nonzero arguments.
10239         * math/s_casinh.c: Do not include <float.h>.
10240         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
10241         * math/s_casinhf.c: Do not include <float.h>.
10242         (__casinhf): Move code for finite nonzero arguments to
10243         k_casinhf.c.
10244         * math/s_casinhl.c: Do not include <float.h>.
10245         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
10246         redefine.
10247         (__casinhl): Move code for finite nonzero arguments to
10248         k_casinhl.c.
10249         * math/libm-test.inc (cacos_test): Add more tests.
10250         * sysdeps/i386/fpu/libm-test-ulps: Update.
10251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10252
10253 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
10254
10255         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
10256         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
10257         [!HAVE_MREMAP]: Remove [defined linux] case.
10258         * malloc/arena.c: Do not include <malloc-sysdep.h>.
10259
10260 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10261
10262         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
10263
10264 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10265
10266         * elf/elf.h (R_386_SIZE32): New relocation.
10267         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
10268         R_386_SIZE32.
10269         (elf_machine_rela): Likewise.
10270         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
10271         R_X86_64_SIZE64 and R_X86_64_SIZE32.
10272
10273 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10274
10275         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
10276         (FP_FAST_FMA): Do not define.
10277         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
10278         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
10279         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
10280         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
10281         !_SOFT_FLOAT]: Likewise.
10282         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
10283         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
10284         value.
10285         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
10286         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
10287         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
10288         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
10289         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
10290         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
10291         file.
10292
10293 2013-01-16  Andreas Schwab  <schwab@suse.de>
10294
10295         [BZ #14327]
10296         * include/stdlib.h (__mktemp): Add declaration.
10297         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
10298         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
10299
10300 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10301
10302         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
10303         definitions.
10304         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10305         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
10306         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
10307         definitions here.
10308         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
10309         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
10310         definitions.
10311         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
10312         and ONE.
10313         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
10314         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
10315         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
10316         definitions.
10317         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
10318         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
10319         definitions.
10320         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10321
10322         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
10323
10324 2013-01-15  David S. Miller  <davem@davemloft.net>
10325
10326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10327         trunc{,f} to libm-sysdep_routes.
10328         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
10330         file.
10331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
10332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
10333         file.
10334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
10335         file.
10336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
10337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
10338         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
10339         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
10340         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
10341         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
10342         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
10343         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
10344
10345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10346         nearbyint{,f} to libm-sysdep_routes.
10347         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
10349         New file.
10350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
10351         file.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
10353         New file.
10354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
10355         file.
10356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
10357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
10358         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
10359         file.
10360         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
10361         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
10362         file.
10363         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
10364         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
10365         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
10366
10367         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
10368         libc_feholdexcept and libc_fesetenv.
10369
10370 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
10371
10372         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
10373
10374 2013-01-14  David S. Miller  <davem@davemloft.net>
10375
10376         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
10377         (SPARC_ASM_VIS2_IFUNC): Likewise.
10378         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
10379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
10380         use of 'siam' instruction.
10381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
10382         Likewise.
10383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
10384         Likewise.
10385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
10386         Likewise.
10387         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
10388         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
10389         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
10390         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
10391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
10392         file.
10393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
10394         file.
10395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
10396         file.
10397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
10398         file.
10399         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
10400         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
10401         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
10403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
10404         new VIS2 routines.
10405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10408         Likewise.
10409         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10410         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10411         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10412         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
10414         routines to libm-sysdep_routines.
10415         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10416
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10418         fdim/fdimf to libm-sysdep_routines.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
10420         file.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
10423         file.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
10427         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
10428         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
10429         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
10430         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
10431
10432 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10433
10434         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
10435         to optimize copies.
10436
10437         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
10438         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10439         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10440
10441         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
10442         local variable MPTWO.
10443         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
10444         Likewise.
10445
10446 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10447
10448         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
10449         GLOB_NOESCAPE.
10450
10451 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10452
10453         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
10454
10455 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10456
10457         * manual/pattern.texi (glob_t): Document gl_flags.
10458         (glob64_t): Likewise.
10459
10460 2013-01-11  David S. Miller  <davem@davemloft.net>
10461
10462         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
10463         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
10464         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
10465         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
10466         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
10467         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
10468         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
10469         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
10470         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
10471         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
10472         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
10473         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
10474         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
10475
10476         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10477         sparc V9 rather than using V8 code.
10478         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10479         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10480
10481         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10482         Move to...
10483         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
10484         Here.
10485
10486 2013-01-11  Roland McGrath  <roland@hack.frob.com>
10487
10488         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
10489         not in the main loop.
10490         * configure: Regenerated.
10491
10492 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
10493
10494         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
10495         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
10496         to just #else.
10497         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
10498         [!__GLIBC_HAVE_LONG_LONG] case.
10499         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
10500         condition to just #else.
10501         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
10502         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
10503         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
10504         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
10505         unconditional.
10506         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
10507         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10508         #elif condition to just #else.
10509         * sysdeps/unix/sysv/linux/sys/sysmacros.h
10510         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
10511         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10512         #elif condition to just #else.
10513
10514 2013-01-11  Steve Ellcey  <sellcey@mips.com>
10515
10516         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
10517         (EF_MIPS_ARCH_64): Fix value.
10518         (EF_MIPS_ARCH_32R2): New.
10519         (EF_MIPS_ARCH_64R2): New.
10520
10521 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10522
10523         * Makeconfig (+link-pie-before-libc): New.
10524         (+link-pie-after-libc): Likewise.
10525         (+link-pie-tests): Likewise.
10526         (+link-pie): Rewritten.
10527         (link-before-libc): Remove $(config-LDFLAGS).
10528         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
10529         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
10530         (config-LDFLAGS): Renamed to ...
10531         (rtld-LDFLAGS): This.
10532         (rtld-tests-LDFLAGS): New macro.
10533         (link-libc-rpath-link): Likewise.
10534         (link-libc-tests-rpath-link): Likewise.
10535         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
10536         (link-libc): Prepand $(link-libc-rpath-link).
10537         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
10538         (test-program-prefix): New macro.
10539         (test-via-rtld-prefix): Likewise.
10540         (test-program-cmd): Likewise.
10541         (host-test-program-cmd): Likewise.
10542         * Makefile ($(common-objpfx)testrun.sh): Replace
10543         $(run-program-prefix) with $(test-program-prefix).
10544         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
10545         $(rtld-LDFLAGS).
10546         ($(common-objpfx)shlib.lds): Likewise.
10547         (build-module-helper): Likewise.
10548         ($(common-objpfx)format.lds): Likewise.
10549         * Rules (binaries-pie-tests): New.
10550         (binaries-pie-notests): Likewise.
10551         (binaries-pie): Rewritten.
10552         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
10553         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
10554         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
10555         (make-test-out): Replace $(host-built-program-cmd) with
10556         $(host-test-program-cmd).
10557         * config.make.in (build-hardcoded-path-in-tests): New variable.
10558         * configure.in (--enable-hardcoded-path-in-tests): New configure
10559         option.
10560         (hardcoded_path_in_tests): New AC_SUBST.
10561         * configure: Regenerated.
10562         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
10563         $(built-program-cmd) with $(test-program-cmd).
10564         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
10565         (test_program_cmd): This.
10566         * elf/Makefile ($(objpfx)order.out): Run test with
10567         $(test-program-prefix).
10568         ($(objpfx)order2.out): Likewise.
10569         ($(objpfx)tst-initorder.out): Likewise.
10570         ($(objpfx)tst-initorder2.out): Likewise.
10571         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
10572         $(test-program-cmd).
10573         ($(objpfx)tst-array1-static.out): Likewise.
10574         ($(objpfx)tst-array2.out): Likewise.
10575         ($(objpfx)tst-array3.out): Likewise.
10576         ($(objpfx)tst-array4.out): Likewise.
10577         ($(objpfx)tst-array5.out): Likewise.
10578         ($(objpfx)tst-array5-static.out): Likewise.
10579         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
10580         $(test-program-cmd).
10581         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
10582         $(run-program-prefix) with $(test-program-prefix).
10583         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
10584         (test_program_prefix): This.
10585         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
10586         $(run-program-prefix) with $(test-program-prefix).
10587         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
10588         (test_program_prefix): This.
10589         * iconvdata/tst-tables.sh: Likewise.
10590         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
10591         $(run-program-prefix) with $(test-program-prefix).
10592         ($(objpfx)tst-translit.out): Likewise.
10593         ($(objpfx)tst-gettext2.out): Likewise.
10594         ($(objpfx)tst-gettext4.out): Likewise.
10595         ($(objpfx)tst-gettext6.out): Likewise.
10596         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
10597         (test_program_prefix): This.
10598         * intl/tst-gettext2.sh: Likewise.
10599         * intl/tst-gettext4.sh  Likewise.
10600         * intl/tst-gettext6.sh: Likewise.
10601         * intl/tst-translit.sh: Likewise.
10602         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
10603         with $(test-program-cmd).
10604         * libio/Makefile ($(objpfx)test-freopen.out): Replace
10605         $(run-program-prefix) with $(test-program-prefix).
10606         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
10607         (test_program_prefix): This.
10608         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
10609         $(run-program-prefix) with $(test-program-prefix).
10610         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
10611         (test_program_prefix): This.
10612         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
10613         * posix/Makefile ($(objpfx)globtest.out): Replace
10614         $(run-via-rtld-prefix) and $(test-wrapper) with
10615         $(test-program-prefix) and $(test-via-rtld-prefix).
10616         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
10617         $(test-program-prefix).
10618         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
10619         $(host-test-program-cmd).
10620         (tst-spawn-ARGS): Likewise.
10621         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
10622         $(test-program-prefix).
10623         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
10624         (test_via_rtld_prefix): This.
10625         (test_wrapper): Renamed to ...
10626         (test_program_prefix): This.
10627         (run_program_prefix): Replaced by test_program_prefix.
10628         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
10629         (test_program_prefix): This.
10630         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
10631         with $(host-test-program-cmd).
10632         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
10633         $(run-program-prefix) with $(test-program-prefix).
10634         ($(objpfx)tst-printf.out): Likewise.
10635         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
10636         $(test-program-cmd).
10637         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
10638         (test_program_prefix): This.
10639         * stdio-common/tst-unbputc.sh: Likewise.
10640         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
10641         $(run-program-prefix) with $(test-program-prefix).
10642         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
10643         (test_program_prefix): This.
10644         * string/Makefile ($(objpfx)tst-svc.out):  Replace
10645         $(built-program-cmd) with $(test-program-cmd).
10646
10647 2013-01-11  Andreas Jaeger  <aj@suse.de>
10648
10649         [BZ #15003]
10650         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
10651         value. Sync with Linux 3.7.
10652
10653 2013-01-10  David S. Miller  <davem@davemloft.net>
10654
10655         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
10656         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10657         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10658
10659 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10660
10661         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10662         never set.
10663         * configure: Regenerated.
10664
10665 2013-01-10  David S. Miller  <davem@davemloft.net>
10666
10667         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10668         sparc V9 rather than using V8 code.
10669         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10670         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10671
10672 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10673
10674         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10675         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10676         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10677         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10678         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10679         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10680         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10681         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10682         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10683         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10684         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10685         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10686         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10687         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10688         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10689         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10690         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10691         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10692         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10693         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10694         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10695         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10696         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10697         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10698         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10699         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10700         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10701
10702 2013-01-10  David S. Miller  <davem@davemloft.net>
10703
10704         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10705
10706 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10707
10708         * posix/Makefile (tests-static): New variable.
10709         (tests): Add $(tests-static).
10710         (tst-exec-static-ARGS): New variable.
10711         (tst-spawn-static-ARGS): Likewise.
10712         * posix/tst-exec-static.c: New file.
10713         * posix/tst-spawn-static.c: Likewise.
10714         * posix/tst-exec.c: Support run directly.
10715         * posix/tst-spawn.c: Likewise.
10716
10717 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10718
10719         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10720         long.
10721         * math/bits/mathcalls.h (llrint): Likewise.
10722         (llround): Likewise.
10723         * stdlib/stdlib.h (struct drand48_data): Likewise.
10724         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10725         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10726         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10727         Likewise.
10728         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10729         Likewise.
10730         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10731         (elf_greg_t): Likewise.
10732         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10733         (__jmp_buf): Likewise.
10734         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10735         definitions.
10736         (llrint): Likewise, for all definitions.
10737         (llrintl): Likewise.
10738
10739         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10740         Remove [__GNUC__] condition.
10741         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10742         condition to just [__USE_ISOC99].
10743         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10744
10745 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10746
10747         [BZ #14200]
10748         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10749         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10750         defined.
10751         (_POSIX_V6_ILP32_OFF32): Likewise.
10752         (_XBS5_ILP32_OFF32): Likewise.
10753         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10754         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10755
10756 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10757
10758         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10759
10760         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10761         doubles __mpexp_twomm1.  Adjust usage.
10762         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10763         Remove.
10764
10765 2013-01-10  Andreas Schwab  <schwab@suse.de>
10766
10767         [BZ #14964]
10768         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10769         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10770
10771 2013-01-09  David S. Miller  <davem@davemloft.net>
10772
10773         [BZ #15003]
10774         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10775         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10776         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10777         TCP_FASTOPEN): Define.
10778         (tcp_repair_opt): New structure.
10779         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10780         enum values.
10781         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10782         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10783         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10784         (tcp_cookie_transactions): New structure.
10785
10786 2013-01-09  Anton Blanchard  <anton@samba.org>
10787
10788         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10789         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10790         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10791         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10792
10793 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10794
10795         * include/features.h (__USE_ANSI): Remove.
10796
10797 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10798
10799         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10800
10801         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10802
10803 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10804
10805         * sysdeps/s390/fpu/libm-test-ulps: Update.
10806
10807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10808
10809         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10810         (__acr): Likewise.
10811         (__cpy): Likewise.
10812         (norm): Likewise.
10813         (denorm): Likewise.
10814         (__mp_dbl): Likewise.
10815         (__dbl_mp): Likewise.
10816         (add_magnitudes): Likewise.
10817         (sub_magnitudes): Likewise.
10818         (__add): Likewise.
10819         (__sub): Likewise.
10820         (__mul): Likewise.
10821         (__inv): Likewise.
10822         (__dvd): Likewise.
10823         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10824         (__acr): Likewise.
10825         (__cpy): Likewise.
10826         (norm): Likewise.
10827         (denorm): Likewise.
10828         (__mp_dbl): Likewise.
10829         (__dbl_mp): Likewise.
10830         (add_magnitudes): Likewise.
10831         (sub_magnitudes): Likewise.
10832         (__add): Likewise.
10833         (__sub): Likewise.
10834         (__mul): Likewise.
10835         (__inv): Likewise.
10836         (__dvd): Likewise.
10837         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10838         (__acr): Likewise.
10839         (__cpy): Likewise.
10840         (norm): Likewise.
10841         (denorm): Likewise.
10842         (__mp_dbl): Likewise.
10843         (__dbl_mp): Likewise.
10844         (add_magnitudes): Likewise.
10845         (sub_magnitudes): Likewise.
10846         (__add): Likewise.
10847         (__sub): Likewise.
10848         (__mul): Likewise.
10849         (__inv): Likewise.
10850         (__dvd): Likewise.
10851
10852 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10853
10854         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10855         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10856         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10857         2 && __USE_EXTERN_INLINES]: Likewise.
10858
10859 2013-01-08  Andreas Jaeger  <aj@suse.de>
10860
10861         [BZ# 14985]
10862         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10863         Remove.
10864         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10865         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10866
10867 2013-01-07  Anton Blanchard  <anton@samba.org>
10868
10869         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10870         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10871         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10872         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10873         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10874         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10875         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10876         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10877         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10878         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10879         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10880         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10881         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10882         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10883         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10884         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10885         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10886         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10887         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10888         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10889         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10890         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10891         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10892         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10893         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10894         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10895         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10896         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10897         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10898         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10899         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10900         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10901         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10902         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10903         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10904         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10905         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10906         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10907         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10908         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10909         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10910         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10911         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10912
10913 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
10914
10915         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
10916         (__MALLOC_PMT): Likewise.
10917         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
10918         [__GNUC__], only on [_LIBC].
10919         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10920         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
10921         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10922         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
10923         forward declaration.
10924         (realloc_hook_ini): Likewise.
10925         (memalign_hook_ini): Likewise.
10926         (__libc_memalign): Do not use __MALLOC_PMT in variable
10927         declaration.
10928         (__libc_valloc): Likewise.
10929         (__libc_pvalloc): Likewise.
10930         (__libc_calloc): Likewise.
10931         (__posix_memalign): Likewise.
10932
10933         [BZ #14996]
10934         * math/s_casinh.c: Include <float.h>.
10935         (__casinh): Do not do computation with squaring and square root
10936         for large arguments.
10937         * math/s_casinhf.c: Include <float.h>.
10938         (__casinhf): Do not do computation with squaring and square root
10939         for large arguments.
10940         * math/s_casinhl.c: Include <float.h>.
10941         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
10942         (__casinhl): Do not do computation with squaring and square root
10943         for large arguments.
10944         * math/libm-test.inc (casin_test): Add more tests.
10945         (casinh_test): Likewise.
10946         * sysdeps/i386/fpu/libm-test-ulps: Update.
10947         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10948
10949 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10950
10951         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
10952         (__x86_64_raw_data_cache_size): Likewise.
10953         (__x86_64_data_cache_size_half): Likewise.
10954         (__x86_64_raw_data_cache_size_half): Likewise.
10955         (__x86_64_shared_cache_size): Likewise.
10956         (__x86_64_raw_shared_cache_size): Likewise.
10957         (__x86_64_shared_cache_size_half): Likewise.
10958         (__x86_64_raw_shared_cache_size_half): Likewise.
10959         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
10960         to ...
10961         (__x86_data_cache_size): This.
10962         (__x86_64_raw_data_cache_size): Renamed to ...
10963         (__x86_raw_data_cache_size): This.
10964         (__x86_64_data_cache_size_half): Renamed to ...
10965         (__x86_data_cache_size_half): This.
10966         (__x86_64_raw_data_cache_size_half): Renamed to ...
10967         (__x86_raw_data_cache_size_half): This.
10968         (__x86_64_shared_cache_size): Renamed to ...
10969         (__x86_shared_cache_size): This.
10970         (__x86_64_raw_shared_cache_size): Renamed to ...
10971         (__x86_raw_shared_cache_size): This.
10972         (__x86_64_shared_cache_size_half): Renamed to ...
10973         (__x86_shared_cache_size_half): This.
10974         (__x86_64_raw_shared_cache_size_half): Renamed to ...
10975         (__x86_raw_shared_cache_size_half): This.
10976         * sysdeps/x86_64/memcpy.S: Updated.
10977         * sysdeps/x86_64/memset.S: Likewise.
10978         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10979         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10980         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10981
10982 2013-01-04  David S. Miller  <davem@davemloft.net>
10983
10984         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10985
10986 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
10987
10988         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
10989         1 to avoid redefinition warning.
10990         (__USE_GNU): Don't define.
10991         (init_signaling_nan): Protoize.
10992
10993         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10994
10995 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10996
10997         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
10998         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
10999         (__cpymn): Likewise.
11000         (norm): Remove commented code.
11001         (denorm): Likewise.
11002         (__mp_dbl): Likewise.
11003         (__inv): Likewise.
11004         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
11005         (__cpymn): Likewise.
11006         (norm): Remove commented code.
11007         (denorm): Likewise.
11008         (__mp_dbl): Likewise.
11009         (__inv): Likewise.
11010
11011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
11012         mp_no value for 1.0 and 2.0.
11013         (norm): Use RADIXI instead of radixi.d.
11014         (denorm): Likewise.
11015         (__mul): Use 0.0 instead of zero.d.
11016         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
11017         mp_no value for 1.0 and 2.0.
11018         (norm): Use RADIXI instead of radixi.d.
11019         (denorm): Likewise.
11020         (__mul): Use 0.0 instead of zero.d.
11021
11022 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
11023
11024         [BZ #14994]
11025         * math/s_casinh.c (__casinh): Reduce finite argument to first
11026         quadrant then set signs of results at the end.
11027         * math/s_casinhf.c (__casinhf): Likewise.
11028         * math/s_casinhl.c (__casinhl): Likewise.
11029         * math/libm-test.inc (casin_test): Add more tests.
11030         (casinh_test): Likewise.
11031         * sysdeps/i386/fpu/libm-test-ulps: Update.
11032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11033
11034 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11035
11036         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
11037
11038         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
11039
11040         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
11041         declarations.
11042         (denorm): Likewise.
11043         (__mp_dbl): Likewise.
11044         (__inv): Likewise.
11045
11046         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
11047         and adjust the header comment.
11048
11049         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
11050         variable name from declaration.
11051
11052 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11053
11054         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11055         Initialize COMMON_CPUID_INDEX_7 element.
11056         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
11057         (CPUID_RTM): Likewise.
11058         (HAS_RTM): Likewise.
11059         (COMMON_CPUID_INDEX_7): New enum.
11060
11061 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
11062
11063         [BZ #14981]
11064         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
11065         size is zero, record memory as freed.
11066
11067 2013-01-03  Andreas Jaeger  <aj@suse.de>
11068
11069         * po/ia.po: Add new Interlingua translation.
11070
11071 2012-01-03  Allan McRae  <allan@archlinux.org>
11072
11073         * locale/programs/localedef.c: Fix description of '--posix' flag.
11074
11075 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
11076
11077         * NEWS: Update dates in second copyright notice.
11078         * README: Update copyright dates in example.
11079         * manual/libc.texinfo: Update copyright dates.
11080         * scripts/test-installation.pl: Update copyright date in --version
11081         output.
11082
11083         * hurd/ctty-input.c: Fix copyright notice formatting.
11084         * hurd/ctty-output.c: Likewise.
11085         * hurd/dtable.c: Likewise.
11086         * hurd/hurd-raise.c: Likewise.
11087         * hurd/hurdprio.c: Likewise.
11088         * hurd/msgportdemux.c: Likewise.
11089         * misc/sys/file.h: Likewise.
11090         * misc/sys/ioctl.h: Likewise.
11091         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11092         * sysdeps/mach/hurd/chdir.c: Likewise.
11093         * sysdeps/mach/hurd/fchdir.c: Likewise.
11094         * sysdeps/mach/hurd/rename.c: Likewise.
11095         * sysdeps/mach/hurd/rmdir.c: Likewise.
11096         * sysdeps/mach/hurd/seekdir.c: Likewise.
11097         * sysdeps/mach/hurd/setsid.c: Likewise.
11098         * sysdeps/posix/wait3.c: Likewise.
11099
11100         * All files with FSF copyright notices: Update copyright dates
11101         using scripts/update-copyrights.
11102         * intl/plural.c: Regenerated.
11103         * locale/programs/charmap-kw.h: Likewise.
11104         * locale/programs/locfile-kw.h: Likewise.
11105
11106 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11107
11108         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
11109         four values.
11110
11111         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
11112         calculation loop and add branch prediction.
11113
11114         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
11115         check access beyond bounds of m1np.
11116
11117         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11118         MPTWO.
11119         (__inv): Remove local variable MPTWO to use the global
11120         constant.
11121         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
11122         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11123         variable MPTWO.
11124         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
11125         MP3HALFS static const.
11126
11127 2013-01-01  David S. Miller  <davem@davemloft.net>
11128
11129         * po/ca.po: Update from translation team.
11130
11131 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
11132
11133         * scripts/update-copyrights: New file.
11134         * Makeconfig: Reformat copyright notice.
11135         * ctype/ctype.h: Likewise.
11136         * debug/swprintf_chk.c: Likewise.
11137         * elf/dl-cache.c: Likewise.
11138         * elf/dl-debug.c: Likewise.
11139         * elf/dl-object.c: Likewise.
11140         * grp/initgroups.c: Likewise.
11141         * hurd/Makefile: Likewise.
11142         * hurd/hurd/signal.h: Likewise.
11143         * hurd/hurdfault.c: Likewise.
11144         * hurd/hurdioctl.c: Likewise.
11145         * hurd/hurdlookup.c: Likewise.
11146         * hurd/intr-msg.c: Likewise.
11147         * iconv/gconv_open.c: Likewise.
11148         * libio/swprintf.c: Likewise.
11149         * locale/lc-ctype.c: Likewise.
11150         * locale/nl_langinfo.c: Likewise.
11151         * mach/Machrules: Likewise.
11152         * mach/Makefile: Likewise.
11153         * malloc/obstack.h: Likewise.
11154         * manual/Makefile: Likewise.
11155         * manual/tsort.awk: Likewise.
11156         * misc/bits/stab.def: Likewise.
11157         * nis/nis_print_group_entry.c: Likewise.
11158         * nis/nis_table.c: Likewise.
11159         * nis/nss_compat/compat-pwd.c: Likewise.
11160         * nis/nss_compat/compat-spwd.c: Likewise.
11161         * po/Makefile: Likewise.
11162         * posix/fnmatch.c: Likewise.
11163         * posix/regex.h: Likewise.
11164         * resolv/Makefile: Likewise.
11165         * resolv/nss_dns/dns-network.c: Likewise.
11166         * resolv/res_hconf.c: Likewise.
11167         * scripts/gen-sorted.awk: Likewise.
11168         * soft-fp/soft-fp.h: Likewise.
11169         * stdio-common/printf.h: Likewise.
11170         * stdlib/monetary.h: Likewise.
11171         * stdlib/random.c: Likewise.
11172         * stdlib/random_r.c: Likewise.
11173         * sysdeps/generic/Makefile: Likewise.
11174         * sysdeps/gnu/Makefile: Likewise.
11175         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11176         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11177         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11178         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11179         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11180         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11181         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11182         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11183         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11184         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11185         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11186         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11187         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11188         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11189         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11190         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11191         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11192         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11193         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11194         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11195         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11196         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11197         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11198         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
11199         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
11200         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11201         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11202         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
11203         * sysdeps/mach/hurd/errnos.awk: Likewise.
11204         * sysdeps/mach/hurd/fork.c: Likewise.
11205         * sysdeps/mach/hurd/getcwd.c: Likewise.
11206         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
11207         * sysdeps/mach/hurd/mmap.c: Likewise.
11208         * sysdeps/mach/hurd/utimes.c: Likewise.
11209         * sysdeps/mach/hurd/xmknod.c: Likewise.
11210         * sysdeps/posix/profil.c: Likewise.
11211         * sysdeps/posix/readdir_r.c: Likewise.
11212         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11213         * sysdeps/powerpc/bits/setjmp.h: Likewise.
11214         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
11215         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
11216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11217         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11218         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11219         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11220         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11221         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11222         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11223         * sysdeps/pthread/lio_listio.c: Likewise.
11224         * sysdeps/sparc/dl-procinfo.h: Likewise.
11225         * sysdeps/unix/i386/sysdep.S: Likewise.
11226         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
11227         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
11228         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
11229         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
11230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11231         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
11232         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
11233         * sysdeps/unix/sysv/linux/speed.c: Likewise.
11234         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
11235         * sysdeps/wordsize-32/divdi3.c: Likewise.
11236         * time/sys/time.h: Likewise.
11237         * wcsmbs/Makefile: Likewise.
11238
11239 2013-01-01  David S. Miller  <davem@davemloft.net>
11240
11241         * po/fr.po: Update from translation team.
11242
11243         * catgets/gencat.c: Update copyright year.
11244         * csu/version.c: Likewise.
11245         * debug/catchsegv.sh: Likewise.
11246         * debug/pcprofiledump.c: Likewise.
11247         * debug/xtrace.sh: Likewise.
11248         * elf/ldconfig.c: Likewise.
11249         * elf/ldd.bash.in: Likewise.
11250         * elf/pldd.c: Likewise.
11251         * elf/sotruss.ksh: Likewise.
11252         * elf/sprof.c: Likewise.
11253         * iconv/iconv_prog.c: Likewise.
11254         * iconv/iconvconfig.c: Likewise.
11255         * locale/programs/locale.c: Likewise.
11256         * locale/programs/localedef.c: Likewise.
11257         * login/programs/pt_chown.c: Likewise.
11258         * malloc/memusage.sh: Likewise.
11259         * malloc/memusagestat.c: Likewise.
11260         * malloc/mtrace.pl: Likewise.
11261         * nscd/nscd.c: Likewise.
11262         * nss/getent.c: Likewise.
11263         * nss/makedb.c: Likewise.
11264         * posix/getconf.c: Likewise.
11265
11266 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11267
11268         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
11269         numbers.
11270
11271 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
11272
11273         * math/bits/mathcalls.h (modf): Use __nonnull.
11274
11275 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11276
11277         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
11278         (split): Use macro CN instead of the bare value.
11279         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
11280         could be used.
11281         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
11282         instead of the bare value.
11283         (power1): Likewise.
11284
11285 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11286
11287         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
11288         __ATAN_TWOM.
11289         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11290
11291         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
11292         their values.
11293         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
11294         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11295         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
11296         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
11297
11298 2012-12-28  Andreas Jaeger  <aj@suse.de>
11299
11300         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
11301         values are from Linux 3.7.
11302
11303         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
11304         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
11305
11306 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11307
11308         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
11309         TRUE case.
11310
11311         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
11312         (norm): Likewise.
11313         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
11314         variables with preprocessor constants.
11315         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11316         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11317         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11318
11319 2012-12-27  Bruno Haible  <bruno@clisp.org>
11320
11321         [BZ #14317]
11322         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
11323         only if needed.
11324
11325 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11326
11327         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
11328         and use variable directly.
11329         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
11330
11331         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11332         MPONE.
11333         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
11334         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11335         variable MPONE.
11336         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11337         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11338         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
11339         include directive.  Remove local variable MPONE.
11340         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
11341         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
11342         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11343
11344 2012-12-25  David S. Miller  <davem@davemloft.net>
11345
11346         * version.h (RELEASE): Set to "development".
11347         (VERSION): Set to "2.17.90".
11348         * NEWS: Add 2.18 section.
11349
11350 2012-12-21  David S. Miller  <davem@davemloft.net>
11351
11352         * po/hr.po: Update from translation team.
11353
11354 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11355
11356         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
11357
11358 2012-12-19  Steve Ellcey  <sellcey@mips.com>
11359
11360         * NEWS:  Mention new memcpy for MIPS.
11361
11362 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11363
11364         * manual/contrib.texi (Contributors): Spelling correction.
11365
11366 2012-12-15  David S. Miller  <davem@davemloft.net>
11367
11368         * po/ru.po: Update from translation team.
11369
11370 2012-12-13  David S. Miller  <davem@davemloft.net>
11371
11372         * NEWS: Mention IFUNC testsuite enhancements.
11373
11374         * po/pl.po: Update from translation team.
11375         * po/bg.po: Likewise.
11376
11377         * manual/contrib.texi (Contributors): Update entries for Hongjiu
11378         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
11379
11380 2012-12-11  David S. Miller  <davem@davemloft.net>
11381
11382         * po/sv.po: Update from translation team.
11383
11384         * po/vi.po: Update from translation team.
11385
11386         * po/cs.po: Update from translation team.
11387
11388         * po/de.po: Update from translation team.
11389         * po/eo.po: Likewise.
11390         * po/nl.po: Likewise.
11391
11392 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11393
11394         [BZ #14246]
11395         * manual/argp.texi (Argp Helper Functions): Move node to follow
11396         Argp Parsing State.
11397
11398         [BZ #14872]
11399         * manual/conf.texi (Limits on File System Capacity): Mention if
11400         terminating null is included in the max size.
11401
11402 2012-12-10  Andreas Jaeger  <aj@suse.de>
11403
11404         * po/cs.po: Update from translation team.
11405
11406 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11407
11408         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
11409         void pointer and cast to uintptr_t.
11410         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
11411         path.
11412         * sysdeps/s390/s390-64/memcpy.S: Likewise.
11413         * sysdeps/s390/s390-64/memset.S: Likewise.
11414
11415 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
11416
11417         [BZ #14833]
11418         * menual/message.texi (Message Translation): Fix typos.
11419         (Helper programs for gettext): Likewise.
11420
11421 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
11422
11423         [BZ #14898]
11424         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
11425         Change to -1.
11426
11427 2012-12-07  David S. Miller  <davem@davemloft.net>
11428
11429         * po/libc.pot: Update.
11430
11431 2012-12-07  Richard Henderson  <rth@redhat.com>
11432
11433         [BZ #10114]
11434         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
11435         normal/normal case to before the switch.
11436         (_FP_DIV): Likewise.
11437
11438 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
11439             Mike Frysinger  <vapier@gentoo.org>
11440
11441         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
11442         check for __NR_fadvise64_64.
11443
11444 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
11445
11446         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
11447         0, not just to plain "0" as a statement.
11448         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
11449         with cw.
11450
11451 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
11452
11453         * NEWS: Use sourceware.org in Bugzilla URL.
11454
11455 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11456
11457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11458         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11459
11460         * stdio-common/tst-put-error.c (do_test): Add newline to the
11461         padded test to ensure flush.
11462
11463 2012-12-05  Jeff Law  <law@redhat.com>
11464
11465         * sunrpc/etc.rpc (fedfs_admin): Add entry.
11466
11467 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
11468
11469         * README: Don't refer to ports add-on as distributed separately.
11470         Mention AArch64 in list of systems supported in the ports add-on.
11471
11472         * LICENSES: Add more non-FSF copyright and license notices.
11473
11474         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
11475         ((unused)).
11476
11477         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
11478
11479         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
11480         10000 as width of padded output.
11481
11482 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11483
11484         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
11485
11486         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
11487         variable LX with __attribute__ ((unused)).
11488         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11489         Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
11493         with __attribute__ ((unused)).
11494
11495 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
11496
11497         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
11498
11499 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11500
11501         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
11502         (CFLAGS-nldbl-acos.c): New variable.
11503         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
11504         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
11505         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
11506         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
11507         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
11508         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
11509         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
11510         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
11511         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
11512         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
11513         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
11514         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
11515         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
11516         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
11517         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
11518         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
11519         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
11520         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
11521         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
11522         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
11523         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
11524         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
11525         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
11526         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
11527         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
11528         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
11529         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
11530         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
11531         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
11532         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
11533         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
11534         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
11535         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
11536         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
11537         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
11538         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
11539         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
11540         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
11541         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
11542         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
11543         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
11544         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
11545         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
11546         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
11547         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
11548         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
11549         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
11550         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
11551         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
11552         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
11553         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
11554         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
11555         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
11556         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
11557         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
11558         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
11559         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
11560         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
11561         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
11562         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
11563         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
11564         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
11565         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
11566         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
11567         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
11568         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
11569         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
11570         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
11571         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
11572         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
11573         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
11574         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
11575         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
11576         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
11577         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
11578         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
11579         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
11580         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
11581         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
11582         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
11583         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
11584         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
11585         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
11586         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
11587         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
11588         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
11589         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
11590         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
11591         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
11592         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
11593         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
11594         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
11595         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
11596         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
11597         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
11598         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
11599         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
11600
11601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11602         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11603
11604         [BZ #14914]
11605         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
11606         whole low double instead of just low 47 bits when splitting values
11607         into two parts.
11608
11609 2012-12-03  Allan McRae  <allan@archlinux.org>
11610
11611         * manual/stdio.texi (Predefined Printf Handlers): Remove
11612         @hsep and @vsep usage.
11613
11614 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
11615
11616         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
11617         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
11618
11619 2012-12-03  Jeff Law  <law@redhat.com>
11620
11621         * time/sys/time.h (settimeofday): Do not mark TV argument
11622         as __nonnull.
11623
11624 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
11625
11626         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
11627         when currently writing and seek to current position when not.
11628         * libio/Makefile (tests): Remove bug-fclose1.
11629         * libio/bug-fclose1.c: Delete.
11630
11631 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
11632
11633         * manual/arith.texi (feenableexcept): Fix typo.
11634         (fedisableexcept): Likewise.
11635
11636 2012-11-30  Roland McGrath  <roland@hack.frob.com>
11637
11638         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
11639         second, differently-typed declaration, rather than a cast.
11640
11641 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11642
11643         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
11644         * include/rpc/svc.h: ... here.
11645
11646 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
11647
11648         [BZ #13013]
11649         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
11650         depending n and resplen2 to catch cases where answer
11651         equals answerp2.
11652
11653 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
11654
11655         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
11656         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
11657
11658 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
11659
11660         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11661
11662 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11663
11664         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11665
11666 2012-11-28  Jeff Law  <law@redhat.com>
11667
11668         [BZ #13761]
11669         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11670         dataset_temporary.  Track alloca usage into alloca_used.
11671         If dataset is large allocate and release it via malloc/free.
11672
11673 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11674
11675         [BZ #14197]
11676         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11677
11678 2012-11-28  David S. Miller  <davem@davemloft.net>
11679
11680         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11681
11682 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11683
11684         [BZ #14803]
11685         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11686         of pi/2 rounded to nearest to 64 bits.
11687         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11688         nearest to 64 bits.
11689         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11690         bits.
11691
11692 2012-11-28  Jeff Law <law@redhat.com>
11693             Martin Osvald <mosvald@redhat.com>
11694
11695         [BZ #14889]
11696         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11697         * sunrpc/svc.c: Include time.h.
11698         (__svc_accept_failed): New function.
11699         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11700         any reason other than EINTR, call __svc_accept_failed.
11701         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11702         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11703
11704 2012-11-28  Andreas Schwab  <schwab@suse.de>
11705
11706         * scripts/abilist.awk: Also handle indirect functions in .opd
11707         section.
11708
11709 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11710
11711         [BZ #13881]
11712         * sysdeps/x86/fpu/powl_helper.c: New file.
11713         * sysdeps/x86/fpu/Makefile: Likewise.
11714         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11715         (p3): New object.
11716         (__ieee754_powl): Use __powl_helper for finite arguments except
11717         integer exponents below 8.
11718         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11719         (p3): New object.
11720         (__ieee754_powl): Use __powl_helper for finite arguments except
11721         integer exponents below 8.
11722         * math/libm-test.inc (pow_test): Add more tests and enable some
11723         previously disabled tests.
11724         * sysdeps/i386/fpu/libm-test-ulps: Update.
11725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11726
11727 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11728             Carlos O'Donell  <carlos_odonell@mentor.com>
11729
11730         * nss/makedb.c (is_prime): Assert that input is odd and greater
11731         than 4.  Note that fact in a comment too.
11732         (next_prime): Add 4 to input.
11733
11734 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11735
11736         [BZ #11741]
11737         * libio/Makefile (tests): Add test case tst-fwrite-error.
11738         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11739         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11740         * libio/tst-fwrite-error.c: New test case.
11741
11742 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11743
11744         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11745         before casting to void *.
11746         * include/libc-internal.h (__pointer_type): New macro.
11747         (__integer_if_pointer_type_sub): Likewise.
11748         (__integer_if_pointer_type): Likewise.
11749         (cast_to_integer): Likewise.
11750         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11751         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11752         before casting to atomic64_t.
11753         (atomic_exchange_acq): Likewise.
11754         (__arch_exchange_and_add_body): Likewise.
11755         (__arch_add_body): Likewise.
11756         (atomic_add_negative): Likewise.
11757         (atomic_add_zero): Likewise.
11758
11759 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11760
11761         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11762         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11763         (add_fdes): Likewise.
11764         (linear_search_fdes): Likewise.
11765         (binary_search_unencoded_fdes): Likewise.
11766
11767 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11768
11769         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11770
11771 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11772
11773         * configure.in: Autodetect C++ header directories.
11774         * configure: Regenerated.
11775
11776 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11777
11778         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11779
11780 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11781
11782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11783
11784 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11787         LDBL_MANT_DIG == 106]: Disable some tests.
11788         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11789         Likewise.
11790         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11791         Likewise.
11792
11793         [BZ #14871]
11794         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11795         input for small inputs.  Return +/- pi/2 for large inputs.
11796         * math/libm-test.inc (atan_test): Add more tests.
11797
11798         * sysdeps/generic/unwind-dw2-fde-glibc.c
11799         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11800         __attribute__ ((unused)).
11801
11802         [BZ #14645]
11803         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11804         x * y if x and y are nonzero and z is zero.
11805
11806         [BZ #14811]
11807         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11808         nonzero exponents with absolute value below 0x1p-117 to +/-
11809         0x1p-117.
11810
11811         [BZ #14869]
11812         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11813         up arguments below 2**-450, not just those below 2**-500.
11814         * math/libm-test.inc (hypot_test): Add another test.
11815
11816         [BZ #14868]
11817         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11818         Return a+b for ratio over 2**120, not 2**60.
11819         * math/libm-test.inc (hypot_test): Add another test.
11820
11821         * math/libm-test.inc (clog_test): Use
11822         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11823         (clog10_test): Likewise.
11824
11825         [BZ #6778]
11826         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11827
11828 2012-11-22  Andreas Schwab  <schwab@suse.de>
11829
11830         * sysdeps/i386/fpu/libm-test-ulps: Update.
11831
11832 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11833
11834         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11835         printf output with newline.
11836
11837 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11838
11839         [BZ #14865]
11840         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11841         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11842         -z nodlopen, -z initfirst and -z execstack support.
11843         * configure: Regenerated.
11844
11845         * elf/elf.h (DF_1_NODIRECT): New macro.
11846         (DF_1_IGNMULDEF): Likewise.
11847         (DF_1_NOKSYMS): Likewise.
11848         (DF_1_NOHDR): Likewise.
11849         (DF_1_EDITED): Likewise.
11850         (DF_1_NORELOC): Likewise.
11851         (DF_1_SYMINTPOSE): Likewise.
11852         (DF_1_GLOBAUDIT): Likewise.
11853         (DF_1_SINGLETON): Likewise.
11854         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11855         DT_1_SUPPORTED_MASK bits.
11856         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11857
11858 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11859
11860         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11861
11862 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11863
11864         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11865         macro.
11866
11867         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11868         (sendmmsg): Move declarations...
11869         * socket/sys/socket.h: ... here.
11870         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11871         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11872         include it from...
11873         * socket/recvmmsg.c: ... this new file.
11874         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11875         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11876         definition of __sendmmsg hidden.
11877         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11878         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11879         Move ENOSYS stub into and include it from...
11880         * socket/sendmmsg.c: ... this new file.
11881         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11882         (sysdep_routines): Move recvmmsg and sendmmsg...
11883         * socket/Makefile (routines): ... here.
11884         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11885         (GLIBC_PRIVATE): Add __sendmmsg.
11886         * include/sys/socket.h (__sendmmsg): Add declarations.
11887         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11888         sendmmsg.
11889
11890 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11891
11892         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11893         variable I1 with __attribute__ ((unused)).
11894         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11895
11896 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11897
11898         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11899         DUMMY variables with __attribute__ ((unused)).
11900
11901         * bits/byteswap.h: Include <bits/types.h>.
11902         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11903
11904 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11905
11906         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11907         string_t.  Do not manually set errno.
11908         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11909         length with __strnlen.  Make sure to both set errno and return it on
11910         failure.
11911
11912 2012-11-19  David S. Miller  <davem@davemloft.net>
11913
11914         With help from Joseph Myers.
11915         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
11916         very large arguments properly.
11917         * math/libm-test.inc (atan_test): New tests.
11918         (atan2_test): New tests.
11919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11920         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11921
11922 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11923
11924         [BZ #14856]
11925         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
11926         Define to 3.
11927
11928         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
11929         [POSIX] (EADDRNOTAVAIL): Likewise.
11930         [POSIX] (EAFNOSUPPORT): Likewise.
11931         [POSIX] (EALREADY): Likewise.
11932         [POSIX] (ECONNABORTED): Likewise.
11933         [POSIX] (ECONNREFUSED): Likewise.
11934         [POSIX] (ECONNRESET): Likewise.
11935         [POSIX] (EDESTADDRREQ): Likewise.
11936         [POSIX] (EDQUOT): Likewise.
11937         [POSIX] (EHOSTUNREACH): Likewise.
11938         [POSIX] (EIDRM): Likewise.
11939         [POSIX] (EISCONN): Likewise.
11940         [POSIX] (ELOOP): Likewise.
11941         [POSIX] (EMULTIHOP): Likewise.
11942         [POSIX] (ENETDOWN): Likewise.
11943         [POSIX] (ENETUNREACH): Likewise.
11944         [POSIX] (ENOBUFS): Likewise.
11945         [POSIX] (ENODATA): Likewise.
11946         [POSIX] (ENOLINK): Likewise.
11947         [POSIX] (ENOMSG): Likewise.
11948         [POSIX] (ENOPROTOOPT): Likewise.
11949         [POSIX] (ENOSR): Likewise.
11950         [POSIX] (ENOSTR): Likewise.
11951         [POSIX] (ENOTCONN): Likewise.
11952         [POSIX] (ENOTSOCK): Likewise.
11953         [POSIX] (EOPNOTSUPP): Likewise.
11954         [POSIX] (EOVERFLOW): Likewise.
11955         [POSIX] (EPROTO): Likewise.
11956         [POSIX] (EPROTONOSUPPORT): Likewise.
11957         [POSIX] (EPROTOTYPE): Likewise.
11958         [POSIX] (ESTALE): Likewise.
11959         [POSIX] (ETIME): Likewise.
11960         [POSIX] (ETXTBSY): Likewise.
11961         [POSIX] (EWOULDBLOCK): Likewise.
11962         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
11963         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
11964         [POSIX] (SEEK_CUR): Likewise.
11965         [POSIX] (SEEK_END): Likewise.
11966         [POSIX || UNIX98] (mode_t): Do not require.
11967         [POSIX] (off_t): Likewise.
11968         [POSIX] (pid_t): Likewise.
11969         [POSIX] (sys/stat.h): Do not allow header.
11970         [POSIX] (unistd.h): Likewise.
11971         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
11972         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
11973         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
11974         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
11975         require.
11976         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
11977         sigevent): Specify elements.
11978         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
11979         entry.
11980         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
11981         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
11982
11983         * conform/data/cpio.h-data [POSIX]: Disable whole file.
11984         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
11985         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
11986         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
11987         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
11988         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
11989         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
11990         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
11991         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
11992         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
11993         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
11994         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
11995         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
11996         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
11997         Likewise.
11998         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
11999         Likewise.
12000         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
12001         Likewise.
12002         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
12003         Likewise.
12004         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
12005         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
12006         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
12007         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
12008         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
12009         Specify lower bound on value.
12010         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
12011         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
12012         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
12013         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
12014         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
12015         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
12016         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
12017         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
12018         value.
12019         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
12020         as optional.
12021         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
12022         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
12023         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
12024         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
12025         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
12026         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
12027         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
12028         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
12029         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
12030         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
12031         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
12032         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
12033         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
12034         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
12035         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
12036         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
12037         entry.
12038         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
12039         optional.
12040         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
12041         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
12042         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
12043         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
12044         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
12045         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
12046         Likewise.
12047         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
12048         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
12049         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
12050         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
12051         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
12052         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
12053         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
12054         as optional.
12055         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
12056         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
12057         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
12058         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
12059         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
12060         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
12061         specify as optional.
12062         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
12063         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
12064         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
12065         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
12066         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
12067         [XPG3] (NL_LANGMAX): Likewise.
12068         [POSIX || XPG3] (NL_MSGMAX): Likewise.
12069         [POSIX || XPG3] (NL_NMAX): Likewise.
12070         [POSIX || XPG3] (NL_SETMAX): Likewise.
12071         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
12072         [XPG3] (NZERO): Likewise.
12073         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
12074         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
12075         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
12076         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
12077         (REG_ERANGE): Expect.
12078         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
12079         optional-constant.
12080         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
12081         Use (void) in prototype.
12082         [POSIX] (*_t): Allow.
12083         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
12084         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
12085         (WRDE_BADVAL): Expect.
12086
12087         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
12088         expect.
12089         [XPG3 || XPG4] (O_RSYNC): Likewise.
12090         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
12091         Likewise.
12092         [XPG3 || XPG4] (pthread_sigmask): Likewise.
12093         [XPG3 || XPG4] (sigqueue): Likewise.
12094         [XPG3 || XPG4] (sigtimedwait): Likewise.
12095         [XPG3 || XPG4] (sigwaitinfo): Likewise.
12096         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
12097         [XPG3 || XPG4] (vsnprintf): Likewise.
12098         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
12099         Likewise.
12100         [XPG3 || XPG4] (blksize_t): Likewise.
12101         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
12102         Likewise.
12103         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
12104         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
12105         [XPG3 || XPG4] (struct itimerspec): Likewise.
12106         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
12107         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
12108         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
12109         [XPG3 || XPG4] (clockid_t): Likewise.
12110         [XPG3 || XPG4] (timer_t): Likewise.
12111         [XPG3 || XPG4] (clock_getres): Likewise.
12112         [XPG3 || XPG4] (clock_gettime): Likewise.
12113         [XPG3 || XPG4] (clock_settime): Likewise.
12114         [XPG3 || XPG4] (nanosleep): Likewise.
12115         [XPG3 || XPG4] (timer_create): Likewise.
12116         [XPG3 || XPG4] (timer_delete): Likewise.
12117         [XPG3 || XPG4] (timer_gettime): Likewise.
12118         [XPG3 || XPG4] (timer_getoverrun): Likewise.
12119         [XPG3 || XPG4] (timer_settime): Likewise.
12120         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
12121         [XPG3 || XPG4] (getlogin_r): Likewise.
12122         [XPG3 || XPG4] (pread): Likewise.
12123         [XPG3 || XPG4] (pthread_atfork): Likewise.
12124         [XPG3 || XPG4] (pwrite): Likewise.
12125
12126         [BZ #14835]
12127         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
12128         <bits/siginfo.h>.
12129
12130 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12131
12132         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
12133         finalizing MALLSTREAM.
12134
12135         * sysdeps/mach/hurd/syncfs.c: New file.
12136
12137 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12138
12139         [BZ #14719]
12140         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
12141         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
12142         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
12143         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
12144         (_nss_dns_gethostbyname4_r): Likewise.
12145         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
12146         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
12147
12148 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
12149
12150         [BZ #13763]
12151         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
12152
12153 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
12154
12155         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
12156         * elf/cache.c (print_entry): Print ",AArch64" for
12157         FLAG_AARCH64_LIB64
12158
12159         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
12160         * elf/cache.c (print_entry): Print ",hard-float" for
12161         FLAG_ARM_LIBHF.
12162
12163 2012-11-18  David S. Miller  <davem@davemloft.net>
12164
12165         With help from Joseph Myers.
12166         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
12167         cutoff to 2**-13.
12168         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
12169         cutoff to 2**-25.
12170         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
12171         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
12172         small.
12173         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
12174         * math/libm-test.inc (y0_test): New tests.
12175         (y1_test): New tests.
12176         * sysdeps/i386/fpu/libm-test-ulps: Update.
12177         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12178         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12179
12180 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
12181
12182         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
12183         64-bit targets.
12184         * configure: Regenerated.
12185
12186 2012-11-17  David S. Miller  <davem@davemloft.net>
12187
12188         [BZ #14811]
12189         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
12190         nonzero exponents with absolute value below 0x1p-128 to +/-
12191         0x1p-128.
12192
12193 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
12194
12195         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
12196
12197         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
12198
12199         * posix/getconf-speclist.c: New file.
12200         * posix/posix-envs.def: Likewise.
12201         * posix/confstr.c (START_ENV_GROUP): New macro.
12202         (END_ENV_GROUP): Likewise.
12203         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12204         (KNOWN_PRESENT_ENV_STRING): Likewise.
12205         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12206         (UNKNOWN_ENVIRONMENT): Likewise.
12207         (confstr): Include posix-envs.def instead of handling
12208         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
12209         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
12210         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
12211         (END_ENV_GROUP): Likewise.
12212         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12213         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12214         (UNKNOWN_ENVIRONMENT): Likewise.
12215         (__sysconf): Include posix-envs.def instead of handling associated
12216         cases directly here.
12217         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
12218         preprocessing getconf-speclist.c rather than running getconf or
12219         generating empty file.
12220
12221 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
12222
12223         * scripts/check-local-headers.sh: Ignore 'mach' headers.
12224
12225 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
12226
12227         [BZ #14672]
12228         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
12229
12230 2012-11-16  David S. Miller  <davem@davemloft.net>
12231
12232         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
12233         smaller than LDBL_EPSILON/2.0L, just return xm1.
12234
12235 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
12236
12237         * elf/tst-array1.c (init): Set constructor priority to 1000.
12238         (fini): Set destructor priority to 1000.
12239         * elf/tst-array2dep.c: Likewise.
12240
12241 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12242
12243         [BZ #11741]
12244         * libio/fileops.c (_IO_new_file_write): Correctly return error.
12245         (_IO_new_file_xsputn): Also return EOF if none of the input
12246         data was written when overflow failed.
12247         * libio/iopadn.c (_IO_padn): Likewise.
12248         * libio/iowpadn.c (_IO_wpadn): Likewise.
12249         * stdio-common/tst-put-error.c: Add copyright notice.
12250         (do_test): Add case for printing padded string.
12251         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
12252         _IO_padn returned error.
12253         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
12254         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
12255         return EOF.
12256
12257 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12258
12259         * libio/libioP.h: Add comment note that the references to C++
12260         bits are now obsolete.
12261
12262 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12263
12264         * math/libm-test.inc (check_complex): Use asprintf.
12265
12266 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
12267
12268         * debug/pcprofiledump.c (print_version): Update copyright year.
12269         * malloc/memusagestat.c (print_version): Likewise.
12270
12271 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
12272
12273         [BZ #14831]
12274         * elf/Makefile (tests): Add tst-audit8.
12275         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
12276         ($(objpfx)tst-audit8.out): New target.
12277         (tst-audit8-ENV): New variable.
12278         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
12279         audit if l_reloc_result is NULL.
12280         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
12281         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
12282         * elf/tst-audit8.c: New file.
12283
12284 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12285
12286         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
12287         * misc/Makefile (CFLAGS-select.c): Define.
12288         * posix/Makefile (CFLAGS-pause.c): Define.
12289
12290 2012-11-13  David S. Miller  <davem@davemloft.net>
12291
12292         * crypt/Makefile: Move test targets after toplevel Rules
12293         inclusion.  Grab any necessary sysdep routines when linking.
12294         * crypt/md5.c (md5_process_block): Remove define, we will always
12295         name it __md5_process_block.
12296         (md5_finish_ctx): Update md5_process_block call.
12297         (md5_stream): Likewise.
12298         (md5_process_bytes): Likewise.
12299         (md5_process_block): Rename to __md5_process_block and move to ...
12300         * crypt/md5-block.c: ... here.
12301         * crypt/sha256.c (sha256_process_block): Move to ...
12302         * crypt/sha256-block.c: ... here.
12303         * crypt/sha512.c (sha512_process_block): Move to ...
12304         * crypt/sha512-block.c: ... here.
12305         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
12306         path.
12307         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
12308         * sysdeps/sparc/sparc64/multiarch/Makefile
12309         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
12310         crypt subdir.
12311         (localedef-aux): Add md5 crypto assembler when in locale subdir.
12312         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
12313         multiarch changes.
12314         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
12315         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
12316         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
12317         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
12318         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
12319         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
12320         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
12321         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
12322         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
12323         file.
12324         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
12325         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
12326         file.
12327         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
12328
12329 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
12330
12331         * timezone/tzselect.ksh: Update from tzcode git revision
12332         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
12333         * timezone/zdump.c: Likewise.
12334         * timezone/zic.c: Likewise.
12335         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
12336         in TZVERSION setting, not $(PKGVERSION).
12337         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
12338         REPORT_BUGS_TO settings.
12339
12340         [BZ #14838]
12341         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
12342         macro.
12343
12344 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12345
12346         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
12347         detection to immediately after _FP_ROUND().
12348         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
12349         bits are 0.
12350
12351 2012-11-11  David S. Miller  <davem@davemloft.net>
12352
12353         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
12354         inttypes.h
12355         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
12356         __close rather than their public counterparts.
12357
12358 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
12359
12360         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
12361         file.
12362         [UNIX98] (sem_timedwait): Do not expect.
12363         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
12364         [XPG4 || UNIX98] (sockatmark): Do not expect.
12365         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
12366         (clock_getcpuclockid): Do not expect.
12367         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
12368         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
12369         Do not expect.
12370         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
12371         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
12372         [UNIX98] (vwscanf): Likewise.
12373         [UNIX98] (vswscanf): Likewise.
12374
12375 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
12376
12377         * timezone/version.h: Remove file.
12378         * timezone/README: Do not refer to version.h.
12379         * timezone/Makefile ($(objpfx)zic.o): New dependency on
12380         $(objpfx)version.h.
12381         ($(objpfx)zdump.o): Likewise.
12382         ($(objpfx)version.h): New target.
12383
12384         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
12385         2012i.
12386         * timezone/README: Don't mention modification to tzselect.ksh.
12387         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
12388         work on unmodified tzselect.ksh.  Substitute version numbers in
12389         tzselect.ksh.
12390
12391         * Makefile (format-me): Remove.
12392         (INSTALL): Adjust indentation.  Use commands directly instead of
12393         using $(format-me).
12394
12395         * aclocal.m4 (ACX_PKGVERSION): New macro.
12396         (ACX_BUGURL): Likewise.
12397         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
12398         (PKGVERSION): New AC_DEFINE_UNQUOTED.
12399         (REPORT_BUGS_TO): Likewise.
12400         * configure: Regenerated.
12401         * config.h.in (PKGVERSION): New macro.
12402         (REPORT_BUGS_TO): Likewise.
12403         * config.make.in (PKGVERSION): New variable.
12404         (PKGVERSION_TEXI): Likewise.
12405         (REPORT_BUGS_TO): Likewise.
12406         (REPORT_BUGS_TEXI): Likewise.
12407         * Makefile (format-me): Use -I$(common-objpfx)manual.
12408         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
12409         ($(common-objpfx)manual/%): New target.
12410         (manual/%): Remove target.
12411         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
12412         (print_version): Use PKGVERSION.
12413         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
12414         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
12415         and REPORT_BUGS_TO.
12416         ($(objpfx)xtrace): Likewise.
12417         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
12418         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
12419         (print_version): Use PKGVERSION.
12420         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
12421         (do_version): Use PKGVERSION.
12422         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
12423         REPORT_BUGS_TO.
12424         (common-ldd-rewrite): Likewise.
12425         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
12426         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
12427         (print_version): Use PKGVERSION.
12428         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
12429         * elf/pldd.c (argp_program_bug_address): Remove variable.
12430         (more_help): New function.
12431         (argp): Use more_help.
12432         (print_version): Use PKGVERSION.
12433         * elf/sln.c (main): Use PKGVERSION.
12434         (usage): Use REPORT_BUGS_TO.
12435         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
12436         (top level): Use PKGVERSION.
12437         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
12438         (print_version): Use PKGVERSION.
12439         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
12440         (print_version): Use PKGVERSION.
12441         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
12442         (print_version): Use PKGVERSION.
12443         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
12444         (print_version): Use PKGVERSION.
12445         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
12446         (print_version): Use PKGVERSION.
12447         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
12448         (print_version): Use PKGVERSION.
12449         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
12450         and BUGURL.
12451         ($(objpfx)memusage): Likewise.
12452         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
12453         (do_version): Use PKGVERSION.
12454         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
12455         (print_version): Use PKGVERSION.
12456         * malloc/mtrace.pl ($PACKAGE): Remove variable.
12457         ($PKGVERSION): New variable.
12458         ($REPORT_BUGS_TO): Likewise.
12459         (usage): Use $REPORT_BUGS_TO.
12460         (top level): Use $PKGVERSION.
12461         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
12462         ($(objpfx)pkgvers.texi): New rule.
12463         ($(objpfx)stamp-pkgvers): Likewise.
12464         * manual/install.texi: Include pkgvers.texi.
12465         (--with-pkgversion): Document new configure option.
12466         (--with-bugurl): Likewise.
12467         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
12468         than necessarily for this particular distribution.  Use
12469         REPORT_BUGS_TO for where to report bugs.
12470         * INSTALL: Regenerated.
12471         * manual/libc.texinfo: Include pkgvers.texi.
12472         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
12473         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
12474         (print_version): Use PKGVERSION.
12475         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
12476         (print_version): Use PKGVERSION.
12477         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
12478         (print_version): Use PKGVERSION.
12479         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
12480         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
12481         macro.
12482         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
12483         (print_version): Use PKGVERSION.
12484         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
12485         (print_version): Use PKGVERSION.
12486         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
12487         and PKGVERSION.
12488
12489         * timezone/checktab.awk: Update from tzcode 2012i.
12490         * timezone/ialloc.c: Likewise.
12491         * timezone/private.h: Likewise.
12492         * timezone/scheck.c: Likewise.
12493         * timezone/tzfile.h: Likewise.
12494         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
12495         (TZVERSION): Hardcode tzcode version number.
12496         * timezone/zdump.c: Update from tzcode 2012i.
12497         * timezone/zic.c: Likewise.
12498         * timezone/version.h: New file.
12499         * timezone/README: Describe version.h.  Update upstream location.
12500
12501         [BZ #14824]
12502         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
12503         (mktemp): Enable declaration.
12504         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
12505         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
12506         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
12507         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
12508         Likewise.
12509         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12510         Likewise.
12511         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
12512         Likewise.
12513         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
12514         Likewise.
12515         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
12516         Likewise.
12517         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
12518         Likewise.
12519
12520         [BZ #14821]
12521         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
12522         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
12523         for copies of such integer values.
12524         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12525         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12526
12527 2012-11-09  Andreas Jaeger  <aj@suse.de>
12528
12529         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
12530         definitions and declarations that are provided by
12531         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12532
12533 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12534
12535         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
12536         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
12537         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12538         definition.
12539
12540 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12541
12542         * elf/elf.h: Update comment before AArch64 relocations.
12543
12544 2012-11-07  David S. Miller  <davem@davemloft.net>
12545
12546         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
12547         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12548         (__start_context): Declare.
12549         (__makecontext_ret): Delete.
12550         (__makecontext): Hook up __start_context instead of
12551         __makecontext_ret.
12552         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12553         (sysdep_routines): Add __start_context when in stdlib.
12554
12555 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12556
12557         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
12558         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
12559         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
12560         hardcoded "nm".
12561         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
12562         (READELF): New variable.  Use it instead of hardcoded "readelf".
12563
12564 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12565
12566         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
12567         * sysdeps/x86/Makefile: Here.
12568         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
12569         * sysdeps/x86/tst-xmmymm.sh: This.
12570
12571 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12572
12573         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
12574         expectations.
12575         [UNIX98] (pthread_barrier_t): Do not expect.
12576         [UNIX98] (pthread_barrierattr_t): Likewise.
12577         [UNIX98] (pthread_spinlock_t): Likewise.
12578         [UNIX98] (pthread_barrier_destroy): Likewise.
12579         [UNIX98] (pthread_barrier_init): Likewise.
12580         [UNIX98] (pthread_barrier_wait): Likewise.
12581         [UNIX98] (pthread_barrierattr_destroy): Likewise.
12582         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
12583         [UNIX98] (pthread_barrierattr_init): Likewise.
12584         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
12585         [UNIX98] (pthread_getcpuclockid): Likewise.
12586         [UNIX98] (pthread_mutex_timedlock): Likewise.
12587         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
12588         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
12589         [UNIX98] (pthread_sigmask): Likewise.
12590         [UNIX98] (pthread_spin_destroy): Likewise.
12591         [UNIX98] (pthread_spin_init): Likewise.
12592         [UNIX98] (pthread_spin_lock): Likewise.
12593         [UNIX98] (pthread_spin_trylock): Likewise.
12594         [UNIX98] (pthread_spin_unlock): Likewise.
12595         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
12596         Do not expect.
12597         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
12598         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
12599         [XPG3 || XPG4] (pthread_cond_t): Likewise.
12600         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
12601         [XPG3 || XPG4] (pthread_key_t): Likewise.
12602         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
12603         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
12604         [XPG3 || XPG4] (pthread_once_t): Likewise.
12605         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
12606         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
12607         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
12608         [XPG3 || XPG4] (pthread_t): Likewise.
12609
12610         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
12611         not expect.
12612         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
12613
12614         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
12615         Change function return type to int.
12616
12617         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
12618         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12619         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
12620         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
12621         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
12622         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12623         [!POSIX] (posix_madvise): Likewise.
12624         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
12625         && !UNIX98].
12626         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
12627         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
12628         (mode_t): Likewise.
12629         (posix_mem_offset): Likewise.
12630         (posix_typed_mem_get_info): Likewise.
12631         (posix_typed_mem_open): Likewise.
12632
12633         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
12634         Change condition to [XOPEN2K8].
12635
12636         * conform/conformtest.pl: Preprocess allow-header data with -x c
12637         instead of from stdin.
12638         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
12639         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
12640         [C99-based standards] (cerfc): Likewise.
12641         [C99-based standards] (cexp2): Likewise.
12642         [C99-based standards] (cexpm1): Likewise.
12643         [C99-based standards] (clog10): Likewise.
12644         [C99-based standards] (clog1p): Likewise.
12645         [C99-based standards] (clog2): Likewise.
12646         [C99-based standards] (clgamma): Likewise.
12647         [C99-based standards] (ctgamma): Likewise.
12648         [C99-based standards] (cerff): Likewise.
12649         [C99-based standards] (cerfcf): Likewise.
12650         [C99-based standards] (cexp2f): Likewise.
12651         [C99-based standards] (cexpm1f): Likewise.
12652         [C99-based standards] (clog10f): Likewise.
12653         [C99-based standards] (clog1pf): Likewise.
12654         [C99-based standards] (clog2f): Likewise.
12655         [C99-based standards] (clgammaf): Likewise.
12656         [C99-based standards] (ctgammaf): Likewise.
12657         [C99-based standards] (cerfl): Likewise.
12658         [C99-based standards] (cerfcl): Likewise.
12659         [C99-based standards] (cexp2l): Likewise.
12660         [C99-based standards] (cexpm1l): Likewise.
12661         [C99-based standards] (clog10l): Likewise.
12662         [C99-based standards] (clog1pl): Likewise.
12663         [C99-based standards] (clog2l): Likewise.
12664         [C99-based standards] (clgammal): Likewise.
12665         [C99-based standards] (ctgammal): Likewise.
12666         * conform/data/inttypes.h-data [C99-based standards]: Include
12667         stdint.h-data.  Remove all expectations for stdint.h contents.
12668         [C99-based standards] (PRI*): Do not allow.
12669         [C99-based standards] (SCN*): Likewise.
12670         [C99-based standards] (*_t): Likewise.
12671         [C99-based-standards] (PRId8): Expect macro.
12672         [C99-based-standards] (PRIi8): Likewise.
12673         [C99-based-standards] (PRIo8): Likewise.
12674         [C99-based-standards] (PRIu8): Likewise.
12675         [C99-based-standards] (PRIx8): Likewise.
12676         [C99-based-standards] (PRIX8): Likewise.
12677         [C99-based-standards] (SCNd8): Likewise.
12678         [C99-based-standards] (SCNi8): Likewise.
12679         [C99-based-standards] (SCNo8): Likewise.
12680         [C99-based-standards] (SCNu8): Likewise.
12681         [C99-based-standards] (SCNx8): Likewise.
12682         [C99-based-standards] (PRIdLEAST8): Likewise.
12683         [C99-based-standards] (PRIiLEAST8): Likewise.
12684         [C99-based-standards] (PRIoLEAST8): Likewise.
12685         [C99-based-standards] (PRIuLEAST8): Likewise.
12686         [C99-based-standards] (PRIxLEAST8): Likewise.
12687         [C99-based-standards] (PRIXLEAST8): Likewise.
12688         [C99-based-standards] (SCNdLEAST8): Likewise.
12689         [C99-based-standards] (SCNiLEAST8): Likewise.
12690         [C99-based-standards] (SCNoLEAST8): Likewise.
12691         [C99-based-standards] (SCNuLEAST8): Likewise.
12692         [C99-based-standards] (SCNxLEAST8): Likewise.
12693         [C99-based-standards] (PRIdFAST8): Likewise.
12694         [C99-based-standards] (PRIiFAST8): Likewise.
12695         [C99-based-standards] (PRIoFAST8): Likewise.
12696         [C99-based-standards] (PRIuFAST8): Likewise.
12697         [C99-based-standards] (PRIxFAST8): Likewise.
12698         [C99-based-standards] (PRIXFAST8): Likewise.
12699         [C99-based-standards] (SCNdFAST8): Likewise.
12700         [C99-based-standards] (SCNiFAST8): Likewise.
12701         [C99-based-standards] (SCNoFAST8): Likewise.
12702         [C99-based-standards] (SCNuFAST8): Likewise.
12703         [C99-based-standards] (SCNxFAST8): Likewise.
12704         [C99-based-standards] (PRId16): Likewise.
12705         [C99-based-standards] (PRIi16): Likewise.
12706         [C99-based-standards] (PRIo16): Likewise.
12707         [C99-based-standards] (PRIu16): Likewise.
12708         [C99-based-standards] (PRIx16): Likewise.
12709         [C99-based-standards] (PRIX16): Likewise.
12710         [C99-based-standards] (SCNd16): Likewise.
12711         [C99-based-standards] (SCNi16): Likewise.
12712         [C99-based-standards] (SCNo16): Likewise.
12713         [C99-based-standards] (SCNu16): Likewise.
12714         [C99-based-standards] (SCNx16): Likewise.
12715         [C99-based-standards] (PRIdLEAST16): Likewise.
12716         [C99-based-standards] (PRIiLEAST16): Likewise.
12717         [C99-based-standards] (PRIoLEAST16): Likewise.
12718         [C99-based-standards] (PRIuLEAST16): Likewise.
12719         [C99-based-standards] (PRIxLEAST16): Likewise.
12720         [C99-based-standards] (PRIXLEAST16): Likewise.
12721         [C99-based-standards] (SCNdLEAST16): Likewise.
12722         [C99-based-standards] (SCNiLEAST16): Likewise.
12723         [C99-based-standards] (SCNoLEAST16): Likewise.
12724         [C99-based-standards] (SCNuLEAST16): Likewise.
12725         [C99-based-standards] (SCNxLEAST16): Likewise.
12726         [C99-based-standards] (PRIdFAST16): Likewise.
12727         [C99-based-standards] (PRIiFAST16): Likewise.
12728         [C99-based-standards] (PRIoFAST16): Likewise.
12729         [C99-based-standards] (PRIuFAST16): Likewise.
12730         [C99-based-standards] (PRIxFAST16): Likewise.
12731         [C99-based-standards] (PRIXFAST16): Likewise.
12732         [C99-based-standards] (SCNdFAST16): Likewise.
12733         [C99-based-standards] (SCNiFAST16): Likewise.
12734         [C99-based-standards] (SCNoFAST16): Likewise.
12735         [C99-based-standards] (SCNuFAST16): Likewise.
12736         [C99-based-standards] (SCNxFAST16): Likewise.
12737         [C99-based-standards] (PRId32): Likewise.
12738         [C99-based-standards] (PRIi32): Likewise.
12739         [C99-based-standards] (PRIo32): Likewise.
12740         [C99-based-standards] (PRIu32): Likewise.
12741         [C99-based-standards] (PRIx32): Likewise.
12742         [C99-based-standards] (PRIX32): Likewise.
12743         [C99-based-standards] (SCNd32): Likewise.
12744         [C99-based-standards] (SCNi32): Likewise.
12745         [C99-based-standards] (SCNo32): Likewise.
12746         [C99-based-standards] (SCNu32): Likewise.
12747         [C99-based-standards] (SCNx32): Likewise.
12748         [C99-based-standards] (PRIdLEAST32): Likewise.
12749         [C99-based-standards] (PRIiLEAST32): Likewise.
12750         [C99-based-standards] (PRIoLEAST32): Likewise.
12751         [C99-based-standards] (PRIuLEAST32): Likewise.
12752         [C99-based-standards] (PRIxLEAST32): Likewise.
12753         [C99-based-standards] (PRIXLEAST32): Likewise.
12754         [C99-based-standards] (SCNdLEAST32): Likewise.
12755         [C99-based-standards] (SCNiLEAST32): Likewise.
12756         [C99-based-standards] (SCNoLEAST32): Likewise.
12757         [C99-based-standards] (SCNuLEAST32): Likewise.
12758         [C99-based-standards] (SCNxLEAST32): Likewise.
12759         [C99-based-standards] (PRIdFAST32): Likewise.
12760         [C99-based-standards] (PRIiFAST32): Likewise.
12761         [C99-based-standards] (PRIoFAST32): Likewise.
12762         [C99-based-standards] (PRIuFAST32): Likewise.
12763         [C99-based-standards] (PRIxFAST32): Likewise.
12764         [C99-based-standards] (PRIXFAST32): Likewise.
12765         [C99-based-standards] (SCNdFAST32): Likewise.
12766         [C99-based-standards] (SCNiFAST32): Likewise.
12767         [C99-based-standards] (SCNoFAST32): Likewise.
12768         [C99-based-standards] (SCNuFAST32): Likewise.
12769         [C99-based-standards] (SCNxFAST32): Likewise.
12770         [C99-based-standards] (PRId64): Likewise.
12771         [C99-based-standards] (PRIi64): Likewise.
12772         [C99-based-standards] (PRIo64): Likewise.
12773         [C99-based-standards] (PRIu64): Likewise.
12774         [C99-based-standards] (PRIx64): Likewise.
12775         [C99-based-standards] (PRIX64): Likewise.
12776         [C99-based-standards] (SCNd64): Likewise.
12777         [C99-based-standards] (SCNi64): Likewise.
12778         [C99-based-standards] (SCNo64): Likewise.
12779         [C99-based-standards] (SCNu64): Likewise.
12780         [C99-based-standards] (SCNx64): Likewise.
12781         [C99-based-standards] (PRIdLEAST64): Likewise.
12782         [C99-based-standards] (PRIiLEAST64): Likewise.
12783         [C99-based-standards] (PRIoLEAST64): Likewise.
12784         [C99-based-standards] (PRIuLEAST64): Likewise.
12785         [C99-based-standards] (PRIxLEAST64): Likewise.
12786         [C99-based-standards] (PRIXLEAST64): Likewise.
12787         [C99-based-standards] (SCNdLEAST64): Likewise.
12788         [C99-based-standards] (SCNiLEAST64): Likewise.
12789         [C99-based-standards] (SCNoLEAST64): Likewise.
12790         [C99-based-standards] (SCNuLEAST64): Likewise.
12791         [C99-based-standards] (SCNxLEAST64): Likewise.
12792         [C99-based-standards] (PRIdFAST64): Likewise.
12793         [C99-based-standards] (PRIiFAST64): Likewise.
12794         [C99-based-standards] (PRIoFAST64): Likewise.
12795         [C99-based-standards] (PRIuFAST64): Likewise.
12796         [C99-based-standards] (PRIxFAST64): Likewise.
12797         [C99-based-standards] (PRIXFAST64): Likewise.
12798         [C99-based-standards] (SCNdFAST64): Likewise.
12799         [C99-based-standards] (SCNiFAST64): Likewise.
12800         [C99-based-standards] (SCNoFAST64): Likewise.
12801         [C99-based-standards] (SCNuFAST64): Likewise.
12802         [C99-based-standards] (SCNxFAST64): Likewise.
12803         [C99-based-standards] (PRIdMAX): Likewise.
12804         [C99-based-standards] (PRIiMAX): Likewise.
12805         [C99-based-standards] (PRIoMAX): Likewise.
12806         [C99-based-standards] (PRIuMAX): Likewise.
12807         [C99-based-standards] (PRIxMAX): Likewise.
12808         [C99-based-standards] (PRIXMAX): Likewise.
12809         [C99-based-standards] (SCNdMAX): Likewise.
12810         [C99-based-standards] (SCNiMAX): Likewise.
12811         [C99-based-standards] (SCNoMAX): Likewise.
12812         [C99-based-standards] (SCNuMAX): Likewise.
12813         [C99-based-standards] (SCNxMAX): Likewise.
12814         [C99-based-standards] (PRIdPTR): Likewise.
12815         [C99-based-standards] (PRIiPTR): Likewise.
12816         [C99-based-standards] (PRIoPTR): Likewise.
12817         [C99-based-standards] (PRIuPTR): Likewise.
12818         [C99-based-standards] (PRIxPTR): Likewise.
12819         [C99-based-standards] (PRIXPTR): Likewise.
12820         [C99-based-standards] (SCNdPTR): Likewise.
12821         [C99-based-standards] (SCNiPTR): Likewise.
12822         [C99-based-standards] (SCNoPTR): Likewise.
12823         [C99-based-standards] (SCNuPTR): Likewise.
12824         [C99-based-standards] (SCNxPTR): Likewise.
12825         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12826         allow.
12827         * conform/data/stdint.h-data: Update comments to clarify
12828         requirements.
12829         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12830         type.
12831         [C99-based standards] (INT8_MAX): Likewise.
12832         [C99-based standards] (INT16_MIN): Likewise.
12833         [C99-based standards] (INT16_MAX): Likewise.
12834         [C99-based standards] (INT32_MIN): Likewise.
12835         [C99-based standards] (INT32_MAX): Likewise.
12836         [C99-based standards] (INT64_MIN): Likewise.
12837         [C99-based standards] (INT64_MAX): Likewise.
12838         [C99-based standards] (UINT8_MAX): Likewise.
12839         [C99-based standards] (UINT16_MAX): Likewise.
12840         [C99-based standards] (UINT32_MAX): Likewise.
12841         [C99-based standards] (UINT64_MAX): Likewise.
12842         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12843         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12844         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12845         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12846         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12847         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12848         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12849         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12850         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12851         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12852         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12853         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12854         [C99-based standards] (INT_FAST8_MIN): Likewise.
12855         [C99-based standards] (INT_FAST8_MAX): Likewise.
12856         [C99-based standards] (INT_FAST16_MIN): Likewise.
12857         [C99-based standards] (INT_FAST16_MAX): Likewise.
12858         [C99-based standards] (INT_FAST32_MIN): Likewise.
12859         [C99-based standards] (INT_FAST32_MAX): Likewise.
12860         [C99-based standards] (INT_FAST64_MIN): Likewise.
12861         [C99-based standards] (INT_FAST64_MAX): Likewise.
12862         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12863         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12864         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12865         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12866         [C99-based standards] (INTPTR_MIN): Likewise.
12867         [C99-based standards] (INTPTR_MAX): Likewise.
12868         [C99-based standards] (UINTPTR_MAX): Likewise.
12869         [C99-based standards] (INTMAX_MIN): Likewise.
12870         [C99-based standards] (INTMAX_MAX): Likewise.
12871         [C99-based standards] (UINTMAX_MAX): Likewise.
12872         [C99-based standards] (PTRDIFF_MIN): Likewise.
12873         [C99-based standards] (PTRDIFF_MAX): Likewise.
12874         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12875         [C99-based standards] (SIZE_MAX): Likewise.
12876         [C99-based standards] (WCHAR_MAX): Likewise.
12877         [C99-based standards] (WINT_MAX): Likewise.
12878         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12879         constraint on value.
12880         [C99-based standards] (WCHAR_MIN): Likewise.
12881         [C99-based standards] (WINT_MIN): Likewise.
12882         [C99-based standards] (*_t): Allow.
12883         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12884         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12885         Include math.h-data and complex.h-data.  Remove all expectations
12886         of math.h and complex.h contents.
12887         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12888         at end of line.
12889         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12890         (struct tm): Expect tag.
12891         [C99-based-standards] (wcstof): Expect function.
12892         [C99-based-standards] (wcstold): Likewise.
12893         [C99-based-standards] (wcstoll): Likewise.
12894         [C99-based-standards] (wcstoull): Likewise.
12895         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12896         macro-int-constant.  Specify type.
12897         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12898         constraint on value.
12899         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12900         Specify type.
12901         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12902         Specify value.
12903         [ISO C standards]: Do not allow headers.
12904         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12905         wcs[abcdefghijklmnopqrstuvwxyz]*.
12906         [ISO C standards] (*_t): Do not allow.
12907         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12908         Expect function.
12909         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12910         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12911         Specify type.
12912         [ISO C standards]: Do not allow headers.
12913         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
12914         is[abcdefghijklmnopqrstuvwxyz]*.
12915         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
12916         to[abcdefghijklmnopqrstuvwxyz]*.
12917         [ISO C standards] (*_t): Do not allow.
12918         * conform/data/stdalign.h-data: New file.
12919         * conform/data/stdbool.h-data: Likewise.
12920         * conform/data/stdnoreturn.h-data: Likewise.
12921
12922 2012-11-07  Roland McGrath  <roland@hack.frob.com>
12923
12924         [BZ #14815]
12925         * manual/filesys.texi (Directory Entries): Typo fix.
12926         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
12927
12928 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12929
12930         * elf/elf.h (EM_AARCH64): New macro.
12931         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
12932         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
12933         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
12934         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
12935         (R_AARCH64_TLSDESC): Likewise.
12936         (NT_ARM_TLS): Likewise.
12937         (NT_ARM_HW_BREAK): Likewise.
12938         (NT_ARM_HW_WATCH): Likewise.
12939
12940 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12941
12942         [BZ #14811]
12943         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
12944         (__ieee754_powl): Saturate nonzero exponents with absolute value
12945         below 0x1p-79 to +/- 0x1p-79.
12946         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
12947         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
12948         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
12949         nonzero exponents with absolute value below 0x1p-32 to +/-
12950         0x1p-32.
12951         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
12952         (__ieee754_powl): Saturate nonzero exponents with absolute value
12953         below 0x1p-79 to +/- 0x1p-79.
12954         * math/libm-test.inc (pow_test): Add more tests.
12955
12956 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12957
12958         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
12959         _dl_s390_cap_flags with kernel. Increase string length.
12960         (_dl_s390_platforms): Add z196 and zEC12.
12961
12962 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12963
12964         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
12965         Change XOPEN21K to XOPEN2K.
12966
12967 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12968
12969         * string/memmove.c: Use memcpy when possible.
12970
12971 2012-11-06  Andreas Jaeger  <aj@suse.de>
12972
12973         * po/eo.po: Update from translation team.
12974
12975 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
12976
12977         [BZ #14793]
12978         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
12979         exponent and small x and y exponents, scale x or y up.  Increase
12980         by 2 the exponent used in scaling up.
12981         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12982         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12983         * math/libm-test.inc (fma_test): Add more tests.
12984         (fma_test_towardzero): Likewise.
12985         (fma_test_downward): Likewise.
12986         (fma_test_upward): Likewise.
12987
12988 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
12989
12990         [BZ #14805]
12991         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
12992         fenv_t *.
12993
12994         [BZ #14801]
12995         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
12996         namespace for names of struct fields.
12997         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
12998         fenv_t fields.
12999         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
13000         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
13001
13002 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13003
13004         [BZ #3665]
13005         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
13006
13007 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13008
13009         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
13010         PTR_DEMANGLE.
13011
13012         [BZ #5246]
13013         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
13014         PTR_DEMANGLE.
13015
13016 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
13017
13018         [BZ #14797]
13019         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
13020         definitely overflow as x * y not x * y + z.
13021         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13022         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13023         * math/libm-test.inc (fma_test): Add more tests.
13024         (fma_test_towardzero): Likewise.
13025         (fma_test_downward): Likewise.
13026         (fma_test_upward): Likewise.
13027
13028 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13029
13030         [BZ #157]
13031
13032         * include/stub-tag.h: Remove file.
13033         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
13034         '#include' of it.
13035         * manual/maint.texi (Porting): Don't reference it.
13036         * Makerules ($(objpfx)stubs): Likewise.
13037         * dirent/closedir.c: Don't include <stub-tag.h>.
13038         * dirent/dirfd.c: Likewise.
13039         * dirent/fdopendir.c: Likewise.
13040         * dirent/getdents.c: Likewise.
13041         * dirent/getdents64.c: Likewise.
13042         * dirent/opendir.c: Likewise.
13043         * dirent/readdir.c: Likewise.
13044         * dirent/readdir64.c: Likewise.
13045         * dirent/readdir64_r.c: Likewise.
13046         * dirent/readdir_r.c: Likewise.
13047         * dirent/rewinddir.c: Likewise.
13048         * dirent/seekdir.c: Likewise.
13049         * dirent/telldir.c: Likewise.
13050         * gmon/profil.c: Likewise.
13051         * grp/setgroups.c: Likewise.
13052         * inet/if_index.c: Likewise.
13053         * io/access.c: Likewise.
13054         * io/chdir.c: Likewise.
13055         * io/chmod.c: Likewise.
13056         * io/chown.c: Likewise.
13057         * io/close.c: Likewise.
13058         * io/dup.c: Likewise.
13059         * io/dup2.c: Likewise.
13060         * io/dup3.c: Likewise.
13061         * io/euidaccess.c: Likewise.
13062         * io/faccessat.c: Likewise.
13063         * io/fchdir.c: Likewise.
13064         * io/fchmod.c: Likewise.
13065         * io/fchmodat.c: Likewise.
13066         * io/fchown.c: Likewise.
13067         * io/fchownat.c: Likewise.
13068         * io/fcntl.c: Likewise.
13069         * io/flock.c: Likewise.
13070         * io/fstatfs.c: Likewise.
13071         * io/fstatfs64.c: Likewise.
13072         * io/fstatvfs.c: Likewise.
13073         * io/fstatvfs64.c: Likewise.
13074         * io/futimens.c: Likewise.
13075         * io/fxstat.c: Likewise.
13076         * io/fxstat64.c: Likewise.
13077         * io/fxstatat.c: Likewise.
13078         * io/fxstatat64.c: Likewise.
13079         * io/getcwd.c: Likewise.
13080         * io/isatty.c: Likewise.
13081         * io/lchmod.c: Likewise.
13082         * io/lchown.c: Likewise.
13083         * io/link.c: Likewise.
13084         * io/linkat.c: Likewise.
13085         * io/lseek.c: Likewise.
13086         * io/lseek64.c: Likewise.
13087         * io/lxstat64.c: Likewise.
13088         * io/mkdir.c: Likewise.
13089         * io/mkdirat.c: Likewise.
13090         * io/mkfifo.c: Likewise.
13091         * io/mkfifoat.c: Likewise.
13092         * io/open.c: Likewise.
13093         * io/open64.c: Likewise.
13094         * io/openat.c: Likewise.
13095         * io/openat64.c: Likewise.
13096         * io/pipe.c: Likewise.
13097         * io/pipe2.c: Likewise.
13098         * io/poll.c: Likewise.
13099         * io/posix_fadvise.c: Likewise.
13100         * io/posix_fadvise64.c: Likewise.
13101         * io/posix_fallocate.c: Likewise.
13102         * io/posix_fallocate64.c: Likewise.
13103         * io/read.c: Likewise.
13104         * io/readlink.c: Likewise.
13105         * io/readlinkat.c: Likewise.
13106         * io/rmdir.c: Likewise.
13107         * io/sendfile.c: Likewise.
13108         * io/sendfile64.c: Likewise.
13109         * io/statfs.c: Likewise.
13110         * io/statfs64.c: Likewise.
13111         * io/statvfs.c: Likewise.
13112         * io/statvfs64.c: Likewise.
13113         * io/symlink.c: Likewise.
13114         * io/symlinkat.c: Likewise.
13115         * io/ttyname.c: Likewise.
13116         * io/ttyname_r.c: Likewise.
13117         * io/umask.c: Likewise.
13118         * io/unlink.c: Likewise.
13119         * io/unlinkat.c: Likewise.
13120         * io/utime.c: Likewise.
13121         * io/utimensat.c: Likewise.
13122         * io/write.c: Likewise.
13123         * io/xmknod.c: Likewise.
13124         * io/xmknodat.c: Likewise.
13125         * io/xstat.c: Likewise.
13126         * io/xstat64.c: Likewise.
13127         * login/getpt.c: Likewise.
13128         * login/grantpt.c: Likewise.
13129         * login/unlockpt.c: Likewise.
13130         * math/e_acoshl.c: Likewise.
13131         * math/e_acosl.c: Likewise.
13132         * math/e_asinl.c: Likewise.
13133         * math/e_atan2l.c: Likewise.
13134         * math/e_atanhl.c: Likewise.
13135         * math/e_coshl.c: Likewise.
13136         * math/e_expl.c: Likewise.
13137         * math/e_fmodl.c: Likewise.
13138         * math/e_gammal_r.c: Likewise.
13139         * math/e_hypotl.c: Likewise.
13140         * math/e_j0l.c: Likewise.
13141         * math/e_j1l.c: Likewise.
13142         * math/e_jnl.c: Likewise.
13143         * math/e_lgammal_r.c: Likewise.
13144         * math/e_log10l.c: Likewise.
13145         * math/e_log2l.c: Likewise.
13146         * math/e_logl.c: Likewise.
13147         * math/e_powl.c: Likewise.
13148         * math/e_rem_pio2l.c: Likewise.
13149         * math/e_sinhl.c: Likewise.
13150         * math/e_sqrtl.c: Likewise.
13151         * math/fclrexcpt.c: Likewise.
13152         * math/fedisblxcpt.c: Likewise.
13153         * math/feenablxcpt.c: Likewise.
13154         * math/fegetenv.c: Likewise.
13155         * math/fegetexcept.c: Likewise.
13156         * math/fegetround.c: Likewise.
13157         * math/feholdexcpt.c: Likewise.
13158         * math/fesetenv.c: Likewise.
13159         * math/fesetround.c: Likewise.
13160         * math/feupdateenv.c: Likewise.
13161         * math/fgetexcptflg.c: Likewise.
13162         * math/fraiseexcpt.c: Likewise.
13163         * math/fsetexcptflg.c: Likewise.
13164         * math/ftestexcept.c: Likewise.
13165         * math/k_cosl.c: Likewise.
13166         * math/k_rem_pio2l.c: Likewise.
13167         * math/k_sinl.c: Likewise.
13168         * math/k_tanl.c: Likewise.
13169         * math/s_asinhl.c: Likewise.
13170         * math/s_atanl.c: Likewise.
13171         * math/s_cbrtl.c: Likewise.
13172         * math/s_erfl.c: Likewise.
13173         * math/s_expm1l.c: Likewise.
13174         * math/s_log1pl.c: Likewise.
13175         * math/s_tanhl.c: Likewise.
13176         * misc/acct.c: Likewise.
13177         * misc/brk.c: Likewise.
13178         * misc/chflags.c: Likewise.
13179         * misc/chroot.c: Likewise.
13180         * misc/fchflags.c: Likewise.
13181         * misc/fgetxattr.c: Likewise.
13182         * misc/flistxattr.c: Likewise.
13183         * misc/fremovexattr.c: Likewise.
13184         * misc/fsetxattr.c: Likewise.
13185         * misc/fsync.c: Likewise.
13186         * misc/ftruncate.c: Likewise.
13187         * misc/futimes.c: Likewise.
13188         * misc/futimesat.c: Likewise.
13189         * misc/getdomain.c: Likewise.
13190         * misc/getdtsz.c: Likewise.
13191         * misc/gethostid.c: Likewise.
13192         * misc/gethostname.c: Likewise.
13193         * misc/getloadavg.c: Likewise.
13194         * misc/getpagesize.c: Likewise.
13195         * misc/getsysstats.c: Likewise.
13196         * misc/getxattr.c: Likewise.
13197         * misc/gtty.c: Likewise.
13198         * misc/ioctl.c: Likewise.
13199         * misc/lgetxattr.c: Likewise.
13200         * misc/listxattr.c: Likewise.
13201         * misc/llistxattr.c: Likewise.
13202         * misc/lremovexattr.c: Likewise.
13203         * misc/lsetxattr.c: Likewise.
13204         * misc/lutimes.c: Likewise.
13205         * misc/madvise.c: Likewise.
13206         * misc/mincore.c: Likewise.
13207         * misc/mlock.c: Likewise.
13208         * misc/mlockall.c: Likewise.
13209         * misc/mmap.c: Likewise.
13210         * misc/mprotect.c: Likewise.
13211         * misc/msync.c: Likewise.
13212         * misc/munlock.c: Likewise.
13213         * misc/munlockall.c: Likewise.
13214         * misc/munmap.c: Likewise.
13215         * misc/preadv.c: Likewise.
13216         * misc/preadv64.c: Likewise.
13217         * misc/ptrace.c: Likewise.
13218         * misc/pwritev.c: Likewise.
13219         * misc/pwritev64.c: Likewise.
13220         * misc/readv.c: Likewise.
13221         * misc/reboot.c: Likewise.
13222         * misc/remap_file_pages.c: Likewise.
13223         * misc/removexattr.c: Likewise.
13224         * misc/revoke.c: Likewise.
13225         * misc/select.c: Likewise.
13226         * misc/setdomain.c: Likewise.
13227         * misc/setegid.c: Likewise.
13228         * misc/seteuid.c: Likewise.
13229         * misc/sethostid.c: Likewise.
13230         * misc/sethostname.c: Likewise.
13231         * misc/setregid.c: Likewise.
13232         * misc/setreuid.c: Likewise.
13233         * misc/setxattr.c: Likewise.
13234         * misc/sstk.c: Likewise.
13235         * misc/stty.c: Likewise.
13236         * misc/swapoff.c: Likewise.
13237         * misc/swapon.c: Likewise.
13238         * misc/sync.c: Likewise.
13239         * misc/syncfs.c: Likewise.
13240         * misc/syscall.c: Likewise.
13241         * misc/truncate.c: Likewise.
13242         * misc/ualarm.c: Likewise.
13243         * misc/usleep.c: Likewise.
13244         * misc/ustat.c: Likewise.
13245         * misc/utimes.c: Likewise.
13246         * misc/vhangup.c: Likewise.
13247         * misc/writev.c: Likewise.
13248         * posix/_exit.c: Likewise.
13249         * posix/alarm.c: Likewise.
13250         * posix/execve.c: Likewise.
13251         * posix/fexecve.c: Likewise.
13252         * posix/fork.c: Likewise.
13253         * posix/fpathconf.c: Likewise.
13254         * posix/getaddrinfo.c: Likewise.
13255         * posix/getegid.c: Likewise.
13256         * posix/geteuid.c: Likewise.
13257         * posix/getgid.c: Likewise.
13258         * posix/getgroups.c: Likewise.
13259         * posix/getlogin.c: Likewise.
13260         * posix/getlogin_r.c: Likewise.
13261         * posix/getpgid.c: Likewise.
13262         * posix/getpid.c: Likewise.
13263         * posix/getppid.c: Likewise.
13264         * posix/getresgid.c: Likewise.
13265         * posix/getresuid.c: Likewise.
13266         * posix/getsid.c: Likewise.
13267         * posix/getuid.c: Likewise.
13268         * posix/glob64.c: Likewise.
13269         * posix/nanosleep.c: Likewise.
13270         * posix/pathconf.c: Likewise.
13271         * posix/pause.c: Likewise.
13272         * posix/posix_madvise.c: Likewise.
13273         * posix/pread.c: Likewise.
13274         * posix/pread64.c: Likewise.
13275         * posix/pwrite.c: Likewise.
13276         * posix/pwrite64.c: Likewise.
13277         * posix/sched_getaffinity.c: Likewise.
13278         * posix/sched_getp.c: Likewise.
13279         * posix/sched_gets.c: Likewise.
13280         * posix/sched_primax.c: Likewise.
13281         * posix/sched_primin.c: Likewise.
13282         * posix/sched_rr_gi.c: Likewise.
13283         * posix/sched_setaffinity.c: Likewise.
13284         * posix/sched_setp.c: Likewise.
13285         * posix/sched_sets.c: Likewise.
13286         * posix/sched_yield.c: Likewise.
13287         * posix/setgid.c: Likewise.
13288         * posix/setlogin.c: Likewise.
13289         * posix/setpgid.c: Likewise.
13290         * posix/setresgid.c: Likewise.
13291         * posix/setresuid.c: Likewise.
13292         * posix/setsid.c: Likewise.
13293         * posix/setuid.c: Likewise.
13294         * posix/sleep.c: Likewise.
13295         * posix/spawni.c: Likewise.
13296         * posix/sysconf.c: Likewise.
13297         * posix/times.c: Likewise.
13298         * posix/wait.c: Likewise.
13299         * posix/wait3.c: Likewise.
13300         * posix/wait4.c: Likewise.
13301         * posix/waitpid.c: Likewise.
13302         * resolv/gai_sigqueue.c: Likewise.
13303         * resource/getpriority.c: Likewise.
13304         * resource/getrlimit.c: Likewise.
13305         * resource/getrusage.c: Likewise.
13306         * resource/nice.c: Likewise.
13307         * resource/setpriority.c: Likewise.
13308         * resource/setrlimit.c: Likewise.
13309         * resource/ulimit.c: Likewise.
13310         * rt/aio_cancel.c: Likewise.
13311         * rt/aio_fsync.c: Likewise.
13312         * rt/aio_read.c: Likewise.
13313         * rt/aio_sigqueue.c: Likewise.
13314         * rt/aio_suspend.c: Likewise.
13315         * rt/aio_write.c: Likewise.
13316         * rt/clock_getres.c: Likewise.
13317         * rt/clock_gettime.c: Likewise.
13318         * rt/clock_nanosleep.c: Likewise.
13319         * rt/clock_settime.c: Likewise.
13320         * rt/lio_listio.c: Likewise.
13321         * rt/mq_close.c: Likewise.
13322         * rt/mq_getattr.c: Likewise.
13323         * rt/mq_notify.c: Likewise.
13324         * rt/mq_open.c: Likewise.
13325         * rt/mq_receive.c: Likewise.
13326         * rt/mq_send.c: Likewise.
13327         * rt/mq_setattr.c: Likewise.
13328         * rt/mq_timedreceive.c: Likewise.
13329         * rt/mq_timedsend.c: Likewise.
13330         * rt/mq_unlink.c: Likewise.
13331         * rt/shm_open.c: Likewise.
13332         * rt/shm_unlink.c: Likewise.
13333         * rt/timer_create.c: Likewise.
13334         * rt/timer_delete.c: Likewise.
13335         * rt/timer_getoverr.c: Likewise.
13336         * rt/timer_gettime.c: Likewise.
13337         * rt/timer_settime.c: Likewise.
13338         * setjmp/__longjmp.c: Likewise.
13339         * setjmp/setjmp.c: Likewise.
13340         * signal/kill.c: Likewise.
13341         * signal/killpg.c: Likewise.
13342         * signal/raise.c: Likewise.
13343         * signal/sigaction.c: Likewise.
13344         * signal/sigaltstack.c: Likewise.
13345         * signal/sigblock.c: Likewise.
13346         * signal/sigignore.c: Likewise.
13347         * signal/sigintr.c: Likewise.
13348         * signal/signal.c: Likewise.
13349         * signal/sigpause.c: Likewise.
13350         * signal/sigpending.c: Likewise.
13351         * signal/sigqueue.c: Likewise.
13352         * signal/sigreturn.c: Likewise.
13353         * signal/sigset.c: Likewise.
13354         * signal/sigsetmask.c: Likewise.
13355         * signal/sigstack.c: Likewise.
13356         * signal/sigsuspend.c: Likewise.
13357         * signal/sigtimedwait.c: Likewise.
13358         * signal/sigvec.c: Likewise.
13359         * signal/sigwait.c: Likewise.
13360         * signal/sigwaitinfo.c: Likewise.
13361         * signal/sysv_signal.c: Likewise.
13362         * socket/accept.c: Likewise.
13363         * socket/accept4.c: Likewise.
13364         * socket/bind.c: Likewise.
13365         * socket/connect.c: Likewise.
13366         * socket/getpeername.c: Likewise.
13367         * socket/getsockname.c: Likewise.
13368         * socket/getsockopt.c: Likewise.
13369         * socket/isfdtype.c: Likewise.
13370         * socket/listen.c: Likewise.
13371         * socket/recv.c: Likewise.
13372         * socket/recvfrom.c: Likewise.
13373         * socket/recvmsg.c: Likewise.
13374         * socket/send.c: Likewise.
13375         * socket/sendmsg.c: Likewise.
13376         * socket/sendto.c: Likewise.
13377         * socket/setsockopt.c: Likewise.
13378         * socket/shutdown.c: Likewise.
13379         * socket/sockatmark.c: Likewise.
13380         * socket/socket.c: Likewise.
13381         * socket/socketpair.c: Likewise.
13382         * stdio-common/ctermid.c: Likewise.
13383         * stdio-common/cuserid.c: Likewise.
13384         * stdio-common/remove.c: Likewise.
13385         * stdio-common/rename.c: Likewise.
13386         * stdio-common/renameat.c: Likewise.
13387         * stdio-common/tempname.c: Likewise.
13388         * stdlib/getcontext.c: Likewise.
13389         * stdlib/makecontext.c: Likewise.
13390         * stdlib/setcontext.c: Likewise.
13391         * stdlib/swapcontext.c: Likewise.
13392         * stdlib/system.c: Likewise.
13393         * streams/fattach.c: Likewise.
13394         * streams/fdetach.c: Likewise.
13395         * streams/getmsg.c: Likewise.
13396         * streams/getpmsg.c: Likewise.
13397         * streams/putmsg.c: Likewise.
13398         * streams/putpmsg.c: Likewise.
13399         * sysdeps/unix/bsd/getpt.c: Likewise.
13400         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
13401         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
13402         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
13403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13404         Likewise.
13405         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
13406         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13407         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
13408         * sysvipc/msgctl.c: Likewise.
13409         * sysvipc/msgget.c: Likewise.
13410         * sysvipc/msgrcv.c: Likewise.
13411         * sysvipc/msgsnd.c: Likewise.
13412         * sysvipc/semctl.c: Likewise.
13413         * sysvipc/semget.c: Likewise.
13414         * sysvipc/semop.c: Likewise.
13415         * sysvipc/semtimedop.c: Likewise.
13416         * sysvipc/shmat.c: Likewise.
13417         * sysvipc/shmctl.c: Likewise.
13418         * sysvipc/shmdt.c: Likewise.
13419         * sysvipc/shmget.c: Likewise.
13420         * termios/tcdrain.c: Likewise.
13421         * termios/tcflow.c: Likewise.
13422         * termios/tcflush.c: Likewise.
13423         * termios/tcgetattr.c: Likewise.
13424         * termios/tcgetpgrp.c: Likewise.
13425         * termios/tcsendbrk.c: Likewise.
13426         * termios/tcsetattr.c: Likewise.
13427         * termios/tcsetpgrp.c: Likewise.
13428         * time/adjtime.c: Likewise.
13429         * time/clock.c: Likewise.
13430         * time/getitimer.c: Likewise.
13431         * time/gettimeofday.c: Likewise.
13432         * time/setitimer.c: Likewise.
13433         * time/settimeofday.c: Likewise.
13434         * time/stime.c: Likewise.
13435         * time/time.c: Likewise.
13436
13437 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
13438
13439         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
13440         /usr/old/bin.
13441
13442         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
13443         instead of spaces.
13444         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
13445
13446 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
13447
13448         [BZ #14796]
13449         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
13450         FE_TONEAREST before applying Dekker multiplication and Knuth
13451         addition.  Clear inexact exceptions and check for exact zero
13452         results afterwards.
13453         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13454         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13455         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13456         * math/libm-test.inc (fma_test): Add more tests.
13457         (fma_test_towardzero): Likewise.
13458         (fma_test_downward): Likewise.
13459         (fma_test_upward): Likewise.
13460         * sysdeps/generic/math_private.h (default_libc_fesetround): New
13461         function.
13462         (libc_fesetround): New macro.
13463         (libc_fesetroundf): Likewise.
13464         (libc_fesetroundl): Likewise.
13465         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
13466         function.
13467         (libc_fesetround_387): Likewise.
13468         (libc_fesetroundf): New macro.
13469         (libc_fesetround): Likewise.
13470         (libc_fesetroundl): Likewise.
13471         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
13472         function.
13473         (libc_fesetroundf): New macro.
13474         (libc_fesetround): Likewise.
13475         (libc_fesetroundl): Likewise.
13476         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
13477         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
13478         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
13479         libm_hidden_ver.
13480         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
13481         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
13482         libm_hidden_def.
13483         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
13484         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
13485         libm_hidden_ver.
13486         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
13487         libm_hidden_def.
13488
13489         [BZ #3439]
13490         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
13491         integer constant usable in #if and use that to give value to enum
13492         constant.
13493         (FE_DIVBYZERO): Likewise.
13494         (FE_UNDERFLOW): Likewise.
13495         (FE_OVERFLOW): Likewise.
13496         (FE_INVALID): Likewise.
13497         (FE_INVALID_SNAN): Likewise.
13498         (FE_INVALID_ISI): Likewise.
13499         (FE_INVALID_IDI): Likewise.
13500         (FE_INVALID_ZDZ): Likewise.
13501         (FE_INVALID_IMZ): Likewise.
13502         (FE_INVALID_COMPARE): Likewise.
13503         (FE_INVALID_SOFTWARE): Likewise.
13504         (FE_INVALID_SQRT): Likewise.
13505         (FE_INVALID_INTEGER_CONVERSION): Likewise.
13506         (FE_TONEAREST): Likewise.
13507         (FE_TOWARDZERO): Likewise.
13508         (FE_UPWARD): Likewise.
13509         (FE_DOWNWARD): Likewise.
13510         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
13511         (FE_DIVBYZERO): Likewise.
13512         (FE_OVERFLOW): Likewise.
13513         (FE_UNDERFLOW): Likewise.
13514         (FE_INEXACT): Likewise.
13515         (FE_TONEAREST): Likewise.
13516         (FE_DOWNWARD): Likewise.
13517         (FE_UPWARD): Likewise.
13518         (FE_TOWARDZERO): Likewise.
13519         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
13520         (FE_UNDERFLOW): Likewise.
13521         (FE_OVERFLOW): Likewise.
13522         (FE_DIVBYZERO): Likewise.
13523         (FE_INVALID): Likewise.
13524         (FE_TONEAREST): Likewise.
13525         (FE_TOWARDZERO): Likewise.
13526         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
13527         (FE_OVERFLOW): Likewise.
13528         (FE_UNDERFLOW): Likewise.
13529         (FE_DIVBYZERO): Likewise.
13530         (FE_INEXACT): Likewise.
13531         (FE_TONEAREST): Likewise.
13532         (FE_TOWARDZERO): Likewise.
13533         (FE_UPWARD): Likewise.
13534         (FE_DOWNWARD): Likewise.
13535         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
13536         (FE_DIVBYZERO): Likewise.
13537         (FE_OVERFLOW): Likewise.
13538         (FE_UNDERFLOW): Likewise.
13539         (FE_INEXACT): Likewise.
13540         (FE_TONEAREST): Likewise.
13541         (FE_DOWNWARD): Likewise.
13542         (FE_UPWARD): Likewise.
13543         (FE_TOWARDZERO): Likewise.
13544
13545 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
13546
13547         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
13548
13549 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
13550
13551         * scripts/cross-test-ssh.sh (command): Use newlines to separate
13552         commands.  Quote $PWD.
13553         (blacklist_exports): Don't use remove_newlines.  Replace "declare
13554         -x" by "export".
13555         (remove_newlines): Remove.
13556
13557 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
13558
13559         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
13560         * stdlib/stdlib.h (atof): Moved to ...
13561         * include/bits/stdlib-float.h: Here.  New file.
13562         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
13563         * stdlib/bits/stdlib-float.h: New file.
13564         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
13565         -mno-sse -mno-mmx.
13566         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
13567         <xmmintrin.h>.
13568
13569 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * conform/conformtest.pl (@headers): Add fenv.h.
13572         * conform/data/fenv.h-data: New file.
13573         * include/fenv.h [_ISOMAC]: Disable all contents of file except
13574         include of <math/fenv.h>.
13575
13576         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
13577         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
13578         && !UNIX98].  Enables tests for XOPEN2K8.
13579         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
13580         POSIX2008]: Likewise.
13581
13582         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
13583         (struct rusage): Do not expect type or its members.
13584
13585         [BZ #3439]
13586         * math/math.h (FP_NAN): Define macro to integer constant usable in
13587         #if and use that to give value to enum constant.
13588         (FP_INFINITE): Likewise.
13589         (FP_ZERO): Likewise.
13590         (FP_SUBNORMAL): Likewise.
13591         (FP_NORMAL): Likewise.
13592
13593 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
13594
13595         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
13596         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
13597         arguments.
13598
13599 2012-11-02  Roland McGrath  <roland@hack.frob.com>
13600
13601         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
13602         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
13603         autoconf-time if not.
13604         * configure.in: Remove AC_PREREQ.
13605
13606 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13607
13608         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
13609         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
13610         of the internal implementation.
13611
13612 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13613
13614         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
13615         except include of <misc/sys/syslog.h>.
13616
13617 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13618
13619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
13620         function returns with a NULL context exit with zero.
13621
13622 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13623
13624         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
13625
13626 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
13627
13628         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
13629         (run_program_cmd): This.
13630         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
13631         (tst_langinfo): New variable.  Use it.
13632
13633 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13634
13635         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
13636         floating point opcodes.
13637
13638 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13639
13640         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
13641         variable.
13642
13643         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
13644
13645         * sysdeps/mach/hurd/powerpc: Remove directory.
13646         * sysdeps/mach/powerpc: Likewise.
13647
13648 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13649
13650         * scripts/check-local-headers.sh: Ignore c++ headers.
13651
13652 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13653
13654         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13655         __libc_cleanup_region_start argument.
13656
13657 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
13658
13659         [BZ #14784]
13660         [BZ #14785]
13661         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13662         x * y using scaling, not as x * y + z.
13663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13664         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13665         * math/libm-test.inc (fma_test): Add more tests.
13666         (fma_test_towardzero): Likewise.
13667         (fma_test_downward): Likewise.
13668         (fma_test_upward): Likewise.
13669
13670 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13671
13672         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13673
13674 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13677         New variable.
13678
13679 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13680
13681         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13682
13683 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13684
13685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13686         Fix sort order.
13687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13688         Likewise.
13689
13690 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13691
13692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13693         Fix the order of the list for glibc 2.17.
13694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13695         Likewise.
13696
13697 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13698
13699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13700
13701 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13702
13703         [BZ #14610]
13704         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13705         for low part of x being zero before using __atanl (y).
13706         * math/libm-test.inc (atan2_test): Add another test.
13707
13708         * manual/install.texi (Configuring and compiling): Document
13709         general use of test-wrapper and test-wrapper-env.
13710         * INSTALL: Regenerated.
13711
13712         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13713         (__fma): Do not extract and scale down low bits on after-rounding
13714         systems when result rounded to normal precision would have normal
13715         exponent.
13716         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13717         (__fmal): Do not extract and scale down low bits on after-rounding
13718         systems when result rounded to normal precision would have normal
13719         exponent.
13720         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13721         (__fmal): Do not extract and scale down low bits on after-rounding
13722         systems when result rounded to normal precision would have normal
13723         exponent.
13724         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13725         macro.
13726         (fma_test): Add more tests.
13727         (fma_test_towardzero): Likewise.
13728         (fma_test_downward): Likewise.
13729         (fma_test_upward): Likewise.
13730
13731 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13732
13733         * sysdeps/i386/tininess.h: Renamed to ...
13734         * sysdeps/x86/tininess.h: This.
13735         * sysdeps/x86_64/tininess.h: Removed.
13736
13737 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13740         input.  Use $(build-program-cmd).
13741         ($(objpfx)tst-array1-static.out): Likewise.
13742         ($(objpfx)tst-array2.out): Likewise.
13743         ($(objpfx)tst-array3.out): Likewise.
13744         ($(objpfx)tst-array4.out): Likewise.
13745         ($(objpfx)tst-array5.out): Likewise.
13746         ($(objpfx)tst-array5-static.out): Likewise.
13747
13748 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13749
13750         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13751         if defined.
13752
13753         * nss/nsswitch.h (nss_interface_function): Provide new
13754         macro for use with NSS functions.
13755         * grp/initgroups.c: Use new macro.
13756         * nss/getXXbyYY.c: Likewise.
13757         * nss/getXXbyYY_r.c: Likewise.
13758         * nss/getXXent.c: Likewise.
13759         * nss/getXXent_r.c: Likewise.
13760         * sysdeps/posix/getaddrinfo.c: Likewise.
13761
13762 2012-10-30  Andreas Jaeger  <aj@suse.de>
13763
13764         * po/ru.po: Update Russion translation from translation project.
13765
13766 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13767
13768         [BZ #14152]
13769         [BZ #14783]
13770         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13771         result and shift together with sticky bit instead of replicating
13772         round-to-nearest rounding.
13773         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13774         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13775         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13776         missing underflow exceptions.
13777         (fma_test_towardzero): Add more tests.
13778         (fma_test_downward): Likewise.
13779         (fma_test_upward): Likewise.
13780
13781         [BZ #14047]
13782         * sysdeps/generic/tininess.h: New file.
13783         * sysdeps/i386/tininess.h: Likewise.
13784         * sysdeps/sh/tininess.h: Likewise.
13785         * sysdeps/x86_64/tininess.h: Likewise.
13786         * stdlib/tst-strtod-underflow.c: Likewise.
13787         * stdlib/tst-tininess.c: Likewise.
13788         * stdlib/strtod_l.c: Include <tininess.h>.
13789         (round_and_return): Do not set errno for exact underflow cases.
13790         Force an underflow exception when setting errno for underflow.
13791         Determine underflow based on rounding to normal precision if
13792         TININESS_AFTER_ROUNDING.
13793         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13794         ERANGE for exact underflow cases.
13795         * stdlib/Makefile (tests): Add tst-tininess and
13796         tst-strtod-underflow.
13797         ($(objpfx)tst-tininess): Use $(link-libm).
13798         ($(objpfx)tst-strtod-underflow): Likewise.
13799
13800 2012-10-30  Andreas Jaeger  <aj@suse.de>
13801
13802         [BZ#14767]
13803         * elf/Makefile (tests): Remove conditional for have-initfini-array
13804         since this is now always required and the variable does not exist
13805         anymore.
13806         (tests-static): Likewise.
13807         (modules-names): Likewise.
13808
13809         * po/eo.po: Add Esperanto translation from translation project.
13810
13811         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13812         merged with constructor/destructor.
13813         (init_array): Likewise.
13814         * elf/tst-array2dep.c (fini_array): Likewise.
13815         (init_array): Likewise.
13816
13817 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13818
13819         * manual/message.texi: Delete @cartouche tags.
13820
13821 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13822
13823         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13824         EOPNOTSUPP.
13825         * sysdeps/mach/hurd/fsync.c: Likewise.
13826
13827         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13828         [_POSIX_REALTIME_SIGNALS]: Change condition to
13829         [_POSIX_REALTIME_SIGNALS > 0].
13830
13831 2012-10-27  Andreas Jaeger  <aj@suse.de>
13832
13833         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13834         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13835         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13836         [__WORDSIZE != 64]: Likewise.
13837
13838 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13839
13840         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13841         *  iconvdata/tst-tables.sh: Likewise.
13842
13843 2012-10-25  David S. Miller  <davem@davemloft.net>
13844
13845         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13846         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13847         of strtoull.
13848
13849         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13850         ifunc-impl-list.c
13851         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13852         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13853         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13854         file.
13855
13856 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13857
13858         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13859         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13860         __getdirentries.
13861
13862 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13863             Jim Blandy  <jimb@codesourcery.com>
13864
13865         * scripts/cross-test-ssh.sh: New file.
13866         * manual/install.texi (Configuring and compiling): Document use of
13867         cross-test-ssh.sh.
13868         * INSTALL: Regenerated.
13869
13870 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13871
13872         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13873         EOPNOTSUPP.
13874
13875 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13876
13877         * Makeconfig (run-program-prefix): Fix comment.
13878
13879 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13880             Jim Blandy  <jimb@codesourcery.com>
13881
13882         * Makeconfig (test-wrapper): New variable,
13883         (test-wrapper-env): Likewise.
13884         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13885         (run-built-tests): Define to yes.
13886         (run-program-prefix): Use $(test-wrapper).
13887         (built-program-cmd): Likewise.
13888         * Rules (make-test-out): Use $(test-wrapper-env) and
13889         $(host-built-program-cmd).
13890         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13891         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13892         tst-pathopt.sh.
13893         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13894         $(test-wrapper-env) to tst-rtld-load-self.sh.
13895         ($(objpfx)order2.out): Use $(test-wrapper).
13896         ($(objpfx)tst-initorder.out): Likewise.
13897         ($(objpfx)tst-initorder2.out): Likewise.
13898         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13899         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13900         (test_wrapper_env): New variable.  Use it to run ld.so.
13901         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13902         Use it to run ld.so.
13903         (test_wrapper_env): Likewise.
13904         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13905         $(test-wrapper) to run-iconv-test.sh.
13906         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13907         (ICONV): Use $test_wrapper.
13908         * posix/Makefile ($(objpfx)globtest.out): Pass
13909         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13910         globtest.sh, not $(run-program-prefix).
13911         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13912         (test_wrapper): Likewise.
13913         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
13914         set together with run_via_rtld_prefix.
13915         (run_program_prefix): Define in terms of test_wrapper and
13916         run_via_rtld_prefix.
13917
13918 2012-10-24  Roland McGrath  <roland@hack.frob.com>
13919
13920         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
13921         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
13922         Targets removed.
13923
13924         [BZ #14743]
13925         * include/time.h: Remove librt_hidden_proto (clock_gettime).
13926         Declare __clock_getres, __clock_gettime, __clock_settime,
13927         __clock_nanosleep, and __clock_getcpuclockid.
13928         * rt/clock_gettime.c: Define __clock_gettime as an alias.
13929         Remove librt_hidden_def (clock_gettime).
13930         * sysdeps/unix/clock_gettime.c: Likewise.
13931         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
13932         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
13933         * rt/clock_getres.c: Define __clock_getres as an alias.
13934         * sysdeps/posix/clock_getres.c: Likewise.
13935         * rt/clock_settime.c: Define __clock_settime as an alias.
13936         * sysdeps/unix/clock_settime.c: Likewise.
13937         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
13938         * sysdeps/unix/clock_nanosleep.c: Likewise.
13939         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
13940         * rt/clock-compat.c: New file.
13941         * rt/Makefile (librt-routines): Add clock-compat and move
13942         $(clock-routines) to ...
13943         (routines): ... here, new variable.
13944         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
13945         Don't add get_clockfreq here.
13946         * rt/Versions (libc: GLIBC_2.17): New version set.
13947         Add clock_* symbols here.
13948         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
13949         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
13950         (GLIBC_2.17): Add clock_* symbols.
13951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13953         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13955         Likewise.
13956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13957         Likewise.
13958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13959         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13962         * NEWS: Mention the move.
13963
13964         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
13965         Use __open, __read, __close rather than their public counterparts.
13966         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13967         (__get_clockfreq_via_cpuinfo): Likewise.
13968         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
13969         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
13970
13971         * config.h.in (HAVE_IFUNC): New #undef.
13972         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
13973         was successful.
13974         * configure: Regenerated.
13975
13976 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13977
13978         * configure.in: Move READELF check to start of file.
13979         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
13980         libc_cv_asm_gnu_indirect_function in the process.
13981         * configure: Regenerated.
13982
13983 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13984
13985         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
13986         send the output to /dev/null.
13987         (libc_cv_cc_with_libunwind): Likewise.
13988         (libc_cv_as_noexecstack): Likewise.
13989         * configure: Regenerate.
13990
13991 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13992
13993         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
13994
13995         * posix/globtest.sh (TMPDIR): Do not set.
13996         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
13997         (testout): Likewise.
13998
13999 2012-10-24  Andreas Jaeger  <aj@suse.de>
14000
14001         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
14002         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
14003         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
14004         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
14005         posix_fadvise64, posix_fallocate64.
14006
14007         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
14008         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
14009         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
14010         Likewise.
14011         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
14012         Likewise.
14013         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
14014
14015         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
14016         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
14017         <bits/fcntl-linux.h>.
14018         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
14019
14020         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
14021         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
14022         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
14023         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
14024         [__WORDSIZE != 64]: Likewise.
14025
14026 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14027
14028         * Makeconfig (run-built-tests): New variable.
14029         * Rules [$(cross-compiling) = yes]: Change condition to
14030         [$(run-built-tests) = no].
14031         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
14032         to [$(run-built-tests) = yes].
14033         * elf/Makefile [$(cross-compiling) = no]: Likewise
14034         * grp/Makefile [$(cross-compiling) = no]: Likewise.
14035         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
14036         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
14037         * intl/Makefile [$(cross-compiling) = no]: Likewise.
14038         * io/Makefile [$(cross-compiling) = no]: Likewise.
14039         * libio/Makefile [$(cross-compiling) = no]: Likewise.
14040         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
14041         * misc/Makefile [$(cross-compiling) = no]: Likewise.
14042         * posix/Makefile [$(cross-compiling) = no]: Likewise.
14043         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
14044         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
14045         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
14046         * string/Makefile [$(cross-compiling) = no]: Likewise.
14047
14048         * posix/Makefile ($(objpfx)globtest.out): Pass
14049         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
14050         $(rtld-installed-name).
14051         * posix/globtest.sh (elf_objpfx): Remove variable.
14052         (rtld_installed_name): Likewise.
14053         (library_path): Likewise.
14054         (run_program_prefix): New variable.  Use for running globtest
14055         binary.
14056
14057 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
14058             Joseph Myers  <joseph@codesourcery.com>
14059
14060         * Makeconfig (host-built-program-cmd): New variable.
14061         * elf/Makefile (tst-stackguard1-ARGS): Use
14062         $(host-built-program-cmd).
14063         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
14064         (tst-spawn-ARGS): Likewise.
14065         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
14066
14067 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14068             Jim Blandy  <jimb@codesourcery.com>
14069
14070         * Makeconfig (run-via-rtld-prefix): New variable.
14071         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
14072         (built-program-cmd): Likewise.
14073
14074 2012-10-22  Andreas Jaeger  <aj@suse.de>
14075
14076         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
14077         __O_RSYNC if it exists, otherwise to O_SYNC.
14078
14079 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
14080             Joseph Myers  <joseph@codesourcery.com>
14081
14082         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
14083         /dev/null.
14084         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
14085         from /dev/null
14086         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
14087         /dev/null.
14088
14089 2012-10-22  Andreas Jaeger  <aj@suse.de>
14090
14091         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
14092         Define always.
14093         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
14094
14095         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14096         bits/fcntl-linux.h.
14097
14098         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
14099         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
14100
14101         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
14102         to __O_LARGEFILE.
14103         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
14104         to __O_LARGEFILE.
14105
14106 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
14107             Joseph Myers  <joseph@codesourcery.com>
14108
14109         * config.make.in (NM): New variable.
14110
14111 2012-10-21  Andreas Jaeger  <aj@suse.de>
14112
14113         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
14114         definitions and declarations that are provided by
14115         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
14116
14117 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14118
14119         [BZ #14683]
14120         * elf/Makefile (tests-static): Add tst-leaks1-static.
14121         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
14122         ($(objpfx)tst-leaks1-static): New rule.
14123         ($(objpfx)tst-leaks1-static-mem): Likewise.
14124         (tst-leaks1-static-ENV): New macro.
14125         * elf/dl-open.c (dl_open_worker): Check the main application
14126         only if SHARED is defined.
14127         * elf/tst-leaks1-static.c: New file.
14128
14129 2012-10-20  Andreas Jaeger  <aj@suse.de>
14130
14131         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
14132         generic values for Linux.
14133         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
14134         and declarations that are provided by <bits/fcntl-linux.h> and
14135         include <bits/fcntl-linux.h>.
14136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14137         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14138
14139 2012-10-20  Roland McGrath  <roland@hack.frob.com>
14140
14141         * io/fcntl.h: Move include of <bits/types.h> to the top and
14142         include it unconditionally.
14143
14144 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14145
14146         * wcsmbs/Makefile (tests-ifunc): New variable.
14147         (tests): Add $(tests-ifunc).
14148         * wcsmbs/test-wcschr-ifunc.c: New file.
14149         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
14150         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
14151         * wcsmbs/test-wcslen-ifunc.c: Likewise.
14152         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
14153         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
14154
14155         * string/Makefile (tests-ifunc): New variable.
14156         (tests): Add $(tests-ifunc).
14157         * string/test-memccpy.c (TEST_NAME): New macro.
14158         * string/test-memchr.c (TEST_NAME): Likewise.
14159         * string/test-memcmp.c (TEST_NAME): Likewise.
14160         * string/test-memcpy.c (TEST_NAME): Likewise.
14161         * string/test-memmem.c (TEST_NAME): Likewise.
14162         * string/test-memmove.c (TEST_NAME): Likewise.
14163         * string/test-memset.c (TEST_NAME): Likewise.
14164         * string/test-rawmemchr.c (TEST_NAME): Likewise.
14165         * string/test-stpcpy.c (TEST_NAME): Likewise.
14166         * string/test-stpncpy.c (TEST_NAME): Likewise.
14167         * string/test-strcasecmp.c (TEST_NAME): Likewise.
14168         * string/test-strcasestr.c (TEST_NAME): Likewise.
14169         * string/test-strcat.c (TEST_NAME): Likewise.
14170         * string/test-strchr.c (TEST_NAME): Likewise.
14171         * string/test-strcmp.c(TEST_NAME): Likewise.
14172         * string/test-strcpy.c (TEST_NAME): Likewise.
14173         * string/test-strcspn.c (TEST_NAME): Likewise.
14174         * string/test-strlen.c (TEST_NAME): Likewise.
14175         * string/test-strncasecmp.c (TEST_NAME): Likewise.
14176         * string/test-strncmp.c (TEST_NAME): Likewise.
14177         * string/test-strncpy.c (TEST_NAME): Likewise.
14178         * string/test-strnlen.c (TEST_NAME): Likewise.
14179         * string/test-strpbrk.c (TEST_NAME): Likewise.
14180         * string/test-strrchr.c (TEST_NAME): Likewise.
14181         * string/test-strspn.c (TEST_NAME): Likewise.
14182         * string/test-strstr.c (TEST_NAME): Likewise.
14183         * string/test-bcopy-ifunc.c: New file.
14184         * string/test-bzero-ifunc.c: Likewise.
14185         * string/test-memccpy-ifunc.c: Likewise.
14186         * string/test-memchr-ifunc.c: Likewise.
14187         * string/test-memcmp-ifunc.c: Likewise.
14188         * string/test-memcpy-ifunc.c: Likewise.
14189         * string/test-memmem-ifunc.c: Likewise.
14190         * string/test-memmove-ifunc.c: Likewise.
14191         * string/test-mempcpy-ifunc.c: Likewise.
14192         * string/test-memset-ifunc.c: Likewise.
14193         * string/test-rawmemchr-ifunc.c: Likewise.
14194         * string/test-stpcpy-ifunc.c: Likewise.
14195         * string/test-stpncpy-ifunc.c: Likewise.
14196         * string/test-strcasecmp-ifunc.c: Likewise.
14197         * string/test-strcasestr-ifunc.c: Likewise.
14198         * string/test-strcat-ifunc.c: Likewise.
14199         * string/test-strchr-ifunc.c: Likewise.
14200         * string/test-strchrnul-ifunc.c: Likewise.
14201         * string/test-strcmp-ifunc.c: Likewise.
14202         * string/test-strcpy-ifunc.c: Likewise.
14203         * string/test-strcspn-ifunc.c: Likewise.
14204         * string/test-strlen-ifunc.c: Likewise.
14205         * string/test-strncasecmp-ifunc.c: Likewise.
14206         * string/test-strncat-ifunc.c: Likewise.
14207         * string/test-strncmp-ifunc.c: Likewise.
14208         * string/test-strncpy-ifunc.c: Likewise.
14209         * string/test-strnlen-ifunc.c: Likewise.
14210         * string/test-strpbrk-ifunc.c: Likewise.
14211         * string/test-strrchr-ifunc.c: Likewise.
14212         * string/test-strspn-ifunc.c: Likewise.
14213         * string/test-strstr-ifunc.c: Likewise.
14214
14215         * debug/Makefile (tests-ifunc): New variable.
14216         (tests): Add $(tests-ifunc).
14217         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
14218         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
14219         * debug/test-stpcpy_chk-ifunc.c: New file.
14220         * debug/test-strcpy_chk-ifunc.c: Likewise.
14221
14222 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14223
14224         [BZ #13601]
14225         * elf/dl-load.c (open_verify): Retry read if the entire ELF
14226         header is not read in.
14227
14228 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
14229
14230         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
14231         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
14232         directly.  Pass built executable to script as
14233         $(built-program-cmd).
14234         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
14235         $testprogram without using LD_LIBRARY_PATH and $ldso.
14236
14237         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
14238         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
14239         $(rtld-installed-name).
14240         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
14241         (rtld_installed_name): Likewise.
14242         (library_path): Likewise.
14243         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
14244         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
14245         $(run-program-prefix) to tst-tables.sh.
14246         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
14247         it to run tst-table-from and tst-table-to.
14248         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
14249         Pass it to tst-table.sh.
14250         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
14251         $(run-program-prefix) to tst-gettext.sh.
14252         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
14253         tst-translit.sh.
14254         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
14255         tst-gettext2.sh.
14256         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
14257         to run tst-gettext.
14258         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
14259         to run tst-gettext2.
14260         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
14261         to run tst-translit.
14262         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
14263         $(run-program-prefix) to tst-mtrace.sh.
14264         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
14265         to run tst-mtrace.
14266         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
14267         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
14268         $(rtld-installed-name).
14269         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
14270         (rtld_installed_name): Likewise.
14271         (run_program_prefix): New variable.  Use it to run wordexp-test.
14272
14273         * Makeconfig (ARCH): Remove all definitions.
14274         (machine): Likewise.
14275         [ARCH]: Remove conditional code.
14276         [!objdir]: Give error.
14277         [!objdir] (objpfx): Remove.
14278         [!objdir] (common-objpfx): Likewise.
14279         [!objdir] (common-objdir): Likewise.
14280         * configure.in (config_makefile): Remove.  Hardcode Makefile in
14281         AC_CONFIG_FILES call.
14282         * configure: Regenerated.
14283
14284         [BZ #13888]
14285         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
14286         or TMPDIR.
14287         (testout): Likewise.
14288
14289         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
14290         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
14291         $(rtld-installed-name).
14292         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
14293         (rtld_installed_name): Likwise.
14294         (runit): Remove function.
14295         (run_getconf): New variable,  Use it for running getconf binary.
14296
14297 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
14298
14299         [BZ #14716]
14300         * string/test-memmem.c (check_result): New function.
14301         (do_one_test): Use it.
14302         (check1): New function.
14303         (test_main): Use it.
14304
14305 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
14306
14307         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
14308
14309 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
14310
14311         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
14312         (_G_LSEEK64): Likewise.
14313         (_G_MMAP64): Likewise.
14314         (_G_FSTAT64): Likewise.
14315         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
14316         (_G_LSEEK64): Likewise.
14317         (_G_MMAP64): Likewise.
14318         (_G_FSTAT64): Likewise.
14319         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
14320         unconditional.  Call __mmap64 directly.
14321         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
14322         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
14323         __lseek64 directly.
14324         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
14325         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
14326         __mmap64 directly.
14327         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
14328         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14329         __lseek64 directly.
14330         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
14331         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14332         __lseek64 directly.
14333         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
14334         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
14335         __lseek64 directly.
14336         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
14337         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
14338         __fxstat64 directly.
14339         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
14340         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
14341         unconditional.
14342         (freopen64) [!_G_OPEN64]: Remove conditional code.
14343         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
14344         unconditional.
14345         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
14346         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
14347         unconditional.
14348         (ftello64) [!_G_LSEEK64]: Remove conditional code.
14349         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
14350         unconditional.
14351         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14352         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
14353         unconditional.
14354         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
14355         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
14356         unconditional.
14357         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14358         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
14359         unconditional.
14360         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14361         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
14362         unconditional.
14363         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14364
14365 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14366
14367         [BZ #12140]
14368         * manual/memory.texi (Malloc Tunable Parameters): Add note
14369         about free list pointers overwriting some perturb bytes.
14370         Wording suggested by Roland McGrath.
14371
14372 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
14373
14374         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
14375         (lgamma_test): Likewise.
14376         (tgamma_test): Likewise.
14377
14378 2012-10-16  Florian Weimer  <fweimer@redhat.com>
14379
14380         [BZ #14700]
14381         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
14382         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
14383
14384 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14385
14386         * NEWS: Mention BZ #14716.
14387         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
14388         when removing AVAILABLE1_USES_J macro.
14389
14390 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14391
14392         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
14393         (__bswap_64): __uint64_t for unsigned 64-bit int.
14394
14395 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
14396
14397         * include/string.h (memmem): Declare libc hidden alias.
14398         * string/memmem.c (memmem): Define libc hidden alias.
14399         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
14400         __read, __close instead of open, read, close.
14401
14402 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
14403
14404         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
14405         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
14406         global and hidden.
14407         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
14408         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
14409         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
14410         Likewise.
14411         (__rawmemchr_sse2): Likewise.
14412         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
14413         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
14414         (__strchr_sse2): Likewise.
14415         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
14416         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
14417         (__strcasecmp_sse2): Likewise.
14418         (__strncasecmp_sse2): Likewise.
14419         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
14420         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
14421         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
14422         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
14423         (__strrchr_sse2): Likewise.
14424         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
14425         ifunc-impl-list.c.
14426         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14427         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14428         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14429         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14430         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14431         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14432         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14433         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14434         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
14435         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
14436         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
14437         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
14438         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
14439         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14440         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14441         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14442         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14443         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14444         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
14445         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
14446         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
14447         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
14448         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
14449         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
14450         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
14451         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14452         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14453         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14454         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14455         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14456
14457         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
14458         global and hidden.
14459         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
14460         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
14461         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
14462         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
14463         Likewise.
14464         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
14465         Likewise.
14466         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
14467         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
14468         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
14469         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
14470         ifunc-impl-list.c.
14471         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14472         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14473         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14474         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14475         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14476         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14477         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14478         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14479         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14480         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14481         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14482         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14483         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14484         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14485         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14486         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14487         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14488         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
14489         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14490         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14491         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14492         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14493         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14494         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14495         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14496         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14497         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14498         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14499         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14500         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14501         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14502         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14503         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14504         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
14505         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14506         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14507         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14508         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14509         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14510         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14511         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
14512
14513         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
14514         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
14515         * include/ifunc-impl-list.h: New file.
14516         * misc/ifunc-impl-list.c: Likewise.
14517         * misc/Makefile (routines): Add ifunc-impl-list.
14518         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
14519         * string/test-string.h: Include <ifunc-impl-list.h>.
14520         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
14521         impl_array): New variables.
14522         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
14523         are defined.
14524         (test_init): Call __libc_ifunc_impl_list to initialize
14525         func_list if TEST_IFUNC and TEST_NAME are defined.
14526
14527         * string/Makefile (strop-tests): Add bcopy and bzero.
14528         * string/test-bcopy.c: New file.
14529         * string/test-bzero.c: Likewise.
14530         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
14531         defined.
14532         * string/test-memset.c: Support bzero test if TEST_BZERO is
14533         defined.
14534         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
14535         __libc_memmove.
14536         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
14537         __libc_memset.
14538         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
14539         of memset.
14540
14541 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
14542
14543         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
14544         * configure: Regenerated.
14545
14546         * Makeconfig (+link-static-before-libc): Don't include
14547         $(link-static-libc).
14548
14549         * libio/libio.h (_IO_pos_t): Remove.
14550
14551 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14552
14553         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
14554         McGrath.
14555
14556 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14557
14558         * crypt/crypt-entry.c: Include fips-private.h.
14559         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
14560         * crypt/md5c-test.c (main): Tolerate disabled MD5.
14561         * sysdeps/unix/sysv/linux/fips-private.h: New file.
14562         * sysdeps/generic/fips-private.h: New file, dummy fallback.
14563
14564 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14565
14566         * crypt/crypt-private.h: Include stdbool.h.
14567         (_ufc_setup_salt_r): Return bool.
14568         * crypt/crypt-entry.c: Include errno.h.
14569         (__crypt_r): Return NULL with EINVAL for bad salt.
14570         * crypt/crypt_util.c (bad_for_salt): New.
14571         (_ufc_setup_salt_r): Check that salt is long enough and within
14572         the specified alphabet.
14573         * crypt/badsalttest.c: New file.
14574         * crypt/Makefile (tests): Add it.
14575         ($(objpfx)badsalttest): New.
14576
14577 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14578
14579         * NEWS: Add entry for BZ #14602.
14580
14581 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14582
14583         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
14584         type-generic.
14585         * math/libm-test.inc: Update comment listing what functions and
14586         macros are tested.
14587         (isgreater_test): New function.
14588         (isgreaterequal_test): Likewise.
14589         (isless_test): Likewise.
14590         (islessequal_test): Likewise.
14591         (islessgreater_test): Likewise.
14592         (isunordered_test): Likewise.
14593         (main): Call the new functions.
14594
14595 2012-10-09  Roland McGrath  <roland@hack.frob.com>
14596
14597         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
14598         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
14599         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
14600         * sysdeps/i386/configure: Regenerated.
14601         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
14602         * sysdeps/mach/configure: Regenerated.
14603         * sysdeps/mach/hurd/configure: Regenerated.
14604         * sysdeps/powerpc/configure: Regenerated.
14605         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14606         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14607         * sysdeps/s390/s390-32/configure: Regenerated.
14608         * sysdeps/s390/s390-64/configure: Regenerated.
14609         * sysdeps/sh/configure: Regenerated.
14610         * sysdeps/sparc/configure: Regenerated.
14611         * sysdeps/unix/sysv/linux/configure: Regenerated.
14612         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
14613         * sysdeps/x86_64/configure: Regenerated.
14614
14615         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
14616         defined.  Don't check if MAP is NULL.
14617
14618 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14619
14620         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
14621         (_G_stat64): Likewise.
14622         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
14623         (_G_stat64): Likewise.
14624         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
14625         instead of struct _G_stat64.
14626         * libio/fileops.c (mmap_remap_check): Likewise.
14627         (decide_maybe_mmap): Likewise.
14628         (_IO_new_file_seekoff): Likewise.
14629         (_IO_file_stat): Likewise.
14630         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
14631         _G_off64_t.
14632         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
14633         instead of struct _G_stat64.
14634         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14635
14636 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14637
14638         [BZ #14602]
14639         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14640         Replace with ...
14641         (CHECK_EOL): New macro.
14642         (two_way_short_needle): Check beginning of haystack for EOL.  Use
14643         CHECK_EOL.
14644         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14645         Replace with CHECK_EOL.
14646         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14647         Replace with CHECK_EOL.
14648
14649 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
14652         type-generic.
14653         * math/libm-test.inc: Update comment listing what functions and
14654         macros are tested.
14655         (finite_test): New function.
14656         (isinf_test): Likewise.
14657         (isnan_test): Likewise.
14658         (fpclassify_test): Test subnormal input.
14659         (isfinite_test): Likewise.
14660         (isnormal_test): Likewise.
14661         (main): Call the new functions.
14662
14663 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14664
14665         [BZ #14660]
14666         * Makerules (%.dynsym): Force C locale when running
14667         $(OBJDUMP) --dynamic-syms.
14668
14669 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14670
14671         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14672         <stdint.h>.
14673
14674 2012-10-06  David S. Miller  <davem@davemloft.net>
14675
14676         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14677         upper 32-bits of the length value in %o2 since we use branch-on-register
14678         tests which consider the entire 64-bit register.
14679
14680 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14681
14682         * string/test-strstr.c (check2): Add a test for page boundary.
14683
14684 2012-10-05  David S. Miller  <davem@davemloft.net>
14685
14686         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14687         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14688         file.
14689         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14690         sysdep_routines.
14691         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14692         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14693         and bzero when HWCAP_SPARC_CRYPTO is present.
14694
14695 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14696
14697         [BZ #14602]
14698         * string/test-strstr.c (check2): New function.
14699         (test_main): Call check2.
14700
14701         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14702         and bug-strchr1.
14703         * string/bug-strcasestr1.c (do_test): Moved to ...
14704         * string/test-strcasestr.c (check1): Here.  New function.
14705         (do_one_test): Break out result checking code into ...
14706         (check_result): This.  New function.
14707         (do_one_test): Call check_result.
14708         (test_main): Call check1.
14709         * string/bug-strchr1.c (do_test): Moved to ...
14710         * string/test-strchr.c (check1): Here.  New function.
14711         (do_one_test): Break out result checking code into ...
14712         (check_result): This.  New function.
14713         (do_one_test): Call check_result.
14714         (test_main): Call check1.
14715         * string/bug-strstr1.c (main): Moved to ...
14716         * string/test-strstr.c (check1): Here.  New function.
14717         (do_one_test): Break out result checking code into ...
14718         (check_result): This.  New function.
14719         (do_one_test): Call check_result.
14720         (test_main): Call check1.
14721         * string/bug-strcasestr1.c: Removed.
14722         * string/bug-strchr1.c: Likewise.
14723         * string/bug-strstr1.c: Likewise.
14724
14725         * elf/Makefile (dl-routines): Add hwcaps.
14726         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14727         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14728         (_dl_important_hwcaps): Moved to ...
14729         * elf/dl-hwcaps.c: Here.  New file.
14730         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14731
14732         [BZ #14557]
14733         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14734         if IS_IN_rtld isn't defined.
14735
14736         * elf/dl-support.c (_dl_sysinfo_map): New.
14737         Include "get-dynamic-info.h" and "setup-vdso.h".
14738         (_dl_non_dynamic_init): Call setup_vdso.
14739         * elf/dynamic-link.h: Don't include <assert.h>.
14740         (elf_get_dynamic_info): Moved to ...
14741         * elf/get-dynamic-info.h: Here.  New file.
14742         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14743         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14744         * elf/setup-vdso.h: Here.  New file.
14745         * elf/rtld.c: Include "setup-vdso.h".
14746         (dl_main): Call setup_vdso.
14747
14748 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14749
14750         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14751         creal in comment listing functions tested.  List finite, isinf,
14752         isnan, isless, islessequal, isgreater, isgreaterequal,
14753         islessgreater, isunordered, lgamma_r and pow10 as functions and
14754         macros not tested.  Mention which functions not tested are aliases
14755         for other functions.  Fix typo.  Note that signs of NaNs are not
14756         tested.
14757
14758         * scripts/config.guess: Update from config.git.
14759         * scripts/config.sub: Likewise.
14760
14761 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14762
14763         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14764         * misc/madvise.c (madvise): Renamed to __madvise.
14765         Make madvise a weak alias.
14766         * include/sys/mman.h: Declare __madvise.
14767         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14768         * sysdeps/unix/syscalls.list
14769         (madvise): Make __madvise the strong name, and madvise a weak alias.
14770         * sysdeps/unix/sysv/linux/syscalls.list
14771         (madvise, mmap): Remove redundant entries.
14772         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14773         * malloc/malloc.c (mtrim): Likewise.
14774         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14775
14776 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14777
14778         * sysdeps/mach/hurd/dl-cache.c: File removed.
14779         * config.h.in (USE_LDCONFIG): New #undef.
14780         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14781         * configure: Regenerated.
14782         * elf/Makefile (dl-routines): Add dl-cache only under
14783         [$(use-ldconfig) = yes].
14784         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14785         cache on [USE_LDCONFIG].
14786         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14787         [USE_LDCONFIG].
14788         * elf/rtld.c (dl_main): Likewise.
14789
14790 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14791
14792         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14793         _SC_LEVEL4_CACHE_LINESIZE.
14794
14795 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14796
14797         * sysdeps/unix/bsd/confstr.h: File removed.
14798
14799 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14800
14801         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14802         sys/sdt-config.h.
14803
14804 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14805
14806         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14807         Make 'mapoff' field ElfW(Off) rather than off_t.
14808
14809 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14810
14811         * nscd/Makefile: Remove nscd-cflags and all its users.
14812         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14813         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14814
14815         [BZ #10631]
14816         * malloc.c (malloc_printerr): Clarify error message.
14817
14818 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14819
14820         [BZ #14648]
14821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14822         Set bit_FMA_Usable if FMA is supported.
14823         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14824         macro.
14825         (bit_FMA4_Usable): Updated.
14826         (index_FMA_Usable): New macro.
14827         (CPUID_FMA): Likewise
14828         (HAS_FMA): Defined with bit_FMA_Usable.
14829
14830 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14831
14832         * bits/types.h (__swblk_t): Type removed.
14833         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14834         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14835         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14836         (__SWBLK_T_TYPE): Likewise.
14837         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14838         (__SWBLK_T_TYPE): Likewise.
14839         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14840         (__SWBLK_T_TYPE): Likewise.
14841         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14842         (__SWBLK_T_TYPE): Likewise.
14843
14844 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14845             Honza Horak <hhorak@redhat.com>
14846
14847         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14848         (xdr_mapname): Use YPMAXMAP as maxsize.
14849         (xdr_peername): Use YPMAXPEER as maxsize.
14850         (xdr_keydat): Use YPAXRECORD as maxsize.
14851         (xdr_valdat): Use YPMAXRECORD as maxsize.
14852
14853 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14854
14855         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14856
14857         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14858         * csu/init-first.c: ... here.
14859         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14860         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14861         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14862         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14863         * sysdeps/i386/init-first.c: File removed.
14864         * sysdeps/sh/init-first.c: File removed.
14865
14866 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14867
14868         [BZ #14645]
14869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14870         if x * y might underflow to zero and z is zero.
14871         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14872         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14873         * math/libm-test.inc (min_subnorm_value): New variable.
14874         (fma_test): Add more tests.
14875         (fma_test_towardzero): Likewise.
14876         (fma_test_downward): Likewise
14877         (fma_test_upward): Likewise.
14878         (initialize): Set min_subnorm_value.
14879
14880 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14881
14882         [BZ #14638]
14883         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14884         0 + 0.
14885         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14886         mode for addition resulting in exact zero.
14887         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14888         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14889         exact 0 + 0.
14890         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14891         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14892         * math/libm-test.inc (fma_test): Add more tests.
14893         (fma_test_towardzero): New function.
14894         (fma_test_downward): Likewise.
14895         (fma_test_upward): Likewise.
14896         (main): Call the new functions.
14897
14898 2012-09-28  David S. Miller  <davem@davemloft.net>
14899
14900         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14901
14902 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14903
14904         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14905         instead of SIGALRM.
14906
14907         * sysdeps/gnu/_G_config.h: Moved to ...
14908         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14909         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14910         * sysdeps/generic/_G_config.h: ... here.
14911
14912         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14913
14914         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
14915
14916         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
14917         Conditionalize target on [libnss_test1.so-version].
14918
14919         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
14920
14921         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
14922         (elfobjdir): Move out of conditionals.
14923
14924         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14925         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
14926         (__nss_lookup_function): Conditionalize label remove_from_tree on
14927         [!DO_STATIC_NSS || SHARED], matching its only use.
14928
14929 2012-09-28  David S. Miller  <davem@davemloft.net>
14930
14931         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
14932         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
14933         file.
14934         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14935         sysdep_routines.
14936         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14937         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
14938         when HWCAP_SPARC_CRYPTO is present.
14939
14940 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14941
14942         * io/tst-mknodat.c: Create a FIFO instead of a socket.
14943
14944 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
14945
14946         [BZ #6530]
14947         * stdio-common/vfprintf.c (process_string_arg): Revert
14948         2000-07-22 change.
14949
14950 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
14951
14952         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
14953         for testcase.
14954         * stdio-common/tst-sprintf.c: Include <locale.h>
14955         (main): Test sprintf's handling of incomplete multibyte
14956         characters.
14957
14958 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
14959
14960         * elf/dl-runtime.c (VERSYMIDX): Removed.
14961         * elf/dl-version.c (VERSYMIDX): Likewise.
14962         * elf/do-rel.h (VERSYMIDX): Likewise.
14963         (VALIDX): Likewise.
14964         * elf/dynamic-link.h (VERSYMIDX): Likewise.
14965         * elf/rtld.c (VALIDX): Likewise.
14966         (ADDRIDX): Likewise.
14967         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
14968         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
14969         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
14970         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
14971         (VALIDX): Likewise.
14972         (ADDRIDX): Likewise.
14973
14974 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14975
14976         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
14977
14978 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
14979
14980         [BZ #11438]
14981         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
14982         to global scope.
14983         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
14984         addresses are in the same scope as 192.0.2/24.
14985         * posix/gai.conf: Document new scope table defaults.
14986
14987 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14988
14989         [BZ #5298]
14990         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
14991         for ftell.  Compute offsets from write pointers instead.
14992         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14993
14994 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14995
14996         [BZ #14543]
14997         * libio/Makefile (tests): New test case tst-fseek.
14998         * libio/tst-fseek.c: New test case to verify that fseek/ftell
14999         combination works in wide mode.
15000         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
15001         state when the external buffer state changes.
15002
15003 2012-09-27  David S. Miller  <davem@davemloft.net>
15004
15005         [BZ #14376]
15006         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
15007         pass reloc->r_addend in as the 'high' argument to
15008         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
15009
15010         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15011
15012 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15013
15014         * rt/tst-aio2.c: Include <pthread.h>.
15015         * rt/tst-aio3.c: Likewise.
15016
15017 2012-09-27  Steve Ellcey  <sellcey@mips.com>
15018
15019         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
15020
15021 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
15022
15023         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
15024         contents on [SHARED].
15025
15026 2012-09-26  Marek Polacek  <polacek@redhat.com>
15027
15028         [BZ #14530]
15029         [BZ #13741]
15030         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
15031         for C++ and GCC <4.3 as well as for non GCC compilers.
15032
15033 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
15034
15035         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15036
15037 2012-09-25  Roland McGrath  <roland@hack.frob.com>
15038
15039         * Makefile.in (all, install): Declare with .PHONY.
15040         Reported by Michael Hope <michael.hope@linaro.org>.
15041
15042 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15043
15044         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
15045         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
15046         system header.
15047         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
15048         Likewise.
15049         (sydep_routines): Add the new and the internal functions.
15050         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
15051         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
15052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
15053         (GLIBC_2.17): Add the new function.
15054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
15055         (GLIBC_2.17): Likewise.
15056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
15057         (GLIBC_2.17): Likewise.
15058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
15059         (GLIBC_2.17): Likewise.
15060         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
15061
15062 2012-09-25  Alan Modra  <amodra@gmail.com>
15063
15064         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
15065         Add release barrier before setting once_control to say
15066         initialisation is done.  Add hints on lwarx.  Use macro in
15067         place of isync.
15068         (clear_once_control): Add release barrier.
15069
15070 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15071
15072         [BZ #13629]
15073         * math/s_clog.c (__clog): Handle more values close to |z| = 1
15074         specially.
15075         * math/s_clog10.c (__clog10): Likewise.
15076         * math/s_clog10f.c (__clog10f): Likewise.
15077         * math/s_clog10l.c (__clog10l): Likewise.
15078         * math/s_clogf.c (__clogf): Likewise.
15079         * math/s_clogl.c (__clogl): Likewise.
15080         * math/Makefile (libm-calls): Add x2y2m1.
15081         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
15082         (__x2y2m1): Likewise.
15083         (__x2y2m1l): Likewise.
15084         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
15085         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
15086         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15087         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
15088         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
15089         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
15090         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
15091         * sysdeps/i386/fpu/libm-test-ulps: Update.
15092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15093
15094         [BZ #14621]
15095         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
15096         int as type of variable DEPTH.
15097         (glob): Use size_t instead of int as type of variables NEWCOUNT
15098         and OLD_PATHC.
15099
15100 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15101
15102         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15103         Add s_sincosf-sse2.
15104         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
15105         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
15106         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
15107         macros for using routine as __sincosf_ia32.
15108         Use macro for function declaration and weak_alias.
15109         * sysdeps/i386/fpu/libm-test-ulps: Update.
15110
15111         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
15112         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15113
15114         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
15115         subnormal argument.
15116         * math/s_cexpf.c (__cexpf): Likewise.
15117         * math/s_csinf.c (__csinf): Likewise.
15118         * math/s_csinhf.c (__csinhf): Likewise.
15119         * math/s_ctanf.c (__ctanf): Likewise.
15120         * math/s_ctanhf.c (__ctanhf): Likewise.
15121         * math/s_ccosh.c (__ccoshf): Likewise.
15122         * math/s_cexp.c (__cexpl): Likewise.
15123         * math/s_csin.c (__csin): Likewise.
15124         * math/s_csinh.c (__csinh): Likewise.
15125         * math/s_ctan.c (__ctan): Likewise.
15126         * math/s_ctanh.c (ctanh): Likewise.
15127         * math/s_ccoshl.c (__ccoshl): Likewise.
15128         * math/s_cexpl.c (__cexpl): Likewise.
15129         * math/s_csinl.c (__csinl): Likewise.
15130         * math/s_csinhl.c (__csinhl): Likewise.
15131         * math/s_ctanl.c (__ctanl): Likewise.
15132         * math/s_ctanhl.c (__ctanhl): Likewise.
15133
15134 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15135
15136         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
15137         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
15138         (_IO_off_t): Define to __off_t, not _G_off_t.
15139         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
15140         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
15141         (_IO_wint_t): Define to wint_t, not _G_wint_t.
15142         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
15143         type of __dummy and __dummy2 fields.
15144         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
15145         (_G_ssize_t): Likewise.
15146         (_G_off_t): Likewise.
15147         (_G_pid_t): Likewise.
15148         (_G_uid_t): Likewise.
15149         (_G_wchar_t): Likewise.
15150         (_G_wint_t): Likewise.
15151         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
15152         (_G_ssize_t): Likewise.
15153         (_G_off_t): Likewise.
15154         (_G_pid_t): Likewise.
15155         (_G_uid_t): Likewise.
15156         (_G_wchar_t): Likewise.
15157         (_G_wint_t): Likewise.
15158         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
15159         (_G_ssize_t): Likewise.
15160         (_G_off_t): Likewise.
15161         (_G_pid_t): Likewise.
15162         (_G_uid_t): Likewise.
15163         (_G_wchar_t): Likewise.
15164         (_G_wint_t): Likewise.
15165
15166 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15167
15168         * malloc/arena.c: Include malloc-sysdep.h.
15169         (shrink_heap): Use check_may_shrink_heap to decide if madvise
15170         is sufficient to shrink the heap or an unmap is needed.
15171         * sysdeps/generic/malloc-sysdep.h: New file.  Define
15172         new function check_may_shrink_heap.
15173         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
15174         new function check_may_shrink_heap.
15175
15176 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15177
15178         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
15179         comments.
15180
15181 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
15182
15183         * catgets/test-gencat.sh: Add "set -e".
15184         * elf/tst-pathopt.sh: Likewise.
15185         * grp/tst_fgetgrent.sh: Likewise.
15186         * iconvdata/run-iconv-test.sh: Likewise.
15187         * intl/tst-gettext.sh: Likewise.
15188         * intl/tst-gettext2.sh: Likewise.
15189         * intl/tst-gettext4.sh: Likewise.
15190         * intl/tst-gettext6.sh: Likewise.
15191         * intl/tst-translit.sh: Likewise.
15192         * io/ftwtest-sh: Likewise.
15193         * libio/test-freopen.sh: Likewise.
15194         * malloc/tst-mtrace.sh: Likewise.
15195         * posix/globtest.sh: Likewise.
15196         * posix/tst-getconf.sh: Likewise.
15197         * posix/wordexp-tst.sh: Likewise.
15198         * stdio-common/tst-printf.sh: Likewise.
15199         * stdio-common/tst-unbputc.sh: Likewise.
15200         * stdlib/tst-fmtmsg.sh: Likewise.
15201         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15202         * catgets/Makefile: Do not specify -e option when running
15203         testsuite shell scripts.
15204         * elf/Makefile: Likewise.
15205         * grp/Makefile: Likewise.
15206         * iconvdata/Makefile: Likewise.
15207         * intl/Makefile: Likewise.
15208         * io/Makefile: Likewise.
15209         * libio/Makefile: Likewise.
15210         * malloc/Makefile: Likewise.
15211         * posix/Makefile: Likewise.
15212         * stdio-common/Makefile: Likewise.
15213         * stdlib/Makefile: Likewise.
15214         * sysdeps/x86_64/Makefile: Likewise.
15215
15216         * io/ftwtest-sh: Add copyright header.
15217         * posix/globtest.sh: Likewise.
15218         * posix/tst-getconf.sh: Likewise.
15219         * posix/wordexp-tst.sh: Likewise.
15220         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15221
15222 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
15223
15224         [BZ #13679]
15225         * Makeconfig (+link): Defined as $(+link-static) if
15226         $(build-shared) isn't yes.
15227         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
15228         isn't yes.
15229         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
15230
15231         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
15232
15233         [BZ #14562]
15234         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
15235         new chunk size with MALLOC_ALIGN_MASK.
15236
15237 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
15238
15239         [BZ #5044]
15240         * stdio-common/printf_fphex.c: Include <stdbool.h> and
15241         <rounding-mode.h>.
15242         (__printf_fphex): Determine rounding using get_rounding_mode and
15243         round_away.
15244         * stdio-common/tst-printf-round.c (struct hex_test): New
15245         structure.
15246         (hex_tests): New variable.
15247         (test_hex_in_one_mode): New function.
15248         (do_test): Also run tests for hex float output.
15249
15250 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
15251
15252         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15253         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15254         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
15255         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15256         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15257         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
15258         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15259         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15260
15261 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
15262
15263         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
15264         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
15265         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
15266         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
15267
15268 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
15269
15270         [BZ #14579]
15271         * elf/rtld.c (dl_main): Limit the check for self loading to normal
15272         mode only.
15273         * elf/tst-rtld-load-self.sh: New test.
15274         * elf/Makefile: Run it.
15275
15276 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
15277
15278         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
15279         (tst-writev-ENV): Remove.
15280         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
15281
15282 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
15283
15284         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
15285
15286 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
15287
15288         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
15289         unconditional.
15290         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
15291         Likewise.
15292         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
15293         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
15294         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
15295         Likewise.
15296
15297 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
15298
15299         [BZ #14587]
15300         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
15301         * config.make.in (have-cpp-asm-debuginfo): Removed.
15302         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
15303         * configure: Regenerated.
15304
15305 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
15306
15307         [BZ #5044]
15308         * stdio-common/printf_fp.c: Include <stdbool.h> and
15309         <rounding-mode.h>.
15310         (___printf_fp): Determine rounding using get_rounding_mode and
15311         round_away.
15312         * stdio-common/tst-printf-round.c: New file.
15313         * stdio-common/Makefile (tests): Add tst-printf-round.
15314         (link-libm): New variable.
15315         ($(objpfx)tst-printf-round): Depend in $(link-libm).
15316
15317 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
15318
15319         [BZ #14576]
15320         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
15321         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
15322         Likewise.
15323         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
15324         Likewise.
15325
15326 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
15327
15328         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
15329         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15330         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15331         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15332
15333 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
15334
15335         [BZ #14518]
15336         * include/rounding-mode.h: New file.
15337         * sysdeps/generic/get-rounding-mode.h: Likewise.
15338         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
15339         * stdlib/strtod_l.c: Include <rounding-mode.h>.
15340         (MAX_VALUE): New macro.
15341         (MIN_VALUE): Likewise.
15342         (overflow_value): New function.
15343         (underflow_value): Likewise.
15344         (round_and_return): Use overflow_value and underflow_value to
15345         determine return values in overflow and underflow cases.  Use
15346         round_away to determine rounding depending on rounding mode.
15347         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
15348         determine return values in overflow and underflow cases.
15349         * stdlib/tst-strtod-round.c: Include <fenv.h>.
15350         (struct test_results): New structure.
15351         (struct test): Use struct test_results to store expected results
15352         for all rounding modes.
15353         (TEST): Include expected results for all rounding modes.
15354         (test_in_one_mode): New function.
15355         (do_test): Use test_in_one_mode to compute and check results.
15356         Check results for all rounding modes.
15357         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
15358         $(link-libm).
15359
15360 2012-12-09  Allan McRae  <allan@archlinux.org>
15361
15362         * sysdeps/i386/fpu/libm-test-ulps: Update
15363
15364 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
15365
15366         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
15367         (_G_int32_t): Likewise.
15368         (_G_uint16_t): Likewise.
15369         (_G_uint32_t): Likewise.
15370         (_G_HAVE_BOOL): Likewise.
15371         (_G_HAVE_ATEXIT): Likewise.
15372         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15373         (_G_HAVE_IO_FILE_OPEN): Likewise.
15374         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
15375         (_G_int32_t): Likewise.
15376         (_G_uint16_t): Likewise.
15377         (_G_uint32_t): Likewise.
15378         (_G_HAVE_BOOL): Likewise.
15379         (_G_HAVE_ATEXIT): Likewise.
15380         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15381         (_G_HAVE_IO_FILE_OPEN): Likewise.
15382         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
15383         (_G_int32_t): Likewise.
15384         (_G_uint16_t): Likewise.
15385         (_G_uint32_t): Likewise.
15386         (_G_HAVE_BOOL): Likewise.
15387         (_G_HAVE_ATEXIT): Likewise.
15388         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15389         (_G_HAVE_IO_FILE_OPEN): Likewise.
15390
15391 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
15392
15393         * csu/libc-tls.c: Update copyright years.
15394
15395 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
15396
15397         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
15398         [!_G_USING_THUNKS]: Remove conditional code.
15399         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
15400         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
15401
15402         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
15403         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
15404         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15405         (_G_VTABLE_LABEL_PREFIX): Likewise.
15406         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15407         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15408         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15409         (_G_VTABLE_LABEL_PREFIX): Likewise.
15410         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15411         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15412         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15413         (_G_VTABLE_LABEL_PREFIX): Likewise.
15414         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15415
15416 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15417
15418         * libio/Makefile: Include ../Makeconfig before tests.
15419         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
15420         only if $(build-shared) is yes.
15421
15422         * iconv/gconv_db.c: Update copyright years.
15423
15424 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15425
15426         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
15427         unwind info if defined PIC. Fix special cases description.
15428         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
15429
15430         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
15431         DP_HI_MASK entry.
15432         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
15433
15434 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15435
15436         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
15437
15438         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
15439         is NULL.
15440
15441         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
15442         (LDLIBS-tst-chk4): This.
15443         (LDFLAGS-tst-chk5): Renamed to ...
15444         (LDLIBS-tst-chk5): This.
15445         (LDFLAGS-tst-chk6): Renamed to ...
15446         (LDLIBS-tst-chk6): This.
15447         (LDFLAGS-tst-lfschk4): Renamed to ...
15448         (LDLIBS-tst-lfschk4): This.
15449         (LDFLAGS-tst-lfschk5): Renamed to ...
15450         (LDLIBS-tst-lfschk5): This.
15451         (LDFLAGS-tst-lfschk6): Renamed to ...
15452         (LDLIBS-tst-lfschk6): This.
15453
15454         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
15455         on $(common-objpfx)soversions.mk.
15456
15457 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
15458
15459         [BZ #10014]
15460         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
15461         example host name.
15462
15463 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
15464
15465         * malloc/arena.c (arena_get_retry): New function that gets
15466         another arena for the caller to try its request on.
15467         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
15468         current arena cannot fulfill the request.
15469         (__libc_memalign): Likewise.
15470         (__libc_memalign): Likewise.
15471         (__libc_pvalloc): Likewise.
15472         (__libc_calloc): Likewise.
15473
15474 2012-09-05  John Tobey  <john.tobey@gmail.com>
15475
15476         [BZ #13542]
15477         * manual/arith.texi (Operations on Complex): Fix description
15478         of carg branch cut.
15479
15480 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15481
15482         [BZ #10014]
15483         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
15484         host name.
15485
15486         [BZ #10038]
15487         * manual/memory.texi (Memory): Make order of menu items match
15488         order of sections.
15489
15490 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15491
15492         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
15493         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
15494         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
15495
15496 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15497
15498         * csu/libc-tls.c (static_dtv): Renamed to ...
15499         (_dl_static_dtv): This.  Make it global.
15500         (_dl_initial_dtv): Removed.
15501         (__libc_setup_tls): Updated.
15502         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
15503         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
15504         DL_INITIAL_DTV.
15505
15506 2012-09-06  Petr Machata  <pmachata@redhat.com>
15507
15508         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
15509         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
15510         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
15511         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
15512
15513 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15514
15515         [BZ #14545]
15516         * csu/libc-tls.c (_dl_initial_dtv): New variable.
15517         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
15518         freeing dtv[-1].
15519
15520 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15521
15522         [BZ #14544]
15523         * Makeconfig (link-static-before-libc): Replace $(+prector)
15524         with $(+prectorT).
15525         (link-static-after-libc): Replace $(+postctor) with
15526         $(+postctorT).
15527         (link-bounded): Replace $(+prector)/$(+postctor) with
15528         $(+prectorT)/$(+postctorT).
15529         (+prectorT): New macro.
15530         (+postctorT): Likewise.
15531
15532 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15533
15534         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
15535         (round_str): Handle values above the maximum for IBM long double
15536         as inexact.
15537         * stdlib/tst-strtod-round.c (tests): Regenerated.
15538
15539 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15540
15541         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
15542         assembler flag.
15543         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
15544         zarch_nohighgprs around the zarch optimized routines.
15545         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
15546         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
15547         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
15548         for zarch.
15549
15550 2012-09-05  David S. Miller  <davem@davemloft.net>
15551
15552         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15553
15554         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
15555         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
15556         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
15557         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15558         entries.
15559
15560 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15561
15562         * malloc/arena.c: Fold copyright years.
15563         * malloc/mcheck.c, malloc/memusage.c: Likewise.
15564
15565 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15566
15567         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
15568
15569 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15570
15571         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
15572
15573 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15574
15575         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
15576         change internal state upon failure.
15577
15578 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15579
15580         * malloc/mcheck.c (mcheck_check_all): Fix typo.
15581         * malloc/memusage.c (mmap): Likewise.
15582         (mmap64, mremap): Likewise.  Adjust name in comment.
15583
15584 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15585
15586         * libio/fileops.c: Fix typos in comments.
15587         * libio/oldfileops.c: Likewise.
15588         * libio/wfileops.c: Likewise.
15589
15590 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15591
15592         [BZ #1349]
15593         * malloc/Makefile (tests): Add tst-malloc-usable test case.
15594         (tst-malloc-usable-ENV): Set environment for test case.
15595         * malloc/hooks.c (malloc_check_get_size): New function to get
15596         requested size.
15597         * malloc/malloc.c (musable): Use malloc_check_get_size.
15598         * malloc/tst-malloc-usable.c: New test case.
15599
15600 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15601
15602         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
15603
15604 2012-09-05  Allan McRae  <allan@archlinux.org>
15605
15606         [BZ #13966]
15607         * configure.in (CXX_SYSINCLUDES): Use compiler output to
15608         determine header location.
15609         * configure: Regenerated.
15610
15611 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15612
15613         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
15614         float format.
15615         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
15616         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
15617         format.
15618         (test): Regenerate.
15619
15620 2012-09-04  David S. Miller  <davem@davemloft.net>
15621
15622         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
15623         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
15624         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
15625
15626 2012-09-04  Florian Weimer  <fweimer@redhat.com>
15627
15628         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
15629         failures.
15630
15631         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
15632
15633 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15634
15635         [BZ #9914]
15636         * libio/iogetdelim.c: Include <limits.h>.
15637         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
15638         + len + 1 would overflow.
15639
15640 2012-09-03  Andreas Jaeger  <aj@suse.de>
15641
15642         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15643         * sysdeps/i386/fpu/libm-test-ulps: Update.
15644
15645 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15646
15647         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15648         Add s_sinf-sse2, s_conf-sse2.
15649
15650         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
15651         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
15652         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
15653         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
15654
15655         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
15656         for using routine as __sinf_ia32.
15657         Use macro for function declaration and weak_alias.
15658         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
15659         for using routine as __cosf_ia32.
15660         Use macro for function declaration and weak_alias.
15661
15662         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15663         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15664
15665         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15666         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15667         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15668
15669         * math/libm-test.inc (cos_test): Add more test cases.
15670         (sin_test): Likewise.
15671         (sincos_test): Likewise.
15672
15673 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15674
15675         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15676         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15677         hidden.
15678         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15679
15680 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15681
15682         [BZ #14538]
15683         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15684         first element of the GOT.
15685         (elf_machine_load_address): Return the difference between
15686         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15687
15688 2012-09-01  Allan McRae  <allan@archlinux.org>
15689
15690         [BZ #13412]
15691         * configure.in (AWK): Require gawk version 3.0 or later.
15692         * configure: Regenerated.
15693
15694 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15695
15696         * sysdeps/unix/sysv/linux/kernel-features.h
15697         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15698         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15699         [__NR_clock_getres]: Make code unconditional.
15700         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15701         (clock_getcpuclockid): Remove code left unreachable by removal of
15702         conditionals.
15703         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15704         code unconditional.
15705         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15706         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15707         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15708         Make code unconditional.
15709         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15710         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15711         * sysdeps/unix/sysv/linux/clock_settime.c
15712         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15713         conditional code.
15714         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15715         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15716
15717 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15718
15719         [BZ #14476]
15720         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15721         scripts/test-installation.pl.
15722
15723         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15724         and $ld_so_version if it is set.
15725
15726 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15727
15728         [BZ #14516]
15729         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15730         failure if reading from procfs failed.
15731         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15732
15733 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15734
15735         * sysdeps/unix/sysv/linux/kernel-features.h
15736         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15737         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15738         Remove conditional code.
15739         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15740         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15741         Remove conditional code.
15742         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15743         * sysdeps/unix/sysv/linux/i386/fxstat.c
15744         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15745         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15746         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15747         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15748         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15749         * sysdeps/unix/sysv/linux/i386/lxstat.c
15750         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15751         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15752         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15753         Remove conditional code.
15754         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15755         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15756         Remove conditional code.
15757         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15758         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15759         <kernel-features.h>.
15760         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15761         Remove.
15762         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15763         Remove conditional code.
15764         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15765         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15766         Remove conditional.
15767
15768 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15769
15770         [BZ #5400]
15771         * NEWS: Add fixed bug number.
15772
15773 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15774
15775         [BZ #14519]
15776         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15777         underflowing exponent in case of negative sign.
15778         * stdlib/tst-strtod-round-data: Add more tests.
15779         * stdlib/tst-strtod-round.c (tests): Regenerated.
15780
15781         [BZ #3479]
15782         * stdlib/strtod_l.c (NDIG): Remove.
15783         (HEXNDIG): Likewise.
15784         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15785         smallest representable value.
15786         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15787         lie within an exact representation of 1/2 ulp of the result.
15788         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15789         unconditionally.
15790         (TENS_P9_IDX): Define unconditionally.
15791         (TENS_P9_SIZE): Likewise.
15792         (TENS_P10_IDX): Likewise.
15793         (TENS_P10_SIZE): Likewise.
15794         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15795         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15796         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15797         entries for 10^2^13 and 10^2^14.
15798         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15799         (TENS_P13_IDX): Define.
15800         (TENS_P13_SIZE): Likewise.
15801         (TENS_P14_IDX): Likewise.
15802         (TENS_P14_SIZE): Likewise.
15803         (_fpioconst_pow10): Change array size to
15804         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15805         unconditional.
15806         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15807         1024]: Add entries for 10^2^13 and 10^2^14.
15808         [LAST_POW10 > _LAST_POW10]: Remove #error.
15809         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15810         (_fpioconst_pow10): Change array size to
15811         FPIOCONST_POW10_ARRAY_SIZE.
15812         * stdlib/gen-fpioconst.c: New file.
15813         * stdlib/gen-tst-strtod-round.c: Likewise.
15814         * stdlib/tst-strtod-round-data: Likewise.
15815         * stdlib/tst-strtod-round.c: Likewise.
15816         * stdlib/Makefile (tests): Add tst-strtod-round.
15817
15818         [BZ #14459]
15819         * stdlib/strtod_l.c: Include <stdint.h>.
15820         (NDEBUG): Do not define.
15821         (round_and_return): Change EXPONENT parameter to type intmax_t.
15822         Rearrange calculations to avoid internal overflow possibilities.
15823         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15824         Rearrange calculations to avoid internal overflow possibilities.
15825         Assert that number fits inside MPNSIZE limbs.
15826         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15827         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15828         calculations and add assertions to avoid internal overflow
15829         possibilities.  Add casts to avoid signed/unsigned operations.
15830         * stdlib/tst-strtod-overflow.c: New file.
15831         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15832
15833 2012-08-25  Marek Polacek  <polacek@redhat.com>
15834
15835         * time/time.h: Fix some typos in comments.
15836
15837 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15838
15839         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15840         * posix/tst-rfc3484-2.c: Likewise.
15841         * posix/tst-rfc3484-3.c: Likewise.
15842
15843 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15844
15845         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15846         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15847
15848 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15849
15850         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15851         #include of fxstatat64.c.
15852
15853 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15854
15855         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15856         * shadow/getspent_r.c: Likewise.
15857         * shadow/getspnam.c: Likewise.
15858         * shadow/getspnam_r.c: Likewise.
15859         * gshadow/getsgent.c: Likewise.
15860         * gshadow/getsgent_r.c: Likewise.
15861         * gshadow/getsgnam.c: Likewise.
15862         * gshadow/getsgnam_r.c: Likewise.
15863         * inet/getnetbyad.c: Likewise.
15864         * inet/getnetbyad_r.c: Likewise.
15865         * inet/getnetbynm.c: Likewise.
15866         * inet/getnetbynm_r.c: Likewise.
15867         * inet/getnetent.c: Likewise.
15868         * inet/getnetent_r.c: Likewise.
15869         * inet/getproto.c: Likewise.
15870         * inet/getproto_r.c: Likewise.
15871         * inet/getprtent.c: Likewise.
15872         * inet/getprtent_r.c: Likewise.
15873         * inet/getprtname.c: Likewise.
15874         * inet/getprtname_r.c: Likewise.
15875         * inet/getrpcbyname.c: Likewise.
15876         * inet/getrpcbyname_r.c: Likewise.
15877         * inet/getrpcbynumber.c: Likewise.
15878         * inet/getrpcbynumber_r.c: Likewise.
15879         * inet/getrpcent.c: Likewise.
15880         * inet/getrpcent_r.c: Likewise.
15881         * inet/getaliasent.c: Likewise.
15882         * inet/getaliasent_r.c: Likewise.
15883         * inet/getaliasname.c: Likewise.
15884         * inet/getaliasname_r.c: Likewise.
15885         * nscd/getgrgid_r.c: Likewise.
15886         * nscd/getgrnam_r.c: Likewise.
15887         * nscd/gethstbyad_r.c: Likewise.
15888         * nscd/gethstbynm3_r.c: Likewise.
15889         * nscd/getpwnam_r.c: Likewise.
15890         * nscd/getpwuid_r.c: Likewise.
15891         * nscd/getsrvbynm_r.c: Likewise.
15892         * nscd/getsrvbypt_r.c: Likewise.
15893         * nscd/gai.c: Likewise.
15894
15895         * configure.in (build_nscd): New substituted variable, set
15896         by --disable-build-nscd and defaults to $use_nscd.
15897         * configure: Regenerated.
15898         * config.make.in (build-nscd): New substituted variable.
15899         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15900         Change conditional to require [$(build-nscd) = yes] as well.
15901         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15902
15903         [BZ# 13696]
15904         * configure.in (use_nscd): New substituted variable, set by
15905         --disable-nscd.  If enabled, define USE_NSCD.
15906         * configure: Regenerated.
15907         * config.h.in: Add USE_NSCD.
15908         * config.make.in (use-nscd): New substituted variable.
15909         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15910         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15911         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15912         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15913         (CFLAGS-getgrnam_r.c): Likewise.
15914         (CFLAGS-initgroups.c): Likewise.
15915         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
15916         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
15917         Variables removed.
15918         * inet/getnetgrent_r.c
15919         (nscd_setnetgrent): New function, broken out of ...
15920         (setnetgrent): ... here.  Call it.
15921         (innetgr): Conditionalize nscd bits on [USE_NSCD].
15922         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
15923         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
15924         * nscd/Makefile (routines, aux): Move definitions after include of
15925         Makeconfig.  Conditionalize on [$(use-nscd) != no].
15926         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
15927         Conditionalize on [USE_NSCD].
15928         (is_nscd, nscd_init_cb): Likewise.
15929         (nss_load_library): Conditionalize init callback on [USE_NSCD].
15930         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
15931         * nss/nss_db/db-init.c: Likewise.
15932         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
15933         [USE_NSCD].
15934         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
15935         (make_request): Use it.
15936         (cache_valid_p): New function.
15937         (__check_pf): Use it.
15938         * NEWS: Add item for --disable-nscd.
15939
15940 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
15941
15942         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
15943         to support sed >= 4.2.1-20-ga9bf076.
15944         * configure: Regenerated.
15945
15946 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15947
15948         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
15949         Conditionalize whole body on [IREL].
15950
15951 2012-08-22  Jeff Law <law@redhat.com>
15952
15953         [BZ #14505]
15954         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
15955         if the family is PF_UNSPEC.
15956
15957 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
15958
15959         * Makerules (lib-version): Rename from V.
15960         (install-lib-nosubdir): Change V to lib-version.
15961
15962 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
15963
15964         [BZ #14252]
15965         * powerpc32/power6/wcschr.c: New file.
15966         * powerpc32/power6/wcscpy.c: New file.
15967         * powerpc32/power6/wcsrchr.c: New file.
15968         * powerpc64/power6/wcschr.c: New file.
15969         * powerpc64/power6/wcscpy.c: New file.
15970         * powerpc64/power6/wcsrchr.c: New file.
15971
15972 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15973
15974         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
15975         (two_way_short_needle): Use it.
15976         * string/strstr.c (AVAILABLE1_USES_J): Define.
15977         * string/strcasestr.c: Likewise.
15978
15979         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
15980         array references.
15981         * string/strcasestr.c (TOLOWER): Make side-effect safe.
15982
15983         [BZ #11607]
15984         * NEWS: Add an entry.
15985         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
15986         define their defaults.
15987         (two_way_short_needle): Detect end-of-string on-the-fly.
15988         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
15989         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
15990         * string/bug-strcasestr1.c: New test.
15991         * string/Makefile: Run it.
15992
15993 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15994
15995         [BZ #11607]
15996         * string/str-two-way.h (two_way_short_needle): Optimize matching of
15997         the first character.
15998
15999 2012-08-21  Roland McGrath  <roland@hack.frob.com>
16000
16001         * csu/elf-init.c (__libc_csu_irel): Function removed.
16002         * csu/libc-start.c (apply_irel): New function.
16003         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
16004
16005 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
16006
16007         * sysdeps/unix/sysv/linux/kernel-features.h
16008         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
16009         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
16010         <kernel-features.h>.
16011         [__NR_fadvise64_64]: Make code unconditional.
16012         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
16013         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16014         !__NR_fadvise64_64)]: Likewise.
16015         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16016         !__NR_fadvise64_64))]: Likewise.
16017         [__NR_fadvise64]: Make code unconditional.
16018         [!__NR_fadvise64]: Remove conditional code.
16019         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
16020         <kernel-features.h>.
16021         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16022         unconditional.
16023         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16024         conditional code.
16025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
16026         not include <kernel-features.h>.
16027         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16028         unconditional.
16029         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16030         conditional code.
16031         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
16032         include <kernel-features.h>.
16033         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16034         unconditional.
16035         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16036         conditional code.
16037
16038 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16039
16040         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
16041         slight instruction rearrangements per scrollpipe analysis.
16042         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
16043
16044 2012-08-20  Roland McGrath  <roland@hack.frob.com>
16045
16046         * manual/syslog.texi (syslog; vsyslog, closelog):
16047         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
16048         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
16049
16050         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
16051         DSOCAPS to match condition on defining it.
16052
16053 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
16054
16055         * sysdeps/unix/sysv/linux/kernel-features.h
16056         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
16057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
16058         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16059         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
16061         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16062         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
16064         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16065         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16066
16067         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
16068         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
16069
16070         * sysdeps/unix/sysv/linux/kernel-features.h
16071         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
16072         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
16073         unconditional.
16074         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16075         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
16076         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16077         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16078         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
16079         Make code unconditional.
16080         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16081         (__mmap64) [!__NR_mmap2]: Likewise.
16082         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
16083         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16084         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16085         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
16086         [__NR_mmap2]: Make code unconditional.
16087         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16088         (__mmap64) [!__NR_mmap2]: Likewise.
16089
16090 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16091
16092         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
16093
16094 2012-08-18  Andreas Jaeger  <aj@suse.de>
16095
16096         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
16097
16098 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16099
16100         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
16101         * include/unistd.h (__have_sock_cloexec): Likewise.
16102         (__have_pipe2): Likewise.
16103         (__have_dup3): Likewise.
16104
16105 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16106
16107         [BZ #9685]
16108         * include/unistd.h (__have_pipe2): Change define into an extern int.
16109         (__have_dup3): Likewise.
16110         * socket/have_sock_cloexec.c: Include fcntl.h.
16111         (__have_pipe2): New variable.
16112         (__have_dup3): Likewise.
16113
16114 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
16115
16116         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
16117
16118 2012-08-17  Marek Polacek  <polacek@redhat.com>
16119
16120         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
16121         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
16122
16123 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16124
16125         * configure.in: Add AC_SUBST for sysheaders.
16126         * configure: Regenerated.
16127         * config.make.in (sysheaders): New substituted variable.
16128
16129         * sysdeps/unix/mkfifo.c: Moved ...
16130         * sysdeps/posix/mkfifo.c: ... here.
16131         * sysdeps/unix/mkfifoat.c: Moved ...
16132         * sysdeps/posix/mkfifoat.c: ... here.
16133
16134         * sysdeps/unix/utime.c: Moved ...
16135         * sysdeps/posix/utime.c: ... here.
16136
16137         * sysdeps/unix/time.c: Moved ...
16138         * sysdeps/posix/time.c: ... here.
16139         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
16140         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
16141
16142         * sysdeps/unix/nice.c: Moved ...
16143         * sysdeps/posix/nice.c: ... here.
16144
16145         * sysdeps/unix/alarm.c: Moved ...
16146         * sysdeps/posix/alarm.c: ... here.
16147
16148         * intl/Makefile ($(codeset_mo)): Depend on the input file.
16149
16150 2012-08-17  Jeff Law <law@redhat.com>
16151
16152         * intl/Makefile (codeset_mo): New variable.
16153         ($(codeset_mo)): New target.
16154         (tst-codeset.out): Depend on that.  Remove explicit rule.
16155         (tst-gettext3.out, tst-gettext5.out): Likewise.
16156         (LOCPATH-ENV, tst-codeset-ENV): New variables.
16157         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
16158         * intl/tst-codeset.sh: Remove.
16159         * intl/tst-gettext3.sh: Likewise.
16160         * intl/tst-gettext5.sh: Likewise.
16161
16162 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16163
16164         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
16165         * sysdeps/unix/syscalls.list: ... here.
16166
16167         * sysdeps/posix/getaddrinfo.c
16168         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
16169         (gaiconf_init, gaiconf_reload): Use them.
16170         [!_STATBUF_ST_NSEC]
16171         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
16172         Define using time_t rather than struct timespec.
16173
16174         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
16175         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
16176         Macros removed.
16177         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
16178         [!NO_THREADS].
16179         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
16180         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
16181         Likewise.
16182
16183         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
16184         __libc_cleanup_push argument.
16185
16186         * bits/param.h: New file.
16187         * misc/sys/param.h: New file.
16188         * include/sys/param.h: New file.
16189         * misc/Makefile (headers): Add bits/param.h.
16190         * sysdeps/generic/sys/param.h: File removed.
16191         * sysdeps/unix/sysv/linux/bits/param.h: New file.
16192         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
16193         * sysdeps/mach/hurd/bits/param.h: New file.
16194         * sysdeps/mach/hurd/sys/param.h: File removed.
16195
16196         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
16197         last change.
16198
16199         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
16200         [_IO_MTSAFE_IO].
16201         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
16202         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
16203         New macros.
16204
16205         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
16206         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
16207         rather than -D_IO_MTSAFE_IO conditionally.
16208         * stdio-common/Makefile (CPPFLAGS): Likewise.
16209         * wcsmbs/Makefile (CPPFLAGS): Likewise.
16210         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
16211         Use $(libio-mtsafe).
16212         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
16213         of -D_IO_MTSAFE_IO.
16214         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
16215         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
16216         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
16217         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
16218         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
16219         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
16220         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
16221         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
16222         (CFLAGS-fread_u_chk.c): Likewise.
16223         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
16224         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
16225         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
16226         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
16227         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
16228         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
16229         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
16230         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
16231         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
16232
16233         * libio/Makefile: Test [$(libc-reentrant) = yes]
16234         instead of [$(filter %REENTRANT, $(defines)) nonempty].
16235
16236         * Makeconfig
16237         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
16238         * sysdeps/pthread/configure: File removed.
16239         * sysdeps/pthread/Makeconfig: New file.
16240         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
16241         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
16242
16243 2012-08-16  Gary Benson  <gbenson@redhat.com>
16244
16245         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
16246         unmapping the first object in a namespace.
16247
16248 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16249
16250         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
16251         (__internal_setnetgrent): ... this.  Add internal_function to
16252         definition.  Add libc_hidden_def.
16253         (setnetgrent): Update caller.
16254         (internal_endnetgrent): Renamed to ...
16255         (__internal_endnetgrent): ... this.  Add internal_function to
16256         definition.  Add libc_hidden_def.
16257         (endnetgrent): Update caller.
16258         (internal_getnetgrent_r): Renamed to ...
16259         (__internal_getnetgrent_r): ... this.  Add internal_function to
16260         definition.  Add libc_hidden_def.
16261         (__getnetgrent_r): Update caller.
16262         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
16263
16264 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16265
16266         * stdlib/longlong.h: Update from GCC.
16267
16268 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16269
16270         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
16271         on _QL, which is set by umul_ppmm but never used.
16272         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
16273         variables, which are set by GMP macros but never used.
16274         * stdio-common/_itowa.c (_itowa): Likewise.
16275         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
16276         * stdlib/mod_1.c (mpn_mod_1): Likewise.
16277
16278 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
16279
16280         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
16281         struct La_sh_regs is not constant.
16282         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
16283         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
16284         and struct La_sparc64_regs are not constant.
16285
16286 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16287
16288         * sysdeps/unix/sysv/linux/kernel-features.h
16289         (__ASSUME_POSIX_TIMERS): Remove.
16290         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16291         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16292         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
16293         Make code unconditional.
16294         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16295         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
16296         Make code unconditional.
16297         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16298         * sysdeps/unix/sysv/linux/clock_nanosleep.c
16299         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
16300         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16301         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
16302         Make code unconditional.
16303         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16304         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
16305         (__libc_missing_posix_timers): Remove.
16306
16307 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16308
16309         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
16310         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
16311
16312         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
16313
16314         * elf/dl-sym.c: Include <stdlib.h>.
16315
16316         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
16317         constants, which avoids warnings in 32-bit builds.
16318
16319         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
16320         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
16321
16322         * misc/lseek.c: File moved to ...
16323         * io/lseek.c: ... here.
16324
16325         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
16326
16327         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
16328         shifting LEN more than 31 bits at once.
16329
16330 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16331
16332         [BZ #14195]
16333         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
16334         segmentation fault for a case of two empty input strings.
16335         * string/test-strncasecmp.c (check1): Renamed to...
16336         (bz12205): ...this.
16337         (bz14195): Add new testcase for two empty input strings and N > 0.
16338         (test_main): Call new testcase, adapt for renamed function.
16339
16340 2012-08-15  Andreas Jaeger  <aj@suse.de>
16341
16342         [BZ #14090]
16343         * crypt/md5test2.c: New test, based on test supplied by Serge
16344         Belyshev <belyshev@depni.sinp.msu.ru>.
16345         * crypt/Makefile (xtests): Add md5test-giant..
16346         * crypt/Makefile ($(objpfx)md5test-giant): Add.
16347
16348 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16349
16350         [BZ #14090]
16351         * crypt/md5.c (md5_process_block): Don't assume the buffer
16352         length is less than 2**32.
16353         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
16354         length is less than 2**64.
16355
16356 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16357
16358         * string/str-two-way.h: Include <sys/param.h>.
16359         (MAX): Macro removed.
16360
16361         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
16362         Move #define and #undef of memmove to just before and after
16363         including <string.h>.
16364
16365         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
16366         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
16367         and after including <string.h>.  Move declarations of
16368         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
16369         to before #include "string/memmove.c".
16370
16371         * include/dirent.h: Declare __getdirentries.
16372
16373         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
16374         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
16375
16376 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
16377
16378         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
16379         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
16380         * sysdeps/i386/configure: Regenerated.
16381         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
16382         STABS_CURRENT_FILE, and STABS_FUN.
16383         (END): Remove call to STABS_FUN_END.
16384         (STABS_CURRENT_FILE1): Delete.
16385         (STABS_CURRENT_FILE): Likewise.
16386         (STABS_FUN): Likewise.
16387         (STABS_FUN_END): Likewise.
16388         (STABS_FUN2): Likewise.
16389         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
16390         * sysdeps/x86_64/configure: Regenerated.
16391
16392 2012-08-14  Roland McGrath  <roland@hack.frob.com>
16393
16394         * elf/dl-open.c: Include <atomic.h>.
16395         * elf/dl-lookup.c: Likewise.
16396
16397 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
16398
16399         * sysdeps/unix/sysv/linux/kernel-features.h
16400         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
16401         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
16402         unconditionally.
16403         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
16404         unconditionally.
16405         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
16406         condition on __ASSUME_CLONE_THREAD_FLAGS.
16407
16408 2012-08-14  Andreas Jaeger  <aj@suse.de>
16409
16410         * sysdeps/i386/fpu/libm-test-ulps: Update.
16411
16412 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
16413
16414         * include/atomic.h (atomic_exchange_and_add): Split into ...
16415         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
16416         New atomic macros.
16417
16418 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
16419
16420         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16421
16422 2012-08-13  Jeff Law <law@redhat.com>
16423
16424         * manual/stdio.texi (snprintf): Clarify handling of the trailing
16425         null byte in the output string.
16426
16427 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
16428
16429         * sysdeps/unix/sysv/linux/kernel-features.h
16430         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
16431         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
16432         (__ASSUME_ARG_MAX_STACK_BASED): Define.
16433         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
16434         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
16435         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
16436         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
16437
16438 2012-08-09  Jeff Law <law@redhat.com>
16439
16440         [BZ #13939]
16441         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
16442         When avoid_arena is set, don't retry in the that arena.  Pick the
16443         next one, whatever it might be.
16444         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
16445         (arena_lock): Pass in new parameter to arena_get2.
16446         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
16447         arena_get2.
16448         (__libc_malloc): Unify retrying after main arena failure with
16449         __libc_memalign version.
16450         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
16451
16452 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16453
16454         [BZ #14166]
16455         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
16456         to __redirect_strstr.
16457         (__strstr_sse42): Use typeof __redirect_strstr.
16458         (__strstr_ia32): Likewise.
16459         (__libc_strstr): New prototype.
16460         (strstr): Renamed to ...
16461         (__libc_strstr): This.
16462         (strstr): New strong alias of __libc_strstr.
16463         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
16464         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
16465         __redirect_time.
16466         Include <time.h>.
16467         (__libc_time): New prototype.
16468         (time_ifunc): Replace time with __libc_time.
16469         (time): New strong alias and hidden definition of __libc_time.
16470         (__GI_time): Remove strong alias.
16471         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
16472         Include <stddef.h>.
16473         (memmove): Redefined to __redirect_memmove.
16474         (__memmove_sse2): Use typeof __redirect_memmove.
16475         (__memmove_ssse3): Likewise.
16476         (__memmove_ssse3_back): Likewise.
16477         (__libc_memmove): New prototype.
16478         (memmove): Renamed to ...
16479         (__libc_memmove): This.
16480         (memmove): New strong alias of __libc_memmove.
16481
16482 2012-08-08  Mark Salter  <msalter@redhat.com>
16483
16484         * elf/elf.h
16485         (R_MN10300_TLS_GD): Define.
16486         (R_MN10300_TLS_LD): Likewise.
16487         (R_MN10300_TLS_LDO): Likewise.
16488         (R_MN10300_TLS_GOTIE): Likewise.
16489         (R_MN10300_TLS_IE): Likewise.
16490         (R_MN10300_TLS_LE): Likewise.
16491         (R_MN10300_TLS_DTPMOD): Likewise.
16492         (R_MN10300_TLS_DTPOFF): Likewise.
16493         (R_MN10300_TLS_TPOFF): Likewise.
16494         (R_MN10300_SYM_DIFF): Likewise.
16495         (R_MN10300_ALIGN): Likewise.
16496         (R_MN10300_NUM): Update.
16497
16498 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
16499
16500         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
16501         Remove.
16502
16503 2012-08-08  Roland McGrath  <roland@hack.frob.com>
16504
16505         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
16506
16507         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
16508         sysdeps/unix -> sysdeps/posix move.
16509         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16510
16511 2012-08-07      Allan McRae     <allan@archlinux.org>
16512
16513         [BZ #14303]
16514         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
16515         (SUNOS_CPP): Likewise.
16516         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
16517         not found.
16518         (open_input): Call CPP using execvp.
16519
16520 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16521
16522         * sysdeps/unix/sysv/linux/kernel-features.h
16523         (__ASSUME_PROT_GROWSUPDOWN): Remove.
16524         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16525         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16526         (__ASSUME_WAITID_SYSCALL): Likewise.
16527         * sysdeps/unix/sysv/linux/dl-execstack.c
16528         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
16529         code unconditional.
16530         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
16531         conditional code.
16532         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
16533         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
16534         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
16535         code.
16536         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
16537         unconditional.
16538         [__ASSUME_WAITID_SYSCALL]: Likewise.
16539         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
16540
16541 2012-08-07  Roland McGrath  <roland@hack.frob.com>
16542
16543         * sysdeps/unix/closedir.c: Renamed to ...
16544         * sysdeps/posix/closedir.c: ... here.
16545         * sysdeps/unix/dirfd.c: Renamed to ...
16546         * sysdeps/posix/dirfd.c: ... here.
16547         * sysdeps/unix/dirstream.h: Renamed to ...
16548         * sysdeps/posix/dirstream.h: ... here.
16549         * sysdeps/unix/fdopendir.c: Renamed to ...
16550         * sysdeps/posix/fdopendir.c: ... here.
16551         * sysdeps/unix/opendir.c: Renamed to ...
16552         * sysdeps/posix/opendir.c: ... here.
16553         * sysdeps/unix/readdir.c: Renamed to ...
16554         * sysdeps/posix/readdir.c: ... here.
16555         * sysdeps/unix/readdir_r.c: Renamed to ...
16556         * sysdeps/posix/readdir_r.c: ... here.
16557         * sysdeps/unix/rewinddir.c: Renamed to ...
16558         * sysdeps/posix/rewinddir.c: ... here.
16559         * sysdeps/unix/seekdir.c: Renamed to ...
16560         * sysdeps/posix/seekdir.c: ... here.
16561         * sysdeps/unix/telldir.c: Renamed to ...
16562         * sysdeps/posix/telldir.c: ... here.
16563         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
16564         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
16565         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16566         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16567
16568         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
16569         * bits/fcntl.h: ... here.
16570
16571         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
16572         not 0.
16573         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
16574         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
16575         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
16576         (struct flock): Move l_start, l_len to the beginning.
16577         Use __pid_t for l_pid.
16578         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
16579         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
16580         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
16581         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
16582         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
16583         [__USE_LARGEFILE64] (struct flock64): New type.
16584         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
16585
16586         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
16587         * bits/dirent.h: ... here.
16588
16589         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
16590         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
16591
16592 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16593
16594         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16595         Change from 2.6.0 to 2.6.16.
16596         * sysdeps/unix/sysv/linux/configure: Regenerated.
16597         * sysdeps/unix/sysv/linux/kernel-features.h
16598         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
16599         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
16600         version.
16601         (__ASSUME_UTIMES): Likewise.
16602         (__ASSUME_CLONE_STOPPED): Remove.
16603         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
16604         architectures, not kernel version.
16605         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
16606         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16607         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16608         (__ASSUME_WAITID_SYSCALL): Likewise.
16609         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
16610         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
16611         * README: State 2.6.16 as minimum Linux kernel version.  Do not
16612         refer to older versions.
16613
16614 2012-08-06  Roland McGrath  <roland@hack.frob.com>
16615
16616         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
16617         Define alphasort64 as an alias.
16618         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
16619         Define versionsort64 as an alias.
16620         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
16621         Define scandir64 as an alias.
16622         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
16623         Define scandirat64 as an alias.
16624         * dirent/alphasort64.c (alphasort64):
16625         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
16626         * dirent/versionsort64.c: Likewise.
16627         * dirent/scandir64.c: Likewise.
16628         * dirent/scandirat64.c: Likewise.
16629         * sysdeps/wordsize-64/alphasort.c: File removed.
16630         * sysdeps/wordsize-64/alphasort64.c: File removed.
16631         * sysdeps/wordsize-64/scandir.c: File removed.
16632         * sysdeps/wordsize-64/scandir64.c: File removed.
16633         * sysdeps/wordsize-64/scandirat.c: File removed.
16634         * sysdeps/wordsize-64/scandirat64.c: File removed.
16635         * sysdeps/wordsize-64/versionsort.c: File removed.
16636         * sysdeps/wordsize-64/versionsort64.c: File removed.
16637         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
16638         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
16639         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
16640         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
16641         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
16642         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
16643         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
16644         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
16645
16646         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
16647         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16648         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
16649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16650         [defined __arch64__ || defined __sparcv9]
16651         (__INO_T_MATCHES_INO64_T): New macro.
16652         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16653         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
16654         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
16655         * sysdeps/unix/sysv/linux/bits/dirent.h
16656         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
16657         (_DIRENT_MATCHES_DIRENT64): New macro.
16658
16659         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
16660         Define lockf64 as an alias.
16661         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16662         Define fseeko64 as an alias.
16663         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16664         Define ftello64 as an alias.
16665         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16666         Define _IO_fgetpos64 and fgetpos64 as aliases.
16667         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16668         Define _IO_fsetpos64 and fsetpos64 as aliases.
16669         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16670         Conditionalize body on this.
16671         * libio/fseeko64.c: Likewise.
16672         * libio/ftello64.c: Likewise.
16673         * libio/iofgetpos64.c: Likewise.
16674         * libio/iofsetpos64.c: Likewise.
16675         * sysdeps/wordsize-64/lockf.c: File removed.
16676         * sysdeps/wordsize-64/lockf64.c: File removed.
16677         * sysdeps/wordsize-64/fseeko.c: File removed.
16678         * sysdeps/wordsize-64/fseeko64.c: File removed.
16679         * sysdeps/wordsize-64/ftello.c: File removed.
16680         * sysdeps/wordsize-64/ftello64.c: File removed.
16681         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16682         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16683         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16684         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16685         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16686         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16687         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16688         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16689         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16690         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16691         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16692         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16693         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16694         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16695
16696         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16697         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16698         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16699         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16700         [defined __arch64__ || defined __sparcv9]
16701         (__OFF_T_MATCHES_OFF64_T): New macro.
16702         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16703         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16704         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16705         (__OFF_T_MATCHES_OFF64_T): New macro.
16706
16707 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16708
16709         * stdlib/secure-getenv.c (__secure_getenv): Replace
16710         GLIBC_2_16 with GLIBC_2_17.
16711
16712 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16713
16714         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16715         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16716
16717 2012-08-03  David S. Miller  <davem@davemloft.net>
16718
16719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16720
16721 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16722
16723         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16724         Remove.
16725         (__ASSUME_CORRECT_SI_PID): Likewise.
16726         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16727         (__ASSUME_TMPFS_NAME): Likewise.
16728         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16729         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16730         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16731         (HAVE_AUX_SECURE): Make definition unconditional.
16732         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16733         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16734
16735 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16736
16737         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16738         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16739         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16740         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16741         __eloop_threshold instead of SYMLOOP_MAX.
16742
16743         * sysdeps/generic/eloop-threshold.h: New file.
16744         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16745         of MAXSYMLINKS.
16746         * elf/chroot_canon.c (chroot_canon): Likewise.
16747
16748 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16749
16750         [BZ #13717]
16751         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16752         Change to 2.6.0 everywhere.
16753         * sysdeps/unix/sysv/linux/configure: Regenerated.
16754         * sysdeps/unix/sysv/linux/kernel-features.h
16755         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16756         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16757         kernel versions.
16758         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16759         (__ASSUME_FUTEX_REQUEUE): Remove.
16760         (__ASSUME_STATFS64): Define unconditionally.
16761         (__ASSUME_AT_SECURE): Likewise.
16762         (__ASSUME_CORRECT_SI_PID): Likewise.
16763         (__ASSUME_TGKILL): Define without depending on kernel version for
16764         i386.
16765         (__ASSUME_UTIMES): Likewise.
16766         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16767         kernel version.
16768         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16769         (__ASSUME_TMPFS_NAME): Likewise.
16770         * README: Update reference to Linux kernel versions.
16771
16772 2012-08-02  Marek Polacek  <polacek@redhat.com>
16773
16774         [BZ# 14150]
16775         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16776         libc_cv_asm_type_prefix with %.
16777         * configure: Regenerated.
16778         * include/libc-symbols.h: Remove comment about
16779         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16780         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16781         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16782         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16783         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16784         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16785         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16786         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16787         * elf/tst-unique2mod1.c: Likewise.
16788         * elf/tst-unique1mod2.c: Likewise.
16789         * elf/tst-unique1mod1.c: Likewise.
16790         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16791         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16792         Replace ASM_TYPE_DIRECTIVE with .type.
16793         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16794         * sysdeps/i386/sysdep.h: Likewise.
16795         * sysdeps/x86_64/sysdep.h: Likewise.
16796         * sysdeps/sh/sysdep.h: Likewise.
16797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16798         Do not define ASM_TYPE_DIRECTIVE.
16799         * sysdeps/powerpc/sysdep.h: Likewise.
16800         * sysdeps/powerpc/powerpc32/sysdep.h:
16801         Replace ASM_TYPE_DIRECTIVE with .type.
16802         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16803         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16804         * sysdeps/i386/fpu/e_powf.S: Likewise.
16805         * sysdeps/i386/fpu/e_expl.S: Likewise.
16806         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16807         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16808         * sysdeps/i386/fpu/e_pow.S: Likewise.
16809         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16810         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16811         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16812         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16813         * sysdeps/i386/fpu/e_log2.S: Likewise.
16814         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16815         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16816         * sysdeps/i386/fpu/e_powl.S: Likewise.
16817         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16818         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16819         * sysdeps/i386/fpu/e_logl.S: Likewise.
16820         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16821         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16822         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16823         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16824         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16825         * sysdeps/i386/fpu/e_log.S: Likewise.
16826         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16827         * sysdeps/i386/fpu/e_logf.S: Likewise.
16828         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16829         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16830         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16831         * sysdeps/i386/fpu/e_log10.S: Likewise.
16832         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16833         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16834         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16835         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16836         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16837         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16838         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16839         * sysdeps/i386/i686/strtok.S: Likewise.
16840         * sysdeps/i386/i386-mcount.S: Likewise.
16841         * sysdeps/i386/strtok.S: Likewise.
16842         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16843         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16844         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16845         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16846         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16847         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16848         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16849         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16850         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16851         * sysdeps/x86_64/_mcount.S: Likewise.
16852         * sysdeps/x86_64/strtok.S: Likewise.
16853         * sysdeps/sh/_mcount.S: Likewise.
16854
16855 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16856
16857         * libio/iofopen.c: Include <fcntl.h>.
16858         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16859         (_IO_fopen64, fopen64): Define as aliases.
16860         * libio/iofopen64.c: Include <fcntl.h>.
16861         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16862         Conditionalize body on this.
16863         * sysdeps/wordsize-64/iofopen.c: File removed.
16864         * sysdeps/wordsize-64/iofopen64.c: File removed.
16865
16866 2012-08-01  Marek Polacek  <polacek@redhat.com>
16867
16868         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16869         Use dlfcn directly instead of a variable.
16870         (binfmt-subdir): Do not define.
16871         (dlfcn): Likewise.
16872
16873 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16874
16875         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16876         Remove all definitions.
16877         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16878         <kernel-features.h>.
16879         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16880         (miss_F_GETOWN_EX): Remove all definitions.
16881         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16882         macro definition.
16883         [!__ASSUME_FCNTL64]: Remove conditional code.
16884         [__ASSUME_FCNTL64]: Make code unconditional.
16885         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16886         <kernel-features.h>.
16887         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16888         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16889         (lockf64) [__NR_fcntl64]: Make code unconditional.
16890         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16891
16892         * sysdeps/unix/sysv/linux/kernel-features.h
16893         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16894         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16895         Make code unconditional.
16896         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16897         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16899         [__NR_vfork]: Make code unconditional.
16900         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16901         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16903         [__NR_vfork]: Make code unconditional.
16904         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16905         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16906
16907 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16908
16909         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16910         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16911
16912         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16913         Define mkstemp64 as an alias.
16914         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16915         Define mkstemps64 as an alias.
16916         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16917         Define mkostemp64 as an alias.
16918         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16919         Define mkostemps64 as an alias.
16920         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
16921         Conditionalize body on this.
16922         * misc/mkostemp64.c: Likewise.
16923         * misc/mkostemps64.c: Likewise.
16924         * misc/mkstemps64.c: Likewise.
16925         * sysdeps/wordsize-64/mkstemp64.c: File removed.
16926         * sysdeps/wordsize-64/mkostemp64.c: File removed.
16927         * sysdeps/wordsize-64/mkostemp.c: File removed.
16928         * sysdeps/wordsize-64/mkstemp.c: File removed.
16929         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
16930         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
16931         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
16932         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
16933
16934         [BZ #14138]
16935         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
16936         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
16937         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
16938         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
16939
16940         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
16941         compat_symbol macros from <shlib-compat.h> rather than the underlying
16942         default_symbol_version and symbol_version macros, so that DEFAULT
16943         lines in shlib-versions are respected.
16944         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
16945
16946 2012-08-01  Florian Weimer  <fweimer@redhat.com>
16947
16948         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
16949         Declare with warn_unused_result.
16950         (setgid, setregid, setegid, setresgid): Likewise.
16951         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
16952         Likewise.
16953         * WUR-REPORT: Remove set*id functions.
16954
16955 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
16956
16957         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
16958
16959 2012-07-31  Roland McGrath  <roland@hack.frob.com>
16960
16961         [BZ #10191]
16962         * include/sys/socket.h (__libc_accept, __libc_accept4):
16963         Add attribute_hidden.
16964         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
16965
16966         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
16967         use of PTR_MANGLE.
16968         * inet/getnetgrent_r.c (setup): Likewise.
16969
16970         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
16971
16972 2012-07-31  David S. Miller  <davem@davemloft.net>
16973
16974         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16975
16976 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
16977
16978         [BZ #13629]
16979         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
16980         value between 1.0 and 2.0 and smaller part has absolute value less
16981         than 1.0.
16982         * math/s_clog10.c (__clog10): Likewise.
16983         * math/s_clog10f.c (__clog10f): Likewise.
16984         * math/s_clog10l.c (__clog10l): Likewise.
16985         * math/s_clogf.c (__clogf): Likewise.
16986         * math/s_clogl.c (__clogl): Likewise.
16987         * math/libm-test.inc (clog_test): Add more tests.
16988         (clog10_test): Likewise.
16989         * sysdeps/i386/fpu/libm-test-ulps: Update.
16990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16991
16992 2012-07-31  Florian Weimer  <fweimer@redhat.com>
16993
16994         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
16995         Exit with zero in case no suitable GID is found, and write a
16996         message to standard error.
16997
16998 2012-07-30  Roland McGrath  <roland@hack.frob.com>
16999
17000         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
17001         rather than to 1.
17002         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
17003         (MAXPATHLEN): Removed.
17004         (NOGROUP, NODEV): New macros.
17005         (setbit, clrbit, isset, isclr): New macros.
17006         (howmany, roundup, powerof2): New macros.
17007         (DEV_BSIZE): New macro.
17008
17009         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
17010         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
17011
17012         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
17013         definition on [!__NO_LONG_DOUBLE_MATH].
17014
17015         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
17016         PTR_MANGLE and PTR_DEMANGLE.
17017
17018         * socket/accept4.c (accept4): Rename to __libc_accept4.
17019         Define accept4 as a weak alias.
17020
17021         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
17022         on [_DIRENT_HAVE_D_TYPE].
17023         * io/ftw.c (ftw_dir): Likewise.
17024
17025         * io/xmknod.c (__xmknod): Don't check PATH for being null.
17026
17027         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
17028
17029         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
17030         Use the BSD numbers rather than the arbitrary ones we had.
17031         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
17032         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
17033         (SIGXCPU, SIGXFSZ): New macros.
17034         (_NSIG): Now 32.
17035
17036         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
17037         initializer on [_LIBC_REENTRANT].
17038
17039         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
17040         definitions inside [_POSIX_MAPPED_FILES].
17041
17042         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
17043
17044         * dirent/opendir.c: Include <fcntl.h>.
17045
17046         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
17047         (__libc_getspecific): Likewise.
17048         (__libc_key_create): Likewise.
17049
17050         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
17051         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
17052         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
17053         (tmpfile64): Define as alias.
17054         * sysdeps/wordsize-64/tmpfile.c: File removed.
17055         * sysdeps/wordsize-64/tmpfile64.c: File removed.
17056         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
17057         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
17058
17059         * stdio-common/vfscanf.c: Include <stdbool.h>.
17060         * nss/makedb.c: Likewise.
17061         * stdio-common/_i18n_number.h: Likewise.
17062         * argp/argp-help.c: Likewise.
17063         * posix/wordexp.c: Likewise.
17064         * sysdeps/posix/spawni.c: Likewise.
17065         * nss/nss_files/files-initgroups.c: Likewise.
17066         * stdio-common/reg-modifier.c: Include <stdlib.h>.
17067         * nss/nss_files/files-initgroups.c: Likewise.
17068         * nss/nss_db/db-netgrp.c: Likewise.
17069         * nss/nss_db/db-initgroups.c: Likewise.
17070         * io/fchmodat.c: Include <sys/stat.h>.
17071
17072         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
17073         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
17074
17075         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
17076         [HAVE_MMAP].
17077
17078         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
17079         Add multiple inclusion protection.
17080
17081 2012-07-27  David S. Miller  <davem@davemloft.net>
17082
17083         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17084
17085 2012-07-27  Gary Benson  <gbenson@redhat.com>
17086
17087         [BZ #14298]
17088         * elf/rtld.c: Include <stap-probe.h>.
17089         (dl_main): Added static probes "init_start" and "init_complete".
17090         * elf/dl-load.c: Include <stap-probe.h>.
17091         (lose): Take new parameter "nsid".
17092         Added static probe "map_failed".
17093         (_dl_map_object_from_fd): Pass namespace id to lose.
17094         Added static probe "map_start".
17095         (open_verify): Pass namespace id to lose.
17096         * elf/dl-open.c: Include <stap-probe.h>.
17097         (dl_open_worker) Added static probes "map_complete", "reloc_start"
17098         and "reloc_complete".
17099         * elf/dl-close.c: Include <stap-probe.h>.
17100         (_dl_close_worker): Added static probes "unmap_start" and
17101         "unmap_complete".
17102         * elf/rtld-debugger-interface.txt: New file documenting the above.
17103
17104 2012-07-26  Roland McGrath  <roland@hack.frob.com>
17105
17106         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
17107         rather than a string variable.
17108         * sunrpc/rpc_main.c (h_output): Likewise.
17109         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
17110
17111 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
17112
17113         * inet/check_native.c: New file.
17114
17115 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
17116
17117         [BZ #13629]
17118         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
17119         if larger part has absolute value 1.0.
17120         * math/s_clog10.c (__clog10): Likewise.
17121         * math/s_clog10f.c (__clog10f): Likewise.
17122         * math/s_clog10l.c (__clog10l): Likewise.
17123         * math/s_clogf.c (__clogf): Likewise.
17124         * math/s_clogl.c (__clogl): Likewise.
17125         * math/libm-test.inc (clog_test): Add more tests.
17126         (clog10_test): Likewise.
17127         * sysdeps/i386/fpu/libm-test-ulps: Update.
17128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17129
17130         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
17131         (pltexit): Likewise.
17132         (La_regs): Likewise.
17133         (La_retval): Likewise.
17134         (int_retval): Likewise.
17135         Update #error for removed macros to refer only to definitions in
17136         tst-audit.h.
17137         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
17138         macro.
17139         (pltexit): Likewise.
17140         (La_regs): Likewise.
17141         (La_retval): Likewise.
17142         (int_retval): Likewise.
17143         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
17144         macro.
17145         (pltexit): Likewise.
17146         (La_regs): Likewise.
17147         (La_retval): Likewise.
17148         (int_retval): Likewise.
17149         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
17150         macro.
17151         (pltexit): Likewise.
17152         (La_regs): Likewise.
17153         (La_retval): Likewise.
17154         (int_retval): Likewise.
17155         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
17156         macro.
17157         (pltexit): Likewise.
17158         (La_regs): Likewise.
17159         (La_retval): Likewise.
17160         (int_retval): Likewise.
17161         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
17162         macro.
17163         (pltexit): Likewise.
17164         (La_regs): Likewise.
17165         (La_retval): Likewise.
17166         (int_retval): Likewise.
17167         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
17168         macro.
17169         (pltexit): Likewise.
17170         (La_regs): Likewise.
17171         (La_retval): Likewise.
17172         (int_retval): Likewise.
17173         * sysdeps/generic/tst-audit.h: Update comment to refer only to
17174         macro definitions in tst-audit.h.
17175         * sysdeps/i386/tst-audit.h: New file.
17176         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
17177         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
17178         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
17179         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
17180         * sysdeps/sh/tst-audit.h: Likewise.
17181         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
17182         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
17183         * sysdeps/x86_64/tst-audit.h: Likewise.
17184
17185 2012-07-26  Andreas Jaeger  <aj@suse.de>
17186
17187         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
17188         ptrace.
17189
17190         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
17191         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
17192         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
17193         PTRACE_O_MASK.
17194         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
17195         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
17196         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
17197
17198         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
17199         value.
17200
17201         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
17202         _sigsys.
17203         (si_call_addr, si_syscall, si_arch): Define new macro.
17204         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
17205         _sigsys.
17206         (si_call_addr, si_syscall, si_arch): Define new marcro.
17207         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
17208         _sigsys.
17209         (si_call_addr, si_syscall, si_arch): Define new macro.
17210         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
17211         _sigsys.
17212         (si_call_addr, si_syscall, si_arch): Define new macro.
17213
17214 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17215
17216         [BZ #13717]
17217         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17218         Change to 2.4.21 where previously 2.4.1.
17219         * sysdeps/unix/sysv/linux/configure: Regenerated.
17220         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
17221         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
17222         Linux kernel version.
17223         (__ASSUME_STD_AUXV): Remove.
17224         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
17225         kernel version.
17226         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
17227         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
17228         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
17229         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
17230         (__ASSUME_NETLINK_SUPPORT): Likewise.
17231         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
17232         (__no_netlink_support): Remove conditional definition.
17233         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
17234         Remove.
17235         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17236         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
17237         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
17238         (if_nameindex_ioctl): Remove.
17239         (if_nameindex_netlink): Do not handle __no_netlink_support.
17240         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17241         code.
17242         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
17243         Remove conditional code.
17244         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17245         code.
17246         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
17247         unconditional.
17248         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17249         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
17250         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
17251         Remove.
17252         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
17253         [!__ASSUME_STD_AUXV]: Remove conditional code.
17254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
17255         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
17256         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
17257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
17258         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
17259         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17260         code.
17261         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
17263         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
17264         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17265         conditional code.
17266         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
17268         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17269         code.
17270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
17271         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17272         conditional code.
17273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
17274         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17275         code unconditional.
17276         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17277         conditional code.
17278         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17279         unconditional.
17280         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17281         conditional code.
17282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17283         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17284         unconditional.
17285         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17286         conditional code.
17287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17288         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17289         code unconditional.
17290         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17291         conditional code.
17292         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17293         unconditional.
17294         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17295         conditional code.
17296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17297         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17298         code unconditional.
17299         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17300         conditional code.
17301         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17302         unconditional.
17303         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17304         conditional code.
17305
17306 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
17307
17308         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
17309         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
17310         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
17311         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
17312         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
17313         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
17314         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
17315         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
17316         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
17317         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17318         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
17319         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
17320         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
17321         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
17322         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
17323         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
17324         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
17325         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
17326         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
17327         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
17328         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
17329         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
17330         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17331
17332 2012-07-25  Florian Weimer  <fweimer@redhat.com>
17333
17334         * Versions.def: Add GLIBC_2.17.
17335         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
17336         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
17337         Introduce __libc_secure_getenv.
17338         * stdlib/Versions (2.17): Add secure_getenv
17339         (GLIBC_PRIVATE): Add __libc_secure_getenv.
17340         * stdlib/secure-getenv.c: Rename __secure_getenv to
17341         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
17342         symbol __secure_getenv for GLIBC_2.0.
17343         * stdlib/tst-secure-getenv.c: New.
17344         * stdlib/Makefile (tests): Add testcase.
17345         * manual/startup.texi (Environment Access): Document
17346         secure_getenv.
17347         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
17348         __libc_secure_getenv.
17349         * inet/ruserpass.c (ruserpass): Likewise.
17350         * malloc/mtrace.c (mtrace): Likewise.
17351         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
17352         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
17353         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
17354         * sysdeps/posix/tempname.c: Likewise.  Evaluate
17355         HAVE_SECURE_GETENV.
17356         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
17357         __secure_getenv to __libc_secure_getenv.
17358         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
17359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17360         Likewise.
17361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17362         Likewise.
17363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17364         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17365         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17366         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17367         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17368         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17370
17371 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17372
17373         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
17374         (struct La_i86_retval): Likewise.
17375         (struct La_x86_64_regs): Likewise.
17376         (struct La_x86_64_retval): Likewise.
17377         (struct La_x32_regs): Likewise.
17378         (struct La_x32_retval): Likewise.
17379         (struct La_ppc32_regs): Likewise.
17380         (struct La_ppc32_retval): Likewise.
17381         (struct La_ppc64_regs): Likewise.
17382         (struct La_ppc64_retval): Likewise.
17383         (struct La_sh_regs): Likewise.
17384         (struct La_sh_retval): Likewise.
17385         (struct La_s390_32_regs): Likewise.
17386         (struct La_s390_32_retval): Likewise.
17387         (struct La_s390_64_regs): Likewise.
17388         (struct La_s390_64_retval): Likewise.
17389         (struct La_sparc32_regs): Likewise.
17390         (struct La_sparc32_retval): Likewise.
17391         (struct La_sparc64_regs): Likewise.
17392         (struct La_sparc64_retval): Likewise.
17393         (struct audit_ifaces): Remove architecture-specific pltenter and
17394         pltexit members.
17395         * sysdeps/i386/ldsodefs.h: New file.
17396         * sysdeps/powerpc/ldsodefs.h: Likewise.
17397         * sysdeps/s390/ldsodefs.h: Likewise.
17398         * sysdeps/sh/ldsodefs.h: Likewise.
17399         * sysdeps/sparc/ldsodefs.h: Likewise.
17400         * sysdeps/x86_64/ldsodefs.h: Likewise.
17401
17402 2012-07-25  Marek Polacek  <polacek@redhat.com>
17403
17404         [BZ #6808]
17405         * math/libm-test.inc (yn_test): Add another test.
17406         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
17407         to ERANGE when the result is +-Inf.
17408         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
17409         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
17410         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
17411         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
17412
17413 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
17414
17415         * conform/data/time.h-data (NULL): Use macro-constant.  Require
17416         equal to 0.
17417         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
17418         clock_t.
17419         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
17420
17421 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
17422
17423         * configure.in <sysdeps resolving>: Correct printing
17424         Implies_before.
17425         * configure: Regenerate.
17426
17427 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
17428
17429         * math/w_ilogb.c: Include <limits.h>.
17430         * math/w_ilogbl.c: Likewise.
17431
17432 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17433
17434         * manual/lang.texi (__va_copy): Document primarily as ISO C99
17435         va_copy.  Document allowing for unavailable va_copy only as
17436         pre-C99 compatibility.
17437         * manual/string.texi (Copying and Concatenation): Use va_copy
17438         instead of __va_copy in concat example.
17439
17440 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
17441
17442         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
17443         (__sendto): Use create_address_port.  Initialize APORT and deallocate
17444         it if not null.
17445
17446         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
17447         with O_NOLINK passed to __file_name_lookup.
17448
17449         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
17450         with O_NOLINK passed to __file_name_lookup.
17451
17452         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
17453         negative N or less than NGIDS.
17454
17455         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
17456         type to string_t.  Set ERANGE as errno and return it if NAME is not big
17457         enough.  Use memcpy instead of strncpy.
17458
17459 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17460
17461         * elf/Makefile (check-data): Remove.
17462         (localplt.data): New vpath directive.
17463         ($(objpfx)check-localplt.out): Use localplt.data from vpath
17464         instead of $(check-data).
17465         * scripts/data/localplt-generic.data: Move to ...
17466         * sysdeps/generic/localplt.data: ... here.
17467         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
17468         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
17469         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
17470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
17471         ... here.
17472         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
17473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
17474         ... here.
17475         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
17476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
17477         ... here.
17478         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
17479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
17480         ... here.
17481         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
17482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
17483         ... here.
17484         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
17485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
17486         ... here.
17487
17488 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17489
17490         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
17491         PPC32 and PPC64 files.
17492         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
17493         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
17494
17495 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17496
17497         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
17498         __makecontext_ret to ...
17499         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
17500         ... here and call exit if uc_link is NULL.  New file.
17501         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
17502         __makecontext_ret.S.
17503         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
17504         __makecontext_ret to ...
17505         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
17506         ... here and call exit if uc_link is NULL.  New file.
17507         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
17508         __makecontext_ret.S.
17509
17510 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17511
17512         * elf/elf.h (R_390_IRELATIVE): New definition.
17513         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
17514         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
17515         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
17516         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17517         (elf_machine_lazy_rel): Likewise.
17518         * sysdeps/s390/dl-irel.h: New file.
17519         * sysdeps/s390/s390-64/memcpy.S: New asm code.
17520         * sysdeps/s390/s390-64/memset.S: New asm code.
17521         * sysdeps/s390/s390-64/memcmp.S: New asm code.
17522         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
17523         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
17524         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
17525         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
17526         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
17527         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
17528         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
17529         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
17530         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
17531         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
17532         * sysdeps/s390/s390-32/memcpy.S: New asm code.
17533         * sysdeps/s390/s390-32/memset.S: New asm code.
17534         * sysdeps/s390/s390-32/memcmp.S: New asm code.
17535
17536 2012-07-17  Marek Polacek  <polacek@redhat.com>
17537
17538         [BZ #14349]
17539         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
17540         * sysdeps/s390/s390-64/configure.in: Likewise.
17541         * sysdeps/sparc/configure.in: Likewise.
17542         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
17543         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
17544         * sysdeps/i386/configure.in: Likewise.
17545         * sysdeps/x86_64/configure.in: Likewise.
17546         * sysdeps/sh/configure.in: Likewise.
17547         * sysdeps/s390/s390-32/configure: Regenerated.
17548         * sysdeps/s390/s390-64/configure: Likewise.
17549         * sysdeps/x86_64/configure: Likewise.
17550         * sysdeps/sh/configure: Likewise.
17551         * sysdeps/powerpc/powerpc64/configure: Likewise.
17552         * sysdeps/powerpc/powerpc32/configure: Likewise.
17553         * sysdeps/sparc/configure: Likwise.
17554         * sysdeps/i386/configure: Likewise.
17555
17556         * elf/dl-open.c: Comment fixes.
17557
17558 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
17559
17560         * Makefile [CXX] (check-data): Remove.
17561         [CXX] (c++-types.data): New vpath directive.
17562         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
17563         vpath.  Do not allow for C++ type data being missing.
17564         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
17565         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
17566         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
17567         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
17568         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
17569         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
17570         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
17571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
17572         ... here.
17573         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
17574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
17575         ... here.
17576         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
17577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
17578         ... here.
17579         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
17580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
17581         ... here.
17582         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
17583         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
17584         ... here.
17585         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
17586         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
17587         ... here.
17588         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
17589         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
17590         ... here.
17591         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
17592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
17593
17594         * elf/tls-macros.h (TLS_LE): Move architecture-specific
17595         definitions to architecture-specific files.
17596         (TLS_IE): Likewise.
17597         (TLS_LD): Likewise.
17598         (TLS_GD): Likewise.
17599         * sysdeps/i386/tls-macros.h: New file.
17600         * sysdeps/powerpc/tls-macros.h: Likewise.
17601         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
17602         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
17603         * sysdeps/sh/tls-macros.h: Likewise.
17604         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
17605         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
17606         * sysdeps/x86_64/tls-macros.h: Likewise.
17607
17608 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17609
17610         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
17611         zero value for regular exit case.
17612
17613         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17614         (__start_context): Preserve zero value for regular exit case.
17615
17616 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17617             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17618
17619         * manual/setjmp.texi (setcontext): Clarify normal process
17620         termination when uc_link is the null pointer.
17621         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
17622         exit call.
17623
17624 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
17625
17626         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
17627         preprocessor.  Test for each exception mask separately.
17628
17629 2012-07-16  Andreas Jaeger  <aj@suse.de>
17630
17631         * po/ru.po: Update from translation team.
17632
17633 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
17634
17635         * conform/data/string.h-data (NULL): Use macro-constant.  Require
17636         equal to 0.
17637         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17638         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17639         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
17640         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
17641         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17642
17643 2012-07-13  Andreas Jaeger  <aj@suse.de>
17644
17645         * po/fr.po: Update from translation team.
17646
17647 2012-07-12  Marek Polacek  <polacek@redhat.com>
17648
17649         [BZ #14173]
17650         * math/libm-test.inc (yn_test): Add test for BZ #14173.
17651         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
17652         loop condition.
17653
17654 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
17655
17656         [BZ #13717]
17657         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17658         Change to 2.4.1 where previously 2.4.0.
17659         * sysdeps/unix/sysv/linux/configure: Regenerated.
17660         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17661         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17662         version.
17663         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17664         (__ASSUME_AT_CLKTCK): Remove.
17665         (__ASSUME_AT_PAGESIZE): Likewise.
17666         (__ASSUME_AT_XID): Likewise.
17667         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17668         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17669         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17670         unconditionally.
17671         (HAVE_AUX_PAGESIZE): Likewise.
17672         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17673         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17674         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17675
17676 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17677
17678         [BZ #14307]
17679         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17680         the temporary buffer used to invoke __gethostbyname2_r,
17681         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17682         host_data / struct gaih_addrtuple.
17683         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17684         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17685         header file nss/nsswitch.h.
17686         * nss/nsswitch.h (global scope): Add definition of implementation
17687         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17688         resolv/nss_dns/dns-host.c).
17689
17690 2012-07-11  Andreas Jaeger  <aj@suse.de>
17691
17692         * po/fr.po: Update from translation team.
17693
17694         * po/sv.po: Update from translation team
17695         * po/fr.po: Another update from translation team.
17696
17697 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17698
17699         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17700         for subnormals or multiply small sinh result by itself.
17701         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17702         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17703
17704 2012-07-11  David S. Miller  <davem@davemloft.net>
17705
17706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17707
17708 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17709
17710         [BZ #14347]
17711         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17712         (INTERNAL_MARK): Shift it here.
17713
17714 2012-07-10  Marek Polacek  <polacek@redhat.com>
17715
17716         [BZ #14151]
17717         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17718         libc_cv_asm_global_directive with .globl.
17719         * configure: Regenerated.
17720         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17721         with .globl.
17722         * sysdeps/i386/configure: Regenerated.
17723         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17724         with .globl.
17725         * sysdeps/x86_64/configure: Regenerated.
17726         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17727         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17728         * elf/tst-unique2mod2.c: Likewise.
17729         * elf/tst-unique2mod1.c: Likewise.
17730         * elf/tst-unique1mod2.c: Likewise.
17731         * elf/tst-unique1mod1.c: Likewise.
17732         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17733         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17734         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17735         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17736         * sysdeps/mach/sysdep.h: Likewise.
17737         * sysdeps/i386/sysdep.h: Likewise.
17738         * sysdeps/i386/i386-mcount.S: Likewise.
17739         * sysdeps/x86_64/_mcount.S: Likewise.
17740         * sysdeps/x86_64/sysdep.h: Likewise.
17741         * sysdeps/sh/_mcount.S: Likewise.
17742         * sysdeps/sh/sysdep.h: Likewise.
17743         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17744         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17745         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17746         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17747         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17748         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17749         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17750         * locale/localeinfo.h: Likewise.
17751         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17752         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17753
17754 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17755
17756         [BZ #14336]
17757         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17758         system".
17759         * manual/message.texi (The Uniforum approach): Likewise.
17760         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17761         (glibc iconv Implementation): Likewise.
17762
17763 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17764
17765         [BZ #14337]
17766         * math/s_clog.c (__clog): Avoid scaling a value down where that
17767         could result in underflow.
17768         * math/s_clog10.c (__clog10): Likewise.
17769         * math/s_clog10f.c (__clog10f): Likewise.
17770         * math/s_clog10l.c (__clog10l): Likewise.
17771         * math/s_clogf.c (__clogf): Likewise.
17772         * math/s_clogl.c (__clogl): Likewise.
17773         * math/libm-test.inc (clog_test): Add more tests.
17774         (clog10_test): Likewise.
17775         * sysdeps/i386/fpu/libm-test-ulps: Update.
17776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17777
17778 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17779
17780         [BZ #14283]
17781         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17782         by 7 not 8 to examine high bit of fractional part.
17783
17784         [BZ #14042]
17785         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17786         for call to __mcount_internal.
17787         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17788         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17789         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17790
17791 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17792
17793         [BZ #14154]
17794         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17795         approximation for values within 0x1p-13f of an odd multiple of
17796         pi/4.
17797         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17798         exception.  Add more tests.
17799         * sysdeps/i386/fpu/libm-test-ulps: Update.
17800
17801         [BZ #6778]
17802         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17803         inputs and return -1 for them.  Do not check for +Inf in case not
17804         reachable for +Inf.
17805         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17806         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17807         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17808         and return -1 for them.  Do not check for +Inf in case not
17809         reachable for +Inf.
17810         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17811         define.
17812         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17813         and return -1 for them.  Do not check for +Inf in case not
17814         reachable for +Inf.
17815         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17816         spurious underflow.
17817         * sysdeps/i386/fpu/libm-test-ulps: Update.
17818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17819
17820 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17821
17822         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17823
17824 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17825
17826         [BZ #14157]
17827         [BZ #14331]
17828         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17829         could result in spurious underflow.  Scale down values above
17830         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17831         * math/s_csqrtf.c (__csqrtf): Likewise.
17832         * math/s_csqrtl.c (__csqrtl): Likewise.
17833         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17834         spurious underflow.
17835         * sysdeps/i386/fpu/libm-test-ulps: Update.
17836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17837
17838 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17839
17840         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17841         xopen-msg.sed.
17842         * catgets/xopen-msg.awk: New file.
17843         * catgets/xopen-msg.sed: Removed.
17844
17845         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17846         po2text.sed.
17847         * intl/po2test.awk: New file.
17848         * intl/po2test.sed: Removed.
17849
17850 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17851
17852         [BZ #14328]
17853         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17854         or multiply small sinh result by itself.
17855         * math/s_ctanf.c (__ctanf): Likewise.
17856         * math/s_ctanh.c (__ctanh): Likewise.
17857         * math/s_ctanhf.c (__ctanhf): Likewise.
17858         * math/s_ctanhl.c (__ctanhl): Likewise.
17859         * math/s_ctanl.c (__ctanl): Likewise.
17860         * math/libm-test.inc (ctan_test_tonearest): New function.
17861         (ctan_test_towardzero): Likewise.
17862         (ctan_test_downward): Likewise.
17863         (ctan_test_upward): Likewise.
17864         (ctanh_test_tonearest): Likewise.
17865         (ctanh_test_towardzero): Likewise.
17866         (ctanh_test_downward): Likewise.
17867         (ctanh_test_upward): Likewise.
17868         (main): Call these new functions.
17869         * sysdeps/i386/fpu/libm-test-ulps: Update.
17870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17871
17872 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17873
17874         * .gitignore: Delete /ports entry.
17875
17876 2012-07-03  Andreas Jaeger  <aj@suse.de>
17877
17878         * po/bg.po: Update from translation team.
17879         * po/cs.po: Likewise.
17880         * po/de.po: Likewise.
17881         * po/hr.po: Likewise.
17882         * po/nl.pl: Likewise.
17883         * po/pl.po: Likewise.
17884         * po/vi.po: Likewise.
17885
17886 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17887
17888         * Makeconfig [!+link] (+link-before-libc): New variable.
17889         [!+link] (+link-after-libc): Likewise.
17890         [!+link] (+link-tests): Likewise.
17891         [!+link] (+link): Define in terms of $(+link-before-libc) and
17892         $(+link-after-libc).
17893         [!+link-static] (+link-static-before-libc): New variable.
17894         [!+link-static] (+link-static-after-libc): Likewise.
17895         [!+link-static] (+link-static-tests): Likewise.
17896         [!+link-static] (+link-static): Define in terms of
17897         $(+link-static-before-libc) and $(+link-static-after-libc).
17898         [build-shared] (link-libc-before-gnulib): New variable.
17899         [build-shared] (link-libc-tests): Likewise.
17900         [build-shared] (link-libc): Define in terms of
17901         $(link-libc-before-gnulib).
17902         [!build-shared] (link-libc-tests): New variable.
17903         (link-libc-static-tests): New variable.
17904         [!gnulib] (gnulib-arch): New variable.
17905         [!gnulib] (gnulib-tests): Likewise.
17906         [!gnulib] (static-gnulib-arch): Likewise.
17907         [!gnulib] (static-gnulib-tests): Likewise.
17908         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17909         Define with "=" instead of ":=".
17910         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17911         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17912         * Rules (binaries-all-notests): New variable.
17913         (binaries-all-tests): Likewise.
17914         (binaries-static-notests): Likewise.
17915         (binaries-static-tests): Likewise.
17916         (binaries-all): Define using $(binaries-all-notests) and
17917         $(binaries-all-tests).
17918         (binaries-static): Define using $(binaries-static-notests) and
17919         $(binaries-static-tests).
17920         (binaries-shared-tests): New variable.
17921         (binaries-shared-notests): Likewise.
17922         (binaries-shared): Remove variable.
17923         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
17924         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
17925         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
17926         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
17927         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
17928         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
17929         * elf/Makefile (sln-modules): New variable.
17930         (extra-objs): Add $(sln-modules:=.o).
17931         (ldconfig-modules): Add static-stubs.
17932         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
17933         * elf/static-stubs.c: New file.
17934
17935         [BZ #14283]
17936         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
17937         by 7 not 8 to examine high bit of fractional part.  Use volatile
17938         variables when splitting into final array of floats if
17939         __FLT_EVAL_METHOD__ != 0.
17940         * math/libm-test.inc (cos_test): Add another test.
17941         (sin_test): Likewise.
17942         * sysdeps/i386/fpu/libm-test-ulps: Update.
17943
17944         [BZ #14273]
17945         * math/libm-test.inc (cosh_test): Add more tests.
17946
17947         * version.h (RELEASE): Set to "development".
17948         (VERSION): Set to "2.16.90".
17949
17950 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
17951
17952         * NEWS: Update copyright. Remove last-updated date.
17953         Mention math library bug fixes and timezone data changes.
17954         * README: Mention GNU/Hurd, x32, and HPPA support status.
17955
17956 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
17957
17958         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
17959
17960 2012-06-27  Andreas Jaeger  <aj@suse.de>
17961
17962         * manual/contrib.texi (Contributors): Add Samuel Thibault.
17963
17964 2012-06-25  Andreas Jaeger  <aj@suse.de>
17965
17966         * sysdeps/s390/fpu/libm-test-ulps: Update.
17967
17968 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
17969             Thomas Schwinge  <thomas@codesourcery.com>
17970
17971         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
17972         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
17973         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
17974         fanotify_mark.
17975
17976 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
17977
17978         * sysdeps/mach/start.c: Remove file.
17979         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
17980         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
17981         * sysdeps/sh/init-first.c: Likewise.
17982
17983         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
17984         registers for frame unwinding purposes, add CFI directives.
17985         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17986         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
17987         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
17988         Likewise.
17989
17990         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
17991         __fortify_fail returning.
17992         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17993
17994         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
17995         sysdeps/sh/____longjmp_chk.S.
17996         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
17997         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
17998         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
17999         (gen-as-const-headers): Append sigaltstack-offsets.sym.
18000
18001         * sysdeps/sh/abort-instr.h: New file.
18002         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
18003         process in case exit returns.
18004
18005         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
18006         initialize the GOT register before use.
18007
18008         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
18009         calculation of ARGC > 4.
18010
18011         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
18012         meaningful names to some local labels.
18013
18014 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18015             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18016
18017         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
18018         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
18019         (__arch_compare_and_exchange_val_16_acq): Likewise.
18020         (__arch_compare_and_exchange_val_32_acq): Likewise.
18021         (atomic_exchange_and_add): Fix gUSA sequence.
18022         (atomic_add): Likewise.
18023         (atomic_add_negative): Likewise.
18024         (atomic_add_zero): Likewise.
18025         (atomic_bit_test_set): Likewise.
18026
18027 2012-06-22  Andreas Schwab  <schwab@redhat.com>
18028
18029         [BZ #13579]
18030         * include/link.h (struct link_map): Add l_free_initfini.
18031         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
18032         l_initfini.
18033         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
18034         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
18035         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
18036         set.
18037
18038 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
18039
18040         * configure.in: Use AC_LANG_SOURCE.
18041         * configure: Regenerate.
18042
18043 2012-06-22  Roland McGrath  <roland@hack.frob.com>
18044
18045         * configure.in (libc_cv_localstatedir): New substituted variable.
18046         * configure: Regenerated.
18047         * config.make.in (localstatedir): New variable, substituted from
18048         libc_cv_localstatedir.
18049         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
18050         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
18051         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
18052         * sysdeps/gnu/configure: Regenerated.
18053
18054 2012-06-21  Jeff Law  <law@redhat.com>
18055
18056         [BZ #14277]
18057         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
18058         free.  Simplify list management for _LIBC case.
18059
18060 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
18061
18062         [BZ #14273]
18063         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
18064         Clear sign bit of 64-bit integer value before comparing against
18065         overflow value.
18066
18067         * sysdeps/mach/configure: Regenerated.
18068
18069 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18070
18071         [BZ #14278]
18072         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
18073
18074 2012-06-21  Jeff Law  <law@redhat.com>
18075
18076         [BZ #13882]
18077         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
18078         uint16_t for elements in the "seen" array to avoid char overflows.
18079         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18080         * elf/dl-open.c (dl_open_worker): Likewise.
18081
18082 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
18083
18084         * scripts/list-sources.sh: Scan PORTS for translations.
18085         * po/libc.pot: Regenerated.
18086
18087 2012-06-21  Andreas Jaeger  <aj@suse.de>
18088
18089         [BZ #12194]
18090         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
18091         warning.
18092         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
18093         * bits/byteswap-16.h (__bswap_16): Likewise.
18094         * bits/byteswap.h (__bswap_constant_16): Likewise.
18095
18096 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18097
18098         [BZ #14117]
18099         * sysdeps/i386/fpu_control.h: Removed.
18100         * sysdeps/x86_64/fpu_control.h: Moved to ...
18101         * sysdeps/x86/fpu_control.h: Here.
18102
18103         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
18104         (_FPU_SETCW): Likewise.
18105
18106 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
18107
18108         [BZ #14117]
18109         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
18110         * sysdeps/x86/fpu/bits/mathinline.h: This.
18111         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
18112
18113         [BZ #14050]
18114         [BZ #14117]
18115         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
18116         functions if __x86_64__ is defined.
18117
18118 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
18119
18120         * string/endian.h: Add !__ASSEMBLER__ condition for including
18121         conversion interfaces.
18122
18123 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
18124
18125         [BZ #14241]
18126         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
18127         of ABS(x) in calculating zero to negative powers other than odd
18128         integers.
18129         * math/libm-test.inc (pow_test): Add more tests.
18130
18131 2012-06-15  Andreas Jaeger  <aj@suse.de>
18132
18133         * manual/contrib.texi (Contributors): Update entry of Liubov
18134         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
18135         Machado Filho.
18136
18137 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
18138
18139         * string/string.h: Add __wur to GNU version of strerror_r.
18140
18141 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
18142
18143         [BZ #14229]
18144         * string/Makefile (tests): Add tst-strtok_r.
18145         * string/tst-strtok_r.c: New file.
18146         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
18147         RAX_LP/RDX_LP on SAVE_PTR.
18148
18149 2012-06-14  Roland McGrath  <roland@hack.frob.com>
18150
18151         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
18152
18153 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
18154
18155         * libm_test.inc (csqrt_test): Allow more spurious underflow
18156         exceptions.
18157         (j0_test): Likewise.
18158         (j1_test): Likewise.
18159         (y0_test): Likewise.
18160         (y1_test): Likewise.
18161
18162 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
18163
18164         * po/Makefile (libc.pot): Use UTF-8 charset.
18165
18166 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
18167
18168         [BZ #14210]
18169         Suppress sign-conversion warning from FD_SET.
18170         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
18171         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
18172         not unsigned long int.
18173         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
18174
18175 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
18176
18177         [BZ #14050]
18178         [BZ #14117]
18179         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
18180         __extern_always_inline instead of __extern_inline.
18181         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
18182         (__signbit): Likewise.
18183         (__signbitl): Support C++ namespace.
18184         (lrintf): New inline function.
18185         (lrint): Likewise.
18186         (llrintf): Likewise.
18187         (llrint): Likewise.
18188         (fmaxf): Likewise.
18189         (fmax): Likewise.
18190         (fminf): Likewise.
18191         (fmin): Likewise.
18192         (rint): Likewise.
18193         (rintf): Likewise.
18194         (ceil): Likewise.
18195         (ceilf): Likewise.
18196         (floor): Likewise.
18197         (floorf): Likewise.
18198         (nearbyint): Likewise.
18199         (nearbyintf): Likewise.
18200
18201 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
18202
18203         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
18204         non-default versions.
18205
18206 2012-06-11  Roland McGrath  <roland@hack.frob.com>
18207
18208         [BZ #14218]
18209         * manual/argp.texi (Argp): Reword argp_parse description slightly.
18210
18211 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
18212
18213         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
18214         (FE_UPWARD, FE_DOWNWARD): Don't define.
18215         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
18216         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18217
18218         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
18219         reading it.
18220         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18221         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18222
18223 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18224
18225         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
18226         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
18227         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
18228         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
18229
18230 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
18231
18232         [BZ #14117]
18233         * sysdeps/i386/fpu/bits/fenv.h: Removed.
18234         * sysdeps/i386/fpu/Implies: New file.
18235         * sysdeps/x86_64/fpu/Implies: Likewise.
18236         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
18237         * sysdeps/x86/fpu/bits/fenv.h: This.
18238
18239         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
18240         __SSE_MATH__.
18241
18242 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
18243
18244         [BZ #14134]
18245         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
18246         character 0xffff that matches the last element of the
18247         conversion table.
18248
18249 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18250
18251         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
18252         fmodl commit.
18253
18254 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18255
18256         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
18257         values higher than 25.6283.
18258
18259 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18260
18261         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
18262         subnormal exponent extraction and add some __builtin_expect.
18263         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
18264         Fix for subnormal mantissa calculation.
18265
18266 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
18267
18268         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
18269         cpu2 is -1 and errno is not ENOSYS.
18270
18271 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
18272
18273         [BZ #14117]
18274         * sysdeps/i386/i486/bits/string.h: Renamed to ...
18275         * sysdeps/x86/bits/string.h: This.
18276         * sysdeps/x86_64/bits/string.h: Removed.
18277
18278         * sysdeps/i386/i486/bits/string.h: Define inline functions only
18279         if not compiling for x86-64, but compiling for >= i486.
18280
18281         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
18282         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
18283
18284         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
18285         New macro from Linux kernel 3.4.0.
18286         (FP_XSTATE_MAGIC2): Likewise.
18287         (FP_XSTATE_MAGIC2_SIZE): Likewise.
18288         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
18289         (struct _fpx_sw_bytes): New struct.
18290         (struct _xsave_hdr): Likewise.
18291         (struct _ymmh_state): Likewise.
18292         (struct _xstate): Likewise.
18293
18294         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
18295         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
18296         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
18297         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
18298         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
18299         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
18300
18301         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
18302         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
18303         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
18304         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
18305         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
18306         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
18307
18308 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18309
18310         [BZ #13743]
18311         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
18312         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
18313         (sysdep_headers): Include sys/platform/ppc.h.
18314         * sysdeps/powerpc/test-gettimebase.c: Test for
18315         __ppc_get_timebase() to catch future ISA opcode/insn changes.
18316         * manual/Makefile (appendices): Include platform.texi.
18317         * manual/contrib.texi (Contributors): Update @node pointers.
18318         * manual/maint.texi (Maintenance): Likewise.
18319         (Platform): New node.
18320         * manual/platform.texi: New file.  Document the new features.
18321
18322 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
18323             Jakub Jelinek  <jakub@redhat.com>
18324
18325         [BZ #14188]
18326         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
18327         where __builtin_expect is unavailable.
18328
18329 2012-06-03  David S. Miller  <davem@davemloft.net>
18330
18331         * stdlib/longlong.h: Updated from GCC.
18332
18333 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
18334
18335         [BZ #14042]
18336         * sysdeps/powerpc/powerpc32/mcount.c: New file.
18337         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
18338         __mcount_internal.
18339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18340         (GLIBC_2.16): Likewise.
18341
18342 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18343
18344         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
18345
18346 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18347
18348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
18349         (default-abi): New variable.
18350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
18351         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
18352         variable.
18353         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
18354         Likewise.
18355         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
18356         Likewise.
18357         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
18358         Likewise.
18359
18360         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
18361         definition.  Document in comment.
18362
18363 2012-06-01  David S. Miller  <davem@davemloft.net>
18364
18365         * stdlib/longlong.h: Updated from GCC.
18366
18367 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18368
18369         [BZ #14117]
18370         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
18371         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
18372         sys/debugreg.h sys/io.h here.
18373         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
18374         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
18375         sys/io.h.
18376         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
18377         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
18378         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
18379         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
18380         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
18381         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
18382
18383         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
18384         Define only if __x86_64__ is defined.
18385
18386 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18387
18388         [BZ #14048]
18389         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
18390         Use int64_t for variable i.
18391         * math/libm-test.inc (fmod_test): Add more tests.
18392
18393         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
18394         z computation is not scheduled after fetestexcept.
18395         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
18396         Use math_force_eval instead of asm to ensure calculation scheduled
18397         before exception test.
18398         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
18399         Ensure a1 + u.d computation is not scheduled after fetestexcept.
18400
18401 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
18402
18403         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
18404         computation is not scheduled after fetestexcept.
18405
18406 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18407
18408         [BZ #14117]
18409         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
18410         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
18411
18412 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18413
18414         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
18415         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18416
18417 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18418
18419         [BZ #14117]
18420         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
18421         <bits/wordsize.h>.
18422         (__WCHAR_MIN): Support __WORDSIZE == 64.
18423         (__WCHAR_MAX): Likewise.
18424
18425         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
18426         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
18427
18428         [BZ #14183]
18429         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
18430         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
18431
18432         [BZ #14117]
18433         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
18434         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
18435
18436         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
18437         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
18438
18439         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
18440         Defined to 1 if __x86_64__ isn't defined.
18441         (_STAT_VER_LINUX_OLD): New.
18442         (st_atime): Remove duplicate.
18443         (st_mtime): Likewise.
18444         (st_ctime): Likewise.
18445
18446 2012-05-31  David S. Miller  <davem@davemloft.net>
18447
18448         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
18449         entries.
18450
18451 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
18452
18453         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
18454         gen-libm-test.pl.
18455
18456         [BZ #14132]
18457         * elf/dl-reloc.c: Include <_itoa.h>.
18458         (_dl_reloc_bad_type): Remove use of INTUSE.
18459         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
18460         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
18461         * stdio-common/psiginfo.c (psiginfo): Likewise.
18462         * stdio-common/psignal.c (psignal): Likewise.
18463         * string/strsignal.c (strsignal): Likewise.
18464         * include/signal.h (_sys_siglist): Declare hidden proto.
18465         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
18466         INTVARDEF with libc_hidden_data_def.
18467         * stdio-common/itoa-udigits.c: Likewise.
18468         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
18469         (_itoa_lower_digits_internal): Remove declaration.
18470         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
18471         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
18472         (_sys_sigabbrev_internal): Remove aliases.
18473         (_sys_siglist): Define hidden alias.
18474
18475 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
18476
18477         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18478         bits/sysctl.h.
18479
18480 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18481
18482         [BZ #14117]
18483         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
18484         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
18485
18486         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
18487         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
18488         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
18489         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
18490         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
18491         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
18492
18493         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
18494         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
18495         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
18496
18497         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
18498         with __addr.
18499         (insw): Likewise.
18500         (insl): Likewise.
18501         (outsb): Likewise.
18502         (outsw): Likewise.
18503         (outsl): Likewise.
18504
18505         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
18506         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
18507         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
18508
18509         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
18510         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
18511         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
18512         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
18513         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
18514         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
18515
18516         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
18517         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
18518
18519         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
18520         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
18521
18522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
18523         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
18524         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
18525
18526         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
18527         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
18528         to ...
18529         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
18530
18531         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
18532         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
18533         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
18534
18535         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
18536         for x86-64.
18537         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
18538
18539 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
18540
18541         * math/math.h (M_El): Use two more decimal places.
18542         (M_LOG2El): Likewise.
18543         (M_LOG10El): Likewise.
18544         (M_LN2l): Likewise.
18545         (M_LN10l): Likewise.
18546         (M_PIl): Likewise.
18547         (M_PI_2l): Likewise.
18548         (M_PI_4l): Likewise.
18549         (M_1_PIl): Likewise.
18550         (M_2_PIl): Likewise.
18551         (M_2_SQRTPIl): Likewise.
18552         (M_SQRT2l): Likewise.
18553         (M_SQRT1_2l): Likewise.
18554
18555 2012-05-31  David S. Miller  <davem@davemloft.net>
18556
18557         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
18558         values between float registers.
18559         * sysdeps/sparc/sparc64/memset.S: Likewise.
18560         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18561
18562 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
18563
18564         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
18565         -D_FORTIFY_SOURCE=1.
18566         (CPPFLAGS-tst-longjmp_chk.c): Define.
18567         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
18568         (CPPFLAGS-tst-longjmp_chk2.c): Define.
18569         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
18570         CFLAGS-tst-wchar-h.c.
18571
18572 2012-05-31  Marek Polacek  <polacek@redhat.com>
18573
18574         [BZ #14132]
18575         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
18576         __endmntent_internal): Remove declaration.
18577         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
18578         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
18579         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
18580
18581 2012-05-30  David S. Miller  <davem@davemloft.net>
18582
18583         * sysdeps/sparc/sparc32/soft-fp/q_util.c
18584         (___Q_simulate_exceptions): Use real FP ops rather than writing
18585         into the %fsr.
18586         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
18587         Likewise.
18588
18589 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18590
18591         [BZ #14117]
18592         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
18593         * sysdeps/x86/bits/xtitypes.h: This.
18594
18595         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
18596         * sysdeps/x86/bits/wordsize.h: This.
18597
18598         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
18599         * sysdeps/x86/bits/huge_vall.h: This.
18600
18601         * sysdeps/i386/bits/select.h: Removed.
18602         * sysdeps/x86_64/bits/select.h: Renamed to ...
18603         * sysdeps/x86/bits/select.h: This.
18604
18605         * sysdeps/i386/bits/setjmp.h: Removed.
18606         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
18607         * sysdeps/x86/bits/setjmp.h: This.
18608
18609         * sysdeps/i386/bits/mathdef.h: Removed.
18610         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
18611         * sysdeps/x86/bits/mathdef.h: This.
18612
18613 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18614
18615         [BZ #14132]
18616         * include/sys/socket.h (__connect_internal)
18617         (__libc_sa_len_internal): Remove declaration.
18618         (__connect, __libc_sa_len): Declare hidden_proto.
18619         (SA_LEN): Remove use of INTUSE.
18620         * socket/connect.c: Add libc_hidden_def.
18621         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
18622         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
18623         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
18624         alias.
18625         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
18626         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
18627         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
18628         of adding _internal alias.
18629
18630 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18631
18632         [BZ #14117]
18633         * sysdeps/i386/bits/link.h: Removed.
18634         * sysdeps/i386/bits/linkmap.h: Likewise.
18635         * sysdeps/x86_64/bits/link.h: Renamed to ...
18636         * sysdeps/x86/bits/link.h: This.
18637         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
18638         * sysdeps/x86/bits/linkmap.h: This.
18639
18640         * sysdeps/i386/bits/endian.h: Removed.
18641         * sysdeps/x86_64/bits/endian.h: Renamed to ...
18642         * sysdeps/x86/bits/endian.h: This.
18643
18644         * sysdeps/i386/bits/byteswap.h: Removed.
18645         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18646         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
18647         * sysdeps/x86/bits/byteswap.h: This.
18648         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
18649         * sysdeps/x86/bits/byteswap-16.h: This.
18650         * sysdeps/i386/Implies: Add x86.
18651         * sysdeps/x86_64/Implies: Likewise.
18652
18653 2012-05-30  David S. Miller  <davem@davemloft.net>
18654
18655         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
18656         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
18657         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
18658         (FP_TRAPPING_EXCEPTIONS): Define.
18659         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
18660         (FP_TRAPPING_EXCEPTIONS): Define.
18661         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18662         subnormals only when inexact has been signalled or underflow
18663         exceptions are enabled.
18664         (_FP_PACK_CANONICAL): Likewise.
18665
18666 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         [BZ #14183]
18669         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18670         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18671
18672 2012-05-30  Richard Henderson  <rth@twiddle.net>
18673
18674         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18675         with #ifndef NOT_IN_libc.
18676
18677         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18678         marked to avoid plt entry.
18679
18680 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18681
18682         [BZ #14112]
18683         * Makeconfig (default-abi): New macro.
18684         (abi-includes): Likewise.
18685         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18686         $(abi-$(default-abi)-lib-soname) for soname if defined.
18687         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18688         abi-variants.
18689         * Makefile (installed-stubs): Likewise.
18690         * include/stubs-biarch.h: Removed.
18691         * scripts/lib-names.awk: Only handle one library at a time.
18692         * scripts/soversions.awk: Remove WORDSIZE support.
18693         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18694         entries.
18695         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18696         Removed.
18697         (syscall-list-default-condition): Likewise.
18698         (syscall-list-default-condition): Likewise.
18699         (syscall-list-includes): Likewise.
18700         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18701         syscall-list-* with abi-*.  Handle undefined abi-variants.
18702         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18703         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18704         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18705         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18706         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18707         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18708         Removed.
18709         (syscall-list-32-options): Likewise.
18710         (syscall-list-32-condition): Likewise.
18711         (syscall-list-64-options): Likewise.
18712         (syscall-list-64-condition): Likewise.
18713         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18714         macro.
18715         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18716         Renamed to ...
18717         (abi-*): This.
18718         (abi-64-ld-soname): New macro.
18719         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18720         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18721         Renamed to ...
18722         (abi-*): This.
18723         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18724         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18725
18726 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18727
18728         * sysdeps/unix/sysv/linux/kernel-features.h
18729         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18730         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18731         include <kernel-features.h>.
18732         [!__NR_ftruncate64]: Remove conditional code.
18733         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18734         [__NR_ftruncate64]: Make code unconditional.
18735         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18736         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18737         include <kernel-features.h>.
18738         [!__NR_ftruncate64]: Remove conditional code.
18739         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18740         [__NR_ftruncate64]: Make code unconditional.
18741         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18743         include <kernel-features.h>.
18744         [!__NR_ftruncate64]: Remove conditional code.
18745         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18746         [__NR_ftruncate64]: Make code unconditional.
18747         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18749         include <kernel-features.h>.
18750         [!__NR_ftruncate64]: Remove conditional code.
18751         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18752         [__NR_ftruncate64]: Make code unconditional.
18753         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18754
18755         * configure.in (libc_cv_fpie): Weaken to a compile test using
18756         LIBC_TRY_CC_OPTION.
18757         * configure: Regenerated.
18758
18759 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18760
18761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18765         Refreshed.
18766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18767         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18771         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18772         Refreshed.
18773
18774 2012-05-27  David S. Miller  <davem@davemloft.net>
18775
18776         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18777         (___Q_zero): New.
18778         (__Q_simulate_exceptions): Return void.  Change to simulate
18779         exceptions by writing into the %fsr.
18780         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18781         (__Qp_handle_exceptions): Likewise.
18782         (numbers): Delete.
18783         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18784         __Qp_handle_exceptions.
18785         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18786         __Qp_handle_exceptions.
18787         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18788         as unused and give dummy FP_RND_NEAREST initializer.
18789         (FP_INHIBIT_RESULTS): Define.
18790         (___Q_simulate_exceptions): Update declaration.
18791         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18792         formatting.
18793         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18794         as unused and give dummy FP_RND_NEAREST initializer.
18795         (__Qp_handle_exceptions): Update declaration.
18796         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18797         formatting.
18798
18799 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18800
18801         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18802         the temporary FPU control word.
18803         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18804         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18805         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18806         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18807         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18808         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18809         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18810         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18811         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18812         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18813         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18814
18815 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18816
18817         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18818         fields.
18819
18820 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18821
18822         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18823         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18824         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18825         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18826         Likewise.
18827         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18828         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18829         Likewise.
18830
18831 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18832
18833         * po/h.po: Update from translation team.
18834
18835 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18836
18837         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18838
18839         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18840         handling of denormals.
18841         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18842         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18843         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18844         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18845         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18846         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18847         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18848         Likewise.
18849
18850 2012-05-26  Marek Polacek  <polacek@redhat.com>
18851
18852         [BZ #14152]
18853         * math/libm-test.inc (fma_test): Don't always expect underflow
18854         exception.
18855
18856 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18857
18858         [BZ #12416]
18859         * elf/tst-execstack.c: Include stackinfo.h.
18860         (do_test): Adjust test case to ensure that pthread_getattr_np
18861         behaviour remains the same after marking stack executable.
18862
18863 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18864
18865         * sysdeps/unix/sysv/linux/kernel-features.h
18866         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18867         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18868         kernel-features.h.
18869         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18870         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18871         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18872         kernel-features.h.
18873         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18874         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18875
18876 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18877
18878         * configure.in: Define the default includes to being none.
18879         * configure: Regenerated.
18880
18881 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18882
18883         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18884         * sysdeps/x86_64/setjmp.S: Likewise.
18885         * sysdeps/i386/bsd-setjmp.S: Likewise.
18886         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18887         * sysdeps/i386/setjmp.S: Likewise.
18888         * sysdeps/i386/__longjmp.S: Likewise.
18889         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18890         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18891
18892         * include/stap-probe.h: New file.
18893         * configure.in: Handle --enable-systemtap.
18894         * configure: Regenerated.
18895         * config.h.in (USE_STAP_PROBE): New #undef.
18896         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18897         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18898         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18899
18900 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18901
18902         [BZ #13717]
18903         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18904         to 2.4.0 where earlier.
18905         * sysdeps/unix/sysv/linux/configure: Regenerated.
18906         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18907         <kernel-features.h>.
18908         [__ASSUME_32BITUIDS]: Make code unconditional.
18909         [!__ASSUME_32BITUIDS]: Remove conditional code.
18910         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18911         <kernel-features.h>.
18912         [__ASSUME_32BITUIDS]: Make code unconditional.
18913         [!__ASSUME_32BITUIDS]: Remove conditional code.
18914         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
18915         [__ASSUME_32BITUIDS]: Make code unconditional.
18916         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
18917         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
18918         <kernel-features.h>.
18919         [__ASSUME_32BITUIDS]: Make code unconditional.
18920         [!__ASSUME_32BITUIDS]: Remove conditional code.
18921         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
18922         <kernel-features.h>.
18923         [__ASSUME_32BITUIDS]: Make code unconditional.
18924         [!__ASSUME_32BITUIDS]: Remove conditional code.
18925         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
18926         <kernel-features.h>.
18927         [__ASSUME_32BITUIDS]: Make code unconditional.
18928         [!__ASSUME_32BITUIDS]: Remove conditional code.
18929         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
18930         <kernel-features.h>.
18931         [__ASSUME_32BITUIDS]: Make code unconditional.
18932         [!__ASSUME_32BITUIDS]: Remove conditional code.
18933         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
18934         <kernel-features.h>.
18935         [__ASSUME_32BITUIDS]: Make code unconditional.
18936         [!__ASSUME_32BITUIDS]: Remove conditional code.
18937         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
18938         <kernel-features.h>.
18939         [__ASSUME_32BITUIDS]: Make code unconditional.
18940         [!__ASSUME_32BITUIDS]: Remove conditional code.
18941         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
18942         <kernel-features.h>.
18943         [__ASSUME_32BITUIDS]: Make code unconditional.
18944         [!__ASSUME_32BITUIDS]: Remove conditional code.
18945         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
18946         <kernel-features.h>.
18947         [__ASSUME_32BITUIDS]: Make code unconditional.
18948         [!__ASSUME_32BITUIDS]: Remove conditional code.
18949         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
18950         <kernel-features.h>.
18951         [__ASSUME_32BITUIDS]: Make code unconditional.
18952         [!__ASSUME_32BITUIDS]: Remove conditional code.
18953         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
18954         <kernel-features.h>.
18955         [__ASSUME_32BITUIDS]: Make code unconditional.
18956         [!__ASSUME_32BITUIDS]: Remove conditional code.
18957         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
18958         <kernel-features.h>.
18959         [__NR_setresgid] (__setresgid): Do not declare.
18960         [__ASSUME_32BITUIDS]: Make code unconditional.
18961         [!__ASSUME_32BITUIDS]: Remove conditional code.
18962         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
18963         <kernel-features.h>.
18964         [__NR_setresuid] (__setresuid): Do not declare.
18965         [__ASSUME_32BITUIDS]: Make code unconditional.
18966         [!__ASSUME_32BITUIDS]: Remove conditional code.
18967         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
18968         <kernel-features.h>.
18969         [__ASSUME_32BITUIDS]: Make code unconditional.
18970         [!__ASSUME_32BITUIDS]: Remove conditional code.
18971         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
18972         <kernel-features.h>.
18973         [__ASSUME_32BITUIDS]: Make code unconditional.
18974         [!__ASSUME_32BITUIDS]: Remove conditional code.
18975         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
18976         <kernel-features.h>.
18977         [__ASSUME_32BITUIDS]: Make code unconditional.
18978         [!__ASSUME_32BITUIDS]: Remove conditional code.
18979         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
18980         <kernel-features.h>.
18981         [__ASSUME_32BITUIDS]: Make code unconditional.
18982         [!__ASSUME_32BITUIDS]: Remove conditional code.
18983         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
18984         <kernel-features.h>.
18985         [__ASSUME_32BITUIDS]: Make code unconditional.
18986         [!__ASSUME_32BITUIDS]: Remove conditional code.
18987         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
18988         <kernel-features.h>.
18989         [__ASSUME_32BITUIDS]: Make code unconditional.
18990         [!__ASSUME_32BITUIDS]: Remove conditional code.
18991         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
18992         <kernel-features.h>.
18993         [__ASSUME_32BITUIDS]: Make code unconditional.
18994         [!__ASSUME_32BITUIDS]: Remove conditional code.
18995         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
18996         <kernel-features.h>.
18997         [__ASSUME_32BITUIDS]: Make code unconditional.
18998         [!__ASSUME_32BITUIDS]: Remove conditional code.
18999         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
19000         <kernel-features.h>.
19001         [__ASSUME_32BITUIDS]: Make code unconditional.
19002         [!__ASSUME_32BITUIDS]: Remove conditional code.
19003         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
19004         <kernel-features.h>.
19005         [__ASSUME_32BITUIDS]: Make code unconditional.
19006         [!__ASSUME_32BITUIDS]: Remove conditional code.
19007         * sysdeps/unix/sysv/linux/kernel-features.h
19008         (__ASSUME_SETRESUID_SYSCALL): Remove.
19009         (__ASSUME_SETRESGID_SYSCALL): Likewise.
19010         (__ASSUME_32BITUIDS): Likewise.
19011         (__ASSUME_LDT_WORKS): Likewise.
19012         (__ASSUME_O_DIRECTORY): Likewise.
19013         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
19014         architecture but not kernel version.
19015         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
19016         (__ASSUME_MMAP2_SYSCALL): Likewise.
19017         (__ASSUME_STAT64_SYSCALL): Likewise.
19018         (__ASSUME_IPC64): Likewise.
19019         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
19020         <kernel-features.h>.
19021         [__ASSUME_32BITUIDS]: Make code unconditional.
19022         [!__ASSUME_32BITUIDS]: Remove conditional code.
19023         * sysdeps/unix/sysv/linux/opendir.c: Do not include
19024         <kernel-features.h>.
19025         [__ASSUME_O_DIRECTORY]: Make code unconditional.
19026         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
19027         132096]: Remove conditional code.
19028         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
19029         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
19030         <kernel-features.h>.
19031         [__ASSUME_32BITUIDS]: Make code unconditional.
19032         [!__ASSUME_32BITUIDS]: Remove conditional code.
19033         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
19034         <kernel-features.h>.
19035         [__ASSUME_32BITUIDS]: Make code unconditional.
19036         [!__ASSUME_32BITUIDS]: Remove conditional code.
19037         * sysdeps/unix/sysv/linux/setegid.c: Do not include
19038         <kernel-features.h>.
19039         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
19040         unconditional.
19041         (__setresgid): Do not declare.
19042         [__ASSUME_32BITUIDS]: Make code unconditional.
19043         [!__ASSUME_32BITUIDS]: Remove conditional code.
19044         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
19045         <kernel-features.h>.
19046         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
19047         unconditional.
19048         (__setresuid): Do not declare.
19049         [__ASSUME_32BITUIDS]: Make code unconditional.
19050         [!__ASSUME_32BITUIDS]: Remove conditional code.
19051         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
19052         <kernel-features.h>.
19053         [__ASSUME_32BITUIDS]: Make code unconditional.
19054         [!__ASSUME_32BITUIDS]: Remove conditional code.
19055         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
19056         <kernel-features.h>.
19057         [__ASSUME_32BITUIDS]: Make code unconditional.
19058         [!__ASSUME_32BITUIDS]: Remove conditional code.
19059
19060 2012-05-25  Richard Henderson  <rth@twiddle.net>
19061
19062         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
19063         dl_hwcap to ifunc resolver.
19064         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
19065         elf_ifunc_invoke.
19066         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
19067         dl_hwcap to ifunc resolver.
19068         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
19069
19070 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19071
19072         [BZ #14153]
19073         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
19074         for |x| <= 2**-26, not 2**-57.
19075         * math/libm-test.inc (acos_test): Do not allow spurious underflow
19076         exception.
19077
19078 2012-05-24  Jeff Law  <law@redhat.com>
19079
19080         * stdio-common/Makefile (tests): Add bug25.
19081         * stdio-common/bug25.c: New test.
19082
19083 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19084
19085         [BZ #13576]
19086         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
19087         multiple of MALLOC_ALIGNMENT in size.
19088         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
19089
19090 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19091
19092         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
19093         Require >= 256.
19094         (FILENAME_MAX): Use macro-int-constant.
19095         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
19096         (_IOFBF): Use macro-int-constant.
19097         (_IOLBF): Likewise.
19098         (_IONBF): Likewise.
19099         (SEEK_CUR): Likewise.
19100         (SEEK_END): Likewise.
19101         (SEEK_SET): Likewise.
19102         (TMP_MAX): Likewise.
19103         (EOF): Use macro-int-constant.  Require < 0.
19104         (NULL): Use macro-constant.  Require == 0.
19105         (stdin): Require type to be FILE *.
19106         (stdout): Likewise.
19107         (stderr): Likewise.
19108         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
19109         macro-int-constant.
19110         (EXIT_SUCCESS): Likewise.
19111         (NULL): Use macro-constant.  Require == 0.
19112         (RAND_MAX): Use macro-int-constant.
19113         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
19114         [C99-based standards] (strtof): Require function.
19115         [C99-based standards] (strtold): Likewise.
19116         [C99-based standards] (strtoll): Likewise.
19117         [C99-based standards] (strtoull): Likewise.
19118         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
19119         [ISO || ISO99 || ISO11] (limits.h): Likewise.
19120         [ISO || ISO99 || ISO11] (math.h): Likewise.
19121         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
19122         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
19123         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19124
19125 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
19126
19127         [BZ #14132]
19128         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
19129         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
19130         * intl/dgettext.c (DCGETTEXT): Likewise.
19131         * intl/gettext.c (DCGETTEXT): Likewise.
19132         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
19133         * posix/regex_internal.h (gettext): Likewise.
19134         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
19135         Remove declaration.
19136         * include/argz.h (__argz_count_internal)
19137         (__argz_stringify_internal): Remove declaration.
19138         (__argz_count, __argz_stringify): Declare hidden proto.
19139         * intl/dcgettext.c: Remove use of INTDEF.
19140         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
19141         * string/argz-stringify.c: Likewise.
19142         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19143         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19144         Declare hidden proto.
19145         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19146         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19147         Declare hidden proto.
19148         * include/stdio.h (__asprintf_internal): Don't declare.
19149         (__asprintf): Don't define as macro.  Declare hidden proto.
19150         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
19151         (__fsetlocking): Declare hidden proto.
19152         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
19153         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
19154         hidden proto.
19155         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
19156         (_IO_setlinebuf): Remove use of INTUSE.
19157         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
19158         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
19159         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
19160         Remove declaration.
19161         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
19162         (_IO_do_flush): Remove use of INTUSE.
19163         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
19164         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
19165         (_IO_adjust_column, _IO_least_wmarker)
19166         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
19167         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
19168         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
19169         (_IO_default_doallocate, _IO_wdefault_doallocate)
19170         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
19171         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
19172         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
19173         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
19174         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
19175         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
19176         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
19177         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
19178         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
19179         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
19180         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
19181         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
19182         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
19183         proto.
19184         (_IO_flush_all_internal, _IO_adjust_column_internal)
19185         (_IO_default_uflow_internal, _IO_default_finish_internal)
19186         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
19187         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
19188         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
19189         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
19190         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
19191         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
19192         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
19193         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
19194         (_IO_file_close_internal, _IO_file_close_it_internal)
19195         (_IO_file_underflow_internal, _IO_file_overflow_internal)
19196         (_IO_file_init_internal, _IO_file_attach_internal)
19197         (_IO_file_fopen_internal, _IO_file_read_internal)
19198         (_IO_file_sync_internal, _IO_file_seek_internal)
19199         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
19200         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
19201         (_IO_str_underflow_internal, _IO_str_overflow_internal)
19202         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
19203         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
19204         (_IO_list_all_internal, _IO_link_in_internal)
19205         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
19206         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
19207         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
19208         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
19209         (_IO_do_write_internal, _IO_padn_internal)
19210         (_IO_getline_info_internal, _IO_getline_internal)
19211         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
19212         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
19213         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
19214         (_IO_vfscanf_internal, _IO_vfprintf_internal)
19215         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
19216         (_IO_init_internal, _IO_un_link_internal): Don't declare.
19217         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
19218         with libc_hidden_ver, remove use of INTUSE.
19219         * libio/genops.c: Likewise.
19220         * libio/freopen.c: Likewise.
19221         * libio/freopen64.c: Likewise.
19222         * libio/iofclose.c: Likewise.
19223         * libio/iofdopen.c: Likewise.
19224         * libio/iofflush.c: Likewise.
19225         * libio/iofflush_u.c: Likewise.
19226         * libio/iofgets.c: Likewise.
19227         * libio/iofgets_u.c: Likewise.
19228         * libio/iofopen.c: Likewise.
19229         * libio/iofopncook.c: Likewise.
19230         * libio/iofread.c: Likewise.
19231         * libio/iofread_u.c: Likewise.
19232         * libio/ioftell.c: Likewise.
19233         * libio/iofwrite.c: Likewise.
19234         * libio/iogetline.c: Likewise.
19235         * libio/iogets.c: Likewise.
19236         * libio/iogetwline.c: Likewise.
19237         * libio/iopadn.c: Likewise.
19238         * libio/iopopen.c: Likewise.
19239         * libio/ioseekoff.c: Likewise.
19240         * libio/ioseekpos.c: Likewise.
19241         * libio/iosetbuffer.c: Likewise.
19242         * libio/iosetvbuf.c: Likewise.
19243         * libio/ioungetc.c: Likewise.
19244         * libio/ioungetwc.c: Likewise.
19245         * libio/iovdprintf.c: Likewise.
19246         * libio/iovsprintf.c: Likewise.
19247         * libio/iovsscanf.c: Likewise.
19248         * libio/memstream.c: Likewise.
19249         * libio/obprintf.c: Likewise.
19250         * libio/oldfileops.c: Likewise.
19251         * libio/oldiofclose.c: Likewise.
19252         * libio/oldiofdopen.c: Likewise.
19253         * libio/oldiofopen.c: Likewise.
19254         * libio/oldiopopen.c: Likewise.
19255         * libio/oldstdfiles.c: Likewise.
19256         * libio/putc.c: Likewise.
19257         * libio/setbuf.c: Likewise.
19258         * libio/setlinebuf.c: Likewise.
19259         * libio/stdfiles.c: Likewise.
19260         * libio/strops.c: Likewise.
19261         * libio/vasprintf.c: Likewise.
19262         * libio/vscanf.c: Likewise.
19263         * libio/vsnprintf.c: Likewise.
19264         * libio/vswprintf.c: Likewise.
19265         * libio/wfiledoalloc.c: Likewise.
19266         * libio/wfileops.c: Likewise.
19267         * libio/wgenops.c: Likewise.
19268         * libio/wmemstream.c: Likewise.
19269         * libio/wstrops.c: Likewise.
19270         * libio/__fpurge.c: Likewise.
19271         * libio/__fsetlocking.c: Likewise.
19272         * assert/assert.c: Likewise.
19273         * debug/fgets_chk.c: Likewise.
19274         * debug/fgets_u_chk.c: Likewise.
19275         * debug/fread_chk.c: Likewise.
19276         * debug/fread_u_chk.c: Likewise.
19277         * debug/gets_chk.c: Likewise.
19278         * debug/obprintf_chk.c: Likewise.
19279         * debug/vasprintf_chk.c: Likewise.
19280         * debug/vdprintf_chk.c: Likewise.
19281         * debug/vsnprintf_chk.c: Likewise.
19282         * debug/vsprintf_chk.c: Likewise.
19283         * malloc/mtrace.c: Likewise.
19284         * misc/error.c: Likewise.
19285         * misc/syslog.c: Likewise.
19286         * stdio-common/asprintf.c: Likewise.
19287         * stdio-common/fxprintf.c: Likewise.
19288         * stdio-common/getw.c: Likewise.
19289         * stdio-common/isoc99_fscanf.c: Likewise.
19290         * stdio-common/isoc99_scanf.c: Likewise.
19291         * stdio-common/isoc99_vfscanf.c: Likewise.
19292         * stdio-common/isoc99_vscanf.c: Likewise.
19293         * stdio-common/isoc99_vsscanf.c: Likewise.
19294         * stdio-common/printf-prs.c: Likewise.
19295         * stdio-common/printf_fp.c: Likewise.
19296         * stdio-common/printf_fphex.c: Likewise.
19297         * stdio-common/printf_size.c: Likewise.
19298         * stdio-common/putw.c: Likewise.
19299         * stdio-common/scanf.c: Likewise.
19300         * stdio-common/sprintf.c: Likewise.
19301         * stdio-common/tmpfile.c: Likewise.
19302         * stdio-common/vfprintf.c: Likewise.
19303         * stdio-common/vfscanf.c: Likewise.
19304         * stdlib/strfmon_l.c: Likewise.
19305         * sunrpc/openchild.c: Likewise.
19306         * sunrpc/xdr_stdio.c: Likewise.
19307         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
19308         * sysdeps/mach/hurd/tmpfile.c: Likewise.
19309
19310 2012-05-24  Roland McGrath  <roland@hack.frob.com>
19311
19312         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19313
19314         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
19315         in the third column, to generate for the shared library an IFUNC
19316         that uses _dl_vdso_vsym.
19317         * Makerules (COMPILE.c, compile-stdin.c): New variables.
19318         * Makeconfig (object-suffixes-noshared): New variable.
19319
19320         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
19321         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
19322         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
19323         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
19324
19325         [BZ #14132]
19326         * include/sys/time.h (__gettimeofday): Remove macro.
19327         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
19328         * time/gettimeofday.c (__gettimeofday): Remove #undef.
19329         Remove INTDEF.
19330         (__gettimeofday): Add libc_hidden_def.
19331         (gettimeofday): Add libc_hidden_weak.
19332         * sysdeps/mach/gettimeofday.c: Likewise.
19333         * sysdeps/posix/gettimeofday.c: Likewise.
19334         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19335         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
19336         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
19337         (__gettimeofday_internal): Remove strong_alias.
19338         (__gettimeofday): Add libc_hidden_def.
19339         (gettimeofday): Add libc_hidden_weak.
19340         * sysdeps/unix/syscalls.list (gettimeofday):
19341         Remove __gettimeofday_internal alias.
19342
19343 2012-05-24  Daniel Jacobowitz  <drow@false.org>
19344             H.J. Lu  <hongjiu.lu@intel.com>
19345
19346         [BZ #12495]
19347         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
19348         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
19349         (largebin_index_32_big): New.
19350         (largebin_index): Use it for 16-byte alignment.
19351         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
19352         correction with front_misalign.
19353
19354 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19355
19356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
19357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
19358         Likewise.
19359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
19360         Likewise.
19361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19362         Likewise.
19363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
19364         Likewise.
19365         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
19366         Likewise.
19367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
19368         Likewise.
19369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
19370         Likewise.
19371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
19372         Likewise.
19373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
19374         Likewise.
19375         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
19376         Likewise.
19377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
19378         Likewise.
19379         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
19380         Likewise.
19381
19382         * scripts/data/c++-types-x32-linux-gnu.data: New file.
19383         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
19384
19385 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19386
19387         [BZ #10846]
19388         [BZ #14036]
19389         * math/libm-test.inc (exp_test): Add test from bug 14036.
19390         (pow_test): Add test from bug 10846.
19391
19392         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
19393         and other flags.
19394         (special_function): Do not include flags in test name.
19395         (parse_args): Likewise.
19396         * sysdeps/i386/fpu/libm-test-ulps: Update.
19397         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19398         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
19399         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
19400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19401
19402         * math/gen-libm-test.pl (%beautify): Add entries for underflow
19403         exceptions.
19404         * math/libm-test.inc ("Philosophy"): Update comment about
19405         exception testing.
19406         (UNDERFLOW_EXCEPTION): New macro.
19407         (UNDERFLOW_EXCEPTION_OK): Likewise.
19408         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
19409         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
19410         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
19411         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
19412         (INVALID_EXCEPTION_OK): Update value.
19413         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19414         (OVERFLOW_EXCEPTION_OK): Likewise.
19415         (IGNORE_ZERO_INF_SIGN): Likewise.
19416         (test_exceptions): Handle underflow exceptions.
19417         (acos_test): Update for underflow exception expectations.
19418         (cexp_test): Likewise.
19419         (clog_test): Likewise.
19420         (clog10_test): Likewise.
19421         (csqrt_test): Likewise.
19422         (ctan_test): Likewise.
19423         (ctanh_test): Likewise.
19424         (exp_test): Likewise.
19425         (exp10_test): Likewise.
19426         (exp2_test): Likewise.
19427         (expm1_test): Likewise.
19428         (fma_test): Likewise.
19429         (j0_test): Likewise.
19430         (jn_test): Likewise.
19431         (nexttoward_test): Likewise.
19432         (pow_test): Likewise.
19433         (scalbn_test): Likewise.
19434         (scalbln_test): Likewise.
19435         (tan_test): Likewise.
19436         (y1_test): Likewise.
19437         * sysdeps/i386/fpu/libm-test-ulps: Update.
19438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19439
19440 2012-05-23  David S. Miller  <davem@davemloft.net>
19441
19442         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19443         (__libc_sigaction): Remove unused local variables.
19444
19445 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19446
19447         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
19448
19449 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19450
19451         mktime: avoid signed integer overflow
19452         * time/mktime.c (__mktime_internal): Do not mishandle the case
19453         where diff == INT_MIN.
19454
19455         mktime: simplify computation of average
19456         * time/mktime.c (ranged_convert): Use new time_t_avg function
19457         instead of rolling our own (probably-slower) code.
19458
19459         mktime: do not assume signed right shift propagates sign bit
19460         * time/mktime.c (isdst_differ): New static function.
19461         (__mktime_internal): No need to normalize tm_isdst now.
19462         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
19463         tm_isdst values.
19464
19465         mktime: merge another wrapv change from gnulib
19466         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
19467         from some compilers.
19468
19469         mktime: remove incorrect attempt at unusual arithmetics
19470         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
19471         The code didn't really work on such machines anyway.
19472         (TYPE_MINIMUM): Assume two's complement.
19473         (twos_complement_arithmetic): Verify that long_int and time_t
19474         are two's complement (or unsigned, in the latter case).
19475
19476         mktime: check signed shifts on long_int and time_t, too
19477         * time/mktime.c (SHR): Check that shifts work as desired
19478         on the types long_int and time_t too, as SHR is used on
19479         such types.
19480
19481         mktime: do not assume 'long' is wide enough
19482         * time/mktime.c (verify): Move decl up.
19483         (long_int): New type.
19484         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
19485         to remove assumption in the code that 'long' is wide enough to
19486         store year values.  This assumption is not true on x32 and on
19487         some non-glibc platforms.
19488
19489         mktime: merge wrapv change from gnulib
19490         * time/mktime.c (WRAPV): New macro.
19491         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
19492         (guess_time_tm, __mktime_internal): Do not assume that signed
19493         integer overflow wraps around; modern compilers generate code
19494         where this assumption is no longer valid.
19495
19496 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19497
19498         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19499         Replace "jmp L(pseudo_end)" with "ret".
19500         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
19501         Likewise.
19502
19503 2012-05-23  Andreas Jaeger  <aj@suse.de>
19504
19505         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
19506         * sysdeps/unix/sysv/linux/poll.c: Remove file.
19507
19508 2012-05-23  Andreas Jaeger  <aj@suse.de>
19509             Maximilian Attems  <max@stro.at>
19510
19511         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
19512         New macros.
19513
19514 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19515
19516         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
19517         code so that pseudo_end is just ret and the stack pointer is
19518         correct also for static library in error case.
19519
19520 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
19521
19522         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
19523         move to syscalls.list.
19524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
19525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
19526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
19527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
19528
19529         * manual/install.texi (Running make install): Do not mention Linux
19530         kernel version for which pt_chown is not needed.
19531         (Linux): Do not mention problems with nscd with 2.0 kernels.
19532         * INSTALL: Regenerated.
19533
19534 2012-05-23  Andreas Jaeger  <aj@suse.de>
19535
19536         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
19537         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
19538         macro.
19539         * sysdeps/unix/sysv/linux/s390/bits/mman.h
19540         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19541         * sysdeps/unix/sysv/linux/sh/bits/mman.h
19542         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19543         * sysdeps/unix/sysv/linux/i386/bits/mman.h
19544         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19545         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
19546         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19547         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
19548         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19549         * sysdeps/unix/sysv/linux/bits/in.h
19550         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
19551
19552 2012-05-22  Roland McGrath  <roland@hack.frob.com>
19553
19554         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
19555         (PREPARE_VERSION): Just use assert instead, it will be elided
19556         under [NDEBUG] anyway.
19557
19558 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19559
19560         * sysdeps/unix/sysv/linux/Makefile: Include
19561         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
19562         (sysdep_routines): Remove sysctl.
19563         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
19564         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
19565         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
19566         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
19567         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
19568
19569 2012-05-22  Andreas Jaeger  <aj@suse.de>
19570
19571         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
19572         that pseudo_end is just ret and the stack pointer is correct also
19573         for static library in error case.
19574
19575 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19576
19577         [BZ #14122]
19578         * nss/nsswitch.c (defconfig_entries): New variable.
19579         (__nss_database_lookup): Don't leak defconfig entries.
19580         (nss_parse_service_list): Don't leak on error paths.
19581         (free_database_entries): New function.
19582         (free_defconfig): New function.
19583         (free_mem): Move common code to free_database_entries.
19584
19585 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19586
19587         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
19588         Add arch_prctl.
19589         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
19590
19591         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19592         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
19593         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
19594         New macro.
19595         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19596         (INTERNAL_SYSCALL_TYPES): Likewise.
19597         (LOAD_ARGS_TYPES_[1-6]): Likewise.
19598         (LOAD_REGS_TYPES_[1-6]): Likewise.
19599         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
19600         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
19601
19602 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19603
19604         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
19605         copysignl for GLIBC_2_0.
19606         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
19607         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
19608         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
19609         logbl for GLIBC_2_0.
19610         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
19611         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
19612
19613 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19614
19615         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
19616         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19617
19618         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19619         Use "neg %eax".
19620
19621         * time/mktime.c: Update copyright years.
19622
19623 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19624
19625         mktime: merge comment-quoting-style change from gnulib
19626         * time/mktime.c: Quote 'like this' in comments.
19627         The GNU coding standards suggest that we no longer quote `like this',
19628         as "`" and "'" are typically rendered asymmetrically nowadays.
19629         The typical gnulib style is to quote 'like this' when quoting
19630         code, and "like this" when quoting English.
19631
19632         * time/mktime.c (compile-command): Add "-I.".
19633
19634         mktime: merge mktime-internal.h change from gnulib
19635         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
19636
19637         mktime: merge time_r change from gnulib
19638         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
19639
19640         mktime: merge DEBUG change from gnulib
19641         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
19642         case system <time.h> has a #define.
19643
19644         mktime: merge <sys/types.h> change from gnulib
19645         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
19646         since <time.t> is now guaranteed to define time_t.
19647
19648         mktime: merge HAVE_CONFIG_H change from gnulib
19649         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
19650
19651 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19652
19653         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19654         Use "neg %eax".
19655
19656         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
19657         __rlim_t cast.
19658         (struct rusage): Use anonymous union to pad each field to
19659         __syscall_slong_t.
19660
19661 2012-05-21  David S. Miller  <davem@davemloft.net>
19662
19663         * Makefules (o-iterator): Remove .s cases.
19664         (compile-command.s): Delete.
19665         (COMPILE.s): Delete.
19666         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19667
19668 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19669
19670         * configure.in (libc_cv_predef_stack_protector): Only consider
19671         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19672         * configure: Regenerated.
19673
19674 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19675
19676         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19677         New macro.  Use R*LP on int and pointer.
19678         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19679         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19680         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19681         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19682
19683         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19684         [__WORDSIZE_TIME64_COMPAT32] instead of
19685         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19686         (struct utmp): Likewise.
19687         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19688         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19689         Renamed to ...
19690         (__WORDSIZE_TIME64_COMPAT32): This.
19691         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19692         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19693         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19694         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19695         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19696         (__WORDSIZE_TIME64_COMPAT32): New macro.
19697
19698 2012-05-21  Andreas Jaeger  <aj@suse.de>
19699
19700         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19701         only if [SHARED]. Add prototype for __wcschr_ia32.
19702
19703 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19704
19705         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19706         of %rbp unmolested in the jmp_buf while mangling the low bits.
19707         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19708         unmolested high bits of %rbp while demangling the low bits.
19709         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19710
19711 2012-05-21  Andreas Jaeger  <aj@suse.de>
19712
19713         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19714         * sunrpc/svc_simple.c: Use it for registerrpc.
19715         * sunrpc/xcrypt.c: Use it for passwd2des.
19716
19717         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19718
19719 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19720
19721         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19722         Don't define if [__SYSCALL_WORDSIZE != 32].
19723         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19724         New macro.
19725
19726 2012-05-21  Bruno Haible  <bruno@clisp.org>
19727             Andreas Jaeger  <aj@suse.de>
19728
19729         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19730         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19731         inptr and inend for must_buffer_ch.
19732         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19733         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19734         * stdio-common/Makefile (tests): Remove bug15.
19735         (bug15-ENV): Remove macro.
19736         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19737         anymore.
19738
19739 2012-05-19  Andreas Jaeger  <aj@suse.de>
19740             Roland McGrath  <roland@hack.frob.com>
19741
19742         * manual/contrib.texi: Completely rewritten. It contains now an
19743         alphabetical list of contributors and their contributions.
19744
19745 2012-05-21  Richard Henderson  <rth@twiddle.net>
19746
19747         * misc/getauxval.c (__getauxval): Use unsigned long int.
19748         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19749         (getauxval): Use unsigned long int.
19750
19751 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19752
19753         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19754
19755 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19756
19757         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19758         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19759         __alignof__ (long double).
19760
19761 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19762
19763         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19764
19765 2012-05-20  Richard Henderson  <rth@twiddle.net>
19766
19767         * misc/getauxval.c: New file.
19768         * misc/sys/auxv.h: New file.
19769         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19770         (routines): Add getauxval.
19771         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19772         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19773         * elf/dl-sysdep.c (_dl_auxv): Remove.
19774         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19775         * elf/dl-support.c (_dl_auxv): New variable.
19776         (_dl_aux_init): Initialize it.
19777         * manual/startup.texi (Auxiliary Vector): New node.
19778         * sysdeps/generic/bits/hwcap.h: New file.
19779         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19780         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19781         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19782         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19783         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19784         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19786         Update.
19787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19789         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19790         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19791         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19792         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19793         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19794         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19795
19796 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19797
19798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19799
19800 2012-05-19  David S. Miller  <davem@davemloft.net>
19801
19802         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19803
19804 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19805
19806         [BZ #14123]
19807         * math/s_ccosh.c: Include <float.h>
19808         (__ccosh): Avoid internal overflow calculating sinh and cosh
19809         values before multiplying by sin and cos values.
19810         * math/s_ccoshf.c: Likewise.
19811         * math/s_ccoshl.c: Likewise.
19812         * math/s_csin.c: Likewise.
19813         * math/s_csinf.c: Likewise.
19814         * math/s_csinl.c: Likewise.
19815         * math/s_csinh.c: Likewise.
19816         * math/s_csinhf.c: Likewise.
19817         * math/s_csinhl.c: Likewise.
19818         * math/libm-test.inc (ccos_test): Add more tests.
19819         (ccosh_test): Likewise.
19820         (csin_test): Likewise.
19821         (csinh_test): Likewise.
19822         * sysdeps/i386/fpu/libm-test-ulps: Update.
19823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19824
19825 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19826
19827         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19828         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19829
19830         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19831
19832 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19833
19834         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19835         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19836         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19837         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19838         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19839         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19840         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19841         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19842         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19843         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19844         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19845         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19846         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19847         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19848         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19849         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19850         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19851         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19852         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19853         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19854         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19855         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19856         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19857         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19858         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19859         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19860         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19861         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19862         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19863         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19864         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19865
19866 2012-05-18  Andreas Jaeger  <aj@suse.de>
19867
19868         * csu/.gitignore: Delete.
19869
19870 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19871
19872         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19873         (timex): Use __syscall_slong_t.
19874
19875 2012-05-18  Andreas Jaeger  <aj@suse.de>
19876             Carlos O'Donell  <carlos_odonell@mentor.com>
19877
19878         * manual/install.texi (Configuring and compiling): Update
19879         description about files modified in the source directory.
19880         * INSTALL: Regenerated.
19881
19882 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19883
19884         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19885         value.  Use "or" to set return value to -1.
19886         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19887         negate return value.
19888
19889 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19890
19891         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19892         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19893         failure if the compiler has Graphite support disabled.
19894         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19895         Likewise.
19896         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19897         CFLAGS-memmove.c): Likewise.
19898         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19899         Likewise.
19900
19901 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19902
19903         * sysdeps/x86_64/x32/_itoa.h: New file.
19904
19905         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19906         getdents system call only if kernel and user dirents have the
19907         same d_ino and d_off.
19908
19909         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19910         LLONG_MAX != LONG_MAX.
19911         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19912         (_fitoa_word): Likewise.
19913
19914         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
19915         years.
19916         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
19917         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
19918         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
19919
19920         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
19921         include <bits/wordsize.h>.  Check __x86_64__ instead of
19922         __WORDSIZE.
19923         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
19924         if __x86_64__ is defined.  Use anonymous union on fpstate.
19925
19926         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
19927         anonymous union.
19928
19929 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19930
19931         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
19932         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
19933         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
19934         Refer to _rtld_local_ro instead of _rtld_global_ro.
19935         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
19936         Likewise.
19937         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
19938         Likewise.
19939         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
19940         Likewise.
19941         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
19942         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
19943         of _rtld_global, and rtld_progname instead of _dl_argv[0].
19944
19945         * sysdeps/powerpc/powerpc32/dl-machine.c
19946         (__elf_machine_runtime_setup) [PROF]: Don't reference
19947         _dl_prof_resolve.
19948
19949 2012-05-18  Andreas Jaeger  <aj@suse.de>
19950
19951         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
19952         function only available for GCCs before 3.4 since GCC 3.4
19953         introduced a builtin.
19954         (lrint): Likewise.
19955         (llrintf): Likewise.
19956         (llrint): Likewise.
19957         (fmaxf): Likewise.
19958         (fmax): Likewise.
19959         (fminf): Likewise.
19960         (fmin): Likewise.
19961         (rint): Likewise.
19962         (rintf): Likewise.
19963         (nearbyint): Likewise.
19964         (nearbyintf): Likewise.
19965         (ceil): Likewise.
19966         (ceilf): Likewise.
19967         (floor): Likewise.
19968         (floorf): Likewise.
19969
19970 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19971
19972         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
19973         on both fields and cast pointer to __syscall_ulong_t.
19974
19975         * bits/types.h (__fsword_t): New type.
19976         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
19977         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
19978         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19979         (__FSWORD_T_TYPE): Likewise.
19980         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19981         (__FSWORD_T_TYPE): Likewise.
19982         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19983         (__FSWORD_T_TYPE): Likewise.
19984         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
19985         (__FSWORD_T_TYPE): Likewise.
19986         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
19987         __SWORD_TYPE with __fsword_t.
19988         (statfs64): Likewise.
19989
19990 2012-05-17  David S. Miller  <davem@davemloft.net>
19991
19992         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
19993
19994 2012-05-17  Andreas Jaeger  <aj@suse.de>
19995
19996         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
19997         warning.
19998
19999 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20000
20001         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
20002
20003 2012-05-17  Andreas Jaeger  <aj@suse.de>
20004
20005         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
20006         when it is used.
20007
20008 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20009
20010         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
20011
20012 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20013
20014         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
20015         * sysdeps/x86_64/tst-mallocalign1.c: New file.
20016
20017 2012-05-17  Andreas Jaeger  <aj@suse.de>
20018             Carlos O'Donell  <carlos_odonell@mentor.com>
20019
20020         [BZ #14059]
20021         * sysdeps/x86_64/multiarch/init-arch.h
20022         (bit_YMM_Usable): Rename to...
20023         (bit_AVX_Usable): ... this.
20024         (bit_FMA4_Usable): New macro.
20025         (bit_XMM_state): New macro.
20026         (bit_YMM_state): New macro.
20027         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
20028         [__ASSEMBLER__] (index_AVX_Usable): ... this.
20029         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
20030         (CPUID_OSXSAVE): New macro.
20031         (CPUID_AVX): New macro.
20032         (CPUID_FMA4): New macro.
20033         (index_YMM_Usable): Rename to...
20034         (index_AVX_Usable): ... this.
20035         (HAS_AVX): Use HAS_ARCH_FEATURE.
20036         (HAS_FMA4): Likewise.
20037         (HAS_YMM_USABLE): Remove.
20038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20039         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
20040         are present.
20041         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
20042         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
20043         * sysdeps/x86_64/multiarch/Makefile: Likewise.
20044         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
20045         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
20046
20047 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20048
20049         * math/libm-test.c: Support platforms without multiple rounding modes.
20050         * math/bug-nextafter.c: Support platforms without FP exceptions.
20051         * math/bug-nexttoward.c: Likewise.
20052         * math/test-fenv.c: Likewise.
20053         * math/test-misc.c: Likewise.
20054         * stdlib/bug-getcontext.c: Likewise.
20055
20056 2012-05-17  Andreas Jaeger  <aj@suse.de>
20057
20058         * manual/examples/search.c (critter_cmp): Change signature to
20059         avoid warnings.
20060         * manual/string.texi (Collation Functions): Likewise.
20061
20062 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20063
20064         * bits/types.h: Fold copyright years.
20065         * bits/typesizes.h: Likewise.
20066         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
20067         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
20068         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
20069         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
20070         * time/time.h: Likewise.
20071
20072 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
20073
20074         [BZ #208]
20075         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
20076         in instead of returning them.  Return void.
20077         (__libc_mallinfo): Accumulate over all arenas.
20078         (__malloc_stats): Adjust for change in int_mallinfo interface.
20079
20080 2012-05-16  Roland McGrath  <roland@hack.frob.com>
20081
20082         [BZ #10375]
20083         * configure.in (NM): Add AC_CHECK_TOOL for it.
20084         (libc_extra_cflags): New substituted variable.
20085         Check for -fstack-protector being used implicitly.
20086         * configure: Regenerated.
20087         * config.make.in (config-extra-cflags): New variable,
20088         gets @libc_extra_cflags@.
20089         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
20090
20091         [BZ #10375]
20092         * configure.in: Check for _FORTIFY_SOURCE being predefined.
20093         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
20094         * configure: Regenerated.
20095         * config.make.in (CPPUNDEFS): New substituted variable.
20096         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
20097         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
20098         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
20099
20100 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20101
20102         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
20103         (mq_attr): Use __syscall_slong_t.
20104
20105 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20106
20107         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
20108         Check __x86_64__ instead of __WORDSIZE.
20109         (_STAT_VER_LINUX): Likewise.
20110         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
20111         __syscall_ulong_t and __syscall_slong_t.
20112         (stat64): Likewise.
20113
20114 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20115
20116         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
20117
20118 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20119
20120         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
20121
20122 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20123
20124         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
20125         __syscall_ulong_t.
20126
20127         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
20128         include <bits/wordsize.h>.  Check __x86_64__ instead of
20129         __WORDSIZE.
20130         (greg_t): Use "__extension__ long long int" if __x86_64__ is
20131         defined.
20132         (mcontext_t): Replace "unsigned long" with "unsigned long long".
20133
20134         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
20135         include <bits/wordsize.h>.  Check __x86_64__ instead of
20136         __WORDSIZE.
20137         (user_regs_struct): Use "__extension__ unsigned long long"
20138         instead of "unsigned long" if __x86_64__ is defined.
20139         (user): Likewise.  Pad after pointer field if __ILP32__ is
20140         defined.
20141
20142 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
20143
20144         * configure.in (makeinfo): Require version 4.5 or later.  Allow
20145         versions 5 to 9.
20146         * configure: Regenerated.
20147         * manual/install.texi (texinfo): Increase version requirement to
20148         4.5 or later.
20149         * INSTALL: Regenerated.
20150
20151         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
20152
20153 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20154
20155         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
20156
20157         * sysdeps/x86_64/x32/ffs.c: New file.
20158
20159         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
20160         __syscall_ulong_t.
20161         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
20162         defined.  Use __syscall_ulong_t.
20163         (shminfo): Use __syscall_ulong_t.
20164         (shm_info): Likewise.
20165
20166         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
20167         __syscall_ulong_t.
20168
20169         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
20170         <bits/wordsize.h>.
20171         (msgqnum_t): Use __syscall_ulong_t.
20172         (msglen_t): Likewise.
20173         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
20174         __syscall_ulong_t.
20175
20176         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
20177         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20178
20179         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
20180
20181         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
20182         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
20183
20184         * sysvipc/sys/msg.h (msgbuf): Replace long int with
20185         __syscall_slong_t.
20186
20187         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
20188         include <bits/wordsize.h>.  Check __x86_64__ instead of
20189         __WORDSIZE.
20190
20191         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
20192         "unsigned long long int" if __x86_64__ is defined.
20193         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
20194
20195         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
20196         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20197         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
20198
20199         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
20200         <stdint.h>.
20201         (GET_PC): Cast to uintptr_t first.
20202         (GET_FRAME): Likewise.
20203         (GET_STACK): Likewise.
20204
20205         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
20206         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
20207         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
20208         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
20209         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
20210         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
20211         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
20212         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
20213         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
20214         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
20215         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
20216         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
20217         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20218         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
20219         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
20220         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
20221         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
20222         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
20223         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
20224         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
20225         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
20226         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
20227         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
20228         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
20229         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
20230         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
20231         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
20232         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
20233         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
20234
20235 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
20236
20237         * Makerules (+depfiles): Also collect depfiles from .oS in
20238         $(extra-objs).
20239         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
20240         .oS, $(libnldbl-routines)).
20241
20242         * Makerules (native-compile-mkdep-flags): Define.
20243         * sunrpc/Makefile (extra-objs): Add $(addprefix
20244         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
20245         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
20246         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
20247         calling $(make-target-directory).
20248
20249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20250
20251         * bits/types.h (__snseconds_t): Removed.
20252         * time/time.h (struct timespec): Replace __snseconds_t with
20253         __syscall_slong_t.
20254         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
20255         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
20256         Likewise.
20257         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20258         (__SNSECONDS_T_TYPE): Likewise.
20259         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20260         (__SNSECONDS_T_TYPE): Likewise.
20261         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20262         (__SNSECONDS_T_TYPE): Likewise.
20263
20264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20265
20266         * sysdeps/mach/hurd/bits/typesizes.h
20267         (__SYSCALL_SLONG_TYPE): New macro.
20268         (__SYSCALL_ULONG_TYPE): Likewise.
20269
20270 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20271
20272         * bits/types.h (__syscall_slong_t): New type.
20273         (__syscall_ulong_t): Likewise.
20274
20275         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
20276         (__SYSCALL_ULONG_TYPE): Likewise.
20277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20278         (__SYSCALL_SLONG_TYPE): Likewise.
20279         (__SYSCALL_ULONG_TYPE): Likewise.
20280         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20281         (__SYSCALL_SLONG_TYPE): Likewise.
20282         (__SYSCALL_ULONG_TYPE): Likewise.
20283         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20284         (__SYSCALL_SLONG_TYPE): Likewise.
20285         (__SYSCALL_ULONG_TYPE): Likewise.
20286
20287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20288
20289         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
20290         Add sigaltstack-offsets.sym.
20291         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
20292         <sigaltstack-offsets.h>.
20293         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
20294         longjmp_msg pointer.
20295         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
20296         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
20297         signal stack.
20298         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
20299
20300 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20301
20302         * elf/stackguard-macros.h: Remove file.
20303         * sysdeps/generic/stackguard-macros.h: New file.
20304         * sysdeps/i386/stackguard-macros.h: Likewise.
20305         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
20306         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
20307         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20308         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20309         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
20310         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
20311         * sysdeps/x86_64/stackguard-macros.h: Likewise.
20312         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
20313         <elf/stackguard-macros.h>.
20314
20315         [BZ #14109]
20316         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
20317         __aligned__ in attribute.
20318         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
20319         (gregset_t): Likewise.
20320
20321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20322
20323         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
20324         * sysdeps/x86_64/64/Implies-after: Here.  New file.
20325         * sysdeps/x86_64/x32/Implies-after: New file.
20326
20327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20328
20329         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
20330         and access return value for _dl_profile_fixup.  Use R10_LP to
20331         load frame size.
20332
20333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20334
20335         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
20336
20337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20338
20339         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
20340         * sysdeps/x86_64/x32/sysdep.h: New file.
20341
20342 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20343
20344         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
20345         * sysdeps/x86_64/setjmp.S: Likewise.
20346
20347 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20348
20349         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
20350         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
20351         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
20352         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
20353         remove unused global constant.
20354
20355 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
20356
20357         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
20358         include of <not-cancel.h>.
20359
20360 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20361
20362         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
20363
20364 2012-05-15  Jeff Law  <law@redhat.com>
20365             Andreas Jaeger  <aj@suse.de>
20366
20367         [BZ #13594]
20368         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
20369         out from...
20370         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
20371         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
20372         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
20373         code changing __hst_map_handle.map.
20374
20375 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20376
20377         * configure.in (sysnames): Look for Implies-before and Implies-after
20378         files.
20379         * configure: Regenerated.
20380
20381 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20382
20383         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
20384         8-byte data alignment with LP_SIZE alignment.
20385
20386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20387
20388         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
20389         into R10_LP.
20390
20391 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20392
20393         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
20394
20395 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20396
20397         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
20398         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
20399         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
20400         Likewise.
20401         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20402
20403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20404
20405         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
20406         (stackinfo_sub_sp): Likewise.
20407
20408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20409
20410         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
20411         RAX_LP.
20412
20413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20414
20415         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
20416         into R*_LP.
20417
20418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20419
20420         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
20421         sizes into R*_LP.
20422
20423 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20424
20425         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
20426
20427 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20428
20429         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
20430         into R11_LP and load __x86_64_shared_cache_size_half into
20431         R8_LP.
20432
20433 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20434
20435         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
20436         R8_LP.
20437
20438 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20439
20440         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
20441         logb for POWER7.
20442         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
20443         logbf for POWER7.
20444         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
20445         logbl for POWER7.
20446         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
20447         powerpc32/power7/fpu/s_logb.c via #include.
20448         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
20449         powerpc32/power7/fpu/s_logbf.c via #include.
20450         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
20451         powerpc32/power7/fpu/s_logbl.c via #include.
20452
20453 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20454
20455         * README.libm: Remove file.
20456
20457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20458
20459         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
20460         count for x32.  Use R*_LP and omit operand-size suffix.
20461
20462 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20463
20464         * shlib-versions: Move x86_64-.*-linux.* entries to ...
20465         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
20466         * sysdeps/x86_64/x32/shlib-versions: New file.
20467
20468 2012-05-14  Roland McGrath  <roland@hack.frob.com>
20469
20470         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
20471         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
20472         Use _dl_fatal_printf instead.
20473
20474 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20475
20476         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
20477         set if not set by the user.  Do not allow for being unset.
20478         * sysdeps/unix/sysv/linux/configure: Regenerated.
20479
20480 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20481
20482         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
20483         the `q' suffix from lea and replace .quad with ASM_ADDR.
20484
20485 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20486
20487         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
20488         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
20489         instead of $17.
20490         (PTR_DEMANGLE): Likewise.
20491
20492 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20493
20494         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
20495         (LP_OP): Likewise.
20496         (ASM_ADDR): Likewise.
20497         (RAX_LP): Likewise.
20498         (RBP_LP): Likewise.
20499         (RBX_LP): Likewise.
20500         (RCX_LP): Likewise.
20501         (RDI_LP): Likewise.
20502         (RSI_LP): Likewise.
20503         (RSP_LP): Likewise.
20504         (R8_LP): Likewise.
20505         (R9_LP): Likewise.
20506         (R10_LP): Likewise.
20507         (R10_LP): Likewise.
20508         (R11_LP): Likewise.
20509         (R12_LP): Likewise.
20510         (R13_LP): Likewise.
20511         (R14_LP): Likewise.
20512         (R15_LP): Likewise.
20513
20514 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20515
20516         * sysdeps/x86_64/x32/dl-machine.h: New file.
20517
20518 2012-05-14  Andreas Jaeger  <aj@suse.de>
20519
20520         * manual/Makefile (subdir): Remove export of subdir.
20521         (all): Remove target.
20522         (.PHONY): Remove all from list.
20523         (mkinstalldirs): Remove.
20524         (.PHONY): Remove installdirs from list.
20525         ($(inst_infodir)/libc.info): Use make-target-directory.
20526         (installdirs): Remove.
20527         (subdir_%): Remove.
20528         (glibc-targets): Remove.
20529         (lib): Remove.
20530         (stubs): Remove.
20531         ($(objpfx)stubs ../po/manual.pot): Remove.
20532         ($(objpfx)stamp%): Remove.
20533         (make-target-directory): Remove.
20534         (subdir_install): Remove.
20535         (routines): Remove.
20536         (aux): Remove.
20537         (sources): Remove.
20538         (objects): Remove.
20539         (headers): Remove.
20540
20541         [BZ #13750]
20542         * manual/.gitignore: Remove, it's not needed anymore.
20543         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
20544         all files in it.
20545         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
20546         directory.
20547         (texis): Renamed to $(objpfx)texis.
20548         (texis-path): New, contains path to generated files.
20549         (chapters.%): Use texis-path for complete path, add extra argument
20550         libc-texinfo.sh.
20551         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
20552         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
20553         (summary,texi, stamp-summary): Use complete path of
20554         files. Generate files in build dir.
20555         (dir-add.texi): Build in build dir.
20556         (libm-err.texi,stamp-libm-err): Likewise.
20557         (version.texi, stamp-version): Likewise.
20558         (.%c.texi): Likewise.
20559         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
20560         (mostlyclean): Remove target.
20561         (realclean): Remove target.
20562         (generated): Add new variable with contents from mostlyclean and
20563         realclean, remove entries duplicated in common-mostlyclean, add
20564         stamp-libm-err and stamp-version.
20565         (generated-dirs): Add libc directory.
20566         ($(inst_infodir)/libc.info): Install files from build dir.
20567
20568         * manual/install.texi (Configuring and compiling): Adjust since
20569         the info files are not part of the tar ball anymore.
20570
20571 2012-05-14  Andreas Jaeger  <aj@suse.de>
20572
20573         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
20574         variable.
20575
20576 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20577
20578         [BZ #13717]
20579         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
20580         to 2.2.0 where earlier.
20581         * sysdeps/unix/sysv/linux/configure: Regenerated.
20582         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
20583         Remove conditional code.
20584         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
20585         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
20586         Remove conditional code.
20587         [!__NR_lchown]: Likewise.
20588         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20589         [__NR_lchown]: Likewise.
20590         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
20591         comment referencing __ASSUME_LCHOWN_SYSCALL.
20592         * sysdeps/unix/sysv/linux/i386/sigaction.c
20593         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20594         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20595         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
20596         Remove conditional code.
20597         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
20598         (__protocol_available): Remove #if 0 code.
20599         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
20600         conditional code.
20601         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
20602         * sysdeps/unix/sysv/linux/kernel-features.h
20603         (__ASSUME_GETCWD_SYSCALL): Don't define.
20604         (__ASSUME_REALTIME_SIGNALS): Likewise.
20605         (__ASSUME_PREAD_SYSCALL): Likewise.
20606         (__ASSUME_PWRITE_SYSCALL): Likewise.
20607         (__ASSUME_POLL_SYSCALL): Likewise.
20608         (__ASSUME_LCHOWN_SYSCALL): Likewise.
20609         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
20610         non-SPARC.
20611         (__ASSUME_SIOCGIFNAME): Don't define.
20612         (__ASSUME_MSG_NOSIGNAL): Likewise.
20613         (__ASSUME_SENDFILE): Define unconditionally.
20614         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
20615         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
20616         conditional code.
20617         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
20618         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
20619         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20620         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20621         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
20622         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20623         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
20625         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20626         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20628         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20629         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
20631         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20632         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
20634         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20635         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
20637         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20638         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20640         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20641         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
20643         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20644         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20646         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20647         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20648         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
20649         Remove conditional code.
20650         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20651         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20652         Remove conditional code.
20653         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20654         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
20655         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
20656         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20657         Remove conditional code.
20658         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20659         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
20660         Remove conditional code.
20661         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20662         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20663         Remove conditional code.
20664         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20665         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20666         Remove conditional code.
20667         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20668         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20669         Remove conditional code.
20670         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20671         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20672         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20673         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20674         * sysdeps/unix/sysv/linux/sigaction.c
20675         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20676         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20677         * sysdeps/unix/sysv/linux/sigpending.c
20678         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20679         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20680         * sysdeps/unix/sysv/linux/sigprocmask.c
20681         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20682         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20683         * sysdeps/unix/sysv/linux/sigsuspend.c
20684         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20685         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20686         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20687         (__libc_missing_rt_sigs): Remove.
20688         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20689         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20690         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20691         Remove conditional code.
20692         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20693         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20694         return 1.
20695         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20696         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20697         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20698         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20699
20700 2012-05-14  Andreas Jaeger  <aj@suse.de>
20701
20702         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20703         it's not used in glibc.
20704         (__coshm1): Likewise.
20705         (__acosh1p): Likewise.
20706         (__sgn): Likewise.
20707
20708         * manual/string.texi (Copying and Concatenation): Add missing
20709         variable in concat example.
20710         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20711
20712 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20713
20714         [BZ #14103]
20715         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20716         __builtin_clzl with __builtin_clzll.
20717
20718 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20719
20720         [BZ #14104]
20721         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20722         libc_freeres_ptr.
20723
20724 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20725
20726         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20727         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20728         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20729         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20730
20731 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20732
20733         * NEWS: Update ia64 info.
20734
20735 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20736
20737         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20738         used as bcopy.
20739
20740 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20741
20742         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20743         * sysdeps/unix/syscalls.list (dup3): Likewise.
20744         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20745         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20746
20747 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20748
20749         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20750         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20751
20752 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20753
20754         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20755         thread pointer.
20756         (TLS_IE): Use mov/add instead of movq/addq to load thread
20757         pointer.
20758         (TLS_GD_PREFIX): New.
20759         (TLS_GD): Use it.
20760
20761 2012-05-11  David S. Miller  <davem@davemloft.net>
20762
20763         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20764         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20765         (_FPU_SETCW): Likewise.
20766
20767 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20768
20769         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20770         is 32-byte aligned.
20771
20772 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20773
20774         [BZ #11837]
20775         * iconvdata/gb18030.c: Update tables.
20776         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20777         characters specially.
20778         (BODY for TO_LOOP): Add encoding of missing ranges.
20779
20780 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20781
20782         [BZ #13673]
20783         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20784         * sysdeps/mach/hurd/dup3.c: Likewise.
20785         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20786         * sysdeps/powerpc/memmove.c:: Likewise.
20787
20788 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20789
20790         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20791         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20792
20793 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20794
20795         * elf/elf.h (R_X86_64_RELATIVE64): New.
20796         (R_X86_64_NUM): Updated.
20797         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20798         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20799         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20800         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20801         tst-quad1pie tst-quad2pie
20802         (modules-names): Add tst-quadmod1 tst-quadmod2.
20803         ($(objpfx)tst-quad1): New dependency.
20804         ($(objpfx)tst-quad2): Likewise.
20805         ($(objpfx)tst-quad1pie): Likewise.
20806         ($(objpfx)tst-quad2pie): Likewise.
20807         * sysdeps/x86_64/tst-quad1.c: New file.
20808         * sysdeps/x86_64/tst-quad1pie.c: New file.
20809         * sysdeps/x86_64/tst-quad2.c: Likewise.
20810         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20811         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20812         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20813         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20814         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20815
20816 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20817
20818         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20819         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20820         * streams/stropts.h (t_scalar_t): Define type.
20821
20822         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20823         (_PATH_PRESERVE): Set to "/var/lib".
20824         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20825
20826         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20827         instead of int.
20828
20829         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20830         if __dir_mkfile succeeded.
20831
20832         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20833         checking for _hurd_dtablesize.  Unlock it right after having
20834         finished _hurd_dtable allocation.
20835
20836 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20837
20838         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20839         * sysdeps/mach/hurd/configure: Regenerated.
20840         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20841         special-casing to...
20842         * sysdeps/gnu/configure.in: ... this new file.
20843         * sysdeps/unix/sysv/linux/configure: Regenerated.
20844         * sysdeps/gnu/configure: New generated file.
20845
20846         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20847         for Linux: use nsec instead of usec, as well as:
20848         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20849         members of type struct timespec.
20850         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20851         New macros.
20852         (struct stat64): Likewise.
20853         (_STATBUF_ST_NSEC): New macro.
20854         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20855
20856         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20857         __strtoul_internal rather than strtoul.
20858
20859 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20860
20861         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20862         and reject them.
20863
20864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20865
20866         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20867         which preserves existing values.
20868         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20869
20870 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20871
20872         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20873         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20874         greater than FD_SETSIZE.
20875
20876 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20877
20878         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20879         allocated, call __vm_protect to finish enabling the existing space, and
20880         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20881         allocate the remainder.
20882
20883 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20884
20885         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20886         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20887
20888 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20889
20890         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20891         sysdeps/mach/hurd/readlink.c.
20892
20893         * posix/tst-sysconf.c (posix_options): Only use
20894         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20895         _POSIX_SYNCHRONIZED_IO when they are defined
20896         * sysdeps/mach/hurd/bits/posix_opt.h:
20897         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20898         (_XOPEN_REALTIME): Undefine macro.
20899         (_XOPEN_REALTIME_THREADS): Undefine macro.
20900         (_XOPEN_SHM): Undefine macro.
20901         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20902         macro to -1.
20903         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20904         macro to -1.
20905         (_POSIX_ASYNC_IO): Undefine macro.
20906         (_POSIX_PRIORITIZED_IO): Undefine macro.
20907         (_POSIX_SPIN_LOCKS): Define macro to -1.
20908
20909         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20910         SA_NODEFER, SA_RESETHAND.
20911         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20912         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20913         F_DUPFD_CLOEXEC.
20914
20915 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20916
20917         * elf/Makefile (pldd-modules): Define unconditionally.
20918
20919 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20920
20921         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
20922
20923 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20924
20925         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
20926         Return ENOENT when name is empty.
20927         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
20928
20929 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20930
20931         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
20932
20933         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
20934
20935 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20936
20937         Fix mlock in all cases except non-readable pages.
20938         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
20939         instead of VM_PROT_ALL as parameter to __vm_wire function.
20940
20941         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
20942         (__mkdir): When path is `/', just fail with EEXIST.
20943         * sysdeps/mach/hurd/mkdirat.c: Likewise.
20944
20945 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20946
20947         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
20948         <sys/uio.h> (for writev).
20949         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
20950         and <sys/param.h> (for MIN).
20951
20952 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20953
20954         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
20955         REQUESTED_TIME.  Properly set the remaining time and return EINTR
20956         if interrupted.
20957
20958 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20959
20960         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
20961         Depend on against $(link-rpcuserlibs).
20962
20963 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20964
20965         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
20966         (__libc_stack_end): Do not use attribute_relro.
20967         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
20968         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
20969         to libthread-provided value.
20970         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
20971         attribute_relro.
20972
20973 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20974
20975         [BZ #3748]
20976         * bits/libc-lock.h (__libc_once_get): New macro.
20977         * sysdeps/mach/bits/libc-lock.h: Likewise.
20978         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
20979         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
20980         instead of using implementation details.
20981
20982         * libio/fileops.c: Unconditionally include <kernel-features.h>.
20983         * libio/freopen.c: Likewise.
20984         * libio/freopen64.c: Likewise.
20985         * misc/syslog.c: Likewise.
20986         * nscd/connections.c: Likewise.
20987         * nscd/netgroupcache.c: Likewise.
20988         * sysdeps/posix/getcwd.c: Likewise.
20989
20990 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20991
20992         * math/w_ilogbf.c: Add #include <limits.h>.
20993
20994 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20995
20996         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
20997         path instead of returning without unlocking.
20998
20999         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
21000         immediate-write ioctls.
21001         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
21002
21003 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21004
21005         * sysdeps/mach/hurd/i386/init-first.c (init): Use
21006         __builtin_frame_address instead of making assumptions about the
21007         location of the return address relative to DATA.  Force early load of
21008         the return address.
21009         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
21010         __builtin_frame_address.
21011
21012         dup3 for GNU Hurd.
21013         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
21014         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
21015         implement dup3 and do some further code clean-ups.
21016         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
21017         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
21018
21019 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21020
21021         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
21022
21023         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
21024         HURD_CRITICAL_END around holding _hurd_dtable_lock.
21025         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
21026         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
21027         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
21028         d->port.lock.
21029
21030         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
21031         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
21032         when handler == SIG_ERR, not when handler != SIG_ERR.
21033
21034 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21035
21036         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
21037         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
21038         definitions.
21039
21040         accept4 for GNU Hurd.
21041         * include/sys/socket.h (__libc_accept4): New prototype.
21042         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
21043         to implement __libc_accept4.
21044         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
21045         __libc_accept4.
21046         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
21047
21048         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
21049         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
21050         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
21051         signal-defines.sym.
21052
21053 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21054
21055         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
21056
21057 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21058
21059         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
21060         assertion on O_CLOEXEC flag.
21061         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
21062         * hurd/intern-fd.c: Likewise.
21063         * hurd/port2fd.c: Likewise.
21064
21065 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21066
21067         [BZ #3906]
21068         * bits/in.h (IPV6_PKTINFO): Define new macro.
21069         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
21070
21071 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21072
21073         [BZ #13954]
21074         [BZ #13955]
21075         [BZ #13956]
21076         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
21077         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21078         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
21079         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21080         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21081         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21082         * math/libm-test.inc (logb_test) : Additional logb tests.
21083
21084 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
21085             Andreas Jaeger  <aj@suse.de>
21086
21087         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
21088         * configure: Regenerated.
21089         * config.h.in (LINK_OBSOLETE_RPC): New macro.
21090         * config.make.in (link-obsolete-rpc): New substituted variable.
21091         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
21092         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
21093         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21094         (shared-only-routines): Don't set it under [link-obsolete-rpc],
21095         so that libc.a contains the symbols.
21096         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21097         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
21098         * sunrpc/auth_none.c: Likewise.
21099         * sunrpc/auth_unix.c: Likewise.
21100         * sunrpc/authdes_prot.c: Likewise.
21101         * sunrpc/authuxprot.c: Likewise.
21102         * sunrpc/clnt_gen.c: Likewise.
21103         * sunrpc/clnt_perr.c: Likewise.
21104         * sunrpc/clnt_raw.c: Likewise.
21105         * sunrpc/clnt_simp.c: Likewise.
21106         * sunrpc/clnt_tcp.c: Likewise.
21107         * sunrpc/clnt_udp.c: Likewise.
21108         * sunrpc/clnt_unix.c: Likewise.
21109         * sunrpc/des_crypt.c: Likewise.
21110         * sunrpc/des_soft.c: Likewise.
21111         * sunrpc/get_myaddr.c: Likewise.
21112         * sunrpc/key_call.c: Likewise.
21113         * sunrpc/key_prot.c: Likewise.
21114         * sunrpc/netname.c: Likewise.
21115         * sunrpc/pm_getmaps.c: Likewise.
21116         * sunrpc/pm_getport.c: Likewise.
21117         * sunrpc/pmap_clnt.c: Likewise.
21118         * sunrpc/pmap_prot.c: Likewise.
21119         * sunrpc/pmap_prot2.c: Likewise.
21120         * sunrpc/pmap_rmt.c: Likewise.
21121         * sunrpc/publickey.c: Likewise.
21122         * sunrpc/rpc_cmsg.c: Likewise.
21123         * sunrpc/rpc_common.c: Likewise.
21124         * sunrpc/rpc_dtable.c: Likewise.
21125         * sunrpc/rpc_prot.c: Likewise.
21126         * sunrpc/rpc_thread.c: Likewise.
21127         * sunrpc/rtime.c: Likewise.
21128         * sunrpc/svc.c: Likewise.
21129         * sunrpc/svc_auth.c: Likewise.
21130         * sunrpc/svc_raw.c: Likewise.
21131         * sunrpc/svc_run.c: Likewise.
21132         * sunrpc/svc_tcp.c: Likewise.
21133         * sunrpc/svc_udp.c: Likewise.
21134         * sunrpc/svc_unix.c: Likewise.
21135         * sunrpc/svcauth_des.c: Likewise.
21136         * sunrpc/xcrypt.c: Likewise.
21137         * sunrpc/xdr.c: Likewise.
21138         * sunrpc/xdr_array.c: Likewise.
21139         * sunrpc/xdr_float.c: Likewise.
21140         * sunrpc/xdr_intXX_t.c: Likewise.
21141         * sunrpc/xdr_mem.c: Likewise.
21142         * sunrpc/xdr_rec.c: Likewise.
21143         * sunrpc/xdr_ref.c: Likewise.
21144         * sunrpc/xdr_sizeof.c: Likewise.
21145         * sunrpc/xdr_stdio.c: Likewise.
21146
21147 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21148
21149         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
21150         change.  Update copyright years.
21151
21152 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21153
21154         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
21155
21156 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
21157             Joseph Myers  <joseph@codesourcery.com>
21158             Paul Pluzhnikov  <ppluzhnikov@google.com>
21159
21160         [BZ #14012]
21161         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
21162         requiring rpcgen.
21163         [cross-compiling] (extra-libs): Likewise.
21164         [cross-compiling] (extra-libs-others): Likewise.
21165         [cross-compiling] (librpcsvc-routines): Likewise.
21166         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
21167         [cross-compiling] (omit-deps): Likewise.
21168         (sunrpc-CPPFLAGS): New variable.
21169         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
21170         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
21171         (cross-rpcgen-objs): New variable.
21172         (extra-objs): Append $(cross-rpcgen-objs).
21173         ($(cross-rpcgen-objs)): New rule.
21174         ($(objpfx)cross-rpcgen): Likewise.
21175         (rpcgen-cmd): Define to use $(built-program-file).  Expand
21176         comment.
21177         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
21178         ($(objpfx)x%.stmp): Likewise.
21179         * sunrpc/proto.h [IS_IN_build] (_): Define.
21180         [IS_IN_build] (_libc_intl_domainname): Likewise.
21181
21182 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21183
21184         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
21185         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
21186         and R_X86_64_TPOFF64.
21187
21188 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21189
21190         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
21191         sysdeps/unix/sysv/syscalls.list.
21192         (stime): Likewise.
21193         (utime): Likewise.
21194         * sysdeps/unix/sysv/syscalls.list: Remove file.
21195
21196 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21197
21198         [BZ #3440]
21199         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
21200         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
21201         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
21202         (__LC_IDENTIFICATION): Make these macros useful in #if
21203         expressions, as required by C99.
21204
21205 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
21206
21207         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
21208         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
21209         after this.
21210
21211 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21212
21213         * stdlib/longlong.h: Updated from GCC.
21214
21215 2012-05-09  Andreas Jaeger  <aj@suse.de>
21216
21217         * nscd/nscd.c (run_modes): Make named enum, reorder so that
21218         default is first entry.
21219         (run_mode): Set type.
21220         (main): Remove informal message about syslog.
21221         (options): Fix typo.
21222
21223         [BZ #14053]
21224         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
21225         to asm.
21226         (lrint): Likewise.
21227         (llrintf): Likewise.
21228         (llrint): Likewise.
21229         (rint): Likewise.
21230         (rintf): Likewise.
21231         (nearbyint): Likewise.
21232         (nearbyintf): Likewise.
21233
21234 2012-05-09  Andreas Jaeger  <aj@suse.de>
21235             Pedro Alves  <palves@redhat.com>
21236
21237         * nscd/nscd.c (run_mode): Use enum.
21238         (main): Cleanup coding style issue.
21239
21240 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
21241             Andreas Jaeger  <aj@suse.de>
21242
21243         * nscd/nscd.c (go_background): Replaced with...
21244         (run_mode): ... this.
21245         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
21246         (options): Add -F --foreground.
21247         (main): Implement it.
21248         (parse_opt): Parse it.
21249
21250 2012-05-09  Andreas Jaeger  <aj@suse.de>
21251
21252         [BZ #14083]
21253         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
21254         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
21255         -Wconversion warning.
21256         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
21257         Likewise.
21258
21259 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
21260
21261         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
21262         == 0.
21263         (LC_ALL): Use macro-int-constant.
21264         (LC_COLLATE): Likewise.
21265         (LC_CTYPE): Likewise.
21266         (LC_MESSAGES): Likewise.
21267         (LC_MONETARY): Likewise.
21268         (LC_NUMERIC): Likewise.
21269         (LC_TIME): Likewise.
21270         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
21271         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21272         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21273         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
21274         Specify type.
21275         [C99-based standards] (float_t): Expect type.
21276         [C99-based standards] (double_t): Expect type.
21277         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
21278         type.
21279         [C99-based standards] (HUGE_VALL): Likewise.
21280         [C99-based standards] (INFINITY): Likewise.
21281         [C99-based standards] (NAN): Likewise.
21282         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
21283         [C99-based standards] (FP_NAN): Likewise.
21284         [C99-based standards] (FP_NORMAL): Likewise.
21285         [C99-based standards] (FP_SUBNORMAL): Likewise.
21286         [C99-based standards] (FP_ZERO): Likewise.
21287         [C99-based standards] (FP_FAST_FMA): Use
21288         optional-macro-int-constant.  Specify type.  Require == 1.
21289         [C99-based standards] (FP_FAST_FMAF): Likewise.
21290         [C99-based standards] (FP_FAST_FMAL): Likewise.
21291         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
21292         [C99-based standards] (FP_ILOGBNAN): Likewise.
21293         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
21294         Specify type.
21295         [C99-based standards] (MATH_ERREXCEPT): Likewise.
21296         [C99-based standards] (math_errhandling): Specify type.
21297         [ISO99 || ISO11] (signgam): Do not allow.
21298         [non-C99-based standards] (copysignf): Do not allow.
21299         [non-C99-based standards] (exp2f): Likewise.
21300         [non-C99-based standards] (log2f): Likewise.
21301         [non-C99-based standards] (modff): Allow.
21302         [non-C99-based standards] (erff): Do not allow.
21303         [non-C99-based standards] (erfcf): Likewise.
21304         [non-C99-based standards] (gammaf): Likewise.
21305         [non-C99-based standards] (hypotf): Likewise.
21306         [non-C99-based standards] (j0f): Likewise.
21307         [non-C99-based standards] (j1f): Likewise.
21308         [non-C99-based standards] (jnf): Likewise.
21309         [non-C99-based standards] (lgammaf): Likewise.
21310         [non-C99-based standards] (tgammaf): Likewise.
21311         [non-C99-based standards] (y0f): Likewise.
21312         [non-C99-based standards] (y1f): Likewise.
21313         [non-C99-based standards] (ynf): Likewise.
21314         [non-C99-based standards] (isnanf): Likewise.
21315         [non-C99-based standards] (acoshf): Likewise.
21316         [non-C99-based standards] (asinhf): Likewise.
21317         [non-C99-based standards] (atanhf): Likewise.
21318         [non-C99-based standards] (cbrtf): Likewise.
21319         [non-C99-based standards] (expm1f): Likewise.
21320         [non-C99-based standards] (ilogbf): Likewise.
21321         [non-C99-based standards] (log1pf): Likewise.
21322         [non-C99-based standards] (logbf): Likewise.
21323         [non-C99-based standards] (nextafterf): Likewise.
21324         [non-C99-based standards] (remainderf): Likewise.
21325         [non-C99-based standards] (rintf): Likewise.
21326         [non-C99-based standards] (scalbf): Likewise.
21327         [non-C99-based standards] (copysignl): Likewise.
21328         [non-C99-based standards] (exp2l): Likewise.
21329         [non-C99-based standards] (log2l): Likewise.
21330         [non-C99-based standards] (modfl): Allow.
21331         [non-C99-based standards] (erfl): Do not allow.
21332         [non-C99-based standards] (erfcl): Likewise.
21333         [non-C99-based standards] (gammal): Likewise.
21334         [non-C99-based standards] (hypotl): Likewise.
21335         [non-C99-based standards] (j0l): Likewise.
21336         [non-C99-based standards] (j1l): Likewise.
21337         [non-C99-based standards] (jnl): Likewise.
21338         [non-C99-based standards] (lgammal): Likewise.
21339         [non-C99-based standards] (tgammal): Likewise.
21340         [non-C99-based standards] (y0l): Likewise.
21341         [non-C99-based standards] (y1l): Likewise.
21342         [non-C99-based standards] (ynl): Likewise.
21343         [non-C99-based standards] (isnanl): Likewise.
21344         [non-C99-based standards] (acoshl): Likewise.
21345         [non-C99-based standards] (asinhl): Likewise.
21346         [non-C99-based standards] (atanhl): Likewise.
21347         [non-C99-based standards] (cbrtl): Likewise.
21348         [non-C99-based standards] (expm1l): Likewise.
21349         [non-C99-based standards] (ilogbl): Likewise.
21350         [non-C99-based standards] (log1pl): Likewise.
21351         [non-C99-based standards] (logbl): Likewise.
21352         [non-C99-based standards] (nextafterl): Likewise.
21353         [non-C99-based standards] (remainderl): Likewise.
21354         [non-C99-based standards] (rintl): Likewise.
21355         [non-C99-based standards] (scalbl): Likewise.
21356         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21357         [non-C99-based standards] (FP_*): Do not allow.
21358         [C99-based standards] (FP_*): Change to
21359         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21360         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21361         allow.
21362         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
21363         (SIG_ERR): Likewise.
21364         [X/Open-based standards] (SIG_HOLD): Likewise.
21365         (SIG_IGN): Likewise.
21366         (SIGABRT): Use macro-int-constant.  Specify type.  Require
21367         positive value.
21368         (SIGFPE): Likewise.
21369         (SIGILL): Likewise.
21370         (SIGINT): Likewise.
21371         (SIGSEGV): Likewise.
21372         (SIGTER): Likewise.
21373         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
21374         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
21375         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
21376         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
21377         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
21378         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
21379         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
21380         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
21381         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
21382         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
21383         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
21384         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
21385         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
21386         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
21387         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
21388         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
21389         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
21390         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
21391         [X/Open-based standards] (SIGTRAP): Likewise.
21392         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
21393         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
21394         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
21395         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
21396         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21397         allow.
21398
21399 2012-05-08  Ian Wienand  <ianw@vmware.com>
21400
21401         [BZ #14080]
21402         * time/tzset.c (__tzset_parse_tz): Update default rules for
21403         daylight time changes in the Energy Policy Act of 2005.
21404
21405 2012-05-09  Andreas Jaeger  <aj@suse.de>
21406
21407         [BZ #13983]
21408         * elf/ldconfig.c (parse_conf): Change string to make clear that
21409         ldconfig only issued a warning if ld.so.conf does not exist.
21410
21411 2012-05-08  David S. Miller  <davem@davemloft.net>
21412
21413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
21414         movxtod instead of popping the value on the stack.
21415
21416         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21417
21418 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
21419
21420         * config.h.in: Add HAVE_ARM_PCS_VFP.
21421
21422 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
21423
21424         [BZ #13979]
21425         * include/features.h: Warn if user requests __FORTIFY_SOURCE
21426         checking but the checks are disabled for any reason.
21427
21428 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21429
21430         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
21431         and ELF64_R_TYPE with ELFW(R_TYPE).
21432
21433 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
21434
21435         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
21436         (ulimit): Likewise.
21437
21438         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
21439         (settimeofday): Likewise.
21440
21441 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
21442
21443         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
21444         a struct th_u2 inside the union, and move tu_block/tu_code into
21445         a new th_u3 union of tu_block/tu_code inside of that.  Move
21446         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
21447         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
21448         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
21449         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
21450         (th_stuff): Change to th_u1.tu_stuff.
21451         (th_data): Define.
21452         (th_msg): Change to th_u1.th_u2.tu_data.
21453
21454 2012-05-07  David S. Miller  <davem@davemloft.net>
21455
21456         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21457
21458         [BZ #14074]
21459         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
21460         (SETUP_PIC_REG): Use it.
21461         (SETUP_PIC_REG_LEAF): Use it.
21462
21463 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
21464
21465         [BZ #13885]
21466         [BZ #13923]
21467         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21468         USE_AS_EXPM1L.
21469         (EXPL_FINITE): Likewise.
21470         (FLDLOG): Likewise.
21471         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21472         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21473         e_expl.S.
21474         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21475         USE_AS_EXPM1L.
21476         (EXPL_FINITE): Likewise.
21477         (FLDLOG): Likewise.
21478         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21479         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21480         e_expl.S.
21481         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
21482         test of -max_value argument for long double.
21483         * sysdeps/i386/fpu/libm-test-ulps: Update.
21484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21485
21486 2012-05-06  David S. Miller  <davem@davemloft.net>
21487
21488         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
21489         quad soft-float symbols whose references which are compiler
21490         generated.
21491         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21492
21493 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
21494
21495         [BZ #13884]
21496         [BZ #13914]
21497         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21498         USE_AS_EXP10L.
21499         (EXPL_FINITE): Likewise.
21500         (FLDLOG): Likewise.
21501         (c0): Likewise.
21502         (c1): Likewise.
21503         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21504         Adjust comments for base varying.
21505         (__expl_finite): Change alias to EXPL_FINITE.
21506         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
21507         e_expl.S.
21508         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
21509         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
21510         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
21511         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
21512         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21513         USE_AS_EXP10L.
21514         (EXPL_FINITE): Likewise.
21515         (FLDLOG): Likewise.
21516         (c0): Likewise.
21517         (c1): Likewise.
21518         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21519         Adjust comments for base varying.
21520         (__expl_finite): Change alias to EXPL_FINITE.
21521         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
21522         tests for bugs.
21523         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21524
21525         [BZ #14064]
21526         * math/libm-test.inc (check_float_internal): Correct ulp
21527         calculation for subnormal expected results.
21528
21529 2012-05-06  Andreas Jaeger  <aj@suse.de>
21530
21531         * Makeconfig (+math-flags): New, set to -frounding-math.
21532         (+cflags): Add +math-flags so that all of glibc gets compiled with
21533         it.
21534
21535         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
21536
21537 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
21538
21539         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
21540         Disable one test.
21541
21542         [BZ #13787]
21543         [BZ #13922]
21544         [BZ #14036]
21545         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
21546         (__ieee754_expl): Allow for and saturate large arguments.
21547         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
21548         (u_threshold): Likewise.
21549         (__exp): Call __ieee754_exp before checking for overflow and
21550         underflow.
21551         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
21552         (u_threshold): Likewise.
21553         (__expf): Call __ieee754_expf before checking for overflow and
21554         underflow.
21555         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
21556         (u_threshold): Likewise.
21557         (__expl): Call __ieee754_expl before checking for overflow and
21558         underflow.
21559         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
21560         (__ieee754_expl): Allow for and saturate large arguments.
21561         * math/libm-test.inc (exp_test): Add another test.  Do not allow
21562         missing overflow exception on overflow.
21563         (expm1_test): Do not allow missing overflow exception on overflow.
21564
21565         * sysdeps/i386/fpu/e_expl.c: Move to ...
21566         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
21567         rather than using inline asm.
21568         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
21569         * sysdeps/x86_64/fpu/e_expl.S: Copy from
21570         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
21571
21572         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
21573         (nice): Likewise.
21574         (poll): Likewise.
21575         (signal): Likewise.
21576         (time): Likewise.
21577         (times): Likewise.
21578
21579 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21580
21581         * sysdeps/unix/syscalls.list (adjtime): Add entry from
21582         sysdeps/unix/common/syscalls.list.
21583         (fchmod): Likewise.
21584         (fchown): Likewise.
21585         (ftruncate): Likewise.
21586         (getrusage): Likewise.
21587         (gettimeofday): Likewise.
21588         (setpgid): Likewise.
21589         (setregid): Likewise.
21590         (setreuid): Likewise.
21591         (sigaction): Likewise.
21592         (truncate): Likewise.
21593         (vhangup): Likewise.
21594         * sysdeps/unix/common/syscalls.list: Remove file.
21595         * sysdeps/unix/bsd/Implies: Don't include unix/common.
21596         * sysdeps/unix/sysv/linux/Implies: Likewise.
21597
21598 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21599
21600         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
21601         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
21602         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
21603         Moved to ...
21604         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
21605         Here.
21606         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
21607         to ...
21608         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
21609         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
21610         to ...
21611         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
21612         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
21613         to ...
21614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
21615         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
21616         to ...
21617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
21618         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
21619         to ...
21620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
21621         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
21622         to ...
21623         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
21624         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
21625         to ...
21626         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
21627         Here.
21628         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
21629         to ...
21630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
21631         Here.
21632         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
21633         to ...
21634         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
21635         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
21636         Moved to ...
21637         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
21638         Here.
21639         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
21640         to ...
21641         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
21642
21643 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21644
21645         * sysdeps/unix/common/bits/dirent.h: Remove file.
21646         * sysdeps/unix/common/bits/fcntl.h: Likewise.
21647
21648         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
21649         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
21650         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
21651         * sysdeps/unix/bsd/isatty.c: Likewise.
21652         * sysdeps/unix/bsd/tcdrain.c: Likewise.
21653         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
21654         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
21655
21656 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21657
21658         [BZ #13563]
21659         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
21660         long double comparison inaccuracies.
21661         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21663
21664 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21665
21666         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21667         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21668
21669 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21670
21671         [BZ #14049]
21672         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21673         nonzero digits before rounding a hex value.
21674         * stdlib/tst-strtod.c (tests): Add another test.
21675
21676 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21677
21678         * sysdeps/s390/fpu/libm-test-ulps: Update.
21679
21680 2012-05-03  Andreas Jaeger  <aj@suse.de>
21681
21682         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21683         does not get optimized out.
21684         (malloc_opt_barrier): New.
21685
21686 2012-05-03  Andreas Jaeger  <aj@suse.de>
21687             Roland McGrath  <roland@hack.frob.com>
21688
21689         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21690         intermediate file deletion.
21691         (generated): Add .symlist files.
21692
21693 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21694
21695         [BZ #13775]
21696         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21697         Redirect under this condition.
21698         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21699         [__USE_GNU] (__dprintf_chk): Not under this condition.
21700         [__USE_GNU] (__vdprintf_chk): Likewise.
21701         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21702         under this condition.
21703         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21704         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21705         [__USE_XOPEN2K8] (vdprintf): Likewise.
21706         [__USE_GNU] (__dprintf_chk): Not under this condition.
21707         [__USE_GNU] (__vdprintf_chk): Likewise.
21708         [__USE_GNU] (dprintf): Likewise.
21709         [__USE_GNU] (vdprintf): Likewise.
21710
21711 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21712
21713         * elf/Makefile (common-generated): Set this instead of generated for
21714         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21715         $(all-built-dso)-derived lists.
21716
21717 2012-05-03  Andreas Jaeger  <aj@suse.de>
21718
21719         * sysdeps/i386/fpu/libm-test-ulps: Update.
21720
21721         * FAQ: Removed.
21722         * FAQ.in: Likewise.
21723         * scripts/gen-FAQ.pl: Likewise.
21724         * manual/install.texi (Installation): Point to online location of
21725         FAQ.
21726         * Makefile (files-for-dist): Remove FAQ.
21727         (FAQ): Remove.
21728
21729 2012-05-02  Allan McRae  <allan@archlinux.org>
21730
21731         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21732         (LDFLAGS-reldepmod5.so): Likewise.
21733         (LDFLAGS-reldep6mod1.so): Likewise.
21734         (LDFLAGS-reldep6mod4.so): Likewise.
21735         (LDFLAGS-reldep8mod3.so): Likewise.
21736         (LDFLAGS-unload4mod1.so): Likewise.
21737         (LDFLAGS-unload4mod2.so): Likewise.
21738         (LDFLAGS-tst-initorder): Likewise.
21739         (LDFLAGS-tst-initordera2.so): Likewise.
21740         (LDFLAGS-tst-initordera3.so): Likewise.
21741         (LDFLAGS-tst-initordera4.so): Likewise.
21742         (LDFLAGS-tst-initorderb2.so): Likewise.
21743         (LDFLAGS-noload): Likewise.
21744         (LDFLAGS-next): Likewise.
21745         (LDFLAGS-order2mod1.so): Likewise.
21746         (LDFLAGS-order2mod2.so): Likewise.
21747         (LDFLAGS-tst-initorder2): Likewise.
21748         (LDFLAGS-tst-initorder2a.so): Likewise.
21749         (LDFLAGS-tst-initorder2b.so): Likewise.
21750         (LDFLAGS-tst-initorder2c.so): Likewise.
21751         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21752
21753 2012-05-02  David S. Miller  <davem@davemloft.net>
21754
21755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21756
21757 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21758
21759         [BZ #14055]
21760         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21761
21762 2012-05-02  Andreas Jaeger  <aj@suse.de>
21763
21764         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21765         since we manipulate rounding mode.
21766         (CPPFLAGS-test-idouble.c): Likewise.
21767         (CPPFLAGS-test-ifloat.c): Likewise.
21768         (CFLAGS-test-ldouble.c): Likewise.
21769         (CFLAGS-test-double.c): Likewise.
21770         (CFLAGS-test-float.c): Likewise.
21771         (CFLAGS-test-misc.c): Likewise.
21772         (CFLAGS-test-test-fenv.c): Likewise.
21773
21774 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21775
21776         [BZ #2550]
21777         [BZ #2570]
21778         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21779         comparisons to determine direction to adjust input.
21780
21781 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21782
21783         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21784         output to the target.
21785
21786         * scripts/localplt.awk: New file.
21787         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21788         (check-localplt-CFLAGS): Variable removed.
21789         ($(all-built-dso:=.jmprel)): New static pattern rule.
21790         (generated): Add those targets.
21791         (localplt-built-dso): New variable.
21792         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21793
21794         * elf/check-localplt.c: File removed.
21795
21796         * scripts/check-execstack.awk: New file.
21797         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21798         (check-execstack-CFLAGS): Variable removed.
21799         ($(objpfx)check-execstack.h): Target removed.
21800         ($(objpfx)execstack-default): New target.
21801         (generated): Add that instead of check-execstack.h.
21802         ($(all-built-dso:=.phdr)): New static pattern rule.
21803         (generated): Add those targets.
21804         * elf/check-execstack.c: File removed.
21805
21806         * scripts/check-textrel.awk: New file.
21807         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21808         (check-textrel-CFLAGS): Variable removed.
21809         (all-built-dso): Use := to define.o
21810         ($(all-built-dso:=.dyn)): New static pattern rule.
21811         (generated): Add those targets.
21812         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21813         * config.make.in (READELF): New substituted variable.
21814         * elf/check-textrel.c: File removed.
21815
21816 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21817
21818         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21819         allow.
21820         * conform/data/ctype.h-data [C99-based standards] (isblank):
21821         Expect function.
21822         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21823         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21824         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21825         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21826         Specify type.  Require positive value.
21827         (EILSEQ): Likewise.
21828         (ERANGE): Likewise.
21829         [ISO || POSIX] (EILSEQ): Do not expect.
21830         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21831         Specify type.  Require positive value.
21832         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21833         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21834         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21835         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21836         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21837         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21838         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21839         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21840         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21841         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21842         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21843         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21844         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21845         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21846         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21847         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21848         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21849         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21850         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21851         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21852         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21853         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21854         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21855         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21856         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21857         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21858         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21859         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21860         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21861         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21862         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21863         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21864         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21865         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21866         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21867         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21868         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21869         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21870         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21871         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21872         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21873         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21874         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21875         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21876         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21877         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21878         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21879         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21880         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21881         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21882         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21883         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21884         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21885         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21886         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21887         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21888         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21889         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21890         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21891         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21892         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21893         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21894         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21895         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21896         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21897         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21898         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21899         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21900         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21901         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21902         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21903         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21904         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21905         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21906         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21907         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21908         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21909         Require >= 2.
21910         (FLT_ROUNDS): Expect as macro, not constant.
21911         (FLT_MANT_DIG): Use macro-int-constant.
21912         (DBL_MANT_DIG): Likewise.
21913         (LDBL_MANT_DIG): Likewise.
21914         (FLT_DIG): Likewise.
21915         (DBL_DIG): Likewise.
21916         (LDBL_DIG): Likewise.
21917         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
21918         (DBL_MIN_EXP): Likewise.
21919         (LDBL_MIN_EXP): Likewise.
21920         (FLT_MAX_EXP): Use macro-int-constant.
21921         (DBL_MAX_EXP): Likewise.
21922         (LDBL_MAX_EXP): Likewise.
21923         (FLT_MAX_10_EXP): Likewise.
21924         (DBL_MAX_10_EXP): Likewise.
21925         (LDBL_MAX_10_EXP): Likewise.
21926         (FLT_MAX): Use macro-constant.
21927         (DBL_MAX): Likewise.
21928         (LDBL_MAX): Likewise.
21929         (FLT_EPSILON): Use macro-constant.  Give upper bound.
21930         (DBL_EPSILON): Likewise.
21931         (LDBL_EPSILON): Likewise.
21932         (FLT_MIN): Likewise.
21933         (DBL_MIN): Likewise.
21934         (LDBL_MIN): Likewise.
21935         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
21936         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
21937         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
21938         [ISO11] (FLT_HAS_SUBNORM): Likewise.
21939         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
21940         [ISO11] (DBL_DECIMAL_DIG): Likewise.
21941         [ISO11] (FLT_DECIMAL_DIG): Likewise.
21942         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
21943         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
21944         [ISO11] (FLT_TRUE_MIN): Likewise.
21945         [ISO11] (LDBL_TRUE_MIN): Likewise.
21946         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21947         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
21948         (SCHAR_MIN): Use macro-int-constant.  Specify type.
21949         (SCHAR_MAX): Likewise.
21950         (UCHAR_MAX): Likewise.
21951         (CHAR_MIN): Likewise.
21952         (CHAR_MAX): Likewise.
21953         (MB_LEN_MAX): Use macro-int-constant.
21954         (SHRT_MIN): Use macro-int-constant.  Specify type.
21955         (SHRT_MAX): Likewise.
21956         (USHRT_MAX): Likewise.
21957         (INT_MAX): Likewise.
21958         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
21959         bound negative.
21960         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21961         bound with "U".
21962         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21963         bound with "L".
21964         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
21965         bound negative.  Suffix upper bound with "L".
21966         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21967         bound with "UL".
21968         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
21969         Specify type.
21970         [C99-based standards] (LLONG_MAX): Likewise.
21971         [C99-based standards] (ULLONG_MAX): Likewise.
21972         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
21973         == 0.
21974         [ISO11] (max_align_t): Require type.
21975         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21976
21977         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
21978         from $CFLAGS, without defining away __attribute__ calls.
21979         (checknamespace): Use $CFLAGS_namespace.
21980
21981         * conform/conformtest.pl (@keywords): Only include C99 keywords
21982         for standards based on C99 or C11.
21983
21984         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
21985         Disable tests.
21986         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
21987         UNIX98]: Likewise.
21988
21989         * conform/conformtest.pl: Handle "macro-int-constant" and test for
21990         usability of symbols in #if.
21991
21992         * conform/conformtest.pl: If macro or constant types start
21993         "promoted:", expect the symbol to be of the following type
21994         promoted by the integer promotions.
21995
21996         * conform/conformtest.pl: Parse all "constant" and "macro" lines
21997         in one place.  Also handle "macro-constant".
21998
21999         * conform/conformtest.pl: Only accept expected macro values with
22000         "==".  Parse all "macro" lines in one place.
22001         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
22002
22003         * conform/conformtest.pl: Handle braced types on "constant" lines
22004         instead of handling "typed-constant".
22005         * conform/data/signal.h-data: Use "constant" instead of
22006         "typed-constant".
22007
22008         * conform/conformtest.pl: Handle "optional-" at start of lines in
22009         one place rather than duplicating several cases.  Handle each
22010         format of "macro" line with initial "optional-".
22011
22012         * conform/conformtest.pl: Only accept expected constant or
22013         optional-constant values with "==".  Parse all "constant" lines in
22014         one place.  Parse all "optional-constant" lines in one place.
22015         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
22016         * conform/data/fmtmsg.h-data: Likewise.
22017         * conform/data/netinet/in.h-data: Likewise.
22018         * conform/data/tar.h-data: Likewise.
22019         * conform/data/limits.h-data: Use "==" form on "constant" and
22020         "optional-constant" lines.
22021
22022         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
22023         Use -std=c99 for XOPEN2K.
22024         (@knownproblems): Remove.
22025         (newtoken): Don't check %isknown.
22026
22027         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
22028         Do not expect macro.
22029         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
22030         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
22031         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
22032         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
22033         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
22034         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
22035         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
22036         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
22037         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
22038         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
22039         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
22040         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
22041         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
22042         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
22043         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
22044         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
22045         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
22046         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
22047         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
22048         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
22049         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
22050         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
22051         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
22052         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
22053         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
22054         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
22055         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
22056         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
22057         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
22058         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
22059         [XPG3] (acosh): Likewise.
22060         [XPG3] (asinh): Likewise.
22061         [XPG3] (atanh): Likewise.
22062         [XPG3] (cbrt): Likewise.
22063         [XPG3] (expm1): Likewise.
22064         [XPG3] (ilogb): Likewise.
22065         [XPG3] (log1p): Likewise.
22066         [XPG3] (logb): Likewise.
22067         [XPG3] (nextafter): Likewise.
22068         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
22069         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
22070         [XPG3] (remainder): Likewise.
22071         [XPG3] (rint): Likewise.
22072         [XPG3 || XPG4 || UNIX98] (round): Likewise.
22073         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
22074         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
22075         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
22076         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
22077         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
22078         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
22079         [UNIX98 || XOPEN2K] (scalb): Expect.
22080         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
22081         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
22082         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
22083         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
22084         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
22085         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
22086         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
22087         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
22088         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
22089         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
22090         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
22091         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
22092         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
22093         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
22094         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
22095         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
22096         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
22097         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
22098         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
22099         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
22100         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
22101         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
22102         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
22103         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
22104         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
22105         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
22106         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
22107         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
22108         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
22109         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
22110         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
22111         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
22112         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
22113         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
22114         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
22115         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
22116         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
22117         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
22118         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
22119         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
22120         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
22121         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
22122         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
22123         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
22124         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
22125         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
22126         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
22127         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
22128         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
22129         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
22130         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
22131         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
22132         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
22133         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
22134         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
22135         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
22136         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
22137         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
22138         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
22139         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
22140         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
22141         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
22142         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
22143         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
22144         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
22145         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
22146         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
22147         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
22148         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
22149         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
22150         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
22151         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
22152         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
22153         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
22154         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
22155         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
22156         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
22157         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
22158         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
22159         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
22160         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
22161         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
22162         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
22163         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
22164         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
22165         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
22166         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
22167         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
22168         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
22169         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
22170         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
22171         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
22172         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
22173         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
22174         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
22175         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
22176         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
22177         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
22178         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
22179         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
22180         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
22181         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
22182         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
22183         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
22184         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
22185         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
22186         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
22187         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
22188         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
22189         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
22190         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
22191         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
22192         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
22193         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
22194         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
22195         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
22196         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
22197         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
22198         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
22199         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
22200         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
22201         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
22202         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
22203         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
22204         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
22205         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
22206         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
22207         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
22208         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
22209         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
22210         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
22211         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
22212         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
22213         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
22214         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
22215         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
22216         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
22217
22218         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
22219         _XOPEN_SOURCE_EXTENDED for XPG4.
22220
22221         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
22222
22223         * Makeconfig (localtime): Remove variable.
22224         (inst_localtime-file): Likewise.
22225
22226 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22227
22228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
22229         Update.
22230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22231         Update.
22232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
22233         Update.
22234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
22235         Update.
22236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
22237         Update.
22238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
22239         Update.
22240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
22241         Update.
22242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
22243         Update.
22244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22245         Update.
22246
22247 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
22248
22249         [BZ #2550]
22250         [BZ #2570]
22251         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
22252         comparisons to determine direction to adjust input.
22253         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
22254         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
22255         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
22256         Likewise.
22257         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
22258         Likewise.
22259         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
22260         Likewise.
22261         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
22262         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
22263         Likewise.
22264         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
22265         Likewise.
22266         * math/libm-test.inc (nexttoward_test): Add more tests.
22267
22268 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22269
22270         [BZ #14040]
22271         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
22272         in version GLIBC_2.1, not GLIBC_2.0.
22273         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
22274         Likewise.
22275
22276 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
22277
22278         [BZ #13942]
22279         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
22280         (1 - x) * (1 + x).
22281         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22282         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
22283         * math/libm-test.inc (acos_test): Add more tests.
22284         (asin_test): Likewise.
22285         * sysdeps/i386/fpu/libm-test-ulps: Update.
22286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22287
22288         [BZ #14034]
22289         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
22290         of square root.
22291         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
22292         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22293         * math/libm-test.inc (acos_test_tonearest): New function.
22294         (acos_test_towardzero): Likewise.
22295         (acos_test_downward): Likewise.
22296         (acos_test_upward): Likewise.
22297         (asin_test_tonearest): Likewise.
22298         (asin_test_towardzero): Likewise.
22299         (asin_test_downward): Likewise.
22300         (asin_test_upward): Likewise.
22301         (main): Call the new functions.
22302         * sysdeps/i386/fpu/libm-test-ulps: Update.
22303         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22304
22305         [BZ #13884]
22306         [BZ #13924]
22307         * math/e_exp10.c: Include <float.h>.
22308         (__ieee754_exp10): Handle underflow here rather than multiplying
22309         large negative argument by M_LN10.
22310         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
22311         of __ieee754_expf.
22312         * math/e_exp10l.c: Include <float.h>.
22313         (__ieee754_exp10l): Handle underflow here rather than multiplying
22314         large negative argument by M_LN10l.
22315         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
22316         spurious overflow exception on underflow.
22317
22318 2012-04-29  Marek Polacek  <polacek@redhat.com>
22319
22320         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
22321         (__fortify_function): New macro.
22322         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
22323         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
22324         __extern_always_inline.
22325         * libio/bits/stdio2.h: Likewise.
22326         * libio/bits/stdio.h: Likewise.
22327         * string/string.h: Likewise.
22328         * string/bits/string3.h: Likewise.
22329         * include/stdio.h: Likewise.
22330         * stdlib/bits/stdlib.h: Likewise.
22331         * stdlib/stdlib.h: Likewise.
22332         * rt/bits/mqueue2.h: Likewise.
22333         * rt/mqueue.h: Likewise.
22334         * posix/bits/unistd.h: Likewise.
22335         * posix/unistd.h: Likewise.
22336         * io/bits/poll2.h: Likewise.
22337         * io/bits/fcntl2.h: Likewise.
22338         * io/fcntl.h: Likewise.
22339         * io/sys/poll.h: Likewise.
22340         * misc/bits/syslog.h: Likewise.
22341         * misc/bits/syslog-ldbl.h: Likewise.
22342         * misc/sys/syslog.h: Likewise.
22343         * socket/bits/socket2.h: Likewise.
22344         * socket/sys/socket.h: Likewise.
22345         * debug/tst-chk1.c: Likewise.
22346         * wcsmbs/bits/wchar2.h: Likewise.
22347         * wcsmbs/bits/wchar-ldbl.h: Likewise.
22348         * wcsmbs/wchar.h: Likewise.
22349
22350 2012-04-29  Andreas Jaeger  <aj@suse.de>
22351
22352         * Makerules (tests): Remove enable-check-abi protection.
22353         (check-abi-warn): Remove.
22354         (check-abi-%): Remove check-abi-warn usage.
22355
22356         * configure.in: Remove check-abi configure option.
22357         * configure: Regenerated.
22358         * config.make.in (enable-check-abi): Remove.
22359
22360 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
22361
22362         [BZ #14033]
22363         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
22364         double functions to double *_finite functions.
22365
22366         [BZ #13941]
22367         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
22368         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
22369         LDBL_MIN_EXP.
22370         * stdio-common/Makefile (tests): Add tst-sprintf3.
22371         * stdio-common/tst-sprintf3.c: New file.
22372
22373         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
22374         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
22375
22376 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22377
22378         * conform/conformtest.pl: Remove duplicate typed-constant
22379         handling.
22380
22381 2012-04-28  David S. Miller  <davem@davemloft.net>
22382
22383         * Makerules (%.abilist): Add vpath on sysdep_dirs.
22384         (check-abi-%): Remove AWK script prerequisite and explicit
22385         abilist directory.
22386         (check-abi): Rewrite to just diff the symlist with the abilist.
22387         (config-tls, config-abi-config): Delete, no longer used.
22388         (update-abi-%): Remove AWK script and explicit abilist directory.
22389         (update-abi): Rewrite to simply compare and conditionally copy the
22390         symlist and the sysdep abilist file.  Remove update-abi-config
22391         checks.
22392         * abilist/ld.abilist: Remove.
22393         * abilist/libBrokenLocale.abilist: Remove.
22394         * abilist/libanl.abilist: Remove.
22395         * abilist/libcrypt.abilist: Remove.
22396         * abilist/libdl.abilist: Remove.
22397         * abilist/librt.abilist: Remove.
22398         * abilist/libthread_db.abilist: Remove.
22399         * abilist/libutil.abilist: Remove.
22400         * scripts/extract-abilist.awk: Remove.
22401         * scripts/merge-abilist.awk: Remove.
22402         * sysdeps/generic/libcidn.abilist: New file.
22403         * sysdeps/generic/libnss_compat.abilist: New file.
22404         * sysdeps/generic/libnss_db.abilist: New file.
22405         * sysdeps/generic/libnss_dns.abilist: New file.
22406         * sysdeps/generic/libnss_files.abilist: New file.
22407         * sysdeps/generic/libnss_hesiod.abilist: New file.
22408         * sysdeps/generic/libnss_nis.abilist: New file.
22409         * sysdeps/generic/libnss_nisplus.abilist: New file.
22410         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
22411         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
22412         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
22413         file.
22414         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
22415         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
22416         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
22417         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
22418         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
22419         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
22420         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
22421         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
22422         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
22423         file.
22424         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
22425         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
22426         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
22427         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
22428         file.
22429         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
22430         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
22431         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
22432         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
22433         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
22434         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
22435         file.
22436         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
22437         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
22438         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
22439         file.
22440         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
22441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
22442         New file.
22443         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
22444         New file.
22445         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
22446         New file.
22447         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
22448         New file.
22449         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
22450         New file.
22451         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
22452         New file.
22453         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
22454         New file.
22455         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
22456         New file.
22457         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
22458         New file.
22459         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
22460         New file.
22461         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
22462         New file.
22463         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
22464         New file.
22465         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
22466         New file.
22467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
22468         file.
22469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
22470         New file.
22471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
22472         New file.
22473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
22474         file.
22475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
22476         New file.
22477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
22478         New file.
22479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
22480         file.
22481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
22482         New file.
22483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22484         New file.
22485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
22486         New file.
22487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
22488         New file.
22489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
22490         New file.
22491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
22492         New file.
22493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
22494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
22495         file.
22496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
22497         New file.
22498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
22499         file.
22500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
22501         file.
22502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
22503         file.
22504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
22505         file.
22506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
22507         file.
22508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22509         New file.
22510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
22511         file.
22512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
22513         file.
22514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
22515         New file.
22516         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
22517         file.
22518         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
22519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
22520         file.
22521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
22522         New file.
22523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
22524         file.
22525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
22526         file.
22527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
22528         file.
22529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
22530         file.
22531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
22532         file.
22533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22534         New file.
22535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
22536         file.
22537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
22538         file.
22539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
22540         New file.
22541         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
22542         file.
22543         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22544         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
22545         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
22546         file.
22547         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
22548         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
22549         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
22550         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
22551         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
22552         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
22553         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
22554         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
22555         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
22556         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
22557         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
22558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
22559         file.
22560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
22561         New file.
22562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
22563         file.
22564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
22565         file.
22566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
22567         file.
22568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
22569         file.
22570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
22571         file.
22572         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22573         New file.
22574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
22575         New file.
22576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
22577         file.
22578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
22579         New file.
22580         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
22581         file.
22582         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
22583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
22584         file.
22585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
22586         New file.
22587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
22588         file.
22589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
22590         file.
22591         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
22592         file.
22593         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
22594         file.
22595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
22596         file.
22597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22598         New file.
22599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
22600         New file.
22601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
22602         file.
22603         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
22604         New file.
22605         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
22606         file.
22607
22608 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22609
22610         * conform/conformtest.pl: Fix typo in handling typed-constant from
22611         allow-header.
22612
22613 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22614
22615         * README: Cut down references to pre-2.6 Linux kernels and
22616         Linuxthreads.  Update lists of configurations in libc and ports
22617         and sort alphabetically.  Say "or newer" with Linux kernel version
22618         requirements.
22619
22620         * config.h.in [IS_IN_build]: Allow compiling without optimization.
22621
22622 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22623
22624         [BZ #887]
22625         * math/libm-test.inc (logb_test_downward): New test to expose
22626         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
22627         rounding mode.
22628
22629 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22630
22631         [BZ #14027]
22632         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
22633         to be done.
22634         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
22635         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
22636
22637 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22638
22639         * sysdeps/unix/i386/brk.S: Remove file.
22640         * sysdeps/unix/i386/dl-brk.S: Likewise.
22641         * sysdeps/unix/i386/pipe.S: Likewise.
22642         * sysdeps/unix/i386/sigreturn.S: Likewise.
22643         * sysdeps/unix/i386/syscall.S: Likewise.
22644         * sysdeps/unix/i386/vfork.S: Likewise.
22645         * sysdeps/unix/i386/wait.S: Likewise.
22646
22647         * sysdeps/unix/common/tcsendbrk.c: Move to ...
22648         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
22649
22650         * configure.in (arm*-none*): Do not allow without
22651         --enable-hacker-mode.
22652         (netbsd*): Remove case setting base_os.
22653         (386bsd*): Likewise.
22654         (freebsd*): Likewise.
22655         (bsdi*): Likewise.
22656         (osf*): Likewise.
22657         (sunos*): Likewise.
22658         (ultrix*): Likewise.
22659         (newsos*): Likewise.
22660         (dynix*): Likewise.
22661         (*bsd*): Likewise.
22662         (sysv*): Likewise.
22663         (isc*): Likewise.
22664         (esix*): Likewise.
22665         (sco*): Likewise.
22666         (minix*): Likewise.
22667         (irix4*): Likewise.
22668         (irix6*): Likewise.
22669         (solaris[2-9]*): Likewise.
22670         (none): Likewise.
22671         * configure: Regenerated.
22672
22673 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22674
22675         [BZ #11521]
22676         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22677         overflow or cancellation in calculating denominator.
22678         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22679         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22680         down expression to avoid unexpected rounding in newer GCCs.
22681         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22682
22683 2012-04-26  David S. Miller  <davem@davemloft.net>
22684
22685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22686         long-double compat symbols.
22687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22700
22701 2012-04-25  David S. Miller  <davem@davemloft.net>
22702
22703         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22704         HWCAP_* values only after the memory barriers have been defined.
22705         (atomic_full_barrier): Define.
22706         (atomic_read_barrier): Define.
22707         (atomic_write_barrier): Define.
22708
22709 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22710
22711         * shlib-versions: Add libgcc_s version information.
22712         * sysdeps/generic/libgcc_s.h: Remove.
22713         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22714         libgcc_s.h.
22715         * sysdeps/gnu/unwind-resume.c: Likewise.
22716         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22717
22718 2012-04-25  David S. Miller  <davem@davemloft.net>
22719
22720         * sysdeps/unix/sparc/brk.S: Delete.
22721         * sysdeps/unix/sparc/dl-brk.S: Delete.
22722         * sysdeps/unix/sparc/pipe.S: Delete.
22723         * sysdeps/unix/sparc/sysdep.S: Delete.
22724         * sysdeps/unix/sparc/sysdep.h: Delete.
22725         * sysdeps/unix/sparc/vfork.S: Delete.
22726         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22727         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22728         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22729         ret_ERRVAL, r0, r1, MOVE): Define.
22730         (JUMPTARGET): Remove.
22731         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22732         sysdeps/unix/sparc/sysdep.h
22733         (ENTRY, END): Remove.
22734         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22735
22736 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22737
22738         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22739         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22740         -DIS_IN_build.
22741
22742         * timezone/README: Update upstream location and email address for
22743         tzcode and tzdata.
22744         * timezone/zdump.c: Update from tzcode 2012b.
22745         * timezone/zic.c: Likewise.
22746
22747         * configure.in (libc_cv_as_needed): Remove test.
22748         * configure: Regenerated.
22749         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22750         conditional definition.
22751         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22752         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22753         * config.make.in (have-as-needed): Remove variable.
22754
22755 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22756             Paul Pluzhnikov  <ppluzhnikov@google.com>
22757
22758         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22759         strings correctly.
22760
22761 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22762
22763         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22764         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22765         * sysdeps/sh/strlen.S: Likewise.
22766
22767 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22768
22769         * sysdeps/unix/fork.S: Remove file.
22770         * sysdeps/unix/i386/fork.S: Likewise.
22771         * sysdeps/unix/sparc/fork.S: Likewise.
22772
22773         * sysdeps/unix/system.c: Remove file.
22774         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22775
22776         * sysdeps/unix/getegid.S: Remove file.
22777         * sysdeps/unix/geteuid.S: Likewise.
22778
22779 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22780
22781         * scripts/check-localplt.awk: New file.
22782         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22783         of diff.
22784         * scripts/data/localplt-generic.data: Add a comment.
22785
22786         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22787         NODE when __dir_mkfile failed.
22788         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22789         Reported by Ludovic Courtès <ludo@gnu.org>.
22790
22791 2012-04-24  Andreas Jaeger  <aj@suse.de>
22792
22793         * Makerules (common-clean): Also remove gen-as-const-headers
22794         files.
22795
22796 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22797
22798         * Makerules (native-compile): Do not change working directory for
22799         build.  Use $(OUTPUT_OPTION) in command.
22800         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22801
22802 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22803
22804         [BZ #13886]
22805         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22806         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22807         * math/libm-test.inc (floor_test): Add more tests.
22808         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22809
22810 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22811
22812         * sysdeps/unix/getdents.c: Remove file.
22813         * sysdeps/unix/sysv/getdents.c: Likewise.
22814         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22815
22816         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22817         sysdeps/unix/mman/syscalls.list.
22818         (mmap): Likewise.
22819         (mprotect): Likewise.
22820         (msync): Likewise.
22821         (munmap): Likewise.
22822         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22823         * sysdeps/unix/mman/syscalls.list: Remove.
22824         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22825
22826         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22827         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22828         * configure: Regenerated.
22829         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22830         $(libgcc_s_suffix).
22831         * config.make.in (libgcc_s_suffix): Remove variable.
22832
22833 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22834
22835         * sysdeps/unix/sysv/gethostname.c: Move to ...
22836         * sysdeps/posix/gethostname.c: ... here.
22837
22838         * sysdeps/unix/execve.S: Remove file.
22839
22840         * sysdeps/unix/_exit.S: Remove file.
22841
22842 2012-04-23  Andreas Jaeger  <aj@suse.de>
22843
22844         [BZ #13739]
22845         * manual/Makefile: Remove make dist support, there's no
22846         need for a stand-alone documentation tar ball.
22847         (TEXI2DVI): Define always, it's not in Makeconfig.
22848         (dist): Removed.
22849         (tar-it): Removed.
22850         (edition): Removed.
22851         (glibc-doc-$(edition).tar): Removed
22852         (%.Z): Removed.
22853         (%.gz): Removed.
22854         (%.uu): Removed.
22855         (ETAGS): Remove, it's in Makeconfig.
22856         (move-if-change): Remove, it's in Makeconfig.
22857
22858 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22859
22860         [BZ #13970]
22861         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22862         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22863         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22864         (strtod_l, strtof_l, strtold_l): Remove __wur.
22865         It is not necessarily an error to ignore strtol's return value.
22866         One can reliably look at the stored endptr to decide whether
22867         the number had valid syntax.
22868
22869 2012-04-21  Andreas Jaeger  <aj@suse.de>
22870
22871         [BZ #13739]
22872         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22873
22874 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22875
22876         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22877         * sysdeps/unix/sysv/Versions: Remove file.
22878
22879 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22880
22881         [BZ #13927]
22882         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22883
22884 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22885
22886         [BZ #7064]
22887         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22888         version from __vm86.
22889
22890 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22891
22892         * sysdeps/unix/common/lxstat.c: Remove file.
22893         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22894
22895         * sysdeps/unix/sysv/Makefile: Remove file.
22896
22897         * sysdeps/unix/sysv/direct.h: Remove file.
22898
22899         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22900         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22901         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22902         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22903         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22904         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22905         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22906
22907         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22908
22909         * sysdeps/unix/xmknod.c: Remove file.
22910         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22911
22912         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22913
22914         * sysdeps/unix/sysv/i386/time.S: Remove file.
22915
22916         * sysdeps/unix/fxstat.c: Remove file.
22917         * sysdeps/unix/xstat.c: Likewise.
22918         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
22919
22920         * sysdeps/unix/sysv/sigaction.c: Remove file.
22921
22922         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
22923         (sysdep_headers): Remove variable.
22924         [termio.h not in sysdep_headers] (generated): Likewise.
22925         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
22926         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
22927         * sysdeps/unix/sysv/tcdrain.c: Likewise.
22928         * sysdeps/unix/sysv/tcflow.c: Likewise.
22929         * sysdeps/unix/sysv/tcflush.c: Likewise.
22930         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
22931         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
22932         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
22933         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
22934         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
22935
22936         * sysdeps/unix/siglist.c: Remove file.
22937
22938         * sysdeps/unix/getppid.S: Remove file.
22939
22940         * sysdeps/unix/mkdir.c: Remove file.
22941         * sysdeps/unix/rmdir.c: Likewise.
22942
22943 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
22944
22945         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
22946         ERR_MAX value.
22947         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
22948         errlist-compat value.
22949
22950 2012-04-18  David S. Miller  <davem@davemloft.net>
22951
22952         * sysdeps/generic/memcopy.h (reg_char): Delete.
22953         * debug/strcat_chk.c: Use char, not reg_char.
22954         * debug/strcpy_chk.c: Likewise.
22955         * debug/strncat_chk.c: Likewise.
22956         * debug/strncpy_chk.c: Likewise.
22957         * string/memchr.c: Likewise.
22958         * string/memrchr.c: Likewise.
22959         * string/rawmemchr.c: Likewise.
22960         * string/strcat.c: Likewise.
22961         * string/strchr.c: Likewise.
22962         * string/strchrnul.c: Likewise.
22963         * string/strcmp.c: Likewise.
22964         * string/strcpy.c: Likewise.
22965         * string/strncat.c: Likewise.
22966         * string/strncmp.c: Likewise.
22967         * string/strncpy.c: Likewise.
22968
22969 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22970
22971         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
22972         __builtin_memcopy is called when src and dest ranges are known to not
22973         overlap.
22974
22975 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22976
22977         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
22978         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
22979         fwd_align_merge macro call.
22980         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
22981         bwd_align_merge macro call.
22982         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22983
22984 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22985
22986         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
22987         bwd_align_merge macros.
22988         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
22989         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
22990         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22991
22992 2012-04-18  David S. Miller  <davem@davemloft.net>
22993
22994         * sysdeps/sparc/sparc64/memcopy.h: Delete.
22995
22996 2012-04-18  Andreas Jaeger  <aj@suse.de>
22997
22998         [BZ# 6794]
22999         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
23000         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
23001         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23002
23003         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
23004         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
23005         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23006
23007         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
23008         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
23009         Adjust for changed ldbl-128 files.
23010
23011         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
23012         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
23013         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23014
23015 2012-04-17  David S. Miller  <davem@davemloft.net>
23016
23017         * sysdeps/sparc/sparc32/memcopy.h: Delete.
23018
23019 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
23020
23021         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
23022         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
23023         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
23024         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
23025         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
23026         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
23027
23028 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23029
23030         [BZ #6794]
23031         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
23032         * math/libm-test.inc: Add ilogb errno and exception tests.
23033         * math/w_ilogb.c: New file: ilogb wrapper.
23034         * math/w_ilogbf.c: New file: ilogbf wrapper.
23035         * math/w_ilogbl.c: New file: ilogbl wrapper.
23036         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
23037         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
23038         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
23039         exception being thrown with 0.0 as argument.
23040         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
23041         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
23042         exception being thrown with 0.0 as argument.
23043         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
23044         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23045         exception being thrown with 0.0 as argument.
23046         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
23047         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23048         exception being thrown with 0.0 as argument.
23049         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
23050         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
23051         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
23052         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
23053         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
23054         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
23055         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
23056         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
23057         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
23058
23059 2012-04-17  Petr Baudis  <pasky@ucw.cz>
23060
23061         * include/sys/uio.h: Change __vector to __iovec to avoid clash
23062         with altivec.
23063
23064 2012-04-16  Marek Polacek  <polacek@redhat.com>
23065
23066         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
23067
23068 2012-04-16  Marek Polacek  <polacek@redhat.com>
23069
23070         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
23071         operands of fdivp instruction.
23072
23073 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23074
23075         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
23076         * elf/tst-auditmod3b.c: Likewise.
23077         * elf/tst-auditmod4b.c: Likewise.
23078         * elf/tst-auditmod5b.c: Likewise.
23079         * elf/tst-auditmod6b.c: Likewise.
23080         * elf/tst-auditmod6c.c: Likewise.
23081         * elf/tst-auditmod7b.c: Likewise.
23082         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
23083         * sysdeps/x86_64/preconfigure.in: Likewise.
23084         * sysdeps/x86_64/preconfigure: Regenerated.
23085
23086 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23087
23088         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
23089         __ILP32__.
23090
23091 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
23092
23093         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23094         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
23095
23096 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
23097
23098         [BZ #13973]
23099         * locale/iso-639.def: Fix gl language name. Spotted by
23100         Yaron Shahrabani.
23101
23102 2012-04-12  Roland McGrath  <roland@hack.frob.com>
23103
23104         [BZ #2074]
23105         * libio/libio.h (__io_write_fn): Update comment.
23106
23107 2012-04-12  Petr Baudis  <pasky@ucw.cz>
23108
23109         [BZ #2074]
23110         * stdio.texi (Hook Functions): The user provided writer function
23111         is not allowed to return -1.
23112
23113 2012-04-11  David S. Miller  <davem@davemloft.net>
23114
23115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23116
23117 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
23118
23119         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
23120         Add a leading slash to rtkaio.
23121
23122 2012-04-11  Jim Meyering  <meyering@redhat.com>
23123
23124         [BZ #11959]
23125         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
23126         It is not necessarily an error to ignore fwrite's return
23127         value.  One can reliably use ferror to test for errors after
23128         the fact.
23129
23130 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23131
23132         * bits/types.h (__snseconds_t): New type.
23133         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
23134
23135         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
23136         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23137         (__SNSECONDS_T_TYPE): Likewise.
23138         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23139         (__SNSECONDS_T_TYPE): Likewise.
23140         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23141         (__SNSECONDS_T_TYPE): Likewise.
23142
23143 2012-04-10  Andreas Jaeger  <aj@suse.de>
23144
23145         [BZ #2636]
23146         * manual/time.texi (Processor Time): Return type of times is
23147         elapsed real time since an arbitrary point in the past.
23148         (CPU Time): Move CLK_TCK from here...
23149         (Processor Time): ...to here.  Correct description.
23150         * manual/conf.texi (Constants for Sysconf): Correct description of
23151         _SC_CLK_TCK.
23152
23153 2012-04-10  David S. Miller  <davem@davemloft.net>
23154
23155         [BZ #13967]
23156         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
23157         where the is a gap between DT_REL(A) and DT_JMPREL.
23158
23159 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23160
23161         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
23162         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23163         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23164
23165 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23166
23167         * elf/dl-support.c (_dl_inhibit_cache): New variable.
23168         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
23169         (dl_main): Handle --inhibit-cache.
23170         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
23171         _dl_inhibit_cache.
23172         * elf/dl-load.c (_dl_map_object): Use it.
23173         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
23174
23175 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23176
23177         [BZ #13872]
23178         * sysdeps/i386/fpu/e_powl.S (p78): New object.
23179         (__ieee754_powl): Saturate large exponents rather than testing for
23180         overflow of y*log2(x).
23181         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23182         * math/libm-test.inc (pow_test): Do not permit spurious overflow
23183         exceptions.
23184
23185         [BZ #11521]
23186         * math/s_ctan.c: Include <float.h>.
23187         (__ctan): Avoid internal overflow or cancellation in calculating
23188         denominator.
23189         * math/s_ctanf.c: Likewise.
23190         * math/s_ctanl.c: Likewise.
23191         * math/s_ctanh.c: Likewise.
23192         * math/s_ctanhf.c: Likewise.
23193         * math/s_ctanhl.c: Likewise.
23194         * math/libm-test.inc (ctan_test): Add more tests.
23195         (ctanh_test): Likewise.
23196         * sysdeps/i386/fpu/libm-test-ulps: Update.
23197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23198
23199 2012-04-09  Andreas Jaeger  <aj@suse.de>
23200
23201         [BZ #6894]
23202         * manual/filesys.texi (Directory Entries): Mention that d_namlen
23203         is an optional BSD extension.
23204
23205         [BZ #10254]
23206         * manual/stdio.texi (Opening Streams): Document additional fopen
23207         parameters.
23208
23209 2012-04-09  Roland McGrath  <roland@hack.frob.com>
23210
23211         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
23212         %eax without telling the compiler.
23213
23214 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
23215
23216         [BZ # 13963]
23217         * manual/install.texi: Use sourceware.org.
23218
23219 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23220
23221         [BZ #13873]
23222         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
23223         (__ieee754_pow): Generate overflow and underflow using huge*huge
23224         and tiny*tiny rather than just returning constant infinity or zero
23225         for large exponents.
23226         * math/libm-test.inc (pow_test): Require overflow exceptions for
23227         applicable cases of large exponents.
23228
23229         [BZ #706]
23230         * sysdeps/i386/fpu/e_pow.S (p10): New object.
23231         (__ieee754_pow): Use iterative multiplication algorithm only for
23232         integer exponents with absolute value below 1024.  Check for odd
23233         integer exponents when using algorithm for real exponents.
23234         * math/libm-test.inc (pow_test): Add more tests.
23235         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23236
23237 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
23238
23239         [BZ #13705]
23240         * math/libm-test.inc (exp_test): Do not allow overflow exception
23241         on underflow test.
23242
23243 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
23244
23245         [BZ #13705]
23246         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
23247         instead of __kernel_standard_f.
23248
23249 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
23250
23251         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
23252         * sysdeps/x86_64/memset_chk.S: Likewise.
23253
23254 2012-04-08  Andreas Jaeger  <aj@suse.de>
23255
23256         [BZ #10153]
23257         * manual/startup.texi (Environment Access): Describe return value
23258         for putenv and setenv.
23259
23260         [BZ #6895]
23261         * manual/filesys.texi (Directory Entries): Add description for
23262         DT_LNK.
23263
23264         [BZ #6890]
23265         * manual/filesys.texi (Directory Entries): Clarify that it's file
23266         system not operating system in the description of DT_UNKNOWN.
23267
23268         [BZ #6578]
23269         * manual/syslog.texi (closelog): Fix reference, it's openlog.
23270
23271 2012-04-08  Stephen Compall  <s11@member.fsf.org>
23272
23273         [BZ #6649]
23274         * manual/llio.texi (Opening and Closing Files): Add cross
23275         reference to explain mode argument.
23276
23277 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
23278
23279         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
23280         * sysdeps/x86_64/memset_chk.S: Likewise.
23281
23282 2012-04-07  David S. Miller  <davem@davemloft.net>
23283
23284         * elf/elf.h (R_SPARC_WDISP10): Define.
23285         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
23286         R_SPARC_SIZE32.
23287         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
23288         R_SPARC_SIZE64 and R_SPARC_H34.
23289
23290 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
23291
23292         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
23293         conditions and remove no longer applicable assertion.
23294
23295 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23296
23297         * bits/byteswap.h: Include <features.h>.
23298         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23299         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23300
23301 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23302
23303         * bits/byteswap.h (__bswap_16): Removed.
23304         Include <bits/byteswap-16.h> to get __bswap_16.
23305         * sysdeps/i386/bits/byteswap.h: Likewise.
23306         * sysdeps/s390/bits/byteswap.h: Likewise.
23307         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23308         * bits/byteswap-16.h: New file.
23309         * sysdeps/i386/bits/byteswap-16.h: Likewise.
23310         * sysdeps/s390/bits/byteswap-16.h: Likewise.
23311         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
23312         * string/Makefile (headers): Add bits/byteswap-16.h.
23313
23314 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23315
23316         [BZ #13895]
23317         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
23318         extra indirection.
23319         * nss/Makefile (tests-static, tests): Add tst-nss-static.
23320         * nss/tst-nss-static.c: New.
23321
23322 2012-04-06  Robert Millan  <rmh@gnu.org>
23323
23324         [BZ #6486]
23325         * manual/llio.texi (File Position Primitive): lseek
23326         refers to WHENCE when it really means OFFSET.
23327
23328 2012-04-06  Andreas Jaeger  <aj@suse.de>
23329
23330         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
23331         strncmp declarations.
23332
23333         * abilist/libc.abilist: Add __poll and __ppoll.
23334
23335 2012-04-05  David S. Miller  <davem@davemloft.net>
23336
23337         * scripts/check-local-headers.sh: Accept a host triplet in the
23338         path matched by the exclude regexp.
23339
23340         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
23341         definition.
23342         * sysdeps/powerpc/powerpc32/dl-machine.h
23343         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
23344         * sysdeps/s390/s390-32/dl-machine.h
23345         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23346         * sysdeps/sparc/sparc32/dl-machine.h
23347         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23348         * sysdeps/sparc/sparc64/dl-machine.h
23349         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23350
23351         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
23352         lazy binding.
23353         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
23354         undefined symbol errors.
23355
23356         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
23357         DT_NEEDED entries.
23358
23359 2012-04-05  Michael Matz  <matz@suse.de>
23360
23361         [BZ #13592]
23362         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
23363
23364 2012-04-05  Andreas Jaeger  <aj@suse.de>
23365
23366         [BZ #13908]
23367         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
23368         comment.
23369
23370 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23371
23372         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
23373         which ROUND is no valid rounding mode.
23374
23375 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23376
23377         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
23378         read again.
23379         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
23380
23381 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23382
23383         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
23384         an exception using FPU order intentionally.
23385
23386 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23387
23388         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
23389         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
23390         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
23391         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
23392
23393 2012-04-05  Simon Josefsson  <simon@josefsson.org>
23394
23395         [BZ #12340]
23396         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
23397         EINVAL when BUFLEN is too smal.
23398
23399 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
23400
23401         [BZ #13553]
23402         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
23403         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
23404
23405 2012-04-03  Andreas Jaeger  <aj@suse.de>
23406
23407         [BZ #13938]
23408         * manual/setjmp.texi (System V contexts): Fix sentence.
23409
23410         [BZ #13926]
23411         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
23412         New macro for this case.
23413         [!__GNUC__] (__bswap_64): New inline function for this case.
23414         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23415         * bits/byteswap.h: Likewise.
23416         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
23417         ull, guard with __GLIBC_HAVE_LONG_LONG.
23418
23419         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
23420         __GLIBC_HAVE_LONG_LONG.
23421
23422         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
23423         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
23424
23425 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23426
23427         [BZ #13691]
23428         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
23429         inptr and inend, rather than using last_ch.
23430
23431 2012-04-02  David S. Miller  <davem@davemloft.net>
23432
23433         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
23434         * stdio-common/printf-parse.h (read_int): Change return type to
23435         'int', return -1 on INT_MAX overflow.
23436         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
23437         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
23438         overflows INT_MAX.  Check for overflow of in-format-string precision
23439         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
23440         SIZE_MAX not INT_MAX for integer overflow test.
23441         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
23442         skip the construct in the format string but do not record anything.
23443         * stdio-common/bug22.c: Adjust to test both width/prevision
23444         INT_MAX overflow as well as total length INT_MAX overflow.  Check
23445         explicitly for proper errno values.
23446
23447 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
23448
23449         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
23450         CHAR_MAX.
23451         * string/test-strcmp.c [! WIDE]: Likewise.
23452         * time/tst-mktime2.c: Likewise for INT_MAX.
23453         * string/test-string.h: #include <sys/param.h> for MIN.
23454
23455         * csu/init-first.c (__libc_init_first): Call __ctype_init.
23456         * sysdeps/i386/init-first.c (init): Likewise.
23457         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
23458         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
23459         * sysdeps/sh/init-first.c (init): Likewise.
23460
23461 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
23462
23463         * po/ru.po: Update from translation team.
23464         * po/vi.po: Likewise.
23465
23466 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23467
23468         * resolv/nss_dns/dns-host.c: Merge copyright years.
23469
23470 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23471
23472         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23473         Optimize memcpy with prefetch if
23474         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
23475         src, dst pointers have unequal 16 byte alignments.
23476
23477 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23478
23479         [BZ #13928]
23480         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
23481         from a CNAME entry and return the minimum ttl for the query.
23482         (gaih_getanswer_slice): Likewise.
23483
23484 2012-03-30  Jeff Law  <law@redhat.com>
23485
23486         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
23487         due to long keys.
23488         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
23489         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
23490
23491         * resolv/nss_dns/dns-host.c: Update copyright year.
23492
23493 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
23494
23495         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
23496         requests to save a system call.  Fix check that all bytes are sent.
23497
23498         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
23499         comments for sendmmsg.
23500
23501 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23502
23503         [BZ #13691]
23504         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
23505         with only 1 character between 0x0041 and 0x01b0.
23506         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
23507         * wcsmbs/tst-mbsnrtowcs.c: New file.
23508
23509 2012-03-29  David S. Miller  <davem@davemloft.net>
23510
23511         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
23512         small copies by hand.
23513
23514 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23515
23516         [BZ #13761]
23517         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
23518         _nss_compat_initgroups_dyn): Fall back to malloc/free
23519         for large group memberships.
23520
23521 2012-03-28  David S. Miller  <davem@davemloft.net>
23522
23523         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
23524         that branches into memcpy.
23525         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23526         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23527         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23528         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23529         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
23530         bits.
23531         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
23532         implementation too.
23533         * sysdeps/sparc/mempcpy.S: New file.
23534
23535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
23536         the IFUNC routine in the libc case.
23537         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23538
23539         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
23540         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
23541         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
23542         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
23543         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
23544         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
23545         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
23546         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
23547
23548         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
23549         loop to 256 bytes instead of 64 bytes and fix test signedness.
23550
23551         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
23552         * sysdeps/sparc/sparc32/Makefile: rather than here...
23553         * sysdeps/sparc/sparc64/Makefile: and here.
23554
23555 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
23556
23557         * malloc/mallocbug.c: Avoid warnings about unused variables.
23558
23559 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
23560
23561         [BZ #13760]
23562         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
23563         in the right place. Discard and retry query if response is
23564         larger than input buffer size.
23565
23566 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
23567
23568         [BZ #369]
23569         [BZ #2678]
23570         [BZ #3866]
23571         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
23572         x for large integer exponent.
23573         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
23574         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
23575         sign of result as needed afterwards.
23576         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
23577         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
23578         result for underflowing pow the same as for overflow.
23579         (__kernel_standard_l): Handle powl overflow and underflow here
23580         rather than calling __kernel_standard.
23581         * math/libm-test.inc (pow_test): Add more tests.
23582
23583         [BZ #3868]
23584         [BZ #13879]
23585         [BZ #13910]
23586         [BZ #13911]
23587         [BZ #13912]
23588         [BZ #13913]
23589         [BZ #13915]
23590         [BZ #13916]
23591         [BZ #13917]
23592         [BZ #13918]
23593         [BZ #13919]
23594         [BZ #13920]
23595         [BZ #13921]
23596         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
23597         * sysdeps/ieee754/k_standard.c: Include <float.h>.
23598         (__kernel_standard_l): New function.
23599         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
23600         __kernel_standard.
23601         * math/w_acosl.c (__acosl): Likewise.
23602         * math/w_asinl.c (__asinl): Likewise.
23603         * math/w_atan2l.c (__atan2l): Likewise.
23604         * math/w_atanhl.c (__atanhl): Likewise.
23605         * math/w_coshl.c (__coshl): Likewise.
23606         * math/w_exp10l.c (__exp10l): Likewise.
23607         * math/w_exp2l.c (__exp2l): Likewise.
23608         * math/w_fmodl.c (__fmodl): Likewise.
23609         * math/w_hypotl.c (__hypotl): Likewise.
23610         * math/w_j0l.c (__j0l, __y0l): Likewise.
23611         * math/w_j1l.c (__j1l, __y1l): Likewise.
23612         * math/w_jnl.c (__jnl, __ynl): Likewise.
23613         * math/w_lgammal.c (__lgammal): Likewise.
23614         * math/w_log10l.c (__log10l): Likewise.
23615         * math/w_log2l.c (__log2l): Likewise.
23616         * math/w_logl.c (__logl): Likewise.
23617         * math/w_powl.c (__powl): Likewise.
23618         * math/w_remainderl.c (__remainderl): Likewise.
23619         * math/w_scalbl.c (sysv_scalbl): Likewise.
23620         * math/w_sinhl.c (__sinhl): Likewise.
23621         * math/w_sqrtl.c (__sqrtl): Likewise.
23622         * math/w_tgammal.c (__tgammal): Likewise.
23623         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
23624         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
23625         * math/libm-test.inc (acos_test): Add more tests.
23626         (acosh_test): Likewise.
23627         (asin_test): Likewise.
23628         (atanh_test): Likewise.
23629         (exp_test): Likewise.
23630         (exp10_test): Likewise.
23631         (exp2_test): Likewise.
23632         (expm1_test): Likewise.
23633         (lgamma_test): Likewise.
23634         (log_test): Likewise.
23635         (log10_test): Likewise.
23636         (log1p_test): Likewise.
23637         (log2_test): Likewise.
23638         (pow_test): Do not allow some spurious overflow exceptions.
23639         (sqrt_test): Add more tests.
23640         (tgamma_test): Likewise.
23641         (y0_test): Likewise.
23642         (y1_test): Likewise.
23643         (yn_test): Likewise.
23644
23645 2012-03-27  Anton Blanchard  <anton@samba.org>
23646
23647         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
23648         MAP_HUGETLB.
23649         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23650         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23651         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23652
23653 2012-03-27  David S. Miller  <davem@davemloft.net>
23654
23655         * conform/Makefile: Run run-conformtest.sh using $(BASH).
23656
23657         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
23658         have-as-vis3 check.
23659
23660 2012-03-27  Andreas Jaeger  <aj@suse.de>
23661
23662         * sysdeps/x86_64/elf/configure.in: Moved to ...
23663         * sysdeps/x86_64/configure.in: ... here.
23664         * sysdeps/x86_64/elf/start.S: Moved to ...
23665         * sysdeps/x86_64/start.S: ... here.
23666         * sysdeps/x86_64/elf/configure: Delete.
23667
23668         * sysdeps/x86_64/configure.in: Merge contents from
23669         sysdeps/i386/configure.in (without i686 check).
23670
23671         * sysdeps/i386/elf/Versions: Merge into ...
23672         * sysdeps/i386/Versions: ... this.
23673         * sysdeps/i386/elf/Versions: Delete file.
23674         * sysdeps/i386/elf/start.S: Moved to ...
23675         * sysdeps/i386/start.S: ...here.
23676         * sysdeps/i386/elf/configure.in: Merge into...
23677         * sysdeps/i386/configure.in: ...here.
23678         * sysdeps/i386/elf/configure.in: Delete file.
23679         * sysdeps/i386/elf/configure: Delete file.
23680
23681         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23682         * debug/backtracesyms.c: ... here.
23683         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23684         * debug/backtracesymsfd.c: ... here.
23685         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23686         * sysdeps/generic/ifunc-sel.h: ... here.
23687
23688         * sysdeps/unix/i386/start.c: Delete file.
23689         * sysdeps/unix/sparc/start.c: Delete file.
23690         * sysdeps/unix/start.c: Delete file.
23691
23692         * sysdeps/sh/elf/configure.in: Moved to ...
23693         * sysdeps/sh/configure.in: ... here.
23694         * sysdeps/sh/elf/start.S: Moved to ...
23695         * sysdeps/sh/start.S: ... here.
23696         * sysdeps/sh/elf/configure: Delete file.
23697
23698         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23699         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23700         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23701         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23702         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23703         * sysdeps/powerpc/powerpc64/start.S: here.
23704         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23705         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23706         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23707         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23708         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23709
23710         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23711         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23712         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23713         * sysdeps/powerpc/powerpc32/start.S: ... here.
23714         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23715         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23716         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23717
23718         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23719         * sysdeps/powerpc/ifunc-sel.h: ... here.
23720         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23721         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23722
23723         * sysdeps/sparc/elf/configure.in: Moved to ...
23724         * sysdeps/sparc/configure.in: ... here.
23725         * sysdeps/sparc/elf/configure: Delete file.
23726         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23727         * sysdeps/sparc/sparc32/start.S: ... here.
23728         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23729         * sysdeps/sparc/sparc64/start.S: ... here.
23730         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23731         * sysdeps/sparc/sparc32/Makefile: ... this.
23732         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23733         * sysdeps/sparc/sparc64/Makefile: ... this.
23734
23735         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23736         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23737         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23738         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23739         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23740         * sysdeps/s390/s390-32/setjmp.S: ... here.
23741         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23742         * sysdeps/s390/s390-32/configure.in: ... here.
23743         * sysdeps/s390/s390-32/elf/configure: Delete file.
23744         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23745         * sysdeps/s390/s390-32/start.S: ... here.
23746
23747         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23748         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23749         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23750         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23751         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23752         * sysdeps/s390/s390-64/setjmp.S: ... here.
23753         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23754         * sysdeps/s390/s390-64/configure.in: ... here
23755         * sysdeps/s390/s390-64/elf/configure: Delete file.
23756         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23757         * sysdeps/s390/s390-64/start.S: ... here.
23758         * sysdeps/s390/s390-64/elf/configure: Delete.
23759
23760         * configure.in: Remove support for elf directories in sysdeps.
23761
23762         * configure: Regenerated.
23763         * sysdeps/i386/configure: Regenerated.
23764         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23765         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23766         * sysdeps/s390/s390-32/configure: Regenerated.
23767         * sysdeps/s390/s390-64/configure: Regenerated.
23768         * sysdeps/sh/configure: Regenerated.
23769         * sysdeps/sparc/configure: Regenerated.
23770         * sysdeps/x86_64/configure: Regenerated.
23771
23772 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23773
23774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23775
23776         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23777         denormal result into account.
23778
23779 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23780
23781         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23782         Reported by Allan McRae <allan@archlinux.org>.
23783
23784 2012-03-23  Jeff Law  <law@redhat.com>
23785
23786         * nss/getnssent.c (__nss_getent): Fix typo.
23787
23788 2012-03-23  David S. Miller  <davem@davemloft.net>
23789
23790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23791
23792 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23793
23794         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23795         to pad to uint64_t for each field.
23796         (dl_tls_index): Replace unsigned long with uint64_t.
23797
23798 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23799         Paul Pluzhnikov  <ppluzhnikov@google.com>
23800
23801         [BZ #6528]
23802         * grp/Makefile (otherlibs): Don't set it.
23803         * inet/Makefile (otherlibs): Likewise.
23804         * login/Makefile (otherlibs): Likewise.
23805         * nscd/Makefile (otherlibs): Likewise.
23806         * posix/Makefile (otherlibs): Likewise.
23807         * pwd/Makefile (otherlibs): Likewise.
23808         * rt/Makefile (otherlibs): Likewise.
23809         * sunrpc/Makefile (otherlibs): Likewise.
23810         * nss/Makefile (otherlibs): Likewise.
23811         Add libnss_files to routines and static-only-routines.
23812         ($(objpfx)getent): Remove rule.
23813         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23814         static-only-routines.
23815
23816 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23817
23818         [BZ #13892]
23819         * math/s_cexp.c: Include <float.h>.
23820         (__cexp): Handle exp result overflowing not necessarily
23821         overflowing both real and imaginary parts of result.
23822         * math/s_cexpf.c: Likewise.
23823         * math/s_cexpl.c: Likewise.
23824         * math/libm-test.inc (cexp_test): Add more tests.
23825         * sysdeps/i386/fpu/libm-test-ulps: Update.
23826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23827
23828 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23829
23830         * include/link.h (ELFW): New macro.
23831         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23832         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23833
23834 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23835
23836         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23837         with uint64_t.
23838
23839 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23840
23841         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23842         declaration.
23843         (struct La_x32_retval): Likewise.
23844
23845 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23846
23847         * sysdeps/x86_64/preconfigure.in: New file.
23848         * sysdeps/x86_64/preconfigure: New generated file.
23849
23850 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23851
23852         [BZ #13824]
23853         * math/e_exp2l.c: Include <float.h>.
23854         (__ieee754_exp2l): Handle overflow and underflow cases
23855         separately.  Only pass fractional part of argument to
23856         __ieee754_expl.
23857         * math/libm-test.inc (exp2_test): Add more tests.
23858
23859         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23860         negating x to take absolute value.
23861         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23862         Likewise.
23863         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23864         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23865         Likewise.
23866         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23867         computing low part if x was negated.
23868         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23869
23870 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23871
23872         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23873         la_x32_gnu_pltexit.
23874         (pltexit): Cast int_retval to ptrdiff_t.
23875         * elf/tst-auditmod3b.c: Likewise.
23876         * elf/tst-auditmod4b.c: Likewise.
23877         * elf/tst-auditmod5b.c: Likewise.
23878         * elf/tst-auditmod6b.c: Likewise.
23879         * elf/tst-auditmod6c.c: Likewise.
23880         * elf/tst-auditmod7b.c: Likewise.
23881
23882         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23883         and x32_gnu_pltexit.
23884
23885         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23886         __ELF_NATIVE_CLASS.
23887         (La_x32_regs): New macro.
23888         (La_x32_retval): Likewise.
23889         (la_x32_gnu_pltenter): New function prototype.
23890         (la_x32_gnu_pltexit): Likewise.
23891
23892 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23893
23894         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23895         exponent.
23896
23897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23898
23899         * configure.in (libc_cv_cc_nofma): Check for option to disable
23900         generation of FMA instructions.
23901         * configure: Regenerate.
23902         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23903         * sysdeps/ieee754/dbl-64/Makefile: New file.
23904         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23905         Remove brandred-fma4.
23906         (CFLAGS-brandred-fma4.c): Remove.
23907         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23908         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23909         define.
23910         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23911         define.
23912
23913 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23914
23915         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23916         LLONG_MAX != LONG_MAX.
23917         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23918         (_fitoa_word): Likewise.
23919         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
23920         LLONG_MAX != LONG_MAX.
23921         * stdio-common/_itowa.h: Include <_itoa.h>.
23922         (_itowa_word): Use _ITOA_WORD_TYPE on value.
23923         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
23924         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
23925         only if not defined.
23926         (_ITOA_WORD_TYPE): Likewise.
23927         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23928         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
23929
23930 2012-03-21  David S. Miller  <davem@davemloft.net>
23931
23932         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23933
23934 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23935
23936         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
23937         of x86_64 when setting libc_cv_slibdir, libdir and
23938         libc_cv_localedir.
23939         * sysdeps/unix/sysv/linux/configure: Regenerated.
23940
23941 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23942
23943         * manual/lang.texi (Old Varargs): Remove section.
23944         (How Variadic): Update menu.
23945         (va_start): Do not mention varargs.h.
23946
23947 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23948             Joseph Myers  <joseph@codesourcery.com>
23949
23950         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
23951         link test.
23952         * configure: Regenerated.
23953
23954 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23955
23956         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
23957         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
23958         conformtest.pl
23959
23960 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23961
23962         * NOTES: Remove.
23963         * Makefile (files-for-dist): Remove NOTES.
23964         (NOTES): Remove rule.
23965         * README: Don't refer to NOTES.
23966         * manual/creature.texi: Don't include macros.texi.
23967         * manual/intro.texi (creature.texi): Remove comment referring to
23968         NOTES.
23969
23970         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
23971         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
23972         * configure: Regenerated.
23973         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
23974         LIBC_TRY_CC_OPTION.
23975         (libc_cv_as_i686): Likewise.
23976         (libc_cv_cc_avx): Likewise.
23977         (libc_cv_cc_sse2avx): Likewise.
23978         (libc_cv_cc_fma4): Likewise.
23979         (libc_cv_cc_novzeroupper): Likewise.
23980         * sysdeps/i386/configure: Regenerated.
23981
23982         [BZ #13883]
23983         * sysdeps/i386/fpu/s_cexp.S: Remove.
23984         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
23985         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
23986         * math/libm-test.inc (cexp_test): Add more tests.
23987         * sysdeps/i386/fpu/libm-test-ulps: Update.
23988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23989
23990 2012-03-21  Allan McRae  <allan@archlinux.org>
23991
23992         * timezone/Makefile: Do not install iso3166.tab and zone.tab
23993
23994 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23995
23996         [BZ #13871]
23997         * math/w_exp2.c: Do not include <float.h>.
23998         (o_threshold, u_threshold): Remove.
23999         (__exp2): Calculate result before checking finiteness and calling
24000         __kernel_standard.
24001         * math/w_exp2f.c: Likewise.
24002         * math/w_exp2l.c: Likewise.
24003         * math/libm-test.inc (exp2_test): Require overflow exception for
24004         1e6 input.
24005
24006         [BZ #3866]
24007         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
24008         range of signed 64-bit integers before using fistpll.  Remove
24009         checks for whether integers fit in mantissa bits.
24010         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
24011         the range of signed 32-bit integers before using fistpl.  Remove
24012         checks for whether integers fit in mantissa bits.
24013         * sysdeps/i386/fpu/e_powl.S (p64): New object.
24014         (__ieee754_powl): Test for y outside the range of signed 64-bit
24015         integers before using fistpll.  Reduce 64-bit values to 63-bit
24016         ones as needed.
24017         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
24018         divide-by-zero is raised for zero to large negative powers.
24019         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
24020         (__ieee754_powl): Test for y outside the range of signed 64-bit
24021         integers before using fistpll.  Reduce 64-bit values to 63-bit
24022         ones as needed.
24023         * math/libm-test.inc (pow_test): Add more tests.
24024
24025 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24026
24027         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
24028         <stdio-common/_itoa.h>.
24029         * debug/segfault.c: Likewise.
24030         * elf/dl-cache.c: Likewise.
24031         * elf/dl-minimal.c: Likewise.
24032         * elf/dl-misc.c: Likewise.
24033         * elf/dl-sysdep.c: Likewise.
24034         * elf/dl-version.c: Likewise.
24035         * elf/rtld.c: Likewise.
24036         * hurd/hurdsock.c: Likewise.
24037         * hurd/lookup-retry.c: Likewise.
24038         * malloc/malloc.c: Likewise.
24039         * malloc/mtrace.c: Likewise.
24040         * nscd/nscd_getgr_r.c: Likewise.
24041         * nscd/nscd_getpw_r.c: Likewise.
24042         * nscd/nscd_getserv_r.c: Likewise.
24043         * posix/getopt_init.c: Likewise.
24044         * posix/wordexp.c: Likewise.
24045         * stdio-common/_itoa.c: Likewise.
24046         * stdio-common/printf_fphex.c: Likewise.
24047         * stdio-common/vfprintf.c: Likewise.
24048         * string/_strerror.c: Likewise.
24049         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
24050         * sysdeps/i386/i686/hp-timing.h: Likewise.
24051         * sysdeps/mach/_strerror.c: Likewise.
24052         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
24053         * sysdeps/mach/hurd/sethostid.c: Likewise.
24054         * sysdeps/mach/hurd/xmknodat.c: Likewise.
24055         * sysdeps/mach/xpg-strerror.c: Likewise.
24056         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24057         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24058         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
24059         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
24060         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24061         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
24062         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
24063         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
24064         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
24065         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
24066         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
24067         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
24068         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
24069         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
24070         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
24071         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
24072         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
24073         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
24074         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
24075         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
24076         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
24077
24078         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
24079
24080         * stdio-common/_itoa.h: Moved to ...
24081         * sysdeps/generic/_itoa.h: Here.
24082
24083         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
24084
24085         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
24086         instead of "_itoa.h" and "_itowa.h".
24087         * stdio-common/vfprintf.: Likewise.
24088
24089 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24090
24091         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
24092         <bits/wordsize.h>.
24093         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
24094         (__signbit): Likwise.
24095         (llrintf): Likwise.
24096         (llrint): Likwise.
24097
24098 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24099
24100         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
24101         __WORDSIZE != 64.
24102
24103 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
24104
24105         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
24106         OVERFLOW_EXCEPTION_OK.
24107         * math/libm-test.inc ("Philosophy"): Update comment about
24108         exception testing.
24109         (OVERFLOW_EXCEPTION): Define.
24110         (OVERFLOW_EXCEPTION_OK): Likewise.
24111         (INVALID_EXCEPTION_OK): Renumber.
24112         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
24113         (IGNORE_ZERO_INF_SIGN): Likewise.
24114         (test_exceptions): Handle FE_OVERFLOW.
24115         (exp10_test): Expect overflow exceptions.
24116         (exp2_test): Likewise.
24117         (expm1_test): Likewise.
24118         (nextafter_test): Likewise.
24119         (pow_test): Likewise.
24120         (scalbn_test): Likewise.
24121         (scalbln_test): Likewise.
24122
24123 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24124
24125         * sysdeps/x86_64/bits/atomic.h
24126         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
24127         64bit integer.
24128         (atomic_exchange_acq): Likewise.
24129         (__arch_exchange_and_add_body): Likewise.
24130         (__arch_add_body): Likewise.
24131         (atomic_add_negative): Likewise.
24132         (atomic_add_zero): Likewise.
24133
24134 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24135
24136         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
24137         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
24138
24139 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24140
24141         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
24142         Check __x86_64__ instead of __WORDSIZE.
24143
24144 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24145
24146         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
24147
24148 2012-03-19  David S. Miller  <davem@davemloft.net>
24149
24150         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24151
24152         * sysdeps/sparc/fpu/fenv_private.h: New file.
24153         * sysdeps/sparc/fpu/math_private.h: Use it.
24154         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
24155         Remove.
24156         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
24157         (libc_feholdexcept_setroundl): Remove.
24158         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
24159         Remove.
24160         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
24161         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
24162
24163 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24164
24165         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
24166         int64_t instead of long int.
24167         (INSERT_WORDS64): Likwise.
24168
24169 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24170
24171         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
24172         _Unwind_GetCFA return to _Unwind_Ptr first.
24173
24174 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
24175
24176         [BZ #13629]
24177         * math/s_clog.c: Include <float.h>.
24178         (__clog): Scale large or subnormal inputs.
24179         * math/s_clogf.c: Likewise.
24180         * math/s_clogl.c: Likewise.
24181         * math/s_clog10.c: Include <float.h>.
24182         (M_LOG10_2): Define.
24183         (__clog10): Scale large or subnormal inputs.
24184         * math/s_clog10f.c: Likewise.
24185         * math/s_clog10l.c: Likewise.
24186         * math/libm-test.inc (clog_test): Add more tests.
24187         (clog10_test): Likewise.
24188         * sysdeps/i386/fpu/libm-test-ulps: Update.
24189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24190
24191         [BZ #11451]
24192         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
24193         x and y.
24194         * math/libm-test.inc (atan2_test): Add another test.
24195
24196         * Makerules (common-objdir-compile): Remove.
24197         * sysdeps/unix/Makefile (config-generated): Do not add
24198         $(unix-generated) to variable.
24199         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
24200         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
24201         Remove rule.
24202         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
24203         Likewise.
24204         [generic bits/local_lim.h] (before-compile): Do not append to
24205         variable.
24206         [generic bits/local_lim.h] (common-generated): Likewise.
24207         [generic sys/param.h] (before-compile): Do not append to variable.
24208         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
24209         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
24210         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
24211         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
24212         include.
24213         [generic sys/param.h] (sys/param.h-includes): Remove variable.
24214         [generic sys/param.h] (sys/param.h-includes): Remove rule.
24215         [generic sys/param.h] ($(addprefix
24216         $(common-objpfx),$(sys/param.h-includes))): Likewise.
24217         [generic sys/param.h] (common-generated): Do not append to
24218         variable.
24219         [generic sys/param.h] (sysdep_headers): Likewise.
24220         [generic bits/errno.h] (before-compile): Do not append to
24221         variable.
24222         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
24223         rule.
24224         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
24225         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
24226         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
24227         [generic bits/errno.h] (common-generated): Do not append to
24228         variable.
24229         [generic bits/ioctls.h] (before-compile): Do not append to
24230         variable.
24231         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
24232         rule.
24233         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
24234         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
24235         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
24236         rule.
24237         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
24238         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
24239         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
24240         [generic bits/ioctls.h] (common-generated): Do not append to
24241         variable.
24242         [generic sys/syscall.h] (syscall.h): Remove variable.
24243         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
24244         rule.
24245         [generic sys/syscall.h] (before-compile): Do not append to
24246         variable.
24247         [generic sys/syscall.h] (common-generated): Likewise.
24248         * sysdeps/unix/errnos-tmpl.c: Remove file.
24249         * sysdeps/unix/errnos.awk: Likewise.
24250         * sysdeps/unix/ioctls-tmpl.c: Likewise.
24251         * sysdeps/unix/ioctls.awk: Likewise.
24252         * sysdeps/unix/mk-local_lim.c: Likewise.
24253         * sysdeps/unix/snarf-ioctls: Likewise.
24254
24255 2012-03-19  Richard Henderson  <rth@twiddle.net>
24256
24257         * sysdeps/i386/fpu/fenv_private.h: New file.
24258         * sysdeps/i386/fpu/math_private.h: Use it.
24259         (math_opt_barrier, math_force_eval): Remove.
24260         (libc_feholdexcept_setround_53bit): Remove.
24261         (libc_feupdateenv_53bit): Remove.
24262         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24263         (math_opt_barrier, math_force_eval): Remove.
24264         (libc_feholdexcept): Remove.
24265         (libc_feholdexcept_setround): Remove.
24266         (libc_fetestexcept, libc_fesetenv): Remove.
24267         (libc_feupdateenv_test): Remove.
24268         (libc_feupdateenv, libc_feholdsetround): Remove.
24269         (libc_feresetround): Remove.
24270
24271         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
24272         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
24273
24274         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
24275         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
24276         (libc_feupdateenv_testl): New.
24277         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
24278         (libc_feupdateenv_testf): New.
24279         (libc_feupdateenv): Use libc_feupdateenv_test.
24280         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
24281         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
24282
24283         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
24284         (libc_feholdsetroundf, libc_feholdsetroundl): New.
24285         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
24286         (libc_feresetround_noex): New.
24287         (libc_feresetround_noexf): New.
24288         (libc_feresetround_noexl): New.
24289         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
24290         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
24291         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
24292         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
24293         SET_RESTORE_ROUND.
24294         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
24295         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
24296         (__cos): Likewise.
24297         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
24298         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24299         SET_RESTORE_ROUND_NOEX.
24300         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
24301         SET_RESTORE_ROUND_NOEXF.
24302         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
24303         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
24304         (libc_feholdsetroundf): New.
24305         (libc_feresetround, libc_feresetroundf): New.
24306
24307         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
24308         (libc_feholdexcept_setround_53bit): Convert from macro to function.
24309         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
24310
24311         * sysdeps/generic/math_private.h: Include <fenv.h>.
24312         (default_libc_feholdexcept): New.
24313         (default_libc_feholdexcept_setround): New.
24314         (default_libc_fesetenv, default_libc_feupdateenv): New.
24315         (libc_feholdexcept): Only define if undefined.
24316         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
24317         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
24318         (libc_feholdexcept_setroundl): Likewise.
24319         (libc_feholdexcept_setround_53bit): Likewise.
24320         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
24321         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
24322         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
24323         (libc_feupdateenv_53bit): Likewise.
24324         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
24325         (libc_feholdexcept): Convert from macro to inline function.
24326         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
24327         (libc_fesetenv, libc_feupdateenv): Likewise.
24328
24329         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
24330         not previously defined.
24331         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
24332         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
24333         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
24334         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
24335         * sysdeps/ieee754/flt-32/math_private.h: New file.
24336         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
24337         math_private.h below SET_FLOAT_WORD.
24338         (__isnan, __isinf_ns, __finite): Remove.
24339         (__isnanf, __isinf_nsf, __finitef): Remove.
24340
24341 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
24342
24343         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24344
24345 2012-03-17  David S. Miller  <davem@davemloft.net>
24346
24347         [BZ #6471]
24348         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
24349         for 2.16.
24350
24351 2012-03-16  David S. Miller  <davem@davemloft.net>
24352
24353         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
24354         warnings.
24355
24356         [BZ #6471]
24357         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
24358         properly.
24359         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
24360         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
24361         sysdep_routines when subdir is sysvipc.
24362         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
24363         __getshmlba helper.
24364
24365         * sysdeps/sparc/fpu/libm-test/ulps: Update.
24366
24367 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24368
24369         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
24370         [__LP64__].
24371
24372 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24373
24374         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
24375         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
24376         (__lround): Renamed to ...
24377         (__llround): This.  Replace long int with long long int.
24378         Define lround functions as aliases of llround functions.
24379         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
24380
24381 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24382
24383         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
24384         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
24385         adresses to uintptr_t.  Replace "long int" and "unsigned long
24386         int" with "greg_t" on va_arg.
24387
24388 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24389
24390         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
24391         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
24392
24393         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
24394         Move e_machine check before EI_CLASS check.  Handle x32
24395         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
24396         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
24397         SKIP_EM_IA_64 and include
24398         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
24399
24400         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
24401         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
24402         (add_system_dir): New macro.
24403
24404         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
24405         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
24406
24407 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24408
24409         [BZ #2551]
24410         [BZ #2552]
24411         [BZ #2553]
24412         [BZ #2554]
24413         [BZ #2562]
24414         [BZ #2563]
24415         [BZ #2565]
24416         [BZ #2566]
24417         [BZ #2576]
24418         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
24419         (y0): Likewise.
24420         * math/w_j0f.c (j0f): Likewise.
24421         (y0f): Likewise.
24422         * math/w_j0l.c (__j0l): Likewise.
24423         (__y0l): Likewise.
24424         * math/w_j1.c (j1): Likewise.
24425         (y1): Likewise.
24426         * math/w_j1f.c (j1f): Likewise.
24427         (y1f): Likewise.
24428         * math/w_j1l.c (__j1l): Likewise.
24429         (__y1l): Likewise.
24430         * math/w_jn.c (jn): Likewise.
24431         (yn): Likewise.
24432         * math/w_jnf.c (jnf): Likewise.
24433         (ynf): Likewise.
24434         * math/w_jnl.c (__jnl): Likewise.
24435         (__ynl): Likewise.
24436         * math/libm-test.inc (j0_test): Add more tests.
24437         (j1_test): Likewise.
24438         (jn_test): Likewise.  Add trailing semicolon to existing test.
24439         (y0_test): Likewise.
24440         (y1_test): Likewise.
24441         * sysdeps/i386/fpu/libm-test-ulps: Update.
24442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24443
24444         [BZ #13851]
24445         [BZ #13854]
24446         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24447         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
24448         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
24449         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
24450         (__tanl): Set errno for infinite argument.
24451         * sysdeps/i386/fpu/mptan.c: Remove.
24452         * sysdeps/i386/fpu/s_tan.S: Likewise.
24453         * sysdeps/i386/fpu/s_tanl.S: Likewise.
24454         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
24455         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
24456         * math/libm-test.inc (tan_test): Add more tests and enable more
24457         tests for double and long double.
24458         * sysdeps/i386/fpu/libm-test-ulps: Update.
24459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24460
24461 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
24462
24463         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
24464         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
24465
24466 2012-03-16  Roland McGrath  <roland@hack.frob.com>
24467
24468         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
24469         * configure.in: Use it for both main tree and add-ons.
24470         * configure: Regenerated.
24471
24472 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24473
24474         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
24475
24476 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24477
24478         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
24479         in comment.
24480
24481         [BZ #13851]
24482         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
24483         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
24484         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
24485         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
24486         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
24487         infinite argument.
24488         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
24489         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
24490         != 0 for prec == 2.
24491         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
24492         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
24493         * sysdeps/i386/fpu/s_cosl.S: Likewise.
24494         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
24495         * sysdeps/i386/fpu/s_sinl.S: Likewise.
24496         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
24497         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
24498         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
24499         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
24500         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
24501         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
24502         * math/libm-test.inc (cos_test): Add more tests and enable more
24503         tests for long double.
24504         (sin_test): Likewise.
24505         (sincos_test): Likewise.
24506         * sysdeps/i386/fpu/libm-test-ulps: Update.
24507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24508
24509 2012-03-16  David S. Miller  <davem@davemloft.net>
24510
24511         * sysdeps/sparc/fpu/math_private.h: New file.
24512
24513 2012-03-15  David S. Miller  <davem@davemloft.net>
24514
24515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
24516         file.
24517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
24518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
24519         file.
24520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
24521         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
24522         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
24523         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
24524         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
24525         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
24526         sysdep routines.
24527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24528
24529         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
24530         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
24531
24532         * sysdeps/sparc/sparc-ifunc.h: New file.
24533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
24534         sparc-ifunc.h
24535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24537         Likewise.
24538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24539         Likewise.
24540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
24541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24544         Likewise.
24545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
24547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
24549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
24550         Likewise.
24551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
24552         Likewise.
24553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
24556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
24557         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24558         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24559         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
24560         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
24561         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24562         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24563         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
24564         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
24565         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
24566         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
24567         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
24568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24569         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
24570         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24571         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
24572         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24573         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
24574         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24575         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
24576         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24577
24578 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24579
24580         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
24581         scaling.
24582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24583
24584 2012-03-15  Andreas Jaeger  <aj@suse.de>
24585
24586         [BZ #13852]
24587         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
24588         ieee754/flt-32 implementation for sin, cos and sincos.
24589         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
24590         * sysdeps/i386/fpu/s_cosf.S: Likewise.
24591         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
24592         * sysdeps/i386/fpu/s_sinf.S: Likewise.
24593         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
24594         ieee754/flt-32 implementation for tan.
24595
24596         * math/libm-test.inc (cos_test): Enable some large input tests for
24597         float as well
24598         (sin_test): Likewise.
24599         (sincos_test): Likewise.
24600         (tan_test): Add tests for large input.
24601
24602         * sysdeps/i386/fpu/libm-test-ulps: Update.
24603
24604 2012-03-15  Andreas Jaeger  <aj@suse.de>
24605
24606         [BZ #13658]
24607         * math/libm-test.inc (cos_test): Add more test cases.
24608         (sin_test): Likewise.
24609         (sincos_test): Likewise.
24610
24611 2012-03-15  Andreas Jaeger  <aj@suse.de>
24612
24613         [BZ #13837]
24614         * math/libm-test.inc (cos_test): Add a test case for large input
24615         value.
24616         (sin_test): Likewise.
24617         (sincos_test): Likewise.
24618
24619 2012-03-15  Andreas Jaeger  <aj@suse.de>,
24620         Joseph Myers  <joseph@codesourcery.com>
24621
24622         [BZ #13658]
24623         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
24624         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
24625         * sysdeps/i386/fpu/branred.c: Likewise.
24626         * sysdeps/i386/fpu/dosincos.c: Likewise.
24627         * sysdeps/i386/fpu/mpa.c: Likewise.
24628         * sysdeps/i386/fpu/s_cos.S: Likewise.
24629         * sysdeps/i386/fpu/s_sin.S: Likewise.
24630         * sysdeps/i386/fpu/s_sincos.S: Likewise.
24631         * sysdeps/i386/fpu/sincos32.c: Likewise.
24632
24633         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
24634         Define.
24635         (libc_feupdateenv_53bit): Define.
24636         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
24637         Define.
24638         (libc_feupdateenv_53bit): Define.
24639
24640         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
24641         53 bit (without extend i386 double precision).
24642
24643         * math/libm-test.inc (sincos_test): Add tests for large input.
24644         (sin): Likewise.
24645         (cos): Likewise.
24646
24647         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
24648
24649 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24650
24651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24652
24653 2012-03-15  David S. Miller  <davem@davemloft.net>
24654
24655         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
24656         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
24657         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
24658         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
24659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
24660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24662         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24665         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24666         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24667         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24668         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24669         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24671         file.
24672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24674         file.
24675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24677         file.
24678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24680         file.
24681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24682         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24683         fmin/fmax sysdep routines.
24684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24685
24686 2012-03-14  David S. Miller  <davem@davemloft.net>
24687
24688         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24689         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24690         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24691         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24692         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24693         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24694         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24695         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24696         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24697         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24698         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24699         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24700         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24702         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24703         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24704         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24705         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24706         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24707         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24708         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24709         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24710         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24711         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24712         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24713         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24714         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24715         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24716         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24717         routines.
24718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24719         file.
24720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24722         file.
24723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24725         file.
24726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24728         file.
24729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24731         file.
24732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24734         file.
24735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24736         file.
24737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24738         file.
24739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24740         file.
24741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24742         New file.
24743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24744         file.
24745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24746         file.
24747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24749         file.
24750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24752         file.
24753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24755         file.
24756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24758         VIS3 routines.
24759
24760         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24761         New file.
24762
24763         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24764
24765         * sysdeps/sparc/configure.in: New file.
24766         * sysdeps/sparc/configure: Generate.
24767         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24768         * configure: Regenerate.
24769         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24770         * config.make.in (have-as-vis3): New.
24771         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24772         available use -Av9d instead of -Av9a.
24773         * sysdeps/sparc/sparc64/Makefile: Likewise.
24774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24776         New file.
24777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24778         file.
24779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24780         New file.
24781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24782         file.
24783         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24784         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24785         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24786         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24787         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24788
24789         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24790         fzeros/fnegs to load 0x80000000 into a float register instead of
24791         using the stack.
24792         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24793
24794 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24795
24796         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24797         bits/syscall.h.
24798         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24799         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24800         ($(inst_includedir)/bits/syscall.h): Remove rule.
24801         ($(objpfx)bits/syscall.d): Include instead of
24802         $(objpfx)syscall-list.d.
24803         (generated): Change syscall-list.h and syscall-list.d to
24804         bits/syscall.h and bits/syscall.d.
24805
24806 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24807
24808         [BZ #13846]
24809         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24810
24811 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24812
24813         [BZ #13841]
24814         * math/s_csqrt.c: Include <float.h>.
24815         (__csqrt): Scale large or subnormal inputs.
24816         * math/s_csqrtf.c: Likewise.
24817         * math/s_csqrtl.c: Likewise.
24818         * math/libm-test.inc (csqrt_test): Add more tests.
24819         * sysdeps/i386/fpu/libm-test-ulps: Update.
24820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24821
24822         [BZ #13840]
24823         * math/libm-test.inc (hypot_test): Add more tests.
24824
24825 2012-03-13  David S. Miller  <davem@davemloft.net>
24826
24827         [BZ #13840]
24828         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24829         double-precision for the calculation instead of scaling.
24830
24831 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24832
24833         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24834         manipulate bits before adding and subtracting TWO52[sx].
24835         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24836         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24837         Likewise.
24838         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24839
24840 2012-03-13  David S. Miller  <davem@davemloft.net>
24841
24842         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24843         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24844         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24845         rtld-global-offsets.h
24846         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24847
24848         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24849         large parameters.
24850
24851         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24852
24853         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24854         'err' in the ifdef scope in which it is actually used.
24855
24856         * nss/nss_db/db-init.c: Include string.h
24857
24858 2012-03-12  David S. Miller  <davem@davemloft.net>
24859
24860         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24861         masking out of the most significant byte of random value used.
24862         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24863         Fix coding style in previous change.
24864
24865         * sysdeps/unix/sysv/linux/kernel-features.h
24866         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24867         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24868         expression.
24869         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24870         later.
24871
24872 2012-03-11  David S. Miller  <davem@davemloft.net>
24873
24874         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24875         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24876         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24877         for 'resultvar' otherwise things get truncated on 64-bit.
24878
24879         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24880         Fix masking out of the most significant byte of random value used.
24881
24882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24883
24884 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24885
24886         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24887
24888 2012-03-09  David S. Miller  <davem@davemloft.net>
24889
24890         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24891         variables with appropriate CPP guards.
24892         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24893         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24894         on resulting framesize and the management of the outregs buffer for pltexit.
24895         Preserve floating point return values across _dl_call_pltexit call.
24896         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24897         framesize and the management of the outregs buffer for pltexit.
24898         Preserve floating point return values across _dl_call_pltexit
24899         call.
24900         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24901         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24902         (print_exit): Fix format string for return register value.
24903
24904 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24905
24906         * sunrpc/Makefile (others): Add rpcgen.
24907         ($(objpfx)rpcgen): Remove special build rule and dependency on
24908         libc.
24909         * sunrpc/rpcgen.c: New file.
24910
24911 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24912
24913         [BZ #13673]
24914         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
24915         * stdio-common/bug-vfprintf-nargs.c: Likewise.
24916         * sysdeps/i386/crti.S: Likewise.
24917         * sysdeps/i386/crtn.S: Likewise.
24918         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
24919         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
24920         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
24921         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
24922         * sysdeps/sh/crti.S: Likewise.
24923         * sysdeps/sh/crtn.S: Likewise.
24924         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
24925
24926         [BZ #13673]
24927         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
24928         with URL.
24929         * locale/programs/locfile-kw.gperf: Likewise.
24930         * locale/programs/charmap-kw.h: Regenerated.
24931         * locale/programs/locfile-kw.h: Likewise.
24932
24933         [BZ #13673]
24934         * intl/plural.y: Replace FSF snail mail address with URL.
24935         * intl/plural.c: Regenerated.
24936
24937 2012-03-09  Richard Henderson  <rth@twiddle.net>
24938
24939         * include/math_private.h: Remove file.
24940         * math/math_private.h: Move file ...
24941         * sysdeps/generic/math_private.h: ... here.
24942
24943         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
24944         * sysdeps/powerpc/fpu/math_private.h: Likewise.
24945         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24946
24947         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
24948         and <math_private.h>.
24949         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24950         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24951         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24952         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24953         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24954         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
24955         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24956         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24957         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24958         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24959         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24960         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24961         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24962         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24963         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24964         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24965         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24966         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24967         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24968         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24969         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24970         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24971         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24972         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24973         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
24974         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24975         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24976         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24978         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24979         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24980         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24981         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
24982         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24983         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24984         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24985         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24986         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24987         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24988         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24989         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
24990         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24991         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24992         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
24993         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
24994         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24995         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
24996         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
24997         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24998         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24999         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
25000         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
25001         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
25002         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25003         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
25004         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
25005         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
25006         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
25007         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
25008         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
25009         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
25010         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
25011         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
25012         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25013         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
25014         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
25015         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
25016         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
25017         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
25018         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
25019         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
25020         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
25021         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
25022         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
25023         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
25024         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
25025         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
25026         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25027         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
25028         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
25029         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
25030         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
25031         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
25032         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
25033         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
25034         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
25035         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
25036         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
25037         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
25038         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25039         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25040         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
25041         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25042         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
25043         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
25044         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
25045         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
25046         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
25047         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25048         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
25049         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
25050         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
25051         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
25052         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
25053         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25054         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
25055         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
25056         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
25057         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25058         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25059         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25060         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25061         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
25062         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25063         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
25064         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
25065         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25066         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25067         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25068         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
25069         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25070         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25071         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
25072         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
25073         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25074         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25075         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
25076         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
25077         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25078         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
25079         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
25080         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
25081         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25082         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
25083         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
25084         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25085         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
25086         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25087         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
25088         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
25089         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
25090         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25091         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25092         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
25093         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
25094         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25095         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25096         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25097         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
25098         * sysdeps/ieee754/k_standard.c: Likewise.
25099         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
25100         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25101         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25102         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
25103         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
25104         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
25105         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
25106         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
25107         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
25108         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
25109         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25110         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
25111         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
25112         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
25113         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
25114         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
25115         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
25116         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
25117         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
25118         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
25119         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
25120         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
25121         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25122         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25123         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
25124         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
25125         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25126         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25127         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25128         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25129         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
25130         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25131         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25132         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25133         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
25134         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25135         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25136         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
25137         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
25138         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25139         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
25140         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
25141         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
25142         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25143         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
25144         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
25145         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25146         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25147         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25148         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25149         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
25150         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
25151         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
25152         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
25153         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
25154         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
25155         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
25156         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
25157         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
25158         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
25159         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
25160         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
25161         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
25162         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
25163         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25164         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25165         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
25166         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
25167         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
25168         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
25169         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
25170         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25171         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
25172         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
25173         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
25174         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
25175         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
25176         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
25177         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25178         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
25179         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
25180         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
25181         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
25182         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
25183         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
25184         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
25185         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
25186         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
25187         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
25188         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
25189         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
25190         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
25191         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
25192         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
25193         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
25194         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
25195         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
25196         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
25197         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
25198         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
25199         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
25200         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
25201         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
25202         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
25203         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
25204         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
25205         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
25206         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
25207         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
25208         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
25209         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
25210         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
25211         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
25212         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25213         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
25214         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
25215         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
25216         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25217         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
25218         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
25219         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25220         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
25221         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
25222         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
25223         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25224         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
25225         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
25226         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
25227         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
25228         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
25229         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
25230         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
25231         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
25232         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
25233         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
25234         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
25235         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
25236         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
25237         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
25238         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
25239         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
25240         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
25241         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
25242         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
25243         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
25244         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
25245         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
25246         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
25247         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
25248         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
25249         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
25250         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
25251         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
25252         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
25253         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
25254         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
25255         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25256         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
25257         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
25258         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
25259         * sysdeps/ieee754/s_lib_version.c: Likewise.
25260         * sysdeps/ieee754/s_matherr.c: Likewise.
25261         * sysdeps/ieee754/s_signgam.c: Likewise.
25262         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
25263         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
25264         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
25265         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
25266         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
25267         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
25268         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
25269         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
25270         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
25271         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
25272         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
25273         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
25274         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
25275         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
25276         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
25277         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
25278         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
25279         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
25280         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
25281         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
25282         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
25283
25284 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25285
25286         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
25287         * sunrpc/rpc_main.c: Likewise.
25288         * sunrpc/rpc_svcout.c: Likewise.
25289
25290 2012-03-09  David S. Miller  <davem@davemloft.net>
25291
25292         * include/math_private.h: New file.
25293
25294 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25295
25296         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
25297         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
25298         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
25299         from <bits/socket_type.h>.
25300         (enum __socket_type): Don't define here.
25301         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
25302         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25303         bits/socket_type.h.
25304
25305         [BZ #13566]
25306         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
25307         checking __USE_GNU.
25308
25309         * Makerules ($(inst_includedir)/%.h): New rule.
25310         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
25311         (install-others): Remove variable setting.
25312         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
25313
25314 2012-03-08  Richard Henderson  <rth@twiddle.net>
25315
25316         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
25317         from macro to inline function; merge with the
25318         !__LIBC_INTERNAL_MATH_INLINES version.
25319         (__ieee754_sqrtf): Likewise.
25320
25321         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
25322         to inline function.
25323         (__rintf, __floor, __floorf): Likewise.
25324
25325         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
25326         macro to inline function.
25327         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
25328
25329         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
25330         not <math/math_private.h>.
25331
25332 2012-03-08  David S. Miller  <davem@davemloft.net>
25333
25334         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
25335         copyright year.
25336         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
25337
25338 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
25339
25340         * resolv/gai_misc.c (handle_requests): Fix struct timespec
25341         normalization.
25342         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
25343         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
25344
25345 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
25346
25347         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
25348         be defined individually, they must be defined as a block.  Define
25349         S for printing a string instead of hidint the different by using a
25350         macro for adding the 'l'.
25351         * stdio-common/tst-fphex-wide.c: Adjust.
25352
25353 2012-03-07  Marek Polacek  <polacek@redhat.com>
25354
25355         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
25356
25357 2012-03-08  Marek Polacek  <polacek@redhat.com>
25358
25359         [BZ #13806]
25360         * stdio-common/Makefile (tests): Add tst-fphex-wide.
25361         * stdio-common/tst-fphex.c: Define a few macros to make the
25362         test reusable.  Use them.
25363         * stdio-common/tst-fphex-wide.c: New file.
25364
25365 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
25366
25367         [BZ #6911]
25368         * manual/macros.texi (gnusystems): New macro.
25369         (nongnusystems): Likewise.
25370         (gnulinuxhurdsystems): Likewise.
25371         (gnuhurdsystems): Likewise..
25372         (gnulinuxsystems): Likewise.
25373         * manual/charset.texi: Use new macros or @theglibc{} to refer to
25374         variants of the GNU system, not "GNU system".
25375         * manual/conf.texi: Likewise.
25376         * manual/errno.texi: Likewise.  Update example of errno macro
25377         expansion.
25378         * manual/filesys.texi: Likewise.
25379         (getumask): Document as specific to GNU/Hurd.
25380         * manual/install.texi: Likewise.  Reword some references to
25381         GNU/Linux.
25382         * manual/intro.texi: Likewise.
25383         * manual/io.texi: Likewise.
25384         (File Name Portability): Detail which constraints are inapplicable
25385         to all GNU systems and which are only inapplicable to GNU/Hurd.
25386         * manual/job.texi: Likewise.
25387         * manual/llio.texi: Likewise.
25388         (O_NOCTTY): Document as present on GNU/Linux.
25389         * manual/maint.texi: Likewise.
25390         * manual/memory.texi: Likewise.
25391         * manual/pattern.texi: Likewise.
25392         * manual/pipe.texi: Likewise.
25393         * manual/process.texi: Likewise.
25394         * manual/resource.texi: Likewise.
25395         (RUSAGE_CHILDREN): Remove statement about specifying a particular
25396         child on GNU/Hurd.
25397         * manual/setjmp.texi: Likewise.
25398         * manual/signal.texi: Likewise.
25399         * manual/startup.texi: Likewise.
25400         * manual/stdio.texi: Likewise.
25401         * manual/terminal.texi: Likewise.
25402         (ONLCR): Document as POSIX.
25403         (OXTABS): Document availability on GNU/Linux as XTABS.
25404         (ONOEOT): Document availability separately from other bits.
25405         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
25406         * manual/time.texi: Likewise.
25407         * manual/users.texi: Likewise.
25408         * INSTALL: Regenerated.
25409         * sysdeps/gnu/errlist.c: Regenerated.
25410
25411         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
25412         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
25413         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
25414         puts.
25415         * configure: Regenerated.
25416
25417 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
25418
25419         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
25420         default includes instead of AC_HEADER_CHECK.
25421         * sysdeps/i386/configure: Regenerated.
25422
25423         [BZ #10716]
25424         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
25425         * math/s_cacoshf.c (__cacoshf): Likewise.
25426         * math/s_cacoshl.c (__cacoshl): Likewise.
25427         * math/s_casinh.c (__casinh): Set signs of result from argument.
25428         * math/s_casinhf.c (__casinhf): Likewise.
25429         * math/s_casinhl.c (__casinhl): Likewise.
25430         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
25431         (casinh_test): Add more tests.
25432         * sysdeps/i386/fpu/libm-test-ulps: Update.
25433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25434
25435 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
25436
25437         * po/zh_TW.po: Update from translation team.
25438
25439         * login/Makefile (distribute): Remove variable.
25440         * catgets/Makefile: Likewise.
25441         * mach/Makefile: Likewise.
25442         * malloc/Makefile: Likewise.
25443         * misc/Makefile: Likewise.
25444         * iconv/Makefile: Likewise.
25445         * nscd/Makefile: Likewise.
25446         * hurd/Makefile: Likewise.
25447         * manual/Makefile: Likewise.
25448         * locale/Makefile: Likewise.
25449         * intl/Makefile: Likewise.
25450         * conform/Makefile: Likewise.
25451         * nss/Makefile: Likewise.
25452         * time/Makefile: Likewise.
25453         * soft-fp/Makefile: Likewise.
25454         * dirent/Makefile: Likewise.
25455         * gmon/Makefile: Likewise.
25456         * po/Makefile: Likewise.
25457         * rt/Makefile: Likewise.
25458         * socket/Makefile: Likewise.
25459         * math/Makefile: Likewise.
25460         * signal/Makefile: Likewise.
25461         * debug/Makefile: Likewise.
25462         * elf/Makefile: Likewise.
25463         * timezone/Makefile: Likewise.
25464         * stdlib/Makefile: Likewise.
25465         * iconvdata/Makefile: Likewise.
25466         * sunrpc/Makefile: Likewise.
25467         * io/Makefile: Likewise.
25468         * argp/Makefile: Likewise.
25469         * inet/Makefile: Likewise.
25470         * hesiod/Makefile: Likewise.
25471         * grp/Makefile: Likewise.
25472         * csu/Makefile: Likewise.
25473         * wctype/Makefile: Likewise.
25474         * crypt/Makefile: Likewise.
25475         * libio/Makefile: Likewise.
25476         * string/Makefile: Likewise.
25477         * nis/Makefile: Likewise.
25478         * resolv/Makefile: Likewise.
25479         * stdio-common/Makefile: Likewise.
25480         * wcsmbs/Makefile: Likewise.
25481         * dlfcn/Makefile: Likewise.
25482         * posix/Makefile: Likewise.
25483
25484         [BZ #6959]
25485         * timezone/Makefile: Don't install timezone files, just the programs
25486         and scripts.
25487
25488 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
25489
25490         * nss/databases.def: Add missing gshadow entry.
25491
25492         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
25493
25494 2012-03-06  Marek Polacek  <polacek@redhat.com>
25495
25496         [BZ #13726]
25497         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
25498         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
25499         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
25500         * stdio-common/tst-long-dbl-fphex.c: New file.
25501
25502 2012-03-06  David S. Miller  <davem@davemloft.net>
25503
25504         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25505         (set_obp_int): New function.
25506         (get_obp_int): New function.
25507         (__get_clockfreq_via_dev_openprom): Likewise.
25508         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
25509         Avoid unused variable warnings on 'val' and use builtin_expect.
25510         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
25511         __builtin_expect.
25512         (INLINE_CLONE_SYSCALL): Likewise.
25513
25514 2012-03-05  David S. Miller  <davem@davemloft.net>
25515
25516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25517
25518 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
25519
25520         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25521
25522         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
25523         only for |x| >= 40.
25524         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25525
25526 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25527
25528         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
25529         Replace gettimeofday with __vdso_gettimeofday.
25530
25531         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25532         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
25533         __vdso_clock_gettime and __vdso_getcpu.
25534
25535         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
25536         time with __vdso_time.
25537
25538 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25539
25540         * manual/lang.texi (size_t): Note types to which size_t may be
25541         equivalent with the GNU C Library, but do not describe when
25542         differences between them are significant.
25543
25544 2012-03-05  Andreas Jaeger  <aj@suse.de>
25545
25546         * sysdeps/i386/fpu/libm-test-ulps: Update.
25547
25548 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25549
25550         [BZ #3976]
25551         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
25552         (__ieee754_pow): Save and restore rounding mode and use
25553         round-to-nearest for main computations.
25554         * math/libm-test.inc (pow_test_tonearest): New function.
25555         (pow_test_towardzero): Likewise.
25556         (pow_test_downward): Likewise.
25557         (pow_test_upward): Likewise.
25558         (main): Call the new functions.
25559         * sysdeps/i386/fpu/libm-test-ulps: Update.
25560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25561
25562         [BZ #3976]
25563         * math/libm-test.inc (cosh_test_tonearest): New function.
25564         (cosh_test_towardzero): Likewise.
25565         (cosh_test_downward): Likewise.
25566         (cosh_test_upward): Likewise.
25567         (sinh_test_tonearest): Likewise.
25568         (sinh_test_towardzero): Likewise.
25569         (sinh_test_downward): Likewise.
25570         (sinh_test_upward): Likewise.
25571         (main): Call the new functions.
25572         * sysdeps/i386/fpu/libm-test-ulps: Update.
25573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25574
25575 2012-03-05  Tom de Vries  <tom@codesourcery.com>
25576
25577         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
25578         default stack guard is set in last bytes.
25579         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
25580
25581 2012-03-05  Kees Cook  <keescook@chromium.org>
25582
25583         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
25584
25585         [BZ #13656]
25586         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
25587         possibly allocate from heap instead of stack.
25588         * stdio-common/bug-vfprintf-nargs.c: New file.
25589         * stdio-common/Makefile (tests): Add nargs overflow test.
25590
25591 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
25592
25593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25594
25595 2012-03-03  Marek Polacek  <polacek@redhat.com>
25596
25597         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
25598         * math/math_private.h: Likewise.
25599         * stdlib/tst-strtod.c: Likewise.
25600         * sysdeps/i386/i486/bits/atomic.h: Likewise.
25601         * sysdeps/x86_64/bits/atomic.h: Likewise.
25602
25603 2012-03-02  David S. Miller  <davem@davemloft.net>
25604
25605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
25606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
25607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
25608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
25609         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
25610         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
25611         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
25612         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
25613
25614 2012-03-02  Roland McGrath  <roland@hack.frob.com>
25615
25616         [BZ #13792]
25617         * manual/examples/README: New file, says the example source files
25618         can be used under GPL>=2.
25619         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
25620         line containing just "*/".
25621         * manual/examples/add.c: Add copyright header (GPL>=2).
25622         * manual/examples/argp-ex1.c: Likewise.
25623         * manual/examples/argp-ex2.c: Likewise.
25624         * manual/examples/argp-ex3.c: Likewise.
25625         * manual/examples/argp-ex4.c: Likewise.
25626         * manual/examples/atexit.c: Likewise.
25627         * manual/examples/db.c: Likewise.
25628         * manual/examples/dir.c: Likewise.
25629         * manual/examples/dir2.c: Likewise.
25630         * manual/examples/execinfo.c: Likewise.
25631         * manual/examples/filecli.c: Likewise.
25632         * manual/examples/filesrv.c: Likewise.
25633         * manual/examples/fmtmsgexpl.c: Likewise.
25634         * manual/examples/genpass.c: Likewise.
25635         * manual/examples/inetcli.c: Likewise.
25636         * manual/examples/inetsrv.c: Likewise.
25637         * manual/examples/isockad.c: Likewise.
25638         * manual/examples/longopt.c: Likewise.
25639         * manual/examples/memopen.c: Likewise.
25640         * manual/examples/memstrm.c: Likewise.
25641         * manual/examples/mkfsock.c: Likewise.
25642         * manual/examples/mkisock.c: Likewise.
25643         * manual/examples/mygetpass.c: Likewise.
25644         * manual/examples/pipe.c: Likewise.
25645         * manual/examples/popen.c: Likewise.
25646         * manual/examples/rprintf.c: Likewise.
25647         * manual/examples/search.c: Likewise.
25648         * manual/examples/select.c: Likewise.
25649         * manual/examples/setjmp.c: Likewise.
25650         * manual/examples/sigh1.c: Likewise.
25651         * manual/examples/sigusr.c: Likewise.
25652         * manual/examples/stpcpy.c: Likewise.
25653         * manual/examples/strdupa.c: Likewise.
25654         * manual/examples/strftim.c: Likewise.
25655         * manual/examples/strncat.c: Likewise.
25656         * manual/examples/subopt.c: Likewise.
25657         * manual/examples/swapcontext.c: Likewise.
25658         * manual/examples/termios.c: Likewise.
25659         * manual/examples/testopt.c: Likewise.
25660         * manual/examples/testpass.c: Likewise.
25661         * manual/examples/timeval_subtract.c: Likewise.
25662
25663         [BZ #13792]
25664         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25665         function to ...
25666         * manual/timeval_subtract.c.texi: ... here, new file.
25667
25668 2012-03-02  David S. Miller  <davem@davemloft.net>
25669
25670         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25671
25672 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25673
25674         [BZ #3976]
25675         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25676         (__sin): Save and restore rounding mode and use round-to-nearest
25677         for all computations.
25678         (__cos): Save and restore rounding mode and use round-to-nearest
25679         for all computations.
25680         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25681         <fenv.h>.
25682         (tan): Save and restore rounding mode and use round-to-nearest for
25683         all computations.
25684         * math/libm-test.inc (cos_test_tonearest): New function.
25685         (cos_test_towardzero): Likewise.
25686         (cos_test_downward): Likewise.
25687         (cos_test_upward): Likewise.
25688         (sin_test_tonearest): Likewise.
25689         (sin_test_towardzero): Likewise.
25690         (sin_test_downward): Likewise.
25691         (sin_test_upward): Likewise.
25692         (tan_test_tonearest): Likewise.
25693         (tan_test_towardzero): Likewise.
25694         (tan_test_downward): Likewise.
25695         (tan_test_upward): Likewise.
25696         (main): Call the new functions.
25697         * sysdeps/i386/fpu/libm-test-ulps: Update.
25698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25699
25700         [BZ #10135]
25701         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25702         small n, then large n, before computing and testing k+n.
25703         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25704         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25705         Likewise.
25706         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25707         Likewise.
25708         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25709         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25710         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25711         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25712         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25713         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25714         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25715         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25716         * math/libm-test.inc (scalbn_test): Add more tests.
25717         (scalbln_test): Likewise.
25718
25719         * manual/filesys.texi (mode_t): Describe constraints on size and
25720         signedness, not exact equivalence to a particular type.
25721         (ino_t): Likewise.
25722         (ino64_t): Likewise.
25723         (dev_t): Likewise.
25724         (nlink_t): Likewise.
25725         (blkcnt_t): Likewise.
25726         (blkcnt64_t): Likewise.
25727         * manual/llio.texi (off_t): Likewise.
25728
25729         [BZ #3976]
25730         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25731         (__ieee754_exp): Save and restore rounding mode and use
25732         round-to-nearest for all computations.
25733         * math/libm-test.inc (exp_test_tonearest): New function.
25734         (exp_test_towardzero): Likewise.
25735         (exp_test_downward): Likewise.
25736         (exp_test_upward): Likewise.
25737         (main): Call the new functions.
25738         * sysdeps/i386/fpu/libm-test-ulps: Update.
25739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25740
25741 2012-03-01  Chris Demetriou  <cgd@google.com>
25742
25743         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25744         have predictable order.
25745
25746 2012-03-01  David S. Miller  <davem@davemloft.net>
25747
25748         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25749
25750         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25751         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25752         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25753         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25754
25755         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25756         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25757         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25758         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25759         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25760         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25761         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25762         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25763         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25764
25765         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25766
25767         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25768         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25769         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25770
25771         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25772         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25773         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25774         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25775         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25776         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25777         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25778         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25779         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25780         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25781         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25782         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25783         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25784         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25785         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25786         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25787         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25788         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25789         * sysdeps/sparc/elf/configure: Regenerated.
25790
25791 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25792
25793         * configure.in (AS, LD): Require binutils 2.20 or later.
25794         * configure: Regenerated.
25795         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25796         as required minimum version.
25797         * INSTALL: Regenerated.
25798
25799         [BZ #2541]
25800         [BZ #4108]
25801         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25802         before squaring exponent.
25803         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25804         bottom long double and 27 bits of top long double before squaring
25805         exponent.
25806         * math/libm-test.inc (erfc_test): Add more tests.
25807         * sysdeps/i386/fpu/libm-test-ulps: Update.
25808         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25810
25811 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25812
25813         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25814         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25815         containing bit-fields.
25816         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25817         * soft-fp/single.h (_FP_UNION_S): Likewise.
25818         * soft-fp/double.h (_FP_UNION_D): Likewise.
25819
25820 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25821
25822         [BZ #13786]
25823         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25824         not include ../strcmp.S.
25825         [USE_AS_STRNCASECMP_L]: Likewise.
25826         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25827         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25828         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25829         (__strncasecmp_l_ia32): Define as alias to
25830         __strncasecmp_l_nonascii.
25831
25832         [BZ #5794]
25833         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25834         * sysdeps/i386/fpu/libm-test-ulps: Update.
25835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25836
25837         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25839
25840 2012-02-29  Jeff Law  <law@redhat.com>
25841
25842         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25843         out of bounds read.
25844
25845 2012-02-29  Marek Polacek  <polacek@redhat.com>
25846
25847         [BZ #13706]
25848         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25849         * elf/Makefile: Add rules to run tst-unused-dep.out.
25850
25851 2012-02-28  David S. Miller  <davem@davemloft.net>
25852
25853         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25854         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25855         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25856         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25857         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25858         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25859
25860 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25861
25862         * math/libm-test.inc (llround_test): Move one test from
25863         lround_test.  Use TEST_f_L in moved test.
25864         (lround_test): Move misplaced test to llround_test.  Add testcase
25865         from bug 2561.
25866
25867 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25868
25869         * sysdeps/x86_64/fpu/e_expf.S: New file.
25870         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25871
25872 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25873
25874         [BZ #13637]
25875         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25876         of remain_len that may cause incomplete multi-byte character and
25877         false match.
25878         * posix/bug-regex33.c: New file.
25879         * posix/Makefile (tests): Add bug-regex33.
25880
25881 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25882
25883         * manual/macros.texi: New file.
25884         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25885         * manual/libc.texinfo: Include macros.texi.
25886         * manual/creatute.texi: Likewise.
25887         * manual/install.texi: Likewise.
25888         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25889         @glibcadj{} in references to the GNU C Library.
25890         * manual/charset.texi: Likewise.
25891         * manual/conf.texi: Likewise.
25892         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25893         when not using those macros.
25894         * manual/creature.texi: Likewise.
25895         * manual/crypt.texi: Likewise.
25896         * manual/errno.texi: Likewise.
25897         * manual/filesys.texi: Likewise.
25898         * manual/header.texi: Likewise.
25899         * manual/install.texi: Likewise.
25900         * manual/intro.texi: Likewise.
25901         * manual/io.texi: Likewise.
25902         * manual/job.texi: Likewise.
25903         * manual/lang.texi: Likewise.
25904         * manual/libc.texiinfo: Likewise.
25905         * manual/llio.texi: Likewise.
25906         * manual/locale.texi: Likewise.
25907         * manual/maint.texi: Likewise.
25908         * manual/math.texi: Likewise.
25909         * manual/memory.texi: Likewise.
25910         * manual/message.texi: Likewise.
25911         * manual/nss.texi: Likewise.
25912         * manual/pattern.texi: Likewise.
25913         * manual/process.texi: Likewise.
25914         * manual/resource.texi: Likewise.
25915         * manual/search.texi: Likewise.
25916         * manual/setjmp.texi: Likewise.
25917         * manual/signal.texi: Likewise.
25918         * manual/socket.texi: Likewise.
25919         * manual/startup.texi: Likewise.
25920         * manual/stdio.texi: Likewise.
25921         * manual/string.texi: Likewise.
25922         * manual/sysinfo.texi: Likewise.
25923         * manual/syslog.texi: Likewise.
25924         * manual/terminal.texi: Likewise.
25925         * manual/time.texi: Likewise.
25926         * manual/users.texi: Likewise.
25927         * INSTALL: Regenerated.
25928         * NOTES: Regenerated.
25929         * sysdeps/gnu/errlist.c: Regenerated.
25930
25931 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
25932
25933         * include/dirent.h: Include <dirstream.h> before
25934         <dirent/dirent.h>.
25935
25936 2012-02-28  David S. Miller  <davem@davemloft.net>
25937
25938         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
25939         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
25940         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
25941         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
25942
25943 2012-02-27  David S. Miller  <davem@davemloft.net>
25944
25945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
25946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
25947         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
25948         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
25949
25950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
25951         frame pointer instead of stack pointer relative arg slot.
25952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25953         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25954         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25955
25956 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
25957
25958         [BZ #3992]
25959         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
25960
25961 2012-02-27  David S. Miller  <davem@davemloft.net>
25962
25963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
25964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25966         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
25967         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25968         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25969         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
25970         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
25971
25972 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25973
25974         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
25975         later.  Allow versions 5-9.
25976         * configure: Regenerated.
25977         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
25978         required minimum version and 4.6 as recommended version.  Do not
25979         mention bugs in GCC 2.7 and 2.8.
25980         * INSTALL: Regenerated.
25981
25982 2012-02-27  David S. Miller  <davem@davemloft.net>
25983
25984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
25985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
25986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
25987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
25988         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
25989         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
25990         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
25991         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
25992
25993         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
25994         manipulate bits before adding and subtracting TWO112[sx].
25995         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25996
25997 2012-02-27  Roland McGrath  <roland@hack.frob.com>
25998
25999         [BZ #13775]
26000         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
26001         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
26002         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
26003         being in POSIX, because they are in 1003.1-2008.
26004
26005         * rt/tst-aio.c: Include <fcntl.h>.
26006         * rt/tst-aio7.c: Likewise.
26007         * rt/tst-aio64.c: Likewise.
26008
26009         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
26010
26011 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26012
26013         * manual/install.texi (--with-headers): Describe headers as
26014         interface headers, not private headers.
26015         (Specific advice for GNU/Linux systems): Describe use of headers
26016         from "make headers_install", not private headers from older
26017         kernels.
26018         * INSTALL: Regenerated.
26019         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
26020         Change to 2.6.19.
26021         * sysdeps/unix/sysv/linux/configure: Regenerated.
26022
26023         * manual/llio.texi (fclean): Remove documentation.
26024
26025         * manual/Makefile (libc-texi-generated): New variable.  Include
26026         version.texi.
26027         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
26028         $(libc-texi-generated), not duplicated list of files.
26029         (version.texi, stamp-version): New rules.
26030         (realclean): Remove $(libc-texi-generated), not individual files
26031         from that list.  Do not remove dir-add.texinfo.
26032         * manual/libc.texinfo: Comment out uses of edition numbers and
26033         references to printed manual.  Remove last-updated dates.
26034         (EDITION): Comment out.
26035         (ISBN): Likewise.
26036         (VERSION, UPDATED): Remove.
26037         (version.texi): Include.
26038
26039 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
26040
26041         * sysdeps/posix/spawni.c: Include <signal.h>.
26042         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
26043         * sysdeps/pthread/aio_fsync.c: Likewise.
26044
26045 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
26046
26047         * conform/Makefile (tests): Run only when not cross-compiling and
26048         when fast-check is not defined.
26049
26050         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
26051         * conform/data/limits.h-data: Fixes for POSIX2008.
26052         * conform/run-conformtest.sh: Run all tests.
26053         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
26054         headers.
26055         * include/bits/dlfcn.h: Likewise.
26056         * include/langinfo.h: Likewise.
26057         * include/monetary.h: Likewise.
26058         * include/sys/poll.h: Likewise.
26059
26060         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
26061         for __USE_GNU.
26062         * posix/spawn.h: Define __need_sigset_t.
26063         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
26064         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
26065         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
26066         to get sigevent_t only.
26067         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
26068         only for __USE_GNU.
26069         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26070         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26071         process_vm_writev only for __USE_GNU.
26072         * termios/termios.h: Declare tcgetsid also for POSIX2008.
26073
26074         * conform/Makefile: For now ignore errors from run-conformtest.
26075         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
26076         POSIX to avoid namespace pollution.  Don't prepend headers.
26077         * conform/data/aio.h-data: Fixes for POSIX testing.
26078         * conform/data/fcntl.h-data: Likewise.
26079         * conform/data/glob.h-data: Likewise.
26080         * conform/data/grp.h-data: Likewise.
26081         * conform/data/pthread.h-data: Likewise.
26082         * conform/data/pwd.h-data: Likewise.
26083         * conform/data/signal.h-data: Likewise.
26084         * conform/data/spawn.h-data: Likewise.
26085         * conform/data/stdio.h-data: Likewise.
26086         * conform/data/stdlib.h-data: Likewise.
26087         * conform/data/stropts.h-data: Likewise.
26088         * conform/data/sys/mman.h-data: Likewise.
26089         * conform/data/sys/stat.h-data: Likewise.
26090         * conform/data/sys/types.h-data: Likewise.
26091         * conform/data/sys/wait.h-data: Likewise.
26092         * conform/data/time.h-data: Likewise.
26093         * conform/data/unistd.h-data: Likewise.
26094         * conform/data/utime.h-data: Likewise.
26095
26096         * io/sys/stat.h: fchmod was always in POSIX.
26097         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
26098         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
26099         * rt/aio.h: Define __need_timespec before including <time.h>.
26100         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
26101         struct.  Add forward declaration of pthread_attr_t and use it in
26102         sigevent.
26103         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26104         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26105         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
26106         always remove CLK_TCK definition.
26107
26108 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
26109
26110         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
26111
26112 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
26113
26114         * conform/run-conformtest.sh: New file.
26115         * conform/Makefile: Run run-conformtest for tests.
26116         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
26117         support.
26118
26119         * conform/data/uchar.h-data: New file.
26120         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
26121         * conform/data/arpa/inet.h-data: Likewise.
26122         * conform/data/assert.h-data: Likewise.
26123         * conform/data/complex.h-data: Likewise.
26124         * conform/data/cpio.h-data: Likewise.
26125         * conform/data/ctype.h-data: Likewise.
26126         * conform/data/dirent.h-data: Likewise.
26127         * conform/data/dlfcn.h-data: Likewise.
26128         * conform/data/errno.h-data: Likewise.
26129         * conform/data/fcntl.h-data: Likewise.
26130         * conform/data/float.h-data: Likewise.
26131         * conform/data/fmtmsg.h-data: Likewise.
26132         * conform/data/fnmatch.h-data: Likewise.
26133         * conform/data/ftw.h-data: Likewise.
26134         * conform/data/glob.h-data: Likewise.
26135         * conform/data/grp.h-data: Likewise.
26136         * conform/data/iconv.h-data: Likewise.
26137         * conform/data/inttypes.h-data: Likewise.
26138         * conform/data/langinfo.h-data: Likewise.
26139         * conform/data/libgen.h-data: Likewise.
26140         * conform/data/limits.h-data: Likewise.
26141         * conform/data/locale.h-data: Likewise.
26142         * conform/data/math.h-data: Likewise.
26143         * conform/data/monetary.h-data: Likewise.
26144         * conform/data/mqueue.h-data: Likewise.
26145         * conform/data/ndbm.h-data: Likewise.
26146         * conform/data/net/if.h-data: Likewise.
26147         * conform/data/netdb.h-data: Likewise.
26148         * conform/data/netinet/in.h-data: Likewise.
26149         * conform/data/nl_types.h-data: Likewise.
26150         * conform/data/poll.h-data: Likewise.
26151         * conform/data/pthread.h-data: Likewise.
26152         * conform/data/pwd.h-data: Likewise.
26153         * conform/data/regex.h-data: Likewise.
26154         * conform/data/sched.h-data: Likewise.
26155         * conform/data/search.h-data: Likewise.
26156         * conform/data/semaphore.h-data: Likewise.
26157         * conform/data/setjmp.h-data: Likewise.
26158         * conform/data/signal.h-data: Likewise.
26159         * conform/data/spawn.h-data: Likewise.
26160         * conform/data/stdarg.h-data: Likewise.
26161         * conform/data/stdio.h-data: Likewise.
26162         * conform/data/stdlib.h-data: Likewise.
26163         * conform/data/string.h-data: Likewise.
26164         * conform/data/strings.h-data: Likewise.
26165         * conform/data/stropts.h-data: Likewise.
26166         * conform/data/sys/ipc.h-data: Likewise.
26167         * conform/data/sys/mman.h-data: Likewise.
26168         * conform/data/sys/msg.h-data: Likewise.
26169         * conform/data/sys/resource.h-data: Likewise.
26170         * conform/data/sys/select.h-data: Likewise.
26171         * conform/data/sys/sem.h-data: Likewise.
26172         * conform/data/sys/shm.h-data: Likewise.
26173         * conform/data/sys/socket.h-data: Likewise.
26174         * conform/data/sys/stat.h-data: Likewise.
26175         * conform/data/sys/statvfs.h-data: Likewise.
26176         * conform/data/sys/time.h-data: Likewise.
26177         * conform/data/sys/timeb.h-data: Likewise.
26178         * conform/data/sys/times.h-data: Likewise.
26179         * conform/data/sys/types.h-data: Likewise.
26180         * conform/data/sys/uio.h-data: Likewise.
26181         * conform/data/sys/un.h-data: Likewise.
26182         * conform/data/sys/utsname.h-data: Likewise.
26183         * conform/data/sys/wait.h-data: Likewise.
26184         * conform/data/syslog.h-data: Likewise.
26185         * conform/data/tar.h-data: Likewise.
26186         * conform/data/termios.h-data: Likewise.
26187         * conform/data/utime.h-data: Likewise.
26188         * conform/data/utmpx.h-data: Likewise.
26189         * conform/data/varargs.h-data: Likewise.
26190         * conform/data/wchar.h-data: Likewise.
26191         * conform/data/wctype.h-data: Likewise.
26192         * conform/data/wordexp.h-data: Likewise.
26193
26194         * include/stropts.h: New file.
26195         * include/uchar.h: New file.
26196         * include/aio.h: Changes to allow conformtest.pl to use the headers.
26197         * include/assert.h: Likewise.
26198         * include/ctype.h: Likewise.
26199         * include/dirent.h: Likewise.
26200         * include/dlfcn.h: Likewise.
26201         * include/fcntl.h: Likewise.
26202         * include/fnmatch.h: Likewise.
26203         * include/glob.h: Likewise.
26204         * include/grp.h: Likewise.
26205         * include/libio.h: Likewise.
26206         * include/locale.h: Likewise.
26207         * include/math.h: Likewise.
26208         * include/net/if.h: Likewise.
26209         * include/netdb.h: Likewise.
26210         * include/netinet/in.h: Likewise.
26211         * include/pthread.h: Likewise.
26212         * include/pwd.h: Likewise.
26213         * include/regex.h: Likewise.
26214         * include/sched.h: Likewise.
26215         * include/search.h: Likewise.
26216         * include/setjmp.h: Likewise.
26217         * include/signal.h: Likewise.
26218         * include/stdio.h: Likewise.
26219         * include/stdlib.h: Likewise.
26220         * include/string.h: Likewise.
26221         * include/sys/cdefs.h: Likewise.
26222         * include/sys/mman.h: Likewise.
26223         * include/sys/msg.h: Likewise.
26224         * include/sys/resource.h: Likewise.
26225         * include/sys/select.h: Likewise.
26226         * include/sys/socket.h: Likewise.
26227         * include/sys/stat.h: Likewise.
26228         * include/sys/statvfs.h: Likewise.
26229         * include/sys/time.h: Likewise.
26230         * include/sys/times.h: Likewise.
26231         * include/sys/uio.h: Likewise.
26232         * include/sys/utsname.h: Likewise.
26233         * include/sys/wait.h: Likewise.
26234         * include/termios.h: Likewise.
26235         * include/time.h: Likewise.
26236         * include/ulimit.h: Likewise.
26237         * include/unistd.h: Likewise.
26238         * include/utime.h: Likewise.
26239         * include/wchar.h: Likewise.
26240         * include/wctype.h: Likewise.
26241         * include/wordexp.h: Likewise.
26242
26243         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
26244
26245         * time/time.h: TIME_UTC must be a macro.
26246         Make timespec_get available for ISO C11 only as well.
26247
26248 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
26249
26250         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
26251         Reported by Peng Haitao <penght@cn.fujitsu.com>.
26252
26253 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26254
26255         * configure.in: Use -o not -a in test for unsupported multi-arch.
26256
26257 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26258
26259         * manual/texinfo.tex: Update to version 2012-01-19.16.
26260
26261 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26262
26263         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
26264
26265 2012-02-24  Roland McGrath  <roland@hack.frob.com>
26266
26267         [BZ #13738]
26268         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
26269         * manual/fdl-1.3.texi: New file.
26270         * manual/fdl-1.1.texi: File removed.
26271
26272         [BZ #13738]
26273         * manual/libc.texinfo (FDL_VERSION): New @set.
26274         Use it for mention of FDL in cover text.
26275         (Documentation License): Use it in @include file name.
26276
26277 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26278             Roland McGrath  <roland@hack.frob.com>
26279
26280         [BZ #5461]
26281         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
26282         not LONG_LONG_MAX and LONG_LONG_MIN.
26283         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
26284         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
26285         name.
26286         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
26287
26288 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26289
26290         [BZ #2547]
26291         [BZ #11365]
26292         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
26293         manipulate bits before adding and subtracting TWO23[sx].
26294         * math/libm-test.inc (nearbyint_test): Add more tests.
26295
26296 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26297
26298         [BZ #2548]
26299         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
26300         bits before adding and subtracting TWO23[sx].
26301         * math/libm-test.inc (rint_test): Add more tests.
26302         (rint_test_tonearest): Likewise.
26303         (rint_test_towardzero): Likewise.
26304         (rint_test_downward): Likewise.
26305         (rint_test_upward: Likewise.
26306
26307 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26308
26309         [BZ #10110]
26310         * include/stdc-predef.h: New file.  Extracted from features.h.
26311         * include/features.h: Include stdc-predef.h.
26312         * Makefile (headers): Add stdc-predef.h.
26313         * CONFORMANCE (Compiler limitations): Update.
26314
26315 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26316
26317         * manual/libc.texinfo (VERSION, UPDATED): Revert.
26318
26319 2012-02-21  David S. Miller  <davem@davemloft.net>
26320
26321         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
26322         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26323
26324 2012-02-20  David S. Miller  <davem@davemloft.net>
26325
26326         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
26327         using a normal save/restore sequence, rather than allocating a
26328         dummy stack frame just to store a frame pointer and restore.
26329         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26330
26331 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26332
26333         * manual/install.texi: Fix stray word in line-wrapped comment.
26334
26335 2012-02-20  David S. Miller  <davem@davemloft.net>
26336
26337         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
26338         both binutils and gcc support GOTDATA.
26339
26340         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
26341         "rd %pc" in the PIC register setup sequences.
26342
26343         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
26344         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
26345         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
26346         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
26347         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
26348         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26349         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26350         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26351         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
26352         (SYSCALL_ERROR_HANDLER): Likewise.
26353         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
26354         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
26355         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
26356         (SYSCALL_ERROR_HANDLER): Likewise.
26357
26358         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
26359         (HAVE_GCC_GOTDATA): New.
26360         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
26361         relocation support in both binutils and gcc.
26362         * sysdeps/sparc/elf/configure: Regenerate.
26363
26364         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
26365         * sysdeps/sparc/sparc32/elf/configure: Delete.
26366         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
26367         * sysdeps/sparc/sparc64/elf/configure: Delete.
26368         * sysdeps/sparc/elf/configure.in: New file.
26369         * sysdeps/sparc/elf/configure: Generate.
26370
26371         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
26372         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
26373         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
26374         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
26375         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
26376
26377 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26378
26379         * manual/install.texi: Do not mention specific glibc version
26380         numbers.
26381         * manual/libc.texinfo (VERSION, UPDATED): Update.
26382         (@copying): Use @copyright{} and range of years.
26383
26384 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26385
26386         [BZ #13695]
26387         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
26388         [crti.S not in sysdirs] (generated): Do not append.
26389         [crti.S not in sysdirs] (omit-deps): Likewise.
26390         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
26391         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
26392         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
26393         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
26394         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
26395         Likewise.
26396         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
26397         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
26398         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
26399         * csu/defs.awk: Remove file.
26400         * sysdeps/generic/initfini.c: Likewise.
26401         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
26402         variable.
26403         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
26404         Likewise.
26405
26406 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26407
26408         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
26409         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
26410         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
26411         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
26412         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26413         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
26414         <bits/epoll.h>.
26415         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
26416         (__EPOLL_PACKED): Define to empty if not defined by
26417         <bits/epoll.h>.
26418         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
26419         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26420         bits/epoll.h.
26421
26422 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26423
26424         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
26425         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
26426         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
26427         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
26428         <bits/timerfd.h>.
26429         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
26430         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26431         bits/timerfd.h.
26432
26433 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26434
26435         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
26436         in C locale.
26437         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26438         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
26439         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
26440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26441
26442 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
26443
26444         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26445         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26446
26447 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26448
26449         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
26450         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
26451         defined.
26452         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
26453         Likewise.
26454         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
26455         entry for 2.16.
26456
26457 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
26458
26459         * math/w_acos.c: Use non-signaling floating-point comparisons.
26460         * math/w_acosf.c: Likewise.
26461         * math/w_acosh.c: Likewise.
26462         * math/w_acoshf.c: Likewise.
26463         * math/w_acoshl.c: Likewise.
26464         * math/w_acosl.c: Likewise.
26465         * math/w_asin.c: Likewise.
26466         * math/w_asinf.c: Likewise.
26467         * math/w_asinl.c: Likewise.
26468         * math/w_atanh.c: Likewise.
26469         * math/w_atanhf.c: Likewise.
26470         * math/w_atanhl.c: Likewise.
26471         * math/w_exp2.c: Likewise.
26472         * math/w_exp2f.c: Likewise.
26473         * math/w_exp2l.c: Likewise.
26474         * math/w_j0.c: Likewise.
26475         * math/w_j0f.c: Likewise.
26476         * math/w_j0l.c: Likewise.
26477         * math/w_j1.c: Likewise.
26478         * math/w_j1f.c: Likewise.
26479         * math/w_j1l.c: Likewise.
26480         * math/w_jn.c: Likewise.
26481         * math/w_jnf.c: Likewise.
26482         * math/w_log.c: Likewise.
26483         * math/w_log10.c: Likewise.
26484         * math/w_log10f.c: Likewise.
26485         * math/w_log10l.c: Likewise.
26486         * math/w_log2.c: Likewise.
26487         * math/w_log2f.c: Likewise.
26488         * math/w_log2l.c: Likewise.
26489         * math/w_logf.c: Likewise.
26490         * math/w_logl.c: Likewise.
26491         * math/w_sqrt.c: Likewise.
26492         * math/w_sqrtf.c: Likewise.
26493         * math/w_sqrtl.c: Likewise.
26494         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
26495         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
26496         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26497         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26498         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26499
26500 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26501
26502         [BZ #9739]
26503         * manual/string.texi (strnlen): Use correct parameter name in
26504         equivalent expression.
26505
26506 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26507
26508         [BZ #11174]
26509         * manual/users.texi (seteuid): Consistently use neweuid for
26510         argument name.
26511
26512 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26513
26514         [BZ #13704]
26515         * manual/nss.texi (Services in the NSS configuration): Correct
26516         list of services in example configuration file.
26517
26518 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
26519
26520         [BZ #11322]
26521         * manual/arith.texi: Remove statements about negative zero
26522         behaving identically to zero.
26523
26524 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26525
26526         [BZ #5993]
26527         * manual/install.texi: Do not document upgrading from libc5.
26528
26529 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26530
26531         [BZ #4596]
26532         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
26533
26534 2012-02-18  David S. Miller  <davem@davemloft.net>
26535
26536         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
26537         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
26538         %o7 across the call.
26539         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
26540         instead.
26541         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
26542         SETUP_PIC_REG_LEAF.
26543         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26544         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
26545         * sysdeps/sparc/crtn.S: Likewise.
26546
26547 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
26548
26549         * aout/Makefile: Remove.
26550
26551 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
26552
26553         [BZ #13058]
26554         * manual/examples/argp-ex1.c (main): Format definition in GNU
26555         style.
26556         * manual/examples/argp-ex2.c (main): Likewise.
26557         * manual/examples/argp-ex3.c (main): Likewise.
26558         * manual/examples/argp-ex4.c (main): Likewise.
26559         * manual/examples/longopt.c (main): Use new-style prototype
26560         definition.
26561         * manual/examples/strncat.c (main): Specify return type and use
26562         (void) for arguments.
26563         * manual/examples/subopt.c (main): Use char **argv argument.
26564
26565 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26566
26567         [BZ #5077]
26568         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
26569         rounding modes.
26570
26571 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
26572
26573         [BZ #6907]
26574         * manual/string.texi (strchr): Change when strchrnul is
26575         recommended.
26576
26577 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
26578
26579         [BZ #174]
26580         * manual/locale.texi (setlocale): Document LOCPATH.
26581
26582 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26583
26584         [BZ #10210]
26585         * manual/process.texi (execle): Move @dots{} before last argument.
26586
26587 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
26588
26589         [BZ #12047]
26590         * manual/charset.texi (Generic Charset Conversion): Fix typo
26591         (LC_TYPE -> LC_CTYPE).
26592
26593 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
26594
26595         [BZ #5805]
26596         * manual/arith.texi (scalbn): Use @var{} on parameter names.
26597         (scalbnf): Likewise.
26598         (scalbnl): Likewise.
26599         (scalbln): Likewise.
26600         (scalblnf): Likewise.
26601         (scalblnl): Likewise.
26602         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
26603         (vwarnx): Likewise.
26604         (verr): Likewise.
26605         (verrx): Likewise.
26606         * manual/filesys.texi (telldir): Use braces around return type.
26607         * manual/llio.texi (mmap): Add space after comma.
26608         (mmap64): Likewise.
26609         * manual/math.texi (jn): Use @var{} on parameter names.
26610         (jnf): Likewise.
26611         (jnl): Likewise.
26612         (yn): Likewise.
26613         (ynf): Likewise.
26614         (ynl): Likewise.
26615         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
26616         line.
26617         * manual/resource.texi (ulimit): Use @dots{} instead of literal
26618         "...".
26619         (sched_get_priority_min): Remove semicolon on @deftypefun line.
26620         (sched_get_priority_max): Likewise.
26621         * manual/signal.texi (sigvec): Add space after comma.
26622         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
26623         names.
26624         (if_indextoname): Likewise.
26625         (if_freenameindex): Likewise.
26626         (sendto): Use ',' instead of '.' in prototype.
26627         * manual/startup.texi (syscall): Use @dots{} instead of literal
26628         "...".
26629         * manual/stdio.texi (__fpending): Separate initial words of
26630         paragraph from @deftypefun line.
26631         * manual/syslog.texi (syslog): Use @dots{} instead of literal
26632         "...".
26633         (vsyslog): Use @var{} on parameter names.
26634         * manual/terminal.texi (stty): Use @var{} on parameter names.
26635         * manual/users.texi (getutmp): Use @var{} on parameter names.
26636         (getutmpx): Likewise.
26637
26638 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26639
26640         [BZ #6884]
26641         * manual/stdio.texi (fopen): Fix typos in description of
26642         ",ccs=STRING".
26643
26644 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
26645
26646         [BZ #4026]
26647         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
26648         get clock_id definition.
26649
26650 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
26651
26652         [BZ #4822]
26653         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
26654         (madvise): Cast every argument to void on its own.
26655
26656 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26657
26658         [BZ #9902]
26659         * manual/startup.texi (Exit Status): Fix typo.
26660
26661 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26662
26663         [BZ #10140]
26664         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26665         * manual/examples/argp-ex2.c: Likewise.
26666         * manual/examples/argp-ex3.c: Likewise.
26667
26668 2012-02-16  Richard Henderson  <rth@redhat.com>
26669
26670         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26671         * sysdeps/s390/s390-32/initfini.c: Remove.
26672         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26673         * sysdeps/s390/s390-64/initfini.c: Remove.
26674
26675 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26676
26677         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26678         compiler output for sysdeps/generic/initfini.c.
26679         * sysdeps/sh/elf/initfini.c: Remove file.
26680
26681 2012-02-16  David S. Miller  <davem@davemloft.net>
26682
26683         [BZ #11494]
26684         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26685
26686         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26687         * sysdeps/sparc/crti.S: New file.
26688         * sysdeps/sparc/crtn.S: New file.
26689         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26690         * sysdeps/sparc/sparc64/Makefile: Likewise.
26691
26692 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26693
26694         [BZ #3335]
26695         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26696
26697 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26698
26699         [BZ #4822]
26700         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26701
26702         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26703         (write, read, close): Likewise.
26704         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26705
26706 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26707
26708         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26709         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26710         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26711         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26712         <bits/signalfd.h>.
26713         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26714         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26715         bits/signalfd.h.
26716
26717 2012-02-14  Marek Polacek  <polacek@redhat.com>
26718
26719         * sysdeps/x86_64/crti.S: New file.
26720         * sysdeps/x86_64/crtn.S: New file.
26721         * sysdeps/x86_64/elf/initfini.c: Remove file.
26722
26723 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26724
26725         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26726         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26727         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26728         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26729         <bits/inotify.h>.
26730         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26731         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26732         bits/inotify.h.
26733
26734 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26735
26736         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26737         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26738         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26739         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26740         <bits/eventfd.h>.
26741         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26742         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26743         bits/eventfd.h.
26744
26745 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26746
26747         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26748         __feraiseexcept instead of feraiseexcept.
26749
26750         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26751         nanosleep invocations.
26752         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26753         strings, and add error checking for a nanosleep invocations.
26754
26755 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26756
26757         Replace FSF snail mail address with URLs, as per GNU coding standards.
26758         Most of the snail mail addresses were wrong anyway, and omitting
26759         them makes the source code easier to maintain.  Almost all of the
26760         changes are to license notices and to locale LC_IDENTIFICATION
26761         addresses, except for this one:
26762         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26763         not its snail mail address.
26764
26765 2012-02-09  Richard Henderson  <rth@twiddle.net>
26766
26767         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26768         of kernel-features.h.
26769
26770         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26771
26772 2012-02-08  Marek Polacek  <polacek@redhat.com>
26773
26774         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26775         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26776         * sysdeps/gnu/_G_config.h: Likewise.
26777         * sysdeps/generic/_G_config.h: Likewise.
26778
26779 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26780
26781         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26782         tests.
26783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26784
26785         * sysdeps/powerpc/powerpc32/crti.S: New file.
26786         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26787         * sysdeps/powerpc/powerpc64/crti.S: New file.
26788         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26789
26790         * Makeconfig (have-initfini): Don't set.
26791         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26792         * configure.in (nopic_initfini): Don't substitute.
26793         * config.h.in (HAVE_INITFINI): Don't #undef.
26794         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26795         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26796
26797 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26798
26799         Support crti.S and crtn.S provided directly by architectures.
26800         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26801         [crti.S in sysdirs] (omit-deps): Likewise.
26802         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26803         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26804         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26805         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26806         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26807         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26808         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26809         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26810         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26811         compiler output for sysdeps/generic/initfini.c.
26812         * sysdeps/i386/elf/Makefile: Remove file.
26813         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26814
26815 2012-02-07  Marek Polacek  <polacek@redhat.com>
26816
26817         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26818         * sysdeps/gnu/_G_config.h: Likewise.
26819         * sysdeps/mach/hurd/_G_config.h: Likewise.
26820
26821 2012-02-07  Marek Polacek  <polacek@redhat.com>
26822
26823         * math/Makefile (tests): Add tst-CMPLX2.
26824         * math/tst-CMPLX2.c: New file.
26825
26826 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26827
26828         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26829
26830         * math/libm-test.inc (jn_test): Add missing L suffix.
26831
26832 2012-02-06  Marek Polacek  <polacek@redhat.com>
26833
26834         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26835         * sysdeps/i386/fpu/e_powf.S: Likewise.
26836         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26837         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26838         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26839         * sysdeps/i386/fpu/e_pow.S: Likewise.
26840         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26841         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26842         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26843         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26844         * sysdeps/i386/fpu/e_log2.S: Likewise.
26845         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26846         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26847         * sysdeps/i386/fpu/e_powl.S: Likewise.
26848         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26849         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26850         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26851         * sysdeps/i386/fpu/e_logl.S: Likewise.
26852         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26853         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26854         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26855         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26856         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26857         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26858         * sysdeps/i386/fpu/e_log.S: Likewise.
26859         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26860         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26861         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26862         * sysdeps/i386/fpu/e_logf.S: Likewise.
26863         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26864         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26865         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26866         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26867         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26868         * sysdeps/i386/fpu/e_log10.S: Likewise.
26869         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26870         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26871         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26872         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26873         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26874         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26875         * sysdeps/i386/asm-syntax.h: Likewise.
26876         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26877         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26878         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26879         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26880         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26881         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26882         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26883         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26884         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26885         * sysdeps/powerpc/sysdep.h: Likewise.
26886         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26887         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26888
26889 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26890
26891         [BZ #411]
26892         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26893
26894 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26895
26896         * sysdeps/i386/sysdep.h: Include <features.h>.
26897         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26898         version.
26899
26900 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26901
26902         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26903         Define.
26904         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26905         LOAD_PIC_REG_STR.
26906
26907 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26908
26909         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26910         (SETUP_PIC_REG): Use GET_PC_THUNK.
26911         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26912         macro.
26913
26914 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26915
26916         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
26917         for non-PIC compilation.
26918         (SETUP_PIC_REG): Add .p2align directive.
26919         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
26920         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
26921         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26922         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26923         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
26924         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26925         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
26926         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26927         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26928         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26929         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26930         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26931         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26932         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26933         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26934         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
26935         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
26936         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26937         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26938         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26939         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26940         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
26941         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26942         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26943         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
26944         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
26945         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26946         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
26947         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26948         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26949         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26950         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26951         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26952         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26953         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26954         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26955         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26956         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26957         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26958         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26959         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26960
26961 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26962
26963         * math/tst-CMPLX.c: Include <stdio.h>.
26964
26965 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
26966
26967         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
26968         float.
26969         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26970         * sysdeps/sparc/bits/mathdef.h: Likewise.
26971
26972 2012-01-31  Marek Polacek  <polacek@redhat.com>
26973
26974         * libio/libio.h: Don't define _PARAMS.
26975         * locale/programs/config.h: Don't define PARAMS.
26976         * stdlib/strtol_l.c: Likewise.
26977         (__strtol_l): Remove PARAMS from the prototype.
26978
26979 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
26980
26981         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
26982         names.  Just use the correct names.  Remove unnecessary wrapper
26983         functions.
26984         * malloc/arena.c: Likewise.
26985         * malloc/hooks.c: Likewise.
26986
26987         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
26988         ARENA_TEST says not to.  Simplify test for creation of a new arena.
26989         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
26990
26991 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
26992
26993         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
26994         into tail calls.
26995         (update_get_addr): New function.
26996         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
26997         GET_ADDR_MODULE parameter.
26998
26999 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27000
27001         * crypt/cert.c: Remove __STDC__ conditionals.
27002         * crypt/crypt-entry.c: Likewise.
27003         * crypt/crypt_util.c: Likewise.
27004         * libio/filedoalloc.c: Likewise.
27005         * libio/fileops.c: Likewise.
27006         * libio/genops.c: Likewise.
27007         * libio/iofclose.c: Likewise.
27008         * libio/iofdopen.c: Likewise.
27009         * libio/iofopen.c: Likewise.
27010         * libio/iofopen64.c: Likewise.
27011         * libio/iogetdelim.c: Likewise.
27012         * libio/iopopen.c: Likewise.
27013         * libio/obprintf.c: Likewise.
27014         * libio/oldfileops.c: Likewise.
27015         * libio/oldiofclose.c: Likewise.
27016         * libio/oldiofdopen.c: Likewise.
27017         * libio/oldiofopen.c: Likewise.
27018         * libio/oldiopopen.c: Likewise.
27019         * libio/wfiledoalloc.c: Likewise.
27020         * libio/wgenops.c: Likewise.
27021         * locale/programs/xmalloc.c: Likewise.
27022         * misc/syslog.c: Likewise.
27023         * stdio-common/xbug.c: Likewise.
27024         * string/memchr.c: Likewise.
27025         * string/memcmp.c: Likewise.
27026         * string/memrchr.c: Likewise.
27027         * string/rawmemchr.c: Likewise.
27028         * sysdeps/posix/getcwd.c: Likewise.
27029         * time/strftime_l.c: Likewise.
27030
27031 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27032
27033         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
27034         * config.make.in (config-cflags-sse2avx): Define.
27035         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
27036         Fix typo.
27037
27038 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
27039
27040         * scripts/config.guess: Update from upstream config git repository.
27041         * scripts/config.sub: Likewise.
27042
27043 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
27044
27045         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
27046         (EM_NUM): Update.
27047         (R_TILEPRO_*, R_TILEGX_*): New macros.
27048
27049         * scripts/firstversions.awk: Fix bug in version range handling.
27050
27051         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
27052
27053         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
27054
27055         * include/sys/epoll.h: New file.
27056         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
27057         libc_hidden_def.
27058
27059 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
27060
27061         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
27062         Avoid unnecessary __WORDSIZE == 64 test.
27063         (fmaxf): Use VEX format if possible.
27064         (fmax): Likewise.
27065         (fminf): Likewise.
27066         (fmin): Likewise.
27067
27068         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
27069         * math/math_private.h: Remove libc_fegetround* and
27070         libc_fesetround*.
27071         * sysdeps/i386/configure.in: Check for -msse2avx.
27072         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
27073         also if SSE2AVX is defined.
27074         Remove libc_fegetround* and libc_fesetround*.
27075         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
27076         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
27077         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
27078         of HAS_YMM_USABLE.
27079         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27080         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27081         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27082         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27083         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27084
27085         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
27086
27087 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27088
27089         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
27090         size is not set.
27091         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27092
27093 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
27094
27095         [BZ #13618]
27096         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
27097         relocation.
27098         * Makeconfig (libm): Define.
27099         * elf/Makefile: Add rules to build and run tst-relsort1.
27100         * elf/tst-relsort1.c: New file.
27101         * elf/tst-relsort1mod1.c: New file.
27102         * elf/tst-relsort1mod2.c: New file.
27103
27104 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
27105
27106         * math/s_ldexp.c: Remove __STDC__ conditionals.
27107         * math/s_ldexpf.c: Likewise.
27108         * math/s_ldexpl.c: Likewise.
27109         * math/s_nextafter.c: Likewise.
27110         * math/s_nexttowardf.c: Likewise.
27111         * math/s_significand.c: Likewise.
27112         * math/s_significandf.c: Likewise.
27113         * math/s_significandl.c: Likewise.
27114         * math/w_jnl.c: Likewise.
27115         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27116         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27117         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27118         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27119         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27120         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27121         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
27122         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27123         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27124         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27125         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27126         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27127         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27128         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27129         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27130         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27131         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27132         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27133         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27134         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27135         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27136         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
27137         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
27138         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
27139         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
27140         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
27141         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
27142         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
27143         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
27144         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
27145         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
27146         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
27147         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
27148         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
27149         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
27150         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
27151         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
27152         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
27153         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
27154         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
27155         * sysdeps/ieee754/k_standard.c: Likewise.
27156         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27157         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
27158         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
27159         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
27160         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
27161         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
27162         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
27163         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
27164         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
27165         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
27166         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
27167         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
27168         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
27169         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
27170         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
27171         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
27172         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
27173         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
27174         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
27175         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
27176         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
27177         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
27178         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
27179         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
27180         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
27181         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
27182         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27183         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27184         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
27185         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
27186         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
27187         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
27188         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27189         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
27190         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
27191         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
27192         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
27193         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27194         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
27195         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
27196         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
27197         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
27198         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
27199         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
27200         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27201         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
27202         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
27203         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
27204         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
27205         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
27206         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
27207         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
27208         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27209         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
27210         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
27211         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
27212         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
27213         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27214         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27215         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27216         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
27217         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
27218         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
27219         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
27220         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
27221         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
27222         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
27223         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
27224         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
27225         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
27226         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
27227         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
27228         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
27229         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
27230         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
27231         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
27232         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
27233         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
27234         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
27235         * sysdeps/ieee754/s_matherr.c: Likewise.
27236         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
27237         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
27238         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
27239         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
27240
27241 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27242
27243         * crypt/md5.h: Remove __STDC__ conditionals.
27244         * libio/libioP.h: Likewise.
27245         * locale/programs/config.h: Likewise.
27246         * sysdeps/generic/sysdep.h: Likewise.
27247         * sysdeps/i386/asm-syntax.h: Likewise.
27248         * sysdeps/s390/asm-syntax.h: Likewise.
27249         * sysdeps/unix/sysdep.h: Likewise.
27250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27252
27253 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27254
27255         * libio/libio.h: Remove __STDC__ conditionals.
27256         * malloc/obstack.h: Likewise.
27257         * math/complex.h: Likewise.
27258         * math/math.h: Likewise.
27259         * sysdeps/generic/_G_config.h: Likewise.
27260         * sysdeps/gnu/_G_config.h: Likewise.
27261         * sysdeps/mach/hurd/_G_config.h: Likewise.
27262         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27263         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27264         * sysdeps/sparc/bits/mathdef.h: Likewise.
27265
27266 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
27267
27268         [BZ #13583]
27269         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
27270         Clean up HAS_* macros.
27271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
27272         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
27273         possible.
27274         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
27275         HAS_AVX.
27276         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27277         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27278         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27279         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27280         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27281
27282 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
27283
27284         * elf/tst-unique3.cc (gets): Remove declaration.
27285         * elf/tst-unique3lib.cc (gets): Likewise.
27286         * elf/tst-unique3lib2.cc (gets): Likewise.
27287         * elf/tst-unique4.cc (gets): Likewise.
27288
27289 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
27290
27291         * include/stdio.h: Add C++ protection.  Add gets declarations and
27292         definitions.
27293         * debug/tst-chk1.c: Don't declare gets here.
27294         * stdio-common/tst-gets.c: Likewise.
27295
27296 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27297
27298         * posix/glob: Remove directory.
27299
27300 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27301
27302         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
27303
27304 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
27305
27306         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
27307         of the non-standard EPFNOSUPPORT.
27308
27309 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27310
27311         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
27312         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
27313         ANYWHERE set to 1 only on KERN_NO_SPACE error.
27314
27315 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
27316
27317         * wcsmbs/uchar.h: Test __STDC_VERSION__.
27318
27319 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
27320
27321         * nscd/aicache.c (addhstaiX): Do not cache negative results of
27322         transient errors.
27323         * nscd/grpcache.c (cache_addgr): Likewise.
27324         * nscd/hstcache.c (cache_addhst): Likewise.
27325         * nscd/initgrcache.c (addinitgroupsX): Likewise.
27326         * nscd/pwdcache.c (cache_addpw): Likewise.
27327         * nscd/servicescache.c (cache_addserv): Likewise.
27328
27329 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
27330
27331         * malloc/malloc.c: Various cleanups.
27332         * malloc/hooks.c: Likewise.
27333
27334         * stdlib/Makefile (tests): Add bug-fmtmsg1.
27335         * stdlib/bug-fmtmsg1.c: New file.
27336
27337         * stdlib/fmtmsg.c (init): Add missing unlock.
27338         Patch by Peng Haitao <penght@cn.fujitsu.com>.
27339
27340 2012-01-12  Marek Polacek  <polacek@redhat.com>
27341
27342         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
27343         and _GNU_SOURCE.
27344
27345 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
27346
27347         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
27348         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
27349         macro to ensure uniqueness of label name.
27350         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27351         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27352
27353 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
27354
27355         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
27356
27357         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
27358         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
27359         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
27360         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
27361
27362 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
27363
27364         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
27365
27366         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
27367         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
27368         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
27369
27370         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
27371
27372         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
27373         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
27374         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
27375         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
27376
27377         * math/bits/math-finite.h: Add ldexp support.
27378
27379 2012-01-10  Marek Polacek  <polacek@redhat.com>
27380
27381         * locale/programs/localedef.h (show_archive_content): Add noreturn
27382         attribute.
27383
27384 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
27385
27386         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
27387
27388 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27389
27390         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
27391
27392         * io/Makefile (headers): Add bits/poll2.h.
27393
27394 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
27395
27396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
27397         typo #include statement.
27398
27399 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27400
27401         * include/sys/cdefs.h: Define __attribute_alloc_size.
27402         * catgets/gencat.c: Add alloc_size attribute and apply consistently
27403         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
27404         * elf/pldd.c: Likewise.
27405         * iconv/iconv_charmap.c: Likewise.
27406         * iconv/iconvconfig.c: Likewise.
27407         * iconv/strtab.c: Likewise.
27408         * locale/programs/locale.c: Likewise.
27409         * locale/programs/localedef.h: Likewise.
27410         * locale/programs/simple-hash.c: Likewise.
27411         * nscd/nscd.h: Likewise.
27412         * nss/makedb.c: Likewise.
27413         * sysdeps/generic/ldconfig.h: Likewise.
27414         * locale/programs/localedef.c: Remove xmalloc prototype.
27415         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
27416
27417 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27418
27419         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
27420         appropriate.
27421
27422 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27423
27424         * math/Makefile (tests): Add tst-CMPLX.
27425         * math/tst-CMPLX.c: New file.
27426
27427         * math/complex.h (CMPLXL): Fix typo.
27428
27429         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
27430         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
27431         GLIBC_2.16.
27432         * debug/tst-chk1.c: Add poll and ppoll tests.
27433         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
27434         * include/sys/poll.h: Add hidden proto for ppoll.
27435         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
27436         * sysdeps/mach/hurd/ppoll.c: Likewise.
27437         * io/ppoll.c: Likewise.
27438         * debug/poll_chk.c: New file.
27439         * debug/ppoll_chk.c: New file.
27440         * include/bits/poll2.h: New file.
27441         * io/bits/poll2.h: New file.
27442
27443         [BZ #1350]
27444         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
27445
27446         * configure.in: static is always set to yes.  Remove.
27447         * config.make.in: Don't set build-static.
27448         * Makeconfig: Remove use of build-static.
27449         * dlfcn/Makefile: Likewise.
27450         * elf/Makefile: Likewise.
27451         * math/Makefile: Likewise.
27452         * misc/Makefile: Likewise.
27453         * nptl/Makefile: Likewise.
27454         * sysdeps/mach/hurd/Makefile: Likewise.
27455
27456         * configure.in: PWD_P is not used anymore.
27457         * config.make.in: Remove PWD_P entry.
27458
27459         * configure.in: Remove last remnants of RANLIB.
27460         No need to check for signed size_t anymore.
27461         Don't set libc_commonpagesize and libc_relro_required here for Alpha
27462         and IA-64.
27463         Remove __builtin_expect test because we require at least gcc 3.4.
27464         * aclocal.m4: Likewise.
27465
27466         * wcsmbs/mbrtoc16.c: Implement using towc function.
27467         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
27468         * wcsmbs/wcsmbsload.c: Likewise.
27469         * iconv/gconv_simple.c: Likewise.
27470         * iconv/gconv_int.h: Likewise.
27471         * iconv/gconv_builtin.h: Likewise.
27472         * iconv/iconv_prog.c: Remove CHAR16 handling.
27473
27474         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
27475
27476         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
27477
27478         * configure.in: Remove --with-elf and --enable-bounded options.
27479         Dont set base_machine for ia64.  More non-ELF conditions removed.
27480         Remove testing and setting of leading underscore information.
27481         * config.make.in (build-bounded): Set to no.
27482         * config.h.in: Remove NO_UNDERSCORES entry.
27483         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
27484         them.
27485         * csu/start.c: Remove !NO_UNDERSCORE code.
27486         * locale/localeinfo.h: Likewise.
27487         * sysdeps/generic/machine-gmon.h: Likewise.
27488         * sysdeps/generic/sysdep.h: Likewise.
27489         * sysdeps/i386/sysdep.h: Likewise.
27490         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27491         * sysdeps/mach/sysdep.h: Likewise.
27492         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27493         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27494         * sysdeps/sh/sysdep.h: Likewise.
27495         * sysdeps/sparc/sparc32/alloca.S: Likewise.
27496         * sysdeps/unix/i386/sysdep.S: Likewise.
27497         * sysdeps/unix/sparc/start.c: Likewise.
27498         * sysdeps/unix/sparc/sysdep.S: Likewise.
27499         * sysdeps/unix/sparc/sysdep.h: Likewise.
27500         * sysdeps/unix/start.c: Likewise.
27501         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27502         * sysdeps/x86_64/sysdep.h: Likewise.
27503
27504 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
27505
27506         [BZ #13553]
27507         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
27508         for non-gcc.
27509         * argp/argp-fmtstream.h: Use const instead __const.
27510         * argp/argp.h: Likewise.
27511         * assert/assert.h: Likewise.
27512         * bits/fenv.h: Likewise.
27513         * bits/sched.h: Likewise.
27514         * bits/sigset.h: Likewise.
27515         * bits/sigthread.h: Likewise.
27516         * catgets/nl_types.h: Likewise.
27517         * conform/data/pthread.h-data: Likewise.
27518         * crypt/crypt-private.h: Likewise.
27519         * crypt/crypt.h: Likewise.
27520         * crypt/crypt_util.c: Likewise.
27521         * ctype/ctype.h: Likewise.
27522         * debug/execinfo.h: Likewise.
27523         * debug/mbsnrtowcs_chk.c: Likewise.
27524         * debug/mbsrtowcs_chk.c: Likewise.
27525         * debug/wcsnrtombs_chk.c: Likewise.
27526         * debug/wcsrtombs_chk.c: Likewise.
27527         * debug/wcstombs_chk.c: Likewise.
27528         * dirent/dirent.h: Likewise.
27529         * dlfcn/dlfcn.h: Likewise.
27530         * elf/neededtest4.c: Likewise.
27531         * grp/grp.h: Likewise.
27532         * gshadow/gshadow.h: Likewise.
27533         * iconv/gconv.h: Likewise.
27534         * iconv/gconv_int.h: Likewise.
27535         * iconv/gconv_simple.c: Likewise.
27536         * iconv/iconv.h: Likewise.
27537         * iconv/loop.c: Likewise.
27538         * iconv/skeleton.c: Likewise.
27539         * include/aio.h: Likewise.
27540         * include/aliases.h: Likewise.
27541         * include/argz.h: Likewise.
27542         * include/arpa/inet.h: Likewise.
27543         * include/assert.h: Likewise.
27544         * include/dirent.h: Likewise.
27545         * include/dlfcn.h: Likewise.
27546         * include/execinfo.h: Likewise.
27547         * include/fcntl.h: Likewise.
27548         * include/fenv.h: Likewise.
27549         * include/glob.h: Likewise.
27550         * include/grp.h: Likewise.
27551         * include/libintl.h: Likewise.
27552         * include/mntent.h: Likewise.
27553         * include/netdb.h: Likewise.
27554         * include/pwd.h: Likewise.
27555         * include/rpc/netdb.h: Likewise.
27556         * include/sched.h: Likewise.
27557         * include/search.h: Likewise.
27558         * include/shadow.h: Likewise.
27559         * include/signal.h: Likewise.
27560         * include/stdio.h: Likewise.
27561         * include/stdlib.h: Likewise.
27562         * include/string.h: Likewise.
27563         * include/sys/socket.h: Likewise.
27564         * include/sys/stat.h: Likewise.
27565         * include/sys/statfs.h: Likewise.
27566         * include/sys/statvfs.h: Likewise.
27567         * include/sys/syslog.h: Likewise.
27568         * include/sys/time.h: Likewise.
27569         * include/sys/uio.h: Likewise.
27570         * include/time.h: Likewise.
27571         * include/unistd.h: Likewise.
27572         * include/utmp.h: Likewise.
27573         * include/wchar.h: Likewise.
27574         * include/wctype.h: Likewise.
27575         * inet/aliases.h: Likewise.
27576         * inet/arpa/inet.h: Likewise.
27577         * inet/netinet/ether.h: Likewise.
27578         * inet/netinet/in.h: Likewise.
27579         * intl/libintl.h: Likewise.
27580         * io/bits/fcntl2.h: Likewise.
27581         * io/fcntl.h: Likewise.
27582         * io/ftw.h: Likewise.
27583         * io/sys/poll.h: Likewise.
27584         * io/sys/stat.h: Likewise.
27585         * io/sys/statfs.h: Likewise.
27586         * io/sys/statvfs.h: Likewise.
27587         * io/utime.h: Likewise.
27588         * libio/bits/stdio.h: Likewise.
27589         * libio/bits/stdio2.h: Likewise.
27590         * libio/libio.h: Likewise.
27591         * libio/libioP.h: Likewise.
27592         * libio/stdio.h: Likewise.
27593         * locale/lc-ctype.c: Likewise.
27594         * locale/locale.h: Likewise.
27595         * login/utmp.h: Likewise.
27596         * malloc/arena.c: Likewise.
27597         * malloc/malloc.c: Likewise.
27598         * malloc/malloc.h: Likewise.
27599         * malloc/mcheck.c: Likewise.
27600         * malloc/mtrace.c: Likewise.
27601         * math/bits/mathcalls.h: Likewise.
27602         * math/fenv.h: Likewise.
27603         * math/math_private.h: Likewise.
27604         * misc/bits/error.h: Likewise.
27605         * misc/bits/syslog.h: Likewise.
27606         * misc/err.h: Likewise.
27607         * misc/error.h: Likewise.
27608         * misc/fstab.h: Likewise.
27609         * misc/mntent.h: Likewise.
27610         * misc/regexp.h: Likewise.
27611         * misc/search.h: Likewise.
27612         * misc/sgtty.h: Likewise.
27613         * misc/sys/mman.h: Likewise.
27614         * misc/sys/syslog.h: Likewise.
27615         * misc/sys/uio.h: Likewise.
27616         * misc/sys/xattr.h: Likewise.
27617         * misc/ttyent.h: Likewise.
27618         * nis/rpcsvc/ypclnt.h: Likewise.
27619         * nss/nss.h: Likewise.
27620         * posix/bits/unistd.h: Likewise.
27621         * posix/fnmatch.h: Likewise.
27622         * posix/glob.h: Likewise.
27623         * posix/sched.h: Likewise.
27624         * posix/spawn.h: Likewise.
27625         * posix/sys/wait.h: Likewise.
27626         * posix/unistd.h: Likewise.
27627         * posix/wordexp.h: Likewise.
27628         * pwd/pwd.h: Likewise.
27629         * resolv/netdb.h: Likewise.
27630         * resource/sys/resource.h: Likewise.
27631         * rt/aio.h: Likewise.
27632         * rt/bits/mqueue2.h: Likewise.
27633         * rt/mqueue.h: Likewise.
27634         * shadow/shadow.h: Likewise.
27635         * signal/signal.h: Likewise.
27636         * socket/send.c: Likewise.
27637         * socket/sendto.c: Likewise.
27638         * socket/sys/socket.h: Likewise.
27639         * stdio-common/printf.h: Likewise.
27640         * stdlib/bits/stdlib.h: Likewise.
27641         * stdlib/fmtmsg.h: Likewise.
27642         * stdlib/monetary.h: Likewise.
27643         * stdlib/stdlib.h: Likewise.
27644         * stdlib/ucontext.h: Likewise.
27645         * streams/stropts.h: Likewise.
27646         * string/argz.h: Likewise.
27647         * string/bits/string2.h: Likewise.
27648         * string/string.h: Likewise.
27649         * string/strings.h: Likewise.
27650         * sunrpc/rpc/auth.h: Likewise.
27651         * sunrpc/rpc/auth_des.h: Likewise.
27652         * sunrpc/rpc/clnt.h: Likewise.
27653         * sunrpc/rpc/netdb.h: Likewise.
27654         * sunrpc/rpc/pmap_clnt.h: Likewise.
27655         * sunrpc/rpc/xdr.h: Likewise.
27656         * sysdeps/generic/inttypes.h: Likewise.
27657         * sysdeps/generic/net/if.h: Likewise.
27658         * sysdeps/generic/sys/swap.h: Likewise.
27659         * sysdeps/gnu/net/if.h: Likewise.
27660         * sysdeps/gnu/utmpx.h: Likewise.
27661         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27662         * sysdeps/i386/i486/bits/string.h: Likewise.
27663         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27664         * sysdeps/s390/bits/string.h: Likewise.
27665         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27666         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27667         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27668         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27669         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27670         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27671         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27672         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27673         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27674         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27675         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27676         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27677         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27678         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27679         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27680         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27681         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27682         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27683         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27684         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27685         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27686         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27687         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27688         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27689         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27690         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27691         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27692         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27693         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27694         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27695         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27696         * sysvipc/sys/ipc.h: Likewise.
27697         * sysvipc/sys/msg.h: Likewise.
27698         * sysvipc/sys/sem.h: Likewise.
27699         * sysvipc/sys/shm.h: Likewise.
27700         * termios/termios.h: Likewise.
27701         * time/sys/time.h: Likewise.
27702         * time/time.h: Likewise.
27703         * wcsmbs/bits/wchar2.h: Likewise.
27704         * wcsmbs/uchar.h: Likewise.
27705         * wcsmbs/wchar.h: Likewise.
27706         * wctype/wctype.h: Likewise.
27707
27708         [BZ #13551]
27709         * Makeconfig: Remove all but ELF support including AIX support.
27710         * Makerules: Likewise.
27711         * config.h.in: Likewise.
27712         * config.make.in: Likewise.
27713         * configure: Likewise.
27714         * configure.in: Likewise.
27715         * csu/Makefile: Likewise.
27716         * csu/version.c: Likewise.
27717         * debug/Makefile: Likewise.
27718         * dlfcn/Makefile: Likewise.
27719         * elf/Makefile: Likewise.
27720         * extra-lib.mk: Likewise.
27721         * iconv/Makefile: Likewise.
27722         * include/libc-symbols.h: Likewise.
27723         * include/shlib-compat.h: Likewise.
27724         * resolv/Makefile: Likewise.
27725         * resolv/res_libc.c: Likewise.
27726         * rt/Makefile: Likewise.
27727         * sysdeps/i386/asm-syntax.h: Likewise.
27728         * sysdeps/i386/sysdep.h: Likewise.
27729         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27730         * sysdeps/mach/sysdep.h: Likewise.
27731         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27732         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27733         * sysdeps/s390/asm-syntax.h: Likewise.
27734         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27735         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27736         * sysdeps/sh/sysdep.h: Likewise.
27737         * sysdeps/unix/sparc/sysdep.h: Likewise.
27738         * sysdeps/wordsize-32/divdi3.c: Likewise.
27739         * sysdeps/x86_64/sysdep.h: Likewise.
27740
27741         * argp/Versions: Remove _argp_unlock_xxx.
27742
27743         [BZ #13559]
27744         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27745         * abilist/libBrokenLocale.abilist: Likewise.
27746         * abilist/libanl.abilist: Likewise.
27747         * abilist/libc.abilist: Likewise.
27748         * abilist/libcrypt.abilist: Likewise.
27749         * abilist/libdl.abilist: Likewise.
27750         * abilist/libm.abilist: Likewise.
27751         * abilist/libnsl.abilist: Likewise.
27752         * abilist/libpthread.abilist: Likewise.
27753         * abilist/libresolv.abilist: Likewise.
27754         * abilist/librt.abilist: Likewise.
27755         * abilist/libthread_db.abilist: Likewise.
27756         * abilist/libutil.abilist: Likewise.
27757         * abilist/libnss_db.abilist: New file.
27758
27759         * scripts/abilist.awk: Add support for indirect functions.
27760
27761         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27762
27763         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27764
27765         * shlib-versions: Remove entries for ports architectures.
27766
27767         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27768         files in ports.
27769         * elf/stackguard-macros.h: Remove support for IA-64.
27770         * elf/tst-auditmod1.c: Likewise.
27771         * sysdeps/generic/ldsodefs.h: Likewise.
27772
27773         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27774         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27775         configure files.
27776
27777         [BZ #13552]
27778         * configure.in: Remove --enable-omitfp support.
27779         * FAQ.in: Adjust.
27780         * config.make.in: Likewise.
27781         * Makeconfig: Likewise.
27782         * manual/install.texi: Likewise.
27783
27784         In case anyone cares, the IA-64 architecture could move to ports.
27785         * sysdeps/ia64/*: Removed.
27786         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27787         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27788
27789         [BZ #13555]
27790         * configure.in: Remove entries for unsupported architectures.
27791
27792         [BZ #13533]
27793         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27794         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27795         routines.
27796         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27797         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27798         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27799         fall back to using wcrtomb.
27800         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27801         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27802         renaming.
27803         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27804         * wcsmbs/tst-c16c32-1.c: New file.
27805
27806         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27807         local variable.
27808
27809         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27810
27811         * elf/tst-unique3.cc: Add explicit declaration of gets.
27812         * elf/tst-unique3lib.cc: Likewise.
27813         * elf/tst-unique3lib2.cc: Likewise.
27814         * elf/tst-unique4.cc: Likewise.
27815
27816         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27817
27818 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27819
27820         [BZ #13566]
27821         * assert/assert.h (static_assert): Don't define for C++.
27822         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27823         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27824
27825 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27826
27827         * iconv/loop.c (single loop): Fix assertion in storing of
27828         remaining bytes.
27829
27830         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27831
27832 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27833
27834         * posix/getconf.c: Update copyright year.
27835         * nss/getent.c: Likewise.
27836         * nss/makedb.c: Likewise.
27837         * iconv/iconvconfig.c: Likewise.
27838         * iconv/iconv_prog.c: Likewise.
27839         * elf/ldconfig.c: Likewise.
27840         * elf/pldd.c: Likewise.
27841         * elf/sotruss.ksh: Likewise.
27842         * catgets/gencat.c: Likewise.
27843         * csu/version.c: Likewise.
27844         * elf/ldd.bash.in: Likewise.
27845         * elf/sprof.c (print_version): Likewise.
27846         * locale/programs/locale.c: Likewise.
27847         * locale/programs/localedef.c: Likewise.
27848         * login/programs/pt_chown.c: Likewise.
27849         * nscd/nscd.c (print_version): Likewise.
27850         * debug/xtrace.sh: Likewise.
27851         * malloc/memusage.sh: Likewise.
27852         * malloc/mtrace.pl: Likewise.
27853         * debug/catchsegv.sh: Likewise.
27854
27855 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27856
27857         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27858         pure attribute.
27859
27860 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27861
27862         [BZ #13533]
27863         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27864         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27865         transformations.
27866         * iconv/gconv_int.h: Likewise.
27867         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27868         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27869         from libc for GLIBC_2.16.
27870         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27871         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27872         * wcsmbs/uchar.h: Really define mbstate_t.
27873         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27874         * wcsmbs/c16rtomb.c: New file.
27875         * wcsmbs/mbrtoc16.c: New file.
27876         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27877         for C/POSIX locale.
27878         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27879         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27880
27881         * wcsmbs/wchar.h: Add missing __restrict.
27882
27883 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27884
27885         [BZ #13532]
27886         * time/Makefile (routines): Add timespec_get.
27887         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27888         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27889         timespec for ISO C11.
27890         * time/timespec_get.c: New file.
27891         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27892         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27893
27894         [BZ #13531]
27895         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27896         * stdlib/stdlib.h: Declare aligned_alloc.
27897         * Versions.def: Add GLIBC_2.16 for libc.
27898         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27899
27900         [BZ 13527]
27901         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27902         ISO C11.
27903
27904         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27905         code.
27906
27907         [BZ #13528]
27908         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27909
27910         [BZ #13529]
27911         * assert/assert.h (static_assert): Define.
27912
27913         * version.h: Update for 2.16 development version.
27914
27915         [BZ #13526]
27916         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
27917         _ISOC11_SOURCE.
27918
27919         * version.h (RELEASE): Bump for 2.15 release.
27920         * include/features.h (__GLIBC_MINOR__): Bump to 15.
27921
27922         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
27923         Patch by Marek Polacek <mpolacek@redhat.com>.
27924
27925         * bits/byteswap.h: Protect long long constants with __extension__.
27926         * sysdeps/i386/bits/byteswap.h: Likewise.
27927         * sysdeps/ia64/bits/byteswap.h: Likewise.
27928         * sysdeps/s390/bits/byteswap.h: Likewise.
27929         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27930
27931 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27932
27933         [BZ #13540]
27934         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
27935         destination buffer.
27936         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27937
27938 2011-12-23  Marek Polacek  <polacek@redhat.com>
27939
27940         * elf/dl-addr.c (determine_info): Add inline keyword.
27941         * elf/tst-auditmod4b.c (check_avx): Likewise.
27942         * elf/tst-auditmod6b.c (check_avx): Likewise.
27943         * elf/tst-auditmod6c.c (check_avx): Likewise.
27944         * elf/tst-auditmod7b.c (check_avx): Likewise.
27945
27946 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27947
27948         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
27949         !__SSE_MATH__.
27950
27951 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27952
27953         [BZ #13540]
27954         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
27955         processing for last bytes.
27956
27957 2011-08-06  Bruno Haible  <bruno@clisp.org>
27958
27959         [BZ #13061]
27960         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
27961         U+0385, not to U+1FEE.
27962
27963         [BZ #13062]
27964         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
27965         entry for U+00A5 U+0301.
27966
27967 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27968
27969         [BZ #13166]
27970         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
27971         buffer for the output is too small.
27972
27973         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
27974         optimization.
27975
27976         [BZ #13185]
27977         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
27978         SSE flags if possible.
27979
27980 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27981
27982         [BZ #13540]
27983         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
27984         processing for last bytes.
27985
27986 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
27987
27988         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
27989         (syscall-list-default-options, syscall-list-default-condition)
27990         (syscall-list-includes): Define.
27991         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
27992         list of ABIs and options and #if conditions for each ABI.  Do not
27993         handle common syscalls between ABIs specially.
27994         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
27995         Remove.
27996         (syscall-list-variants, syscall-list-32bit-options)
27997         (syscall-list-32bit-condition, syscall-list-64bit-options)
27998         (syscall-list-64bit-condition): Define.
27999         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
28000         (syscall-list-variants, syscall-list-32bit-options)
28001         (syscall-list-32bit-condition, syscall-list-64bit-options)
28002         (syscall-list-64bit-condition): Define.
28003         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
28004         Remove.
28005         (syscall-list-variants, syscall-list-32bit-options)
28006         (syscall-list-32bit-condition, syscall-list-64bit-options)
28007         (syscall-list-64bit-condition): Define.
28008         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
28009         Remove.
28010         (syscall-list-variants, syscall-list-32bit-options)
28011         (syscall-list-32bit-condition, syscall-list-64bit-options)
28012         (syscall-list-64bit-condition): Define.
28013
28014 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28015
28016         * locale/iso-639.def: Add brx entry.
28017
28018         [BZ #13328]
28019         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
28020         Proposed by Mariusz_Cukr <marcukr@op.pl>.
28021
28022         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
28023         __feraiseexcept_renamed.
28024
28025 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28026
28027         [BZ #13538]
28028         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
28029         EPOLLET with unsigned values.
28030         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28031         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
28032
28033         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
28034         to large cancellation.
28035         * math/s_cacoshf.c: Likewise.
28036         * math/s_cacoshl.c: Likewise.
28037
28038 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
28039
28040         [BZ #13305]
28041         [BZ #12786]
28042         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
28043         * math/s_cacoshf.c: Likewise.
28044         * math/s_cacoshl.c: Likewise.
28045
28046 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28047
28048         [BZ #13439]
28049         * iconv/gconv.h: Define __GCONV_SWAP.
28050         * iconvdata/unicode.c: The swap bit must be stored in __flags.
28051         * iconvdata/utf-16.c: Likewise.
28052         * iconvdata/utf-32.c: Likewise.
28053
28054 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28055
28056         [BZ #13524]
28057         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
28058         numerator after shifting it by one limb.
28059
28060 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
28061
28062         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
28063         under [__USE_EXTERN_INLINES].
28064
28065 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28066
28067         [BZ #13446]
28068         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
28069
28070 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28071
28072         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
28073         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
28074         optimized code.
28075         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
28076         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
28077         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
28078         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
28079         for strncasecmp/strncasecmp_l compilation.
28080         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
28081         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
28082
28083 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
28084
28085         [BZ #13484]
28086         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
28087         of __asm__.
28088
28089 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28090
28091         [BZ #13506]
28092         * time/tzfile.c (__tzfile_read): Check values from file header.
28093
28094 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28095
28096         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
28097         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
28098         * powerpc/powerpc32/dl-start.S: Likewise.
28099         * powerpc/powerpc32/elf/start.S: Likewise.
28100         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
28101         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
28102         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
28103         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
28104         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
28105         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
28106         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
28107         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
28108         * powerpc/powerpc32/fpu/s_round.S: Likewise.
28109         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
28110         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
28111         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
28112         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
28113         * powerpc/powerpc32/memset.S: Likewise.
28114         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
28115         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
28116         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
28117         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
28118         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
28119         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
28120         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
28121         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
28122         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
28123         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
28124         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
28125         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
28126         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
28127
28128 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28129
28130         * math/libm-test.inc: Added more nearbyint tests.
28131         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
28132         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
28133         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
28134         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
28135
28136 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
28137
28138         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
28139         FD_CLOEXEC.
28140
28141 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28142
28143         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
28144         Add wcscpy-ssse3 wcscpy-c.
28145         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
28146         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
28147         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
28148         * sysdeps/x86_64/wcschr.S: New file.
28149         * sysdeps/x86_64/wcsrchr.S: New file.
28150         * string/test-strcmp.c: Remove checking of wcscmp function for
28151         wrong alignments.
28152         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
28153         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
28154         wcsrchr-sse2 wcsrchr-c.
28155         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
28156         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
28157         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
28158         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
28159         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
28160         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
28161         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
28162         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
28163         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
28164         * wcsmbc/wcschr.c (WCSCHR): New macro.
28165
28166 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28167
28168         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
28169         * wcsmbs/test-wcsrchr.c: New file.
28170         * string/test-strrchr.c: Add wcsrchr support.
28171         (WIDE): New macro.
28172         * wcsmbs/test-wcscpy.c: New file.
28173         * string/test-strcpy.c: Add wcscpy support.
28174         (WIDE): New macro.
28175
28176 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
28177
28178         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
28179         the inner loop.
28180
28181 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
28182
28183         [BZ #13472]
28184         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
28185
28186 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
28187
28188         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
28189         Minor optimizations.
28190
28191         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
28192         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
28193         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28194
28195 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
28196
28197         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
28198         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
28199         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
28200         for gcc to avoid warnings.
28201         * inet/Makefile (tests): Add tst-checks.
28202         * inet/tst-checks.c: New file.
28203
28204         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
28205         warning.
28206
28207         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
28208         __wmemcmp_sse2.
28209
28210         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
28211         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
28212
28213         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
28214
28215 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
28216
28217         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
28218         problem.
28219
28220         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
28221
28222 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
28223
28224         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
28225         conditional on GCC version.
28226         (__arch_compare_and_exchange_val_8_acq)
28227         (__arch_compare_and_exchange_val_16_acq)
28228         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
28229         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
28230         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
28231
28232 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
28233
28234         * sysdeps/sh/backtrace.c: New file.
28235
28236 2011-12-02  Andreas Schwab  <schwab@redhat.com>
28237
28238         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
28239         parenthesis.
28240
28241 2011-12-01  Andreas Schwab  <schwab@redhat.com>
28242
28243         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
28244         falling back to utime.
28245
28246 2011-11-30  Andreas Schwab  <schwab@redhat.com>
28247
28248         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
28249         expectations for float.
28250
28251 2011-11-29  Andreas Schwab  <schwab@redhat.com>
28252
28253         * locale/weight.h (findidx): Add parameter len.
28254         * locale/weightwc.h (findidx): Likewise.
28255         * posix/fnmatch_loop.c (FCT): Adjust caller.
28256         * posix/regcomp.c (build_equiv_class): Likewise.
28257         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
28258         * posix/regexec.c (check_node_accept_bytes): Likewise.
28259         * string/strcoll_l.c (STRCOLL): Likewise.
28260         * string/strxfrm_l.c (STRXFRM): Likewise.
28261
28262 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
28263
28264         * Makefile.in: Remove CVSOPT handling.
28265         * configure.in: Remove use of AC_REVISION.
28266         * iconvdata/Makefile (distribute): No need to filter out CVS.
28267         * scripts/list-sources.sh: Remove CVS, subversion and monotone
28268         handling.
28269
28270 2011-11-16  Andreas Schwab  <schwab@redhat.com>
28271
28272         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
28273         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
28274         [USE_AS_STRNCASECMP_L]: Likewise.
28275         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
28276         NO_TLS_DIRECT_SEG_REFS.
28277         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
28278         Fix argument offsets for non-PIC.
28279         [USE_AS_STRNCASECMP_L]: Likewise.
28280         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
28281         NO_TLS_DIRECT_SEG_REFS.
28282
28283 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28284
28285         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
28286         O_CLOEXEC.
28287         * locale/loadlocale.c (_nl_load_locale): Likewise.
28288
28289 2011-11-15  Andreas Schwab  <schwab@redhat.com>
28290
28291         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
28292         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
28293         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
28294         (SYSCALL_GETTIME): Set errno on error.
28295
28296         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
28297         count references to noai6ai_cached.
28298
28299 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28300
28301         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
28302
28303         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
28304         FD_CLOEXEC for /proc/self/maps.
28305
28306         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
28307         FD_CLOEXEC for /proc/meminfo.
28308
28309         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
28310         gai.conf.
28311
28312         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
28313         FD_CLOEXEC for given file.
28314
28315         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
28316
28317         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
28318         FD_CLOEXEC for /etc/hosts.
28319         (_gethtent): Likewise.
28320
28321         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
28322
28323         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
28324         cancellation and set FD_CLOEXEC for /etc/netgroup.
28325
28326         * nss/nss_files/files-key.c (search): Don't allow cancellation when
28327         reading /etc/publickey.
28328
28329         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
28330         allow cancellation when reading /etc/group.
28331
28332         * nss/nss_files/files-alias.c (internal_setent): Don't allow
28333         cancellation.
28334         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
28335
28336         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
28337         when using data file.
28338
28339         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
28340
28341         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
28342         (write_nis_obj): Use "c" and "e" in fopen.
28343
28344         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
28345
28346         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
28347
28348         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
28349
28350         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
28351
28352         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
28353         locale.alias.
28354
28355         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
28356
28357         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
28358
28359         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
28360
28361         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
28362         file parsing and set FD_CLOEXEC.
28363
28364 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28365
28366         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
28367
28368 2011-11-14  Andreas Schwab  <schwab@redhat.com>
28369
28370         * malloc/arena.c (arena_get2): Don't call reused_arena when
28371         _int_new_arena failed.
28372
28373 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28374
28375         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
28376         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
28377         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
28378         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28379         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28380         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
28381         to compile strcasecmp and strncasecmp.
28382         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
28383         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
28384
28385         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
28386
28387 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
28388
28389         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
28390         locale-defines.sym to gen-as-const-headers.
28391         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
28392         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
28393         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
28394         to compile strcasecmp and strncasecmp.
28395         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
28396         strcasecmp_l and strncasecmp_l.
28397         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
28398         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
28399         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
28400         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
28401         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
28402         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
28403         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
28404         * sysdeps/i386/i686/multiarch/strncase.S: New file.
28405         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
28406         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
28407         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
28408
28409 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
28410
28411         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
28412         result of SYSDEP_GETTIME_CPU to retval.
28413         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
28414         parameter list to macro.  Remove trailing semicolon.  Adjust users.
28415
28416         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
28417         variable.
28418
28419         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
28420         mantissa words.
28421         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28422
28423         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
28424         from unused variable.
28425
28426         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
28427         DWARF definitions.
28428         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
28429         for assembling.
28430
28431         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
28432         over namespaces.
28433
28434         * sunrpc/rpc_prot.c (rejected): Fix case value.
28435
28436         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
28437         unsigned long long int to avoid warnings in shift.
28438
28439         * posix/regex_internal.c (re_string_reconstruct): Actually use result
28440         of use of trans.
28441         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
28442         variable tmp.
28443
28444         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
28445         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
28446         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
28447
28448         * nis/nis_table.c (nis_list): Use variable of correct type for
28449         result of __follow_path call.
28450
28451 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28452
28453         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
28454         of math functions ceil, trunc, floor, round, and sqrt, when
28455         avaliable on the platform.
28456         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
28457         name clash.
28458         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28459         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28460         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28461
28462 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
28463
28464         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
28465         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
28466
28467 2011-11-11  Roland McGrath  <roland@hack.frob.com>
28468
28469         * include/unistd.h: Fix __readlink return type.
28470         Reported by Chris Metcalf <cmetcalf@tilera.com>.
28471
28472 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
28473
28474         * stdlib/ucontext.h: Undo last change for makecontext.
28475
28476 2011-11-11  Andreas Schwab  <schwab@redhat.com>
28477
28478         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
28479
28480         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
28481         * setjmp/setjmp.h: Mark functions as non-leaf.
28482         * setjmp/bits/setjmp2.h: Likewise.
28483         * stdlib/ucontext.h: Likewise.
28484
28485 2011-11-10  Andreas Schwab  <schwab@redhat.com>
28486
28487         * malloc/arena.c (_int_new_arena): Don't increment narenas.
28488         (reused_arena): Don't check arena limit.
28489         (arena_get2): Atomically check arena limit.
28490
28491 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
28492
28493         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
28494         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
28495
28496         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
28497         instructions.
28498
28499 2011-11-07  Andreas Schwab  <schwab@redhat.com>
28500
28501         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
28502         handler when locking.
28503
28504         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28505         Fix size of allocated buffer.
28506
28507 2011-11-04  Andreas Schwab  <schwab@redhat.com>
28508
28509         [BZ #10103]
28510         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
28511         declarations for long double functions.
28512         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
28513
28514         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
28515
28516 2011-11-03  Andreas Schwab  <schwab@redhat.com>
28517
28518         * nscd/nscd.c (main): Don't start AVC thread until credentials are
28519         installed.
28520
28521         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
28522         is disabled.
28523
28524 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28525
28526         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
28527
28528 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28529
28530         * include/alloca.h (stackinfo_alloca_round): Define.
28531         (extend_alloca): Use it.
28532         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
28533         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
28534         here.
28535
28536         * scripts/check-local-headers.sh: Ignore libaudit.h.
28537
28538         * nscd/Makefile (extra-objs): Make recursively expanded.
28539
28540 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
28541
28542         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
28543         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
28544
28545         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
28546         * posix/tst-rfc3484-2.c: Likewise.
28547         * posix/tst-rfc3484-3.c: Likewise.
28548
28549         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28550         process_vm_writev.
28551         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
28552         process_vm_writev.
28553         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
28554         process_vm_writev from libc using GLIBC_2.15 version.
28555
28556         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
28557
28558 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
28559
28560         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
28561         stack usage.
28562
28563 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
28564
28565         [BZ #13367]
28566         * nss/getent.c (initgroups_keys): Show error message in case no group
28567         names are given.
28568
28569         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
28570         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
28571         __bump_nl_timestamp.
28572         * nscd/connections (nscd_init): When host database is served open
28573         netlink socket and request notification about configuration changes.
28574         (main_loop_poll): Track netlink file descriptor and bump timestamp
28575         in case data becomes available.
28576         (main_loop_epoll): Likewise.
28577         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
28578         (database_pers_head): Add extra_data fileds.
28579         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
28580         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
28581         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
28582         Adjust caller.
28583         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
28584         in6ai data, call __free_in6ai.
28585         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
28586         Add -DHAVE_NETLINK.
28587         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
28588         interface information.  Reuse previous data if netlink timestamp
28589         is not changed.
28590         (__bump_nl_timestamp): New function.
28591         (__free_in6ai): New function.
28592
28593 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
28594
28595         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
28596         close_not_cancel_no_status here.
28597         (__check_pf): Reorganize code a bit to not call close twice if OOM.
28598
28599 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28600
28601         [BZ #13276]
28602         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
28603         return value.
28604
28605         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
28606         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
28607         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
28608
28609 2011-07-03  Andreas Jaeger  <aj@suse.de>
28610
28611         [BZ #10709]
28612         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
28613         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
28614         * math/libm-test.inc (sin_test): Add test case.
28615
28616 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28617
28618         [BZ #13337]
28619         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
28620         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28621
28622         * elf/chroot_canon.c (chroot_canon): Cleanups.
28623
28624         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
28625
28626         [BZ #13335]
28627         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
28628         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28629
28630         * string/test-strchr.c: Make usable for strchrnul testing.
28631         * string/test-strchrnul.c: New file.
28632         * string/Makefile (strop-tests): Add strchrnul.
28633
28634         * po/it.po: Update from translation team.
28635         * po/es.po: Likewise.
28636
28637 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
28638
28639         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
28640         the three constants needed as parameters.  Drop the others.
28641         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
28642         __m128i_strloadu_tolower.
28643         Create and initialize variable zero and use it in all the places
28644         where _mm_setzero_si128 was used.
28645
28646         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
28647         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
28648         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
28649         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
28650         anymore.
28651         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
28652         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
28653         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
28654         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
28655         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
28656         __mpranred, __mptan.
28657         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
28658         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
28659         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
28660         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28661         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28662         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28663         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28664         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28665         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28666
28667 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28668
28669         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28670         redefine if SHARED.
28671         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28672
28673         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28674         wide char related routines to wcsmbs subdir.
28675
28676 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28677
28678         [BZ #13344]
28679         * misc/sys/cdefs.h (__THROWNL): Define.
28680         * posix/unistd.h: Use __THREADNL instead of __THREAD
28681         for memory synchronization functions.
28682
28683 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28684
28685         [BZ #13349]
28686         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28687         doesn't exist.
28688         * manual/stdio.texi (Obstack Streams): Node removed.
28689
28690 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28691
28692         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28693         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28694         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28695
28696         * math/math_private.h (math_force_eval): Allow non-addressable
28697         arguments.
28698         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28699
28700 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28701
28702         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28703         file is not needed.
28704
28705         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28706         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28707         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28708         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28709         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28710         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28711         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28712         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28713         Add AVX variants.
28714         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28715         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28716         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28717         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28718         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28719         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28720         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28721         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28722         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28723         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28724         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28725         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28726         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28727         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28728         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28729         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28730         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28731         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28732         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28733
28734         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28735         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28736
28737         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28738         place.  Use VEX encoding when compiling for AVX.
28739
28740 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28741
28742         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28743         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28744
28745         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28746
28747 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28748
28749         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28750         useless if() expression.
28751         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28752         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28753         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28754         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28755         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28756         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28757         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28758         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28759         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28760         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28761         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28762         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28763         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28764         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28765         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28766         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28767         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28768         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28769         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28770
28771         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28772
28773 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28774
28775         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28776         condition.
28777         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28778
28779 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28780
28781         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28782         .text section.  Avoid duplicate constants.
28783         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28784         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28785         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28786         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28787         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28788         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28789         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28790         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28791         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28792         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28793         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28794         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28795         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28796         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28797         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28798         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28799         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28800         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28801         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28802         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28803         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28804         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28805         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28806         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28807         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28808         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28809         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28810         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28811         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28812         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28813         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28814         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28815         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28816         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28817         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28818         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28819         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28820         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28821         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28822         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28823         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28824         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28825         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28826         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28827         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28828
28829 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28830
28831         * sysdeps/x86_64/dla.h: Move to ...
28832         * sysdeps/x86_64/fpu/dla.h: ...here.
28833         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28834         situations.  Use __builtin_fma only for gcc 4.6 and up.
28835
28836         * config.make.in: Add have-mfma4 entry.
28837         * configure.in: Substitute libc_cv_cc_fma4.
28838         * math/Makefile (dbl-only-routines): Add sincostab.
28839         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28840         Use __sincostab not sincos.
28841         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28842         name is a macro.
28843         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28844         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28845         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28846         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28847         using __copysign.
28848         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28849         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28850         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28851         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28852         and __inv.
28853         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28854         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28855         __copysign.
28856         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28857         define aliases when function name is a macro.
28858         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28859         sysdeps/ieee754/dbl-64/sincos.tbl.
28860         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28861         fma4-enabled routines.
28862         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28863         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28864         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28865         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28866         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28867         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28868         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28869         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28870         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28871         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28872         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28873         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28874         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28875         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28876         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28877         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28878         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28879         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28880         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28881         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28882         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28883         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28884         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28885         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28886         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28887         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28888         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28889         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28890         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28891         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28892
28893         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28894         rename.
28895         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28896         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28897         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28898         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28899         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28900         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28901         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28902         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28903
28904 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28905
28906         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28907
28908 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28909
28910         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28911
28912         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28913         prediction.
28914         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
28915
28916         * string/strnlen.c: Don't define STRNLEN, reverse logic.
28917         Remove unused variable magic_bits.
28918         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
28919
28920         * string/strnlen.c: Define and use STRNLEN macro.
28921         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
28922         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
28923         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
28924         * wcsmbs/wcslen.c: Define and use WCSLEN.
28925         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
28926         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
28927         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
28928         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
28929         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
28930         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
28931         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28932
28933 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28934
28935         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28936         strnlen-sse2-no-bsf.
28937         Rename strlen-no-bsf to strlen-sse2-no-bsf.
28938         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
28939         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
28940         Add strnlen support.
28941         (USE_AS_STRNLEN): New macro.
28942         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
28943         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
28944         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
28945         * sysdeps/x86_64/wcslen.S: New file.
28946
28947 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
28948
28949         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
28950         XMM-moves are used for copying on small sizes.
28951
28952 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28953
28954         * wcsmbs/Makefile (strop-tests): Add wcschr.
28955         * wcsmbs/test-wcschr.c: New file.
28956         * string/test-strchr.c: Update.
28957         Add wcschr support.
28958         (WIDE): New macro.
28959
28960 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28961
28962         * wcsmbs/Makefile (strop-tests): Add wcslen.
28963         * wcsmbs/test-wcslen.c: New file.
28964         * string/test-strlen.c: Update.
28965         Add wcslen support.
28966         (WIDE): New macro.
28967
28968 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28969
28970         * po/it.po: Update from translation team.
28971
28972 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28973
28974         * sysdeps/x86_64/wcscmp.S: Update.
28975         Fix wrong comparison semantics.
28976         wcscmp shall use signed comparison not unsigned.
28977         Don't use substraction to avoid overflow bug.
28978         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
28979         * wcsmbc/wcscmp.c: Likewise.
28980         * string/test-strcmp.c: Likewise.
28981         Add new tests to check cases with negative values.
28982
28983 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28984
28985         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
28986         * sysdeps/x86_64/dla.h: ...here.  New file.
28987         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
28988         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28989         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28990         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28991         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28992         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28993         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28994         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28995         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28996
28997 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
28998
28999         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
29000         __ynl_finite aliases.
29001
29002 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29003
29004         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29005
29006         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
29007         define DLA_FMA.
29008         [DLA_FMA] (EMULV): Use DLA_FMA.
29009         [DLA_FMA] (MUL12): Use EMULV.
29010         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
29011         that are not needed.
29012         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29013         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29014         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29015         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29016         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29017         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29018         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29019
29020 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
29021
29022         * math/s_nan.c: Undef __nan.
29023         * math/s_nanf.c: Undef __nanf.
29024         * math/s_nanl.c: Undef __nanl.
29025         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
29026         "math_private.h".
29027
29028 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29029
29030         * math/s_catan.c: Add branch predictions.
29031         * math/s_catanf.c: Likewise.
29032         * math/s_catanh.c: Likewise.
29033         * math/s_catanhf.c: Likewise.
29034         * math/s_catanhl.c: Likewise.
29035         * math/s_catanl.c: Likewise.
29036         * math/s_cexp.c: Likewise.
29037         * math/s_cexpf.c: Likewise.
29038         * math/s_cexpl.c: Likewise.
29039         * math/s_clog.c: Likewise.
29040         * math/s_clog10.c: Likewise.
29041         * math/s_clog10f.c: Likewise.
29042         * math/s_clog10l.c: Likewise.
29043         * math/s_clogf.c: Likewise.
29044         * math/s_clogl.c: Likewise.
29045         * math/s_csqrt.c: Likewise.
29046         * math/s_csqrtf.c: Likewise.
29047         * math/s_csqrtl.c: Likewise.
29048         * math/s_ctanf.c: Likewise.
29049         * math/s_ctanh.c: Likewise.
29050         * math/s_ctanhf.c: Likewise.
29051         * math/s_ctanhl.c: Likewise.
29052         * math/s_ctanl.c: Likewise.
29053
29054         * math/math_private.h: Define __nan, __nanf, __nanl.
29055         * math/s_cacosh.c: Include <math_private.h>.
29056         * math/s_cacoshl.c: Likewise.
29057         * math/s_casinh.c: Likewise.
29058         * math/s_casinhf.c: Likewise.
29059         * math/s_casinhl.c: Likewise.
29060         * math/s_ccos.c: Rely entire on ccosh.
29061         * math/s_ccosf.c: Rely entire on ccoshf.
29062         * math/s_ccosl.c: Rely entirely on ccoshl.
29063         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
29064         Remove tests for FE_INVALID.
29065         * math/s_ccoshf.c: Likewise.
29066         * math/s_ccoshl.c: Likewise.
29067         * math/s_csin.c: Likewise.
29068         * math/s_csinf.c: Likewise.
29069         * math/s_csinh.c Likewise.
29070         * math/s_csinhf.c: Likewise.
29071         * math/s_csinhl.c: Likewise.
29072         * math/s_csinl.c: Likewise.
29073         * math/s_ctan.c: Likewise.
29074         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
29075         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
29076         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
29077
29078 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
29079
29080         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
29081         compilation problems.
29082
29083         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
29084         __builtin_expect.
29085
29086 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
29087
29088         * sysdeps/i386/configure.in: Test for -mfma4 option.
29089         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
29090         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
29091         COMMON_CPUID_INDEX_80000001.
29092         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
29093         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
29094         use it if FMA3 is not supported.
29095         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
29096
29097         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
29098         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
29099
29100 2011-10-20  Andreas Schwab  <schwab@redhat.com>
29101
29102         [BZ #12892]
29103         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
29104         it would create a cycle with a link time dependency.
29105
29106 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
29107
29108         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
29109         instruction.
29110         * string/Makefile (strop-tests): Add rawmemchr.
29111         * string/test-rawmemchr.c: New file.
29112
29113         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
29114         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
29115         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
29116         when compiling str{,n}casecmp and when AVX is available.  Hook up
29117         new optimized code in initializers.
29118
29119 2011-10-19  Andreas Schwab  <schwab@redhat.com>
29120
29121         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
29122         __feraiseexcept instead of feraiseexcept.
29123
29124 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
29125
29126         * math/math_private.h: Define defaults for libc_fetestexcept and
29127         libc_feupdateenv.
29128         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
29129         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
29130         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29131         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29132         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29133         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29134         libc_fetestexcept and libc_feupdateenv.
29135
29136         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
29137         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
29138         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
29139         * sysdeps/x86_64/fpu/math_private.h: Define special version of
29140         libc_feholdexcept_setround.
29141
29142         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
29143         Add s_nearbyint-c and s_nearbyintf-c.
29144         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
29145         nearbyintf inlines.
29146         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
29147         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
29148         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
29149         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
29150
29151         * math/math_private.h: Define defaults for libc_fegetround,
29152         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
29153         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
29154         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
29155         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
29156         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
29157         standard functions.
29158         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29159         Remove comments and hacks for old compiler versions.
29160         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29161         libc_fegetround, libc_fesetround, libc_feholdexcept, and
29162         libc_feholdexceptl.
29163
29164 2011-10-18  Andreas Schwab  <schwab@redhat.com>
29165
29166         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
29167         (__feraiseexcept_renamed): Add __NTH.
29168         (feraiseexcept): Add __NTH.  Rename local variables to fix
29169         namespace violations.
29170
29171 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
29172
29173         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
29174
29175         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
29176
29177         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
29178         recently added interfaces.
29179         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
29180
29181         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
29182         about macro parameter expansion.
29183
29184         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
29185         __NO_MATH_INLINES is defined.  Cleanups.
29186
29187         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
29188         and __floorf is target has SSE4.1.
29189         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
29190         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
29191         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
29192         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
29193
29194         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
29195         name.
29196         (floorf): Likewise.
29197
29198         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
29199
29200 2011-10-17  Andreas Schwab  <schwab@redhat.com>
29201
29202         * misc/sys/cdefs.h: Fix last change.
29203
29204         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
29205         database lookup.
29206
29207 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
29208
29209         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
29210
29211         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
29212         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29213         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29214         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29215         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29216         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29217         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29218         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29219         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29220         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
29221         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
29222         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
29223         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
29224         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
29225         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
29226         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
29227         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
29228         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
29229         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
29230         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
29231         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
29232         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
29233
29234         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
29235         ceil, ceilf, floor, floorf.
29236
29237         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
29238         Perform IRELATIVE relocations last.
29239
29240         * elf/do-rel.h: Add another parameter nrelative, replacing the
29241         local variable with the same name.  Change name of the function
29242         to end in Rel or Rela (uppercase).
29243         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
29244         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
29245         elf_dynamic_do_##reloc function.
29246
29247 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29248
29249         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
29250         is sufficient, at least on modern CPUs.
29251
29252         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
29253
29254         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
29255         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
29256
29257         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
29258         __expl_finite.
29259         * math/bits/math-finite.h: Add entries for exp.
29260         * math/e_expl.c: Add __*_finite alias.
29261         * sysdeps/i386/fpu/e_exp.S: Likewise.
29262         * sysdeps/i386/fpu/e_expf.S: Likewise.
29263         * sysdeps/i386/fpu/e_expl.c: Likewise.
29264         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29265         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29266         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
29267         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
29268         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
29269         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29270         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29271
29272         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
29273         is sufficient, at least on modern CPUs.
29274
29275         * ctype/ctype-info.c (__ctype_init): Define.
29276         * include/ctype.h (__ctype_init): Declare.
29277         (__ctype_b_loc): The variable is always initialized.
29278         (__ctype_toupper_loc): Likewise.
29279         (__ctype_tolower_loc): Likewise.
29280         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
29281         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
29282
29283 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
29284
29285         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
29286
29287         * configure.in: Also look in $cxxmachine/include for C++ system
29288         headers.
29289
29290 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29291
29292         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
29293         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
29294         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
29295         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
29296         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
29297         (USE_AS_WMEMCMP): New macro.
29298         Fixing indents.
29299         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
29300         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
29301         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
29302         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
29303         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29304         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
29305         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
29306         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
29307         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
29308         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
29309         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
29310         (USE_AS_WMEMCMP): New macro.
29311         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
29312         * sysdeps/string/test-memcmp.c: Update.
29313         Fix simple_wmemcmp.
29314         Add new tests.
29315         * wcsmbs/wmemcmp.c: Update.
29316         (WMEMCMP): New macro.
29317         Fix overflow bug.
29318
29319 2011-10-12  Andreas Jaeger  <aj@suse.de>
29320
29321         [BZ #13268]
29322         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
29323
29324 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29325
29326         * libio/iofwide.c (do_length): Avoid warning.
29327
29328         * ctype/ctype.h (__isctype_f): Add missing __THROW.
29329
29330 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
29331
29332         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
29333
29334         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
29335         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
29336         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
29337         * sysdeps/i386/i686/fpu/e_log.S: New file.
29338         * sysdeps/i386/i686/fpu/e_logf.S: New file.
29339         * sysdeps/i386/i686/fpu/e_logl.S: New file.
29340
29341         * ctype/ctype.h: Add support for inlined isXXX functions when
29342         compiling C++ code.
29343
29344 2011-10-14  Andreas Schwab  <schwab@redhat.com>
29345
29346         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29347
29348         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
29349
29350 2011-10-13  Roland McGrath  <roland@hack.frob.com>
29351
29352         [BZ #13291]
29353         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
29354
29355 2011-10-13  Andreas Schwab  <schwab@redhat.com>
29356
29357         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
29358         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
29359         feraiseexcept.
29360
29361         * sysdeps/x86_64/memrchr.S: Check for zero size.
29362
29363         * string/stratcliff.c: Add memrchr tests.
29364
29365 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29366
29367         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29368         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
29369         rawmemchr-sse2 rawmemchr-sse2-bsf.
29370         * sysdeps/i386/i686/multiarch/memchr.S: New file.
29371         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
29372         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
29373         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
29374         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
29375         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
29376         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
29377         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
29378         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
29379         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
29380         * string/memrchr.c (MEMRCHR): New macro.
29381
29382 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
29383
29384         Add integration with gcc's -ffinite-math-only and optimize wrapper
29385         functions in libm.
29386         * Versions.def: Define GLIBC_2.15 version for libm.
29387         * math/Makefile (headers): Add bits/math-finite.h.
29388         * math/bits/math-finite.h: New file.
29389         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
29390         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
29391         * math/e_acoshl.c: Add __*_finite alias.
29392         * math/e_acosl.c: Likewise.
29393         * math/e_asinl.c: Likewise.
29394         * math/e_atan2l.c: Likewise.
29395         * math/e_atanhl.c: Likewise.
29396         * math/e_coshl.c: Likewise.
29397         * math/e_exp10.c: Likewise.
29398         * math/e_exp10f.c: Likewise.
29399         * math/e_exp10l.c: Likewise.
29400         * math/e_exp2l.c: Likewise.
29401         * math/e_fmodl.c: Likewise.
29402         * math/e_gammal_r.c: Likewise.
29403         * math/e_hypotl.c: Likewise.
29404         * math/e_j0l.c: Likewise.
29405         * math/e_j1l.c: Likewise.
29406         * math/e_jnl.c: Likewise.
29407         * math/e_lgammal_r.c: Likewise.
29408         * math/e_log10l.c: Likewise.
29409         * math/e_log2l.c: Likewise.
29410         * math/e_logl.c: Likewise.
29411         * math/e_powl.c: Likewise.
29412         * math/e_sinhl.c: Likewise.
29413         * math/e_sqrtl.c: Likewise.
29414         * math/e_scalb.c: Completely rewritten and optimized.
29415         * math/e_scalbf.c: Likewise.
29416         * math/e_scalbl.c: Likewise.
29417         * math/w_acos.c: Likewise.
29418         * math/w_acosf.c: Likewise.
29419         * math/w_acosl.c: Likewise.
29420         * math/w_acosh.c: Likewise.
29421         * math/w_acoshf.c: Likewise.
29422         * math/w_acoshl.c: Likewise.
29423         * math/w_asin.c: Likewise.
29424         * math/w_asinf.c: Likewise.
29425         * math/w_asinl.c: Likewise.
29426         * math/w_atan2.c: Likewise.
29427         * math/w_atan2f.c: Likewise.
29428         * math/w_atan2l.c: Likewise.
29429         * math/w_atanh.c: Likewise.
29430         * math/w_atanhf.c: Likewise.
29431         * math/w_atanhl.c: Likewise.
29432         * math/w_exp10.c: Likewise.
29433         * math/w_exp10f.c: Likewise.
29434         * math/w_exp10l.c: Likewise.
29435         * math/w_fmod.c: Likewise.
29436         * math/w_fmodf.c: Likewise.
29437         * math/w_fmodl.c: Likewise.
29438         * math/w_j0.c: Likewise.
29439         * math/w_j0f.c: Likewise.
29440         * math/w_j0l.c: Likewise.
29441         * math/w_j1.c: Likewise.
29442         * math/w_j1f.c: Likewise.
29443         * math/w_j1l.c: Likewise.
29444         * math/w_jn.c: Likewise.
29445         * math/w_jnf.c: Likewise.
29446         * math/w_log.c: Likewise.
29447         * math/w_logf.c: Likewise.
29448         * math/w_logl.c: Likewise.
29449         * math/w_log10.c: Likewise.
29450         * math/w_log10f.c: Likewise.
29451         * math/w_log10l.c: Likewise.
29452         * math/w_log2.c: Likewise.
29453         * math/w_log2f.c: Likewise.
29454         * math/w_log2l.c: Likewise.
29455         * math/w_pow.c: Likewise.
29456         * math/w_powf.c: Likewise.
29457         * math/w_powl.c: Likewise.
29458         * math/w_remainder.c: Likewise.
29459         * math/w_remainderf.c: Likewise.
29460         * math/w_remainderl.c: Likewise.
29461         * math/w_scalb.c: Likewise.
29462         * math/w_scalbf.c: Likewise.
29463         * math/w_scalbl.c: Likewise.
29464         * math/w_sqrt.c: Likewise.
29465         * math/w_sqrtf.c: Likewise.
29466         * math/w_sqrtl.c: Likewise.
29467         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
29468         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
29469         used.
29470         * math/math_private.h: Declare __kernel_standard_f.
29471         * math/w_cosh.c: Remove cruft and optimize a bit.
29472         * math/w_coshf.c: Likewise.
29473         * math/w_coshl.c: Likewise.
29474         * math/w_exp2.c: Likewise.
29475         * math/w_exp2f.c: Likewise.
29476         * math/w_exp2l.c: Likewise.
29477         * math/w_hypot.c: Likewise.
29478         * math/w_hypotf.c: Likewise.
29479         * math/w_hypotl.c: Likewise.
29480         * math/w_lgamma.c: Likewise.
29481         * math/w_lgamma_r.c: Likewise.
29482         * math/w_lgammaf.c: Likewise.
29483         * math/w_lgammaf_r.c: Likewise.
29484         * math/w_lgammal.c: Likewise.
29485         * math/w_lgammal_r.c: Likewise.
29486         * math/w_sinh.c: Likewise.
29487         * math/w_sinhf.c: Likewise.
29488         * math/w_sinhl.c: Likewise.
29489         * math/w_tgamma.c: Likewise.
29490         * math/w_tgammaf.c: Likewise.
29491         * math/w_tgammal.c: Likewise.
29492         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29493         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29494         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
29495         Minor optimizations.  Pretty printing.  Remove cruft.
29496         * sysdeps/i386/fpu/e_acosf.S: Likewise.
29497         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29498         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29499         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29500         * sysdeps/i386/fpu/e_acosl.c: Likewise.
29501         * sysdeps/i386/fpu/e_asin.S: Likewise.
29502         * sysdeps/i386/fpu/e_asinf.S: Likewise.
29503         * sysdeps/i386/fpu/e_atan2.S: Likewise.
29504         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
29505         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
29506         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29507         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29508         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29509         * sysdeps/i386/fpu/e_exp10.S: Likewise.
29510         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
29511         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
29512         * sysdeps/i386/fpu/e_exp2.S: Likewise.
29513         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
29514         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
29515         * sysdeps/i386/fpu/e_fmod.S: Likewise.
29516         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
29517         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
29518         * sysdeps/i386/fpu/e_hypot.S: Likewise.
29519         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
29520         * sysdeps/i386/fpu/e_log.S: Likewise.
29521         * sysdeps/i386/fpu/e_log10.S: Likewise.
29522         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29523         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29524         * sysdeps/i386/fpu/e_log2.S: Likewise.
29525         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29526         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29527         * sysdeps/i386/fpu/e_logf.S: Likewise.
29528         * sysdeps/i386/fpu/e_logl.S: Likewise.
29529         * sysdeps/i386/fpu/e_pow.S: Likewise.
29530         * sysdeps/i386/fpu/e_powf.S: Likewise.
29531         * sysdeps/i386/fpu/e_powl.S: Likewise.
29532         * sysdeps/i386/fpu/e_remainder.S: Likewise.
29533         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
29534         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
29535         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29536         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29537         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29538         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
29539         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
29540         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
29541         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29542         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29543         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29544         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29545         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29546         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29547         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
29548         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29549         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29550         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29551         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29552         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29553         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29554         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29555         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29556         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29557         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29558         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29559         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29560         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29561         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29562         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29563         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29564         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29565         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29566         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29567         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29568         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29569         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
29570         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29571         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29572         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29573         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29574         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29575         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29576         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29577         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29578         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29579         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29580         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29581         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29582         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29583         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29584         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29585         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29586         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29587         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29588         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29589         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29590         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
29591         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29592         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29593         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29594         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29595         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29596         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29597         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29598         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29599         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29600         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29601         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29602         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29603         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29604         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29605         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29606         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29607         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29608         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29609         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
29610         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29611         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29612         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29613         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29614         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29615         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29616         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29617         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
29618         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29619         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29620         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29621         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29622         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29623         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
29624         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29625         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29626         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29627         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29628         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29629         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29630         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29631         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29632         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29633         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29634         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
29635         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29636         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29637         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29638         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
29639         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
29640         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
29641         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
29642         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
29643         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
29644         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
29645         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29646         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29647         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29648         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29649         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
29650         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29651         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
29652         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
29653         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
29654         (__isnanf): Likewise.
29655         (__isinf_ns): Likewise.
29656         (__isinf_nsf): Likewise.
29657         (__finite): Likewise.
29658         (__finitef): Likewise.
29659         (__ieee754_sqrt): Define as macro.
29660         (__ieee754_sqrtf): Define as macro.
29661         (__ieee754_sqrtl): Define as macro.
29662         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29663         inlined copy.
29664         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29665         __FINITE_MATH_ONLY__ consistent.
29666         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29667
29668 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29669
29670         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29671         of rawmemchr.
29672
29673         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29674
29675 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29676
29677         * po/ja.po: Update from translation team.
29678
29679 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29680
29681         * locale/programs/locarchive.c (prepare_address_space): New function.
29682         (create_archive, enlarge_archive, open_archive): Use it.
29683
29684         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29685         inside [SHARED], where it is used.
29686
29687         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29688
29689         * nss/getent.c (netgroup_keys): Remove unused variable.
29690         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29691
29692 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29693
29694         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29695         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29696         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29697         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29698         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29699         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29700         * math/Makefile (libm-calls): Add s_isinf_ns.
29701         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29702         * math/multc3.c: Likewise.
29703         * math/s_casin.c: Likewise.
29704         * math/s_casinf.c: Likewise.
29705         * math/s_casinl.c: Likewise.
29706         * math/s_ccos.c: Likewise.
29707         * math/s_ccosf.c: Likewise.
29708         * math/s_ccosl.c: Likewise.
29709         * math/s_ctan.c: Likewise.
29710         * math/s_ctanf.c: Likewise.
29711         * math/s_ctanh.c: Likewise.
29712         * math/s_ctanhf.c: Likewise.
29713         * math/s_ctanhl.c: Likewise.
29714         * math/s_ctanl.c: Likewise.
29715         * math/w_fmod.c: Likewise.
29716         * math/w_fmodf.c: Likewise.
29717         * math/w_fmodl.c: Likewise.
29718         * math/w_remainder.c: Likewise.
29719         * math/w_remainderf.c: Likewise.
29720         * math/w_remainderl.c: Likewise.
29721         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29722         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29723         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29724         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29725         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29726         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29727         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29728         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29729
29730         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29731         of the number.
29732         * stdio-common/printf_fphex.c: Likewise.
29733         * stdio-common/printf_size.c: Likewise.
29734
29735         * math/e_exp10.c: Include math_private.h using <...> not "...".
29736         * math/e_exp10f.c: Likewise.
29737         * math/e_exp10l.c: Likewise.
29738         * math/e_exp2l.c: Likewise.
29739         * math/e_j0l.c: Likewise.
29740         * math/e_j1l.c: Likewise.
29741         * math/e_jnl.c: Likewise.
29742         * math/e_lgammal_r.c: Likewise.
29743         * math/e_rem_pio2l.c: Likewise.
29744         * math/e_scalb.c: Likewise.
29745         * math/e_scalbf.c: Likewise.
29746         * math/e_scalbl.c: Likewise.
29747         * math/k_cosl.c: Likewise.
29748         * math/k_sinl.c: Likewise.
29749         * math/k_tanl.c: Likewise.
29750         * math/s_cacoshf.c: Likewise.
29751         * math/s_catan.c: Likewise.
29752         * math/s_catanf.c: Likewise.
29753         * math/s_catanh.c: Likewise.
29754         * math/s_catanhf.c: Likewise.
29755         * math/s_catanhl.c: Likewise.
29756         * math/s_catanl.c: Likewise.
29757         * math/s_ccosh.c: Likewise.
29758         * math/s_ccoshf.c: Likewise.
29759         * math/s_ccoshl.c: Likewise.
29760         * math/s_cexp.c: Likewise.
29761         * math/s_cexpf.c: Likewise.
29762         * math/s_cexpl.c: Likewise.
29763         * math/s_clog.c: Likewise.
29764         * math/s_clog10.c: Likewise.
29765         * math/s_clog10f.c: Likewise.
29766         * math/s_clog10l.c: Likewise.
29767         * math/s_clogf.c: Likewise.
29768         * math/s_clogl.c: Likewise.
29769         * math/s_csin.c: Likewise.
29770         * math/s_csinf.c: Likewise.
29771         * math/s_csinh.c: Likewise.
29772         * math/s_csinhf.c: Likewise.
29773         * math/s_csinhl.c: Likewise.
29774         * math/s_csinl.c: Likewise.
29775         * math/s_csqrt.c: Likewise.
29776         * math/s_csqrtf.c: Likewise.
29777         * math/s_csqrtl.c: Likewise.
29778         * math/s_ctan.c: Likewise.
29779         * math/s_ctanf.c: Likewise.
29780         * math/s_ctanh.c: Likewise.
29781         * math/s_ctanhf.c: Likewise.
29782         * math/s_ctanhl.c: Likewise.
29783         * math/s_ctanl.c: Likewise.
29784         * math/s_ldexp.c: Likewise.
29785         * math/s_ldexpf.c: Likewise.
29786         * math/s_ldexpl.c: Likewise.
29787         * math/s_significand.c: Likewise.
29788         * math/s_significandf.c: Likewise.
29789         * math/s_significandl.c: Likewise.
29790         * math/w_acos.c: Likewise.
29791         * math/w_acosf.c: Likewise.
29792         * math/w_acosh.c: Likewise.
29793         * math/w_acoshf.c: Likewise.
29794         * math/w_acoshl.c: Likewise.
29795         * math/w_acosl.c: Likewise.
29796         * math/w_asin.c: Likewise.
29797         * math/w_asinf.c: Likewise.
29798         * math/w_asinl.c: Likewise.
29799         * math/w_atan2.c: Likewise.
29800         * math/w_atan2f.c: Likewise.
29801         * math/w_atan2l.c: Likewise.
29802         * math/w_atanh.c: Likewise.
29803         * math/w_atanhf.c: Likewise.
29804         * math/w_atanhl.c: Likewise.
29805         * math/w_cosh.c: Likewise.
29806         * math/w_coshf.c: Likewise.
29807         * math/w_coshl.c: Likewise.
29808         * math/w_dremf.c: Likewise.
29809         * math/w_exp10.c: Likewise.
29810         * math/w_exp10f.c: Likewise.
29811         * math/w_exp10l.c: Likewise.
29812         * math/w_exp2.c: Likewise.
29813         * math/w_exp2f.c: Likewise.
29814         * math/w_fmod.c: Likewise.
29815         * math/w_fmodf.c: Likewise.
29816         * math/w_fmodl.c: Likewise.
29817         * math/w_hypot.c: Likewise.
29818         * math/w_hypotf.c: Likewise.
29819         * math/w_hypotl.c: Likewise.
29820         * math/w_j0.c: Likewise.
29821         * math/w_j0f.c: Likewise.
29822         * math/w_j0l.c: Likewise.
29823         * math/w_j1.c: Likewise.
29824         * math/w_j1f.c: Likewise.
29825         * math/w_j1l.c: Likewise.
29826         * math/w_jn.c: Likewise.
29827         * math/w_jnf.c: Likewise.
29828         * math/w_jnl.c: Likewise.
29829         * math/w_lgamma.c: Likewise.
29830         * math/w_lgamma_r.c: Likewise.
29831         * math/w_lgammaf.c: Likewise.
29832         * math/w_lgammaf_r.c: Likewise.
29833         * math/w_lgammal.c: Likewise.
29834         * math/w_lgammal_r.c: Likewise.
29835         * math/w_log.c: Likewise.
29836         * math/w_log10.c: Likewise.
29837         * math/w_log10f.c: Likewise.
29838         * math/w_log10l.c: Likewise.
29839         * math/w_log2.c: Likewise.
29840         * math/w_log2f.c: Likewise.
29841         * math/w_log2l.c: Likewise.
29842         * math/w_logf.c: Likewise.
29843         * math/w_logl.c: Likewise.
29844         * math/w_pow.c: Likewise.
29845         * math/w_powf.c: Likewise.
29846         * math/w_powl.c: Likewise.
29847         * math/w_remainder.c: Likewise.
29848         * math/w_remainderf.c: Likewise.
29849         * math/w_remainderl.c: Likewise.
29850         * math/w_scalb.c: Likewise.
29851         * math/w_scalbf.c: Likewise.
29852         * math/w_scalbl.c: Likewise.
29853         * math/w_sinh.c: Likewise.
29854         * math/w_sinhf.c: Likewise.
29855         * math/w_sinhl.c: Likewise.
29856         * math/w_sqrt.c: Likewise.
29857         * math/w_sqrtf.c: Likewise.
29858         * math/w_sqrtl.c: Likewise.
29859         * math/w_tgamma.c: Likewise.
29860         * math/w_tgammaf.c: Likewise.
29861         * math/w_tgammal.c: Likewise.
29862
29863         * po/ja.po: Update from translation team.
29864
29865 2011-09-29  Andreas Jaeger  <aj@suse.de>
29866
29867         [BZ #13179]
29868         * sunrpc/netname.c (netname2host): Fix logic.
29869
29870         [BZ #6779]
29871         [BZ #6783]
29872         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29873         correctly.
29874         * math/w_remainder.c (__remainder): Likewise.
29875         * math/w_remainderf.c (__remainderf): Likewise.
29876         * math/libm-test.inc (remainder_test): Add test cases.
29877
29878 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29879
29880         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29881         sdiv_qrnnd.
29882
29883 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29884
29885         * string/test-memcmp.c: Avoid unncessary #defines.
29886         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29887
29888 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29889
29890         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29891         Use new sse2 version for core i3 - i7 as it's faster
29892         than sse42 version.
29893         (bit_Prefer_PMINUB_for_stringop): New.
29894         * sysdeps/x86_64/rawmemchr.S: Update.
29895         Replace with faster SSE2 version.
29896         * sysdeps/x86_64/memrchr.S: New file.
29897         * sysdeps/x86_64/memchr.S: Update.
29898         Replace with faster SSE2 version.
29899
29900 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29901
29902         * elf/dl-load.c (lose): Add cast to avoid warning.
29903
29904 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29905
29906         * po/ca.po: Update from translation team.
29907
29908         * inet/getnetgrent_r.c: Hook up nscd.
29909         * nscd/Makefile (routines): Add nscd_netgroup.
29910         (nscd-modules): Add netgroupcache.
29911         (CFLAGS-netgroupcache.c): Define.
29912         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29913         (cache_search): Add const to second parameter.
29914         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
29915         INNETGR.
29916         (dbs): Add netgrdb entry.
29917         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
29918         (verify_persistent_db): Handle netgrdb.
29919         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
29920         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
29921         GETFDNETGR.
29922         (netgroup_response_header): Define.
29923         (innetgroup_response_header): Define.
29924         (datahead): Add netgroup_response_header and innetgroup_response_header
29925         elements.
29926         * nscd/nscd.conf: Add entries for netgroup cache.
29927         * nscd/nscd.h (dbtype): Add netgrdb.
29928         (_PATH_NSCD_NETGROUP_DB): Define.
29929         (netgroup_iov_disabled): Declare.
29930         (xmalloc, xcalloc, xrealloc): Move declarations here.
29931         (cache_search): Adjust prototype.
29932         Add netgroup-related prototypes.
29933         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
29934         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
29935         (__nscd_innetgr): Declare.
29936         * nscd/selinux.c (perms): Use access_vector_t as element type and
29937         add netgroup-related initializers.
29938         * nscd/netgroupcache.c: New file.
29939         * nscd/nscd_netgroup.c: New file.
29940         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
29941         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
29942         For four parameters use innetgr.
29943         * nss/nss_files/files-init.c: Add definition and callback for netgr.
29944         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
29945         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
29946         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
29947
29948         * nscd/connections.c (register_traced_file): Don't register file
29949         for disabled databases.
29950
29951 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
29952
29953         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
29954
29955         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
29956         from tree and freeing node.
29957
29958 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
29959
29960         * nss/nsswitch.c (__nss_database_lookup): Handle
29961         nss_parse_service_list out of memory case.
29962
29963 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
29964
29965         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
29966         out of memory case.
29967
29968 2011-10-04  Andreas Schwab  <schwab@redhat.com>
29969
29970         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
29971         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
29972         pass it down.
29973         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
29974         elf_machine_rela, elf_machine_lazy_rel.
29975         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
29976         (ELF_DYNAMIC_DO_REL): Likewise.
29977         (ELF_DYNAMIC_DO_RELA): Likewise.
29978         (ELF_DYNAMIC_RELOCATE): Likewise.
29979         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
29980         to ELF_DYNAMIC_DO_REL.
29981         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
29982         (dl_main): In trace mode always set __RTLD_NOIFUNC.
29983         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
29984         elf_machine_rela.
29985         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
29986         skip_ifunc, don't call ifunc function if non-zero.
29987         (elf_machine_rela): Likewise.
29988         (elf_machine_lazy_rel): Likewise.
29989         (elf_machine_lazy_rela): Likewise.
29990         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
29991         (elf_machine_lazy_rel): Likewise.
29992         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29993         Likewise.
29994         (elf_machine_lazy_rel): Likewise.
29995         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29996         Likewise.
29997         (elf_machine_lazy_rel): Likewise.
29998         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
29999         (elf_machine_lazy_rel): Likewise.
30000         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
30001         (elf_machine_lazy_rel): Likewise.
30002         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
30003         (elf_machine_lazy_rel): Likewise.
30004         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30005         (elf_machine_lazy_rel): Likewise.
30006         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30007         (elf_machine_lazy_rel): Likewise.
30008         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
30009         (elf_machine_lazy_rel): Likewise.
30010
30011 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
30012
30013         * nss/nss_files/files-init.c (_nss_files_init): Use static
30014         initialization for all the *_traced_file variables.
30015
30016 2011-09-28  Andreas Schwab  <schwab@redhat.com>
30017
30018         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30019
30020 2011-09-27  Roland McGrath  <roland@hack.frob.com>
30021
30022         [BZ #13226]
30023         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
30024
30025 2011-09-27  Andreas Schwab  <schwab@redhat.com>
30026
30027         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
30028         Reread the line before reparsing it.
30029
30030 2011-09-26  Andreas Schwab  <schwab@redhat.com>
30031
30032         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
30033
30034 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
30035             Maxim Kuvyrkov  <maxim@codesourcery.com>
30036             Joseph Myers  <joseph@codesourcery.com>
30037
30038         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
30039         if needed for __stack_chk_guard.
30040
30041 2011-09-19  Roland McGrath  <roland@hack.frob.com>
30042
30043         * sysdeps/posix/spawni.c (script_execute): Always define it.
30044         It will be optimized away if unused.
30045         (maybe_script_execute): New function.
30046         (__spawni): Call it.
30047
30048         * Makerules: Don't include tls.make.
30049         (config-tls): Always set to thread.
30050         * tls.make.c: File removed.
30051
30052 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
30053
30054         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
30055         * config.make.in (CPPFLAGS-config): New substituted variable.
30056
30057 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30058
30059         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
30060
30061         [BZ #13192]
30062         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
30063         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
30064
30065 2011-09-15  Roland McGrath  <roland@hack.frob.com>
30066
30067         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
30068         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
30069         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
30070         (CALL_FAIL): Likewise.
30071         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
30072         (CALL_FAIL): Macro removed.
30073         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
30074
30075 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30076
30077         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
30078         for __FINITE_MATH_ONLY__ == 1.
30079
30080 2011-09-15  Andreas Schwab  <schwab@redhat.com>
30081
30082         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
30083         __ieee754_sqrt instead of sqrt.
30084         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
30085         __ieee754_sqrtf instead of sqrtf.
30086         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
30087         __floorf instead of floorf.
30088         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
30089         __floorf, __truncf instead of floorf, truncf.
30090
30091 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
30092
30093         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
30094
30095         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
30096         __extern_always_inline.
30097         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
30098         32-bit.
30099
30100 2011-09-14  Andreas Schwab  <schwab@redhat.com>
30101
30102         * elf/rtld.c (dl_main): Also relocate in dependency order when
30103         doing symbol dependency testing.
30104
30105 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
30106
30107         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30108         Always define `refsym'.
30109
30110 2011-09-13  Andreas Schwab  <schwab@redhat.com>
30111
30112         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
30113         (__FD_ELT): Renamed from __FDELT.
30114         * misc/bits/select2.h (__FD_ELT): Likewise.
30115         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
30116         __FD_MASK instead of __FDELT, __FDMASK.
30117         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30118         Likewise.
30119         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30120         Likewise.
30121
30122         * elf/Makefile (gen-ldd): Fix pattern.
30123
30124         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
30125         (init_tls): Likewise.
30126
30127 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
30128
30129         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
30130
30131 2011-09-12  Andreas Schwab  <schwab@redhat.com>
30132
30133         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
30134         `struct cmsghdr *' instead of `void *'.
30135         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
30136         Likewise.
30137
30138 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
30139
30140         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
30141         if non-absolute.
30142         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
30143         ldd_rewrite_script.
30144
30145 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
30146
30147         * configure.in: Remove --with-tls option.
30148         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
30149         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
30150         out in case it is missing.
30151         * sysdeps/ia64/elf/configure.in: Likewise.
30152         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
30153         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
30154         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
30155         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
30156         * sysdeps/sh/elf/configure.in: Likewise.
30157         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
30158         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30159         * sysdeps/x86_64/elf/configure.in: Likewise.
30160         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
30161         * sysdeps/mach/hurd/tls.h: Likewise.
30162
30163         [BZ #13067]
30164         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
30165
30166         [BZ #13090]
30167         * configure.in: Fix use of AC_INIT.
30168
30169         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
30170
30171 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
30172
30173         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
30174         __set_errno.
30175         * malloc/hooks.c: Likewise.
30176
30177         [BZ #11929]
30178         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
30179         variables statically.
30180         (narenas): Initialize.
30181         (list_lock): Initialize.
30182         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
30183         initializtion of main_arena and list_lock.  Small cleanups.
30184         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
30185         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
30186         Add initializers to main_arena and mp_.
30187         (malloc_state): Remove pagesize member.  Change all users to use
30188         GLRO(dl_pagesize).
30189
30190         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
30191         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
30192         is always initialized.
30193
30194         * malloc/malloc.c: Removed unused configurations and dead code.
30195         * malloc/arena.c: Likewise.
30196         * malloc/hooks.c: Likewise.
30197         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
30198
30199         * include/tls.h: Removed.  USE___THREAD must always be defined.
30200         * bits/libc-tsd.h: Don't handle !USE___THREAD.
30201         * elf/dl-libc.c: Likewise.
30202         * elf/dl-tsd.c: Likewise.
30203         * include/errno.h: Likewise.
30204         * include/netdb.h: Likewise.
30205         * include/resolv.h: Likewise.
30206         * inet/herrno-loc.c: Likewise.
30207         * inet/herrno.c: Likewise.
30208         * malloc/arena.c: Likewise.
30209         * malloc/hooks.c: Likewise.
30210         * malloc/malloc.c: Likewise.
30211         * resolv/res-state.c: Likewise.
30212         * resolv/res_libc.c: Likewise.
30213         * sysdeps/i386/dl-machine.h: Likewise.
30214         * sysdeps/ia64/dl-machine.h: Likewise.
30215         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
30216         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
30217         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
30218         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
30219         * sysdeps/sh/dl-machine.h: Likewise.
30220         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
30221         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
30222         * sysdeps/unix/i386/sysdep.S: Likewise.
30223         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30224         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30225         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30226         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30227         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30228         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30229         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30230         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30231         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30232         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30233         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30234         * sysdeps/x86_64/dl-machine.h: Likewise.
30235         * tls.make.c: Likewise.
30236
30237         * configure.in: Remove --with-__thread option.  Make tests for
30238         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
30239         tls_model attribute fail if no support is available.  Remove
30240         USE_IN_LIBIO.
30241         * Makeconfig: Adjust for dropped configure option.  All features are
30242         now mandatory.
30243         * Makerules: Likewise.
30244         * Versions.def: Likewise.
30245         * argp/argp-fmtstream.c: Likewise.
30246         * argp/argp-fmtstream.h: Likewise.
30247         * argp/argp-help.c: Likewise.
30248         * assert/assert.c: Likewise.
30249         * config.h.in: Likewise.
30250         * config.make.in: Likewise.
30251         * configure: Likewise.
30252         * configure.in: Likewise.
30253         * csu/Versions: Likewise.
30254         * csu/init.c: Likewise.
30255         * elf/tst-audit2.c: Likewise.
30256         * elf/tst-tls10.c: Likewise.
30257         * elf/tst-tls10.h: Likewise.
30258         * elf/tst-tls11.c: Likewise.
30259         * elf/tst-tls12.c: Likewise.
30260         * elf/tst-tls14.c: Likewise.
30261         * elf/tst-tlsmod11.c: Likewise.
30262         * elf/tst-tlsmod12.c: Likewise.
30263         * elf/tst-tlsmod13.c: Likewise.
30264         * elf/tst-tlsmod13a.c: Likewise.
30265         * elf/tst-tlsmod14a.c: Likewise.
30266         * elf/tst-tlsmod15b.c: Likewise.
30267         * elf/tst-tlsmod16a.c: Likewise.
30268         * elf/tst-tlsmod16b.c: Likewise.
30269         * elf/tst-tlsmod7.c: Likewise.
30270         * elf/tst-tlsmod8.c: Likewise.
30271         * elf/tst-tlsmod9.c: Likewise.
30272         * gmon/gmon.c: Likewise.
30273         * grp/fgetgrent_r.c: Likewise.
30274         * grp/putgrent.c: Likewise.
30275         * hurd/fopenport.c: Likewise.
30276         * include/libc-symbols.h: Likewise.
30277         * include/tls.h: Likewise.
30278         * intl/gettextP.h: Likewise.
30279         * intl/loadinfo.h: Likewise.
30280         * locale/global-locale.c: Likewise.
30281         * locale/localeinfo.h: Likewise.
30282         * mach/devstream.c: Likewise.
30283         * malloc/arena.c: Likewise.
30284         * malloc/set-freeres.c: Likewise.
30285         * misc/err.c: Likewise.
30286         * misc/getttyent.c: Likewise.
30287         * misc/mntent_r.c: Likewise.
30288         * posix/getopt.c: Likewise.
30289         * posix/wordexp.c: Likewise.
30290         * pwd/fgetpwent_r.c: Likewise.
30291         * resolv/Versions: Likewise.
30292         * resolv/res_hconf.c: Likewise.
30293         * shadow/fgetspent_r.c: Likewise.
30294         * shadow/putspent.c: Likewise.
30295         * stdio-common/printf_fphex.c: Likewise.
30296         * stdio-common/tmpfile.c: Likewise.
30297         * stdlib/abort.c: Likewise.
30298         * stdlib/fmtmsg.c: Likewise.
30299         * sunrpc/auth_unix.c: Likewise.
30300         * sunrpc/clnt_perr.c: Likewise.
30301         * sunrpc/clnt_tcp.c: Likewise.
30302         * sunrpc/clnt_udp.c: Likewise.
30303         * sunrpc/clnt_unix.c: Likewise.
30304         * sunrpc/openchild.c: Likewise.
30305         * sunrpc/svc_simple.c: Likewise.
30306         * sunrpc/svc_tcp.c: Likewise.
30307         * sunrpc/svc_udp.c: Likewise.
30308         * sunrpc/svc_unix.c: Likewise.
30309         * sunrpc/xdr.c: Likewise.
30310         * sunrpc/xdr_array.c: Likewise.
30311         * sunrpc/xdr_rec.c: Likewise.
30312         * sunrpc/xdr_ref.c: Likewise.
30313         * sunrpc/xdr_stdio.c: Likewise.
30314
30315 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30316
30317         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30318
30319 2011-07-03  Andreas Jaeger  <aj@suse.de>
30320
30321         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
30322         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
30323         regenerate with gen-libm-tests.pl.
30324
30325 2010-05-12  Petr Baudis  <pasky@suse.cz>
30326
30327         [BZ #11589]
30328         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
30329         around j0() zero points by switching to j1().
30330         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30331         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30332         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30333         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30334
30335 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30336
30337         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
30338         instead of 0.
30339         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
30340         instead of 0.
30341         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30342         Patch in part by Pavel Roskin <proski@gnu.org>.
30343
30344         [BZ #13138]
30345         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
30346         realloc.
30347         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
30348         Free memory block if necessary.
30349
30350         [BZ #12847]
30351         * libio/genops.c (INTDEF): For string streams the _lock pointer can
30352         be NULL.  Don't lock in this case.
30353
30354 2011-09-09  Roland McGrath  <roland@hack.frob.com>
30355
30356         * elf/elf.h (ELFOSABI_GNU): New macro.
30357         (ELFOSABI_LINUX): Define to that.
30358
30359 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
30360
30361         * string/strncat.c (strncat): Undef the symbol in case it has been
30362         defined in bits/string.h.
30363
30364 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30365
30366         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
30367
30368         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
30369         link map.
30370
30371 2011-08-17  Andreas Jaeger  <aj@suse.de>
30372
30373         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
30374
30375 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
30376             Ian Lance Taylor  <iant@google.com>
30377
30378         * math/libm-test.inc (lround_test): New testcase.
30379         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
30380
30381 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
30382
30383         * Makefile: Remove support for automatic cvs check-ins.
30384         * Makerules: Likewise.
30385         * config.make.in: Likewise.
30386         * configure.in: Likewise.
30387         * intl/Makefile: Likewise.
30388         * locale/Makefile: Likewise.
30389         * po/Makefile: Likewise.
30390         * posix/Makefile: Likewise.
30391         * sysdeps/gnu/Makefile: Likewise.
30392         * sysdeps/mach/hurd/Makefile: Likewise.
30393         * sysdeps/sparc/sparc32/Makefile: Likewise.
30394
30395         [BZ #13118]
30396         * posix/Makefile (bug-regex32-ENV): Define.
30397         Patch by John Stanley <jpsinthemix@verizon.net>.
30398
30399         * misc/Makefile (headers): Add bits/select2.h.
30400         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
30401         * misc/bits/select2.h: New file.
30402         * include/bits/select2.h: New file.
30403         * debug/Makefile (routines): Add fdelt_chk.
30404         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
30405         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
30406         FD_ISSET.
30407         * debug/fdelt_chk.c: New file.
30408
30409         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
30410         * wcsmbs/test-wmemcmp.c: Likewise.
30411         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
30412         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
30413
30414 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30415
30416         * string/Makefile (strop-tests): Add memcmp.
30417         * string/test-wmemcmp.c: New file.
30418         * string/test-memcmp.c: Add wmemcmp support.
30419
30420 2011-09-08  Roland McGrath  <roland@hack.frob.com>
30421
30422         [BZ #13153]
30423         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
30424         2011-07-19 change.
30425
30426         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
30427         garbage value in a __mach_port_mod_refs call in the cases of the
30428         task-self and thread-self ports.
30429
30430 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30431
30432         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
30433
30434 2011-09-08  Andreas Schwab  <schwab@redhat.com>
30435
30436         * elf/dl-load.c (lose): Check for non-null L.
30437
30438 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30439
30440         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
30441
30442         * elf/dl-libc.c (dlerror_run): Pass back error code from
30443         dl_catch_error.
30444
30445         [BZ #13123]
30446         * elf/dl-load.c (lose): Free l_origin if it is valid.
30447
30448         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
30449         names.
30450         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30451         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30452         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30453         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30454         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30455         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
30456
30457 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30458
30459         * sysdeps/powerpc/fpu/e_hypot.c: New file.
30460         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
30461         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
30462         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
30463         * sysdeps/powerpc/fpu/k_cosf.c: New file.
30464         * sysdeps/powerpc/fpu/k_sinf.c: New file.
30465         * sysdeps/powerpc/fpu/s_cosf.c: New file.
30466         * sysdeps/powerpc/fpu/s_sinf.c: New file.
30467         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
30468         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
30469
30470 2011-08-15  Alan Modra  <amodra@gmail.com>
30471
30472         [BZ #13092]
30473         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
30474         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
30475         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
30476         ppc_mcount to static-only-routines.
30477         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
30478         __mcount_internal.
30479         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
30480         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
30481
30482 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
30483
30484         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
30485         for finite and infinity parameters.
30486
30487 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30488
30489         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
30490         and add nop instructions for throughput optimization.
30491         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30492
30493 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
30494
30495         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
30496         aligned copy for power7 with vector-scalar instructions.
30497         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
30498
30499 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
30500
30501         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
30502         AVX check.
30503
30504 2011-09-07  Andreas Schwab  <schwab@redhat.com>
30505
30506         [BZ #13144]
30507         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
30508         last change.
30509
30510 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30511
30512         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30513         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
30514         syscall wrapper around clock_gettime in __vdso_clock_gettime.
30515         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
30516         clock_gettime.
30517
30518 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30519
30520         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
30521         Forgot to demangle the pointer.
30522
30523         * sysdeps/i386/sysdep.h: Define atom_text_section.
30524         * sysdeps/x86_64/sysdep.h: Likewise.
30525         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
30526         section with atom_text_section.
30527         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30528         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30529         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30530         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30531         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
30532
30533         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
30534         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
30535         already be defined.  Change to take two parameters and don't assign
30536         result to variable.  Adjust all users.
30537         Define INTERNAL_GETTIME if not already defined.
30538         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
30539         call.
30540         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
30541         HAVE_CLOCK_GETTIME_VSYSCALL.
30542         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
30543
30544         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
30545         gettimeofday vsyscall, just use time.
30546
30547 2011-09-06  Andreas Schwab  <schwab@redhat.com>
30548
30549         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
30550         <errno.h>.
30551
30552 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30553
30554         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
30555         syscall on x86-64.
30556         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
30557         syscall.
30558         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30559         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
30560         syscall if possible.
30561
30562 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30563
30564         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
30565         e_ident.  Don't pass to find_mapsXX.
30566         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
30567
30568 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30569
30570         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30571         strchr-sse2-no-bsf strrchr-sse2-no-bsf
30572         * sysdeps/x86_64/multiarch/strchr.S: Update.
30573         Check bit_slow_BSF bit.
30574         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
30575         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
30576         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
30577
30578 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30579
30580         [BZ #13134]
30581         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
30582         before glibc 2.15.
30583         (tryshell): Define.
30584         (__spawni): Change last parameter to be flag.  Test
30585         SPAWN_XFLAGS_USE_PATH flag to use path or not.
30586         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
30587         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
30588         * posix/spawni.c: Likewise.
30589         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
30590         * posix/spawnp.c: Likewise.  Change normal version to use
30591         SPAWN_XFLAGS_USE_PATH.
30592         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
30593         SPAWN_XFLAGS_TRY_SHELL.
30594
30595         [BZ #13150]
30596         * posix/glob.h: Remove gcc 1.x support.
30597
30598         [BZ #13068]
30599         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
30600
30601 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30602
30603         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30604         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
30605         strrchr-sse2-bsf
30606         * sysdeps/i386/i686/multiarch/strchr.S: New file.
30607         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
30608         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
30609         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
30610         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
30611         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
30612
30613 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30614
30615         * sysdeps/x86_64/wcscmp.S: New file.
30616
30617         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
30618         wcscmp-c wcscmp-sse2
30619         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
30620         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
30621         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
30622         * wcsmbs/wcscmp.c: Allow renaming.
30623
30624 2011-09-05  David S. Miller  <davem@davemloft.net>
30625
30626         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
30627         stack slot, rather than the struct return pointer slot.
30628         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
30629         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
30630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
30631         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
30632
30633 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30634
30635         * po/ja.po: Update from translation team.
30636
30637         [BZ #13144]
30638         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
30639         kernel in 64-bit binaries.
30640
30641 2011-09-01  David S. Miller  <davem@davemloft.net>
30642
30643         * elf/elf.h (HWCAP_SPARC_*): Move to..
30644         * sysdeps/sparc/sysdep.h: this new file and add new values.
30645         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
30646         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
30647         _DL_HWCAP_COUNT to 24.
30648         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
30649         entries.
30650         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
30651         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
30652         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
30653         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
30654         instead of magic constants.
30655         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30656
30657 2011-08-31  David S. Miller  <davem@davemloft.net>
30658
30659         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
30660         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30661         Reimplement to do errno handling inline.
30662         (SYSCALL_ERROR_HANDLER): New macro.
30663         (__SYSCALL_STRING): Do not do errno handling in asm.
30664         (__CLONE_SYSCALL_STRING): Delete.
30665         (__INTERNAL_SYSCALL_STRING): Delete.
30666         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30667         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30668         (PSEUDO): Reimplement to do errno handling inline.
30669         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30670         (SYSCALL_ERROR_HANDLER): New macro.
30671         (__SYSCALL_STRING): Do not do errno handling in asm.
30672         (__CLONE_SYSCALL_STRING): Delete.
30673         (__INTERNAL_SYSCALL_STRING): Delete.
30674         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30675         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30676         i386.
30677         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30678         (inline_syscall*): Add 'err' argument.
30679         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30680         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30681         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30682         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30683
30684         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30685         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30686
30687 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30688
30689         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30690
30691 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30692
30693         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30694         directive.
30695
30696 2011-08-24  David S. Miller  <davem@davemloft.net>
30697
30698         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30699
30700 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30701
30702         * elf/Makefile: Add rules to build and run unload8 test.
30703         * elf/unload8.c: New file.
30704         * elf/unload8mod1.c: New file.
30705         * elf/unload8mod1x.c: New file.
30706         * elf/unload8mod2.c: New file.
30707         * elf/unload8mod3.c: New file.
30708
30709         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30710         it wasn't used.
30711
30712 2011-08-23  David S. Miller  <davem@davemloft.net>
30713
30714         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30715         subtract stack bias.
30716         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30717         %sp not %fp in calculations.
30718         (_JMPBUF_UNWINDS_ADJ): Likewise.
30719
30720         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30721         (aio_suspend): Call it to force an exception region around the
30722         AIO_MISC_WAIT() invocation.
30723
30724 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30725
30726         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30727         backslash.
30728
30729 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30730
30731         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30732         protection macro.
30733         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30734         and <dl-machine.h>.
30735         (Elf64_FuncDesc): Remove.
30736
30737 2011-08-22  David S. Miller  <davem@davemloft.net>
30738
30739         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30740         sigaltstack check, add missing cfi directives.
30741         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30742         missing cfi directives, and sigaltstack handling.
30743
30744 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30745
30746         [BZ #11724]
30747         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30748         object is seen twice.
30749         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30750
30751         * elf/Makefile (distribute): Add tst-initorder2.c.
30752         (tests): Add tst-initorder2.
30753         (modules-names): Add tst-initorder2a tst-initorder2b
30754         tst-initorder2c tst-initorder2d.  Add rules to build them.
30755         ($(objpfx)tst-initorder2.out): New rule.
30756         * elf/tst-initorder2.c: New file.
30757         * elf/tst-initorder2.exp: New file.
30758
30759 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30760
30761         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30762
30763         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30764         dependencies back to end of function.
30765
30766         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30767         $(elfobjdir)/ld.so.
30768
30769 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30770
30771         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30772         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30773         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30774         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30775         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30776         of __vdso_gettimeofday.
30777         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30778         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30779         attribute_hidden.
30780         (_libc_vdso_platform_setup): Remove initialization of
30781         __vdso_gettimeofday and __vdso_time.
30782
30783 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30784
30785         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30786         and fgetc_unlocked.
30787         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30788         getc_unlocked.
30789
30790         * elf/dl-open.c (add_to_global): Report additions to the global scope
30791         for LD_DEBUG=scopes.
30792         (dl_open_worker): Also print scope of newly loaded dependencies.
30793         (_dl_show_scope): Indicate if there is no scope.
30794
30795         [BZ #13114]
30796         * stdio-common/Makefile (tests): Add bug24.
30797         * stdio-common/bug24.c: New file.
30798
30799 2011-08-19  Andreas Jaeger  <aj@suse.de>
30800
30801         [BZ #13114]
30802         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30803         non-existant file when using close-on-exec mode.
30804
30805 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30806
30807         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30808         the very first instruction.
30809
30810         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30811         the CFI state in the end.
30812         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30813         inclusion of dl-trampoline.h.
30814         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30815
30816 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30817
30818         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30819         expectations for long double.
30820
30821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30822         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30823
30824 2011-08-14  David S. Miller  <davem@davemloft.net>
30825
30826         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30827         artificual limit depends upon the system page size.
30828
30829 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30830
30831         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30832         * resolv/Makefile: Define CFLAGS-libresolv.
30833
30834 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30835
30836         * nss/makedb.c (compute_tables): Make variables used in nested
30837         function static.
30838
30839 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30840
30841         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30842         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30843         if buffer was too small.
30844
30845         * elf/pldd.c (main): Attach to all threads in the process.
30846         Rewrite /proc handling to use *at functions.
30847
30848 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30849
30850         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30851         specifies first scope to show.
30852         (dl_open_worker): Update callers.  Move printing scope of new
30853         object to before the relocation.
30854         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30855         * sysdeps/generic/ldsodefs.h: Update declaration.
30856
30857         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30858         string for the scope number.
30859
30860 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30861
30862         * nscd/servicescache.c (cache_addserv): Make sure written is always
30863         initialized.
30864
30865 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30866
30867         * sysdeps/i386/i486/bits/atomic.h
30868         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30869         statement expression, so as to suppress "set but not used" warning.
30870         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30871
30872         * string/strncat.c (STRNCAT): Use prototype definition.
30873
30874         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30875         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30876         -Iprograms here.
30877         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30878         (localedef-modules): Add localedef.
30879         (locale-modules): Add locale.
30880
30881         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30882         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30883         to avoid a warning.
30884
30885 2011-08-14  David S. Miller  <davem@davemloft.net>
30886
30887         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30888         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30889
30890 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30891
30892         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30893         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30894         * elf/rtld.c (dl_main): Set l_name of vDSO.
30895         Call _dl_show_scope when DL_DEBUG_SCOPES.
30896         (process_dl_debug): Recognize scopes flag and also set it for all.
30897         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30898         Declare _dl_show_scope.
30899
30900         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30901         (do_dlopen): Pass caller_dlopen to dl_open.
30902         (__libc_dlopen_mode): Initialize caller_dlopen.
30903
30904         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30905         of libc.  Make tolower call locale-independent.  Optimize a bit by
30906         using isdigit instead of isalnum.
30907         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30908
30909 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30910
30911         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30912         was a dependency or dynamically loaded.
30913
30914 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
30915
30916         * intl/l10nflist.c: Allow architecture-specific pop function.
30917         * sysdeps/x86_64/l10nflist.c: New file.
30918
30919         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
30920         classification.
30921
30922 2011-08-10  Andreas Schwab  <schwab@redhat.com>
30923
30924         * include/dirent.h: Add libc_hidden_proto for scandirat and
30925         scandirat64.  Don't declare __scandirat64.
30926         * dirent/scandirat.c: Add libc_hidden_def.
30927         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
30928         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
30929
30930 2011-08-10  David S. Miller  <davem@davemloft.net>
30931
30932         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
30933         enum.
30934         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30935         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30936         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30937
30938 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
30939
30940         * Versions.def [libc]: Add GLIBC_2.15.
30941         * dirent/Makefile (routines): Add scandirat and scandirat64.
30942         * dirent/Versions [libc]: Export scandirat and scandirat64 for
30943         GLIBC_2.15.
30944         * dirent/dirent.h: Declare scandirat and scandirat64.
30945         * dirent/scandirat.c: New file.
30946         * dirent/scandirat64.c: New file.
30947         * sysdeps/wordsize-64/scandirat.c: New file.
30948         * sysdeps/wordsize-64/scandirat64.c: New file.
30949         * dirent/opendir.c: Define opendirat.
30950         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
30951         using scandirat.
30952         * dirent/scandir64.c: Adjust for scandir.c change.
30953         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
30954         __scandirat64, and __scandir_cancel_handler.
30955         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
30956         additional parameter and use openat instead of open (outside of ld.so).
30957         Add new __opendir as wrapper around __opendirat.
30958         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
30959         here without requiring old scandirat implementation.
30960
30961 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
30962
30963         * dirent/scandir.c (cancel_handler): Renamed to
30964         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
30965         defined.  Adjust users.
30966         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
30967         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
30968
30969 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
30970
30971         * string/test-string.h (IMPL): Use __STRING to expand name and then
30972         stringify it.
30973
30974         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
30975         of cleanups.
30976
30977 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30978
30979         * string/Makefile: Update.
30980         (strop-tests): Append strncat.
30981         * string/test-wcscmp.c: New file.
30982         New comprehensive test for wcscmp.
30983         * string/test-strcmp.c: Update.
30984         (WIDE): New define.
30985
30986 2011-07-22  Andreas Schwab  <schwab@redhat.com>
30987
30988         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
30989         line.
30990
30991 2011-07-26  Andreas Schwab  <schwab@redhat.com>
30992
30993         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30994         encoding to ACE if AI_IDN.
30995
30996 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
30997
30998         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
30999         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
31000
31001 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31002
31003         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
31004         Fix overflow bug in strncat.
31005         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
31006
31007         * string/test-strncat.c: Update.
31008         Add new tests for checking overflow bugs.
31009
31010 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31011
31012         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31013         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
31014         * sysdeps/i386/i686/multiarch/strcat.S: New file.
31015         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
31016         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
31017         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
31018         * sysdeps/i386/i686/multiarch/strncat.S: New file.
31019         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
31020         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
31021
31022         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
31023         (USE_AS_STRCAT): Define.
31024         Add strcat and strncat support.
31025         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31026
31027 2011-07-25  Andreas Schwab  <schwab@redhat.com>
31028
31029         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
31030         __n bigger than INT_MAX+1.
31031         (__strncmp_g): Likewise.
31032
31033 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
31034
31035         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
31036         * libio/stido.h: Likewise.
31037
31038         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
31039         (AF_NFC): Define.
31040         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
31041         (AF_NFC): Define.
31042
31043         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
31044         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31045         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31046         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31047         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31048
31049         [BZ #13021]
31050         * scripts/test-installation.pl: Don't expect libnss_test1 to be
31051         installed.
31052
31053         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
31054         typo.
31055         (_dl_x86_64_save_sse): Likewise.
31056
31057 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
31058
31059         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
31060         OSXSAVE.
31061         (_dl_x86_64_save_sse): Likewise.
31062
31063         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
31064
31065         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
31066
31067 2011-07-21  Andreas Schwab  <schwab@redhat.com>
31068
31069         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
31070         change.
31071         (_dl_x86_64_save_sse): Use correct AVX check.
31072
31073 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31074
31075         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
31076         bug in strncpy/strncat.
31077         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
31078
31079 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
31080
31081         * string/tester.c (test_strcat): Add tests for different alignments
31082         of source and destination.
31083         (test_strncat): Likewise.
31084
31085 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31086
31087         [BZ #12852]
31088         * posix/glob.c (glob): Check passed in values before using them in
31089         expressions to avoid some overflows.
31090         (glob_in_dir): Likewise.
31091
31092         [BZ #13007]
31093         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
31094         check for AVX enablement so that we don't crash with old kernels and
31095         new hardware.
31096         * elf/tst-audit4.c: Add same checks here.
31097         * elf/tst-audit6.c: Likewise.
31098
31099         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
31100
31101 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
31102
31103         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
31104
31105 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31106
31107         * po/cs.po: Update from translation team.
31108         * po/bg.po: Likewise.
31109
31110 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
31111
31112         * misc/sys/cdefs.h: Add support for const attribute.
31113         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
31114         to gnu_dev_{major,minor,makedev} functions.
31115
31116 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
31117
31118         * intl/dcigettext.c (get_output_charset): Add missing bracket.
31119
31120 2011-07-20  Andreas Schwab  <schwab@redhat.com>
31121
31122         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
31123         strlen results.
31124
31125 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31126
31127         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31128         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
31129         register in order to avoid conflicts with the soft frame pointer
31130         being held in r11 when necessary.
31131         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31132         (INTERNAL_VSYSCALL_NCS): Likewise.
31133
31134 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
31135
31136         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
31137         * elf/dl-fini.c (_dl_fini): Adjust caller.
31138         * elf/dl-close.c (_dl_close_worker): Likewise.
31139         * sysdeps/generic/ldsodefs.h: Adjust declaration.
31140
31141 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31142
31143         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
31144         "aux_cache->nlibs < 0".
31145
31146         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
31147         in the reload-count case.
31148
31149 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31150
31151         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31152         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
31153         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
31154         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
31155         * sysdeps/x86_64/multiarch/strcat.S: New file.
31156         * sysdeps/x86_64/multiarch/strncat.S: New file.
31157         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
31158         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
31159         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
31160         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
31161         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
31162         (USE_AS_STRCAT): Define.
31163         Add strcat and strncat support.
31164         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
31165         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
31166         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
31167         * string/strncat.c: Update.
31168         (USE_AS_STRNCAT): Define.
31169         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31170         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
31171         and i7.
31172         * sysdeps/x86_64/multiarch/init-arch.h
31173         (bit_Prefer_PMINUB_for_stringop): New.
31174         (index_Prefer_PMINUB_for_stringop): Likewise.
31175         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
31176         bit_Prefer_PMINUB_for_stringop.
31177
31178 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31179
31180         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
31181         buffer64.
31182         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
31183         of casting of buffer.
31184         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
31185         buffer32 and buffer64.
31186         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
31187         writes instead of casting of buffer.
31188         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
31189         buffer32.
31190         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
31191         casting of buffer.
31192
31193 2011-07-19  Andreas Schwab  <schwab@redhat.com>
31194
31195         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
31196
31197 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31198
31199         * nscd/nscd.c (termination_handler): Don't do anything for a database
31200         if it has not yet been initialized.
31201
31202 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31203
31204         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31205
31206 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31207
31208         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31209
31210 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31211
31212         * po/nl.po: Update from translation team.
31213         * po/sv.po: Likewise.
31214
31215 2011-07-16  Roland McGrath  <roland@hack.frob.com>
31216
31217         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
31218         now disallowed by GCC.
31219
31220         * configure.in (use-default-link): Default to yes if a test -shared
31221         link meets our qualifications.
31222         * configure: Regenerated.
31223
31224         * config.make.in (output-format): New variable.
31225         * configure.in: Check for ld --print-output-format support.
31226         * configure: Regenerated.
31227         * Makerules ($(common-objpfx)format.lds)
31228         [$(output-format) != unknown]: Just use $(output-format),
31229         instead of the linker-script munging.
31230
31231 2011-07-14  Roland McGrath  <roland@hack.frob.com>
31232
31233         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
31234         of $(common-objpfx)shlib.lds.
31235         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
31236
31237         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
31238         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
31239
31240         * configure.in (-z relro check): Adjust test code to add a large
31241         writable data section after it.
31242         * configure: Regenerated.
31243
31244 2011-07-11  Roland McGrath  <roland@hack.frob.com>
31245
31246         * configure.in (-z relro check): Fix test code to make the variable
31247         truly const.
31248         * configure: Regenerated.
31249
31250 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
31251
31252         * nscd/nscd.h (struct traced_file): Define.
31253         (struct database_dyn): Remove inotify_descr, reset_res, and filename
31254         elements.  Add traced_files.
31255         (inotify_fd): Declare.
31256         (register_traced_file): Declare.
31257         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
31258         (inotify_fd): Export.
31259         (resolv_conf_descr): Remove.
31260         (nscd_init): Move inotify descriptor creation to main.
31261         Don't register files for notification here.
31262         (register_traced_file): New function.
31263         (invalidate_cache): Don't use reset_res to determine whether to call
31264         res_init, go through the list of registered files.
31265         (main_loop_poll): The inotify descriptors are now stored in the
31266         structures for the traced files.
31267         (main_loop_epoll): Likewise
31268         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
31269         to __nss_disable_nscd.
31270         * nscd/cache.c (prune_cache): There is no single inotify descriptor
31271         for a database anymore.  Check the records for all the registered
31272         files instead.
31273         * nss/Makefile (libnss_files-routines): Add files-init.
31274         (libnss_db-routines): Add db-init.
31275         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
31276         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
31277         * nss/nss_db/db-init.c: New file.
31278         * nss/nss_files/files-init.c: New file.
31279         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
31280         __nss_lookup_function.
31281         (__nss_lookup_function): Call nss_load_library.
31282         (nss_load_all_libraries): New function.
31283         (__nss_disable_nscd): Take parameter with callback function for files
31284         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
31285         used for the cached services.
31286         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
31287         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
31288         options for features to all the files in nscd.
31289
31290         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
31291
31292 2011-07-10  Roland McGrath  <roland@hack.frob.com>
31293
31294         * csu/elf-init.c (__libc_csu_init): Comment typo.
31295
31296 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
31297
31298         * po/pl.po: Update from translation team.
31299         * po/ja.po: Likewise.
31300         * po/ru.po: Likewise.
31301         * po/ko.po: Likewise.
31302         * po/fr.po: Likewise.
31303
31304 2011-07-09  Roland McGrath  <roland@hack.frob.com>
31305
31306         * configure.in (.ctors/.dtors header and trailer check):
31307         Use an empirical test on a built program.
31308         * configure: Regenerated.
31309
31310         * configure.in (-z relro check): Use an empirical test on a built DSO.
31311         Detect, but do not require, on ia64.
31312         * configure: Regenerated.
31313
31314         * configure.in (READELF): Find it with AC_CHECK_TOOL.
31315         Update tests that use readelf to use $READELF instead.
31316         * configure: Regenerated.
31317
31318 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
31319
31320         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
31321         if the result is not used.
31322
31323 2011-07-05  Andreas Jaeger  <aj@suse.de>
31324
31325         [BZ#9696]
31326         * stdlib/tst-strtod.c: Add testcase.
31327
31328 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31329
31330         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
31331         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
31332         The latter has a higher limit.  Take additional parameter to pass to
31333         the new function.
31334         (__pathconf): Pass file to __statfs_link_max.
31335         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
31336         __statfs_link_max.
31337         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
31338         __statfs_link_max.
31339
31340         [BZ #12868]
31341         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
31342         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31343         Handle Lustre.
31344         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
31345         (__statfs_filesize_max): Likewise.
31346         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
31347
31348 2011-07-05  Andreas Jaeger  <aj@suse.de>
31349
31350         * resolv/res_comp.c (dn_skipname): Remove unused variable.
31351
31352 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
31353
31354         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
31355         `status' variable.
31356         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
31357         Likewise.
31358
31359 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
31360
31361         * Makefile (strop-tests): Add strncat.
31362         * string/test-strncat.c: New file.
31363
31364 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
31365
31366         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
31367
31368 2011-06-21  Andreas Jaeger  <aj@suse.de>
31369
31370         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
31371         Copy rule from iconvdata/Makefile.
31372
31373 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31374
31375         [BZ #12922]
31376         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
31377         but no long options are defined, just return 'W'.
31378
31379 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
31380
31381         [BZ #9696]
31382         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
31383
31384 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31385
31386         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
31387         netgroups to read.
31388         (innetgr): Likewise.
31389
31390 2011-07-05  Roland McGrath  <roland@hack.frob.com>
31391
31392         * config.make.in (install_root): Default to $(DESTDIR).
31393
31394 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
31395
31396         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
31397
31398 2011-07-02  Roland McGrath  <roland@hack.frob.com>
31399
31400         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
31401
31402         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
31403         containing directory rather than embedding absolute directory names.
31404
31405         * scripts/check-local-headers.sh: Rewritten using awk.
31406         Match by word, not by line.  Print error messages for matches.
31407         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
31408
31409         * Makerules [shlib-lds-flags empty]:
31410         ($(common-objpfx)libc_pic.opts): New target.
31411         ($(common-objpfx)libc_pic.os.clean): New target.
31412         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
31413
31414         * config.make.in (OBJCOPY): New variable.
31415         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
31416         * configure: Regenerated.
31417
31418         * config.make.in (use-default-link): New variable.
31419         * configure.in (use_default_link): Grok --with-default-link to set it.
31420         * configure: Regenerated.
31421         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
31422         (shlib-lds, shlib-lds-flags): Define to empty.
31423
31424         * Makerules (shlib-lds): New variable.
31425         (shlib-lds-flags): New variable.
31426         (build-shlib, build-moduile, build-module-asneeded): Use it.
31427         ($(common-objpfx)libc.so): Use $(shlib-lds).
31428         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
31429         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
31430
31431         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
31432         DT_FLAGS/DT_FLAGS_1 with zero flags.
31433
31434         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
31435         linker script munging.
31436
31437 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
31438
31439         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
31440         as 128-bit value.
31441         * crypt/sha512.c (sha512_process_block): Perform total addition using
31442         128-bit if possible.
31443         (__sha512_finish_ctx): Likewise.
31444         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
31445         as 64-bit value.
31446         * crypt/sha256.c (SWAP64): Define.
31447         (sha256_process_block): Perform total addition using 64-bit if
31448         possible.
31449         (__sha256_finish_ctx): Likewise.
31450
31451 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
31452
31453         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
31454         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31455         * nscd/hstcache.c (cache_addhst): Likewise.
31456         * nscd/grpcache.c (cache_addgr): Likewise.
31457         * nscd/aicache.c (addhstaiX): Likewise
31458         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
31459
31460 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
31461
31462         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
31463         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31464         * nscd/hstcache.c (cache_addhst): Likewise.
31465         * nscd/grpcache.c (cache_addgr): Likewise.
31466         * nscd/aicache.c (addhstaiX): Likewise
31467
31468 2011-07-01  Andreas Schwab  <schwab@redhat.com>
31469
31470         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
31471         domain only when needed.
31472
31473 2011-06-30  Andreas Schwab  <schwab@redhat.com>
31474
31475         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
31476         is always restored.
31477
31478 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
31479
31480         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
31481         are re-adding the entry.
31482         * nscd/servicescache.c (cache_addserv): Likewise.
31483
31484 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
31485
31486         * sysdeps/generic/dl-irel.h: fix protection against multiple
31487         inclusions.
31488         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
31489
31490 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
31491
31492         [BZ #12935]
31493         * malloc/memusage.sh: Fix quoting in message.
31494         * debug/xtrace.sh: Likewise.
31495
31496         * configure.in: Remove support for --experimental-malloc option, make
31497         it the default.
31498         * config.make.in: Likewise.
31499         * malloc/Makefile: Likewise.
31500
31501 2011-06-27  Andreas Schwab  <schwab@redhat.com>
31502
31503         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
31504         two-byte characters.
31505
31506 2011-06-27  Roland McGrath  <roland@hack.frob.com>
31507
31508         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
31509         AC_CACHE_CHECK invocation.
31510         * configure: Regenerated.
31511
31512         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
31513
31514 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
31515
31516         [BZ #12350]
31517         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
31518         bit from old_res_options.
31519
31520         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
31521
31522         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
31523         value type for setfct.
31524
31525 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31526
31527         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31528         __gettimeofday instead of gettimeofday.
31529
31530 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
31531
31532         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
31533
31534 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31535
31536         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
31537
31538         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
31539         info.
31540
31541 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31542
31543         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31544         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31545         strcpy-sse2-unaligned strncpy-sse2-unaligned
31546         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
31547         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
31548         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
31549         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
31550         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
31551         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
31552         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
31553         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
31554         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
31555         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
31556         (STRCPY): Support SSE2 and SSSE3 versions.
31557
31558 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
31559
31560         [BZ #12874]
31561         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
31562         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
31563         kernels which artificially limit size of requests.
31564
31565 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31566
31567         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31568         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31569         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
31570         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
31571         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
31572         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
31573         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
31574         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
31575         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
31576         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
31577         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
31578         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
31579         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
31580         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
31581         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
31582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31583         Enable unaligned load optimization for Intel Core i3, i5 and i7
31584         processors.
31585         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
31586         Define.
31587         (index_Fast_Unaligned_Load): Define.
31588         (HAS_FAST_UNALIGNED_LOAD): Define.
31589
31590 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
31591
31592         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
31593
31594 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31595
31596         [BZ #12907]
31597         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
31598         until it is clear that the information is realy needed.
31599         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
31600
31601 2011-06-22  Andreas Schwab  <schwab@redhat.com>
31602
31603         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
31604
31605 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31606
31607         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31608         /sys/devices/system/cpu/online if it is usable.
31609
31610         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
31611         reading the information from the /proc filesystem to once a second.
31612
31613 2011-06-21  Andreas Jaeger  <aj@suse.de>
31614
31615         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
31616         NULL after inclusion of kernel headers.
31617
31618 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
31619
31620         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
31621         calls to internal_setent.
31622
31623         [BZ #12885]
31624         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
31625         addresses using gethostbyname4_r ignore IPv4 addresses.
31626
31627         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
31628         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
31629
31630         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
31631
31632 2011-06-20  David S. Miller  <davem@davemloft.net>
31633
31634         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
31635         inclusions.
31636         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
31637
31638         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
31639         (elf_irel): Use it.
31640         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
31641         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
31642         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
31643         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
31644         * sysdeps/x86_64/dl-irel.h: Likewise.
31645
31646         * elf/dl-runtime.c: Use elf_ifunc_invoke.
31647         * elf/dl-sym.c: Likewise.
31648
31649 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31650
31651         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
31652         need to dereference resplen2.
31653
31654 2011-06-14  Andreas Schwab  <schwab@redhat.com>
31655
31656         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
31657
31658 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31659
31660         * Makeconfig: Define vardbdir and inst_vardbdir.
31661         * nss/Makefile: Add rules to install db-Makefile.
31662
31663         * nss/nss_db/db-XXX.c: Cleanup.
31664
31665         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31666         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31667         GLIBC_PRIVATE.
31668         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31669         * nss/makedb.c: Implement -g option to specify that value strings
31670         are generated and should not be added to table iterated over for
31671         get*ent calls.
31672         * nss/nss_db/db-initgroups.c: New file.
31673
31674         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31675         interface.
31676
31677         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31678         (internal_getgrouplist): Adjust to name change.
31679         Update use_initgroups_entry if this is not the first call.
31680         * nss/databases.def: Add initgroups entry.
31681
31682         * nss/makedb.c (compute_tables): Check result of multiple hash table
31683         sizes to minimize maximum chain length.
31684
31685 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31686
31687         * Versions.def: Add entry for libnss_db.
31688         * shlib-versions: Likewise.
31689         * nss/Makefile: Add rules to build libnss_db.
31690         * nss/Versions: Add libnss_db information.  Organize libnss_files
31691         entries better.
31692         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31693         makedb progra.  Some minor improvements to generate smaller files.
31694         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31695         here from...
31696         * nss/makedb.c: ...here.
31697         Improve database format to be smaller and require less memory at
31698         runtime.
31699         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31700         db anymore.
31701         * nss/nss_db/db-netgrp.c: Likewise.
31702         * nss/nss_db/db-open.c: Likewise.
31703         * nss/nss_files/flies-XXX.x: Adjust comments.
31704         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31705         * nss/nss_files/files-grp.c: Likewise.
31706         * nss/nss_files/files-hosts.c: Likewise.
31707         * nss/nss_files/files-network.c: Likewise.
31708         * nss/nss_files/files-proto.c: Likewise.
31709         * nss/nss_files/files-pwd.c: Likewise.
31710         * nss/nss_files/files-rpc.c: Likewise.
31711         * nss/nss_files/files-service.c: Likewise.
31712         * nss/nss_files/files-sgrp.c: Likewise.
31713         * nss/nss_files/files-spwd.c: Likewise.
31714         * nss/nss_db/db-alias.c: Removed.
31715         * nss/nss_db/dummy-db.h: Removed.
31716
31717 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31718
31719         * nss/makedb.c: Rewritten to not use database library.
31720         * nss/Makefile: Update to build new makedb program.
31721
31722 2011-06-14  Andreas Jaeger  <aj@suse.de>
31723
31724         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31725         memset declaration.
31726
31727 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31728
31729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31730         tmpbuf.
31731
31732 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31733
31734         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31735         * elf/Makefile ($(objpfx)ld.so): Likewise.
31736
31737         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31738         Don't list ld.so twice in dependencies.
31739
31740         * posix/bug-regex31.c: Include <stdlib.h>.
31741
31742         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31743
31744         * nis/nss_compat/compat-spwd.c
31745         (getspent_next_nss_netgr): Remove unused variable.
31746         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31747
31748         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31749         nonmembers" output to use the right array.
31750
31751         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31752
31753         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31754
31755         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31756         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31757         * catgets/gencat.c (read_input_file): Likewise.
31758         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31759
31760         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31761         variable definition inside #if's controlling its use.
31762
31763         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31764
31765         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31766
31767         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31768
31769         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31770         unreachable code.
31771
31772         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31773
31774         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31775         * configure: Regenerated.
31776
31777         * Makerules: Revert last change.
31778         * elf/Makefile: Likewise.
31779
31780 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31781
31782         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31783         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31784         (reloc-link): Likewise.
31785
31786 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31787
31788         * elf/Makefile: Add rules to build pldd.
31789         * elf/pldd.c: New file.
31790         * elf/pldd-xx.c: New file.
31791
31792 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31793
31794         * version.h: Update for 2.15 development version.
31795
31796 2011-06-07  David S. Miller  <davem@davemloft.net>
31797
31798         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31799         ifuncs.
31800         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31801         elf_machine_lazy_rel): Likewise.
31802         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31803         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31804         elf_machine_lazy_rel): Likewise.
31805         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31806         dl_hwcap via passed in argument.
31807         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31808         Likewise.
31809
31810 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31811
31812         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31813
31814 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31815
31816         [BZ #12849]
31817         * manual/fdl-1.1.texi: New file, verbatim from:
31818         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31819         * manual/lgpl-2.1.texi: New file, verbatim from:
31820         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31821         * manual/Makefile (licenses): New variable, list those new file names.
31822         (texis): Use it.
31823         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31824
31825         * manual/fdl.texi: File removed.
31826         * manual/lesser.texi: File removed.
31827         * manual/libc.texinfo (Copying, Documentation License):
31828         Use new @include file names, put @appendix directive before @include.
31829
31830 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31831
31832         [BZ #12841]
31833         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31834         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31835         (mq_open): Add __NTH.
31836
31837 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31838
31839         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31840         Assume Intel Core i3/i5/i7 processor if AVX is available.
31841
31842 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31843
31844         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31845         typo.
31846
31847 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31848
31849         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31850         memory.  Use alloca_account.  Fix memory leak when retrying.
31851
31852 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31853
31854         * version.h (RELEASE): Bump for 2.14 release.
31855         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31856
31857         * config.make.in (RANLIB): Remove entry.
31858
31859 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31860
31861         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31862         (libc.pot): Work around missing support for .ksh extension in xgettext.
31863
31864         [BZ #12684]
31865         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31866         if both request failed.
31867         (send_dg): In case of server errors clear resplen or *resplen2.
31868
31869         [BZ #12454]
31870         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31871         when there are multiple maps.
31872         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31873         (_dl_fini): Remove test here.
31874
31875         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31876
31877 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31878
31879         [BZ #12350]
31880         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31881         bit from old_res_options.
31882         (gaih_inet): Likewise.
31883
31884         [BZ #11099]
31885         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31886         as signed.
31887
31888         * resolv/res_init.c (res_setoptions): Make the code more compact.
31889
31890         [BZ #11558]
31891         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31892         set RES_USEVC.
31893
31894         [BZ #11634]
31895         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31896
31897         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31898
31899         [BZ #11781]
31900         * malloc/malloc.h: Declare malloc hook variables as volatile.
31901
31902         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31903         in last patch.
31904
31905         [BZ #11799]
31906         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31907         raise in the comment.
31908         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31909         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31910         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31911
31912 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31913
31914         [BZ #12811]
31915         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
31916         grow the buffers more if it already has to be sufficient.
31917         (build_wcs_upper_buffer): Likewise.
31918         * posix/regexec.c (check_matching): Likewise.
31919         (clean_state_log_if_needed): Likewise.
31920         (extend_buffers): Don't enlarge buffers beyond size of the input
31921         buffer.
31922         Patches mostly by Emil Wojak <emil@wojak.eu>.
31923         * posix/bug-regex32.c: New file.
31924         * posix/Makefile (tests): Add bug-regex32.
31925
31926         * locale/findlocale.c (_nl_find_locale): Return right away if
31927         _nl_explode_name failed.
31928         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
31929
31930         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
31931
31932         * debug/xtrace.sh: Unify messages.
31933         * malloc/memusage.sh: Likewise.
31934
31935         [BZ #12813]
31936         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
31937         time symbol from vDSO.  Substitute with vsyscall if not available.
31938         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
31939         __vdso_time.
31940
31941         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
31942         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
31943         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
31944         Add sendmmsg and internal_sendmmsg.
31945         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
31946         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
31947         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
31948
31949         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
31950         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
31951         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
31952
31953 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
31954
31955         [BZ #12813]
31956         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
31957         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
31958         available.
31959         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
31960         __vdso_getcpu.
31961
31962         [BZ #12814]
31963         * iconvdata/Makefile (tests): Add bug-iconv9.
31964         * iconvdata/bug-iconv9.c: New file.
31965
31966 2011-05-27  Andreas Schwab  <schwab@redhat.com>
31967
31968         [BZ #12814]
31969         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
31970
31971 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
31972
31973         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31974         (struct user_regs_struct): Change intcs field back to cs.
31975
31976 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
31977
31978         * po/ja.po: Update from translation team.
31979
31980 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
31981
31982         [BZ #12795]
31983         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
31984         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
31985
31986 2011-05-20  Andreas Schwab  <schwab@redhat.com>
31987
31988         * stdlib/longlong.h: Update from GCC.
31989
31990 2011-05-23  Andreas Schwab  <schwab@redhat.com>
31991
31992         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
31993         parameter name.
31994         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
31995         Add parameter name.
31996         (__sysconf): Pass it down.
31997
31998 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
31999
32000         [BZ #12671]
32001         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
32002         some situations.
32003         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32004         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
32005         add in in __libc_use_alloca calls.  Adjust callers.
32006         (glob): Use malloc in some situations.
32007
32008         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
32009         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
32010         pltexit.
32011
32012 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
32013
32014         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
32015         and CLOCK_BOOTTIME_ALARM.
32016
32017         [BZ #12782]
32018         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
32019         is returned.
32020
32021         * string/_strerror.c (__strerror_r): Print negative errors as signed
32022         numbers.
32023
32024         [BZ #12777]
32025         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
32026         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
32027         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
32028
32029         * configure.in: Fix typo in redirection and correct removal of test
32030         files in two cases.
32031
32032         [BZ #12788]
32033         * locale/setlocale.c (new_composite_name): Fix test to check for
32034         identical name of all categories.
32035
32036         [BZ #12792]
32037         * libio/filedoalloc.c (local_isatty): New function.
32038         (_IO_file_doallocate): Use local_isatty.
32039         * stdio-common/perror.c (perror): In case a new stream is used
32040         forward the stream error.
32041         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
32042         error flag.
32043
32044 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
32045
32046         [BZ #11869]
32047         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
32048         alloca.
32049         * include/alloca.h (extend_alloca_account): Define.
32050
32051         [BZ #11857]
32052         * posix/regex.h: Fix comments with documentation of user-accessible
32053         fields after compilation and describe correct free'ing of pattern
32054         after re_compile_pattern.
32055         Patch by Reuben Thomas <rrt@sc3d.org>.
32056
32057 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
32058
32059         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
32060         and -mno-altivec to prevent the compiler from using Altivec and/or
32061         VSX instructions when the corresponding registers are not available.
32062
32063 2011-05-19  Andreas Schwab  <schwab@redhat.com>
32064
32065         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
32066
32067 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
32068
32069         * libio/freopen.c (freopen): Use __dup2, not dup2.
32070         * libio/freopen64.c (freopen64): Likewise.
32071
32072 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32073
32074         [BZ #12775]
32075         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
32076         * math/Makefile (tests): Add test-powl.
32077         (CFLAGS-test-powl.c): Define.
32078         * math/test-powl.c: New file.
32079
32080 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32081
32082         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
32083
32084 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
32085
32086         [BZ #11837]
32087         * iconvdata/gb18030.c: Update to GB18020-2005.
32088
32089 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
32090
32091         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
32092         RE_SYNTAX_POSIX_AWK): Update to match recent development.
32093         Patch by Aharon Robbins <arnold@skeeve.com>.
32094
32095         [BZ #11892]
32096         * stdlib/putenv.c (putenv): Don't always create copy of the variable
32097         on the stack.
32098
32099         [BZ #11895]
32100         * misc/pselect.c (__pselect): Handle timeout value errors hidden
32101         through underflows.
32102
32103         [BZ #12766]
32104         * misc/error.c (error_at_line): Ensure file_name and old_file_name
32105         point to strings before performing equality test for error_one_per_line
32106         mode.
32107
32108         [BZ #11697]
32109         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
32110
32111         [BZ #11820]
32112         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32113         (struct user_fpregs_struct): Avoid __uint*_t types.
32114
32115         [BZ #6420]
32116         * malloc/mtrace.c (tr_where): Add additional parameter to point to
32117         symbol info.  Use it instead of calling _dl_addr locally.
32118         (lock_and_info): New function.
32119         (tr_freehook): Call lock_and_info and pass symbol info as additional
32120         parameter to tr_where.
32121         (tr_mallochook): Likewise.
32122         (tr_reallochook): Likewise.
32123         (tr_memalignhook): Likewise.
32124
32125         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
32126         used and couldn't be at all thread-safe.
32127
32128 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
32129
32130         * libio/freopen.c (freopen): Don't close old file descriptor
32131         before the new one is opened.  Instead dup the new file descriptor
32132         to the old one after the new stream is created.
32133         * libio/freopen64.c (freopen64): Likewise.
32134         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
32135         * libio/fileops.c (_IO_new_file_close_it): Handle new
32136         _IO_FLAGS2_NOCLOSE flag.
32137         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
32138         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
32139         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
32140         _IO_FLAGS2_NOCLOSE flag.
32141         * include/unistd.h: Add hidden_proto for dup3.
32142         Define __have_dup3.
32143         * io/dup3.c: Define hidden symbol.
32144         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
32145
32146         [BZ #7101]
32147         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
32148         when an incomplete long option is used.
32149         * posix/tst-getopt_long1.c: New file.
32150         * posix/Makefile (tests): Add tst-getopt_long1.
32151
32152         [BZ #10138]
32153         * scripts/config.guess: Update from autoconf-2.68.
32154         * scripts/config.sub: Likewise.
32155
32156         [BZ #10157]
32157         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
32158         tests into ...
32159         (has_cpuclock): ...this.  New function.
32160         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
32161         macro here based on has_cpuclock code.
32162
32163         [BZ #10149]
32164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32165         First byte (not low byte) is now always NUL.
32166         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
32167
32168         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32169         Use non-cancelable interfaces.
32170
32171         [BZ #9809]
32172         * locale/iso-639.def: Add entry for Sorani.
32173
32174         [BZ #11901]
32175         * include/stdlib.h: Move include protection to the right place.
32176         Define abort_msg_s.  Declare __abort_msg with it.
32177         * stdlib/abort.c (__abort_msg): Adjust type.
32178         * assert/assert.c (__assert_fail_base): New function.  Majority
32179         of code from __assert_fail.  Allocate memory for __abort_msg with
32180         mmap.
32181         (__assert_fail): Now call __assert_fail_base.
32182         * assert/assert-perr.c: Remove bulk of implementation.  Use
32183         __assert_fail_base.
32184         * include/assert.hL Declare __assert_fail_base.
32185         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
32186         mmap.
32187         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
32188
32189 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
32190
32191         [BZ #11952]
32192         [BZ #12453]
32193         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
32194         until all modules are registered in the DTV.
32195         * elf/Makefile: Add rules to build and run tst-tls19.
32196         * elf/tst-tls19.c: New file.
32197         * elf/tst-tls19mod1.c: New file.
32198         * elf/tst-tls19mod2.c: New file.
32199         * elf/tst-tls19mod3.c: New file.
32200         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
32201
32202         [BZ #12083]
32203         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
32204         correctly.
32205
32206         [BZ #12601]
32207         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
32208         two-byte sequence errors.
32209         * iconvdata/Makefile (tests): Add bug-iconv8.
32210         * iconvdata/bug-iconv8.c: New file.
32211
32212         [BZ #12626]
32213         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
32214         buf2 definition.
32215
32216         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
32217
32218         [BZ #12432]
32219         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
32220         (dummy_getcfa): New function.
32221         (init): Get _Unwind_GetCFA address, use dummy if not found.
32222         (backtrace_helper): In recursion check, also check whether CFA changes.
32223         (__backtrace): Completely initialize arg.
32224
32225         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
32226         storing incomplete byte sequence in state object.  Avoid testing for
32227         guaranteed too small input if we know there is enough data available.
32228
32229 2011-05-11  Andreas Schwab  <schwab@redhat.com>
32230
32231         * Makeconfig (+link-pie): Indent.
32232         * Rules (binaries-pie): Define if $(have-fpie) and
32233         $(build-shared).
32234         (binaries-shared): Also filter out $(binaries-pie).
32235         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
32236         * nscd/Makefile (others-pie): Add nscd.
32237         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
32238         ($(objpfx)nscd): Remove command override.
32239         * login/Makefile (others-pie): Add pt_chown.
32240         ($(objpfx)pt_chown): Remove command override.
32241         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
32242         remove command overrides.
32243
32244 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
32245
32246         * libio/tst_putwc.c: Fix error messages.
32247
32248         [BZ #12724]
32249         * libio/fileops.c (_IO_new_file_close_it): Always flush when
32250         currently writing and seek to current position when not.
32251         * libio/Makefile (tests): Add bug-fclose1.
32252         * libio/bug-fclose1.c: New file.
32253
32254 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
32255
32256         [BZ #12511]
32257         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
32258         don't set DF_1_NODELETE here.
32259         (do_lookup_x): When entering new entry test for copy relocation
32260         and if necessary set DF_1_NODELETE flag.
32261         * elf/tst-unique4.cc: New file.
32262         * elf/tst-unique4.h: New file.
32263         * elf/tst-unique4lib.cc: New file.
32264         * elf/Makefile: Add rules to build and run tst-unique4.
32265         Patch by Piotr Bury <pbury@goahead.com>.
32266
32267 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
32268
32269         [BZ #12052]
32270         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
32271
32272         [BZ #12625]
32273         * misc/mntent_r.c (addmntent): Flush the stream after the output
32274
32275         [BZ #12393]
32276         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
32277         (is_trusted_path_normalize): Skip initial colon.  Append slash
32278         to empty buffer.  Duplicate is_trusted_path code but allow
32279         constructed patch to be prefix.
32280         (is_dst): Allow $ORIGIN followed by /.
32281         (_dl_dst_substitute): Correct clearing of check_for_trusted.
32282         Correct testing of result of is_trusted_path_normalize
32283         (decompose_rpath): Fix warning.
32284
32285 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
32286
32287         [BZ #11257]
32288         * grp/initgroups.c (internal_getgrouplist): When we found the service
32289         list through the initgroups entry in nsswitch.conf do not always
32290         continue on a successful lookup.  Don't always use the
32291         __nss_group_database value if it is set.
32292         * nss/nsswitch.conf (initgroups): Change action for successful db
32293         lookup to continue for compatibility.
32294
32295 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
32296
32297         [BZ #11532]
32298         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
32299         and CP774 modules.
32300         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
32301         and CP774 modules.
32302         * iconvdata/tst-tables.sh: Likewise.
32303         * iconvdata/cp770.c: New file.
32304         * iconvdata/cp771.c: New file.
32305         * iconvdata/cp772.c: New file.
32306         * iconvdata/cp773.c: New file.
32307         * iconvdata/cp774.c: New file.
32308         * iconvdata/testdata/CP770: New file.
32309         * iconvdata/testdata/CP770..UTF8: New file.
32310         * iconvdata/testdata/CP771: New file.
32311         * iconvdata/testdata/CP771..UTF8: New file.
32312         * iconvdata/testdata/CP772: New file.
32313         * iconvdata/testdata/CP772..UTF8: New file.
32314         * iconvdata/testdata/CP773: New file.
32315         * iconvdata/testdata/CP773..UTF8: New file.
32316         * iconvdata/testdata/CP774: New file.
32317         * iconvdata/testdata/CP774..UTF8: New file.
32318
32319         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
32320         END CHARMAP line.
32321         * iconvdata/gen-8bit-gap.sh: Likewise.
32322         * iconvdata/gen-8bit.sh: Likewise.
32323
32324         * locale/iso-639.def: Add ary entry.
32325
32326         [BZ #11258]
32327         * locale/C-translit.h.in: Add U20A1 transliteration.
32328
32329         [BZ #12178]
32330         * locale/iso-639.def: Add wae entry.
32331         Patch by Kevin Bortis <bortis@translate-wae.ch>.
32332
32333         [BZ #12545]
32334         * locale/programs/localedef.c (construct_output_path): Use ssize_t
32335         for n.
32336
32337         [BZ #12711]
32338         * locale/C-translit.h.in: Add entry for U20B9.
32339         Patch by pravin.d.s@gmail.com.
32340
32341 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
32342
32343         [BZ #12713]
32344         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
32345         ENAMETOOLONG use generic getcwd.
32346         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
32347         in rtld.  Use *stat64.
32348         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
32349         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
32350         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
32351         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
32352         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
32353         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
32354         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
32355         __fstatat64 macros.
32356         * include/dirent.h: Add libc_hidden_proto for rewinddir.
32357         * dirent/rewinddir.c: Add libc_hidden_def.
32358         * sysdeps/mach/hurd/rewinddir.c: Likewise.
32359         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
32360
32361         * include/dirent.h (__alloc_dir): Add flags parameter.
32362         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
32363         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
32364         __alloc_dir.
32365         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
32366         from fdopendir if O_CLOEXEC is already set.
32367
32368 2011-03-15  Alan Modra  <amodra@gmail.com>
32369
32370         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
32371         l_tls_firstbyte_offset non-zero.  Save padding offset in
32372         l_tls_firstbyte_offset for later use.
32373         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
32374         freeing static tls block.
32375
32376 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
32377
32378         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
32379         where #ifdef was intended.  The intent is to prevent ARG_MAX from
32380         being defined by the kernel headers.
32381
32382 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
32383
32384         [BZ #12734]
32385         * resolv/resolv.h: Define RES_NOTLDQUERY.
32386         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
32387         no-tld-query and set RES_NOTLDQUERY.
32388         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
32389         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
32390         modern BIND to search name as TLD unless forbidden.
32391
32392 2011-05-07  Petr Baudis  <pasky@suse.cz>
32393             Ulrich Drepper  <drepper@gmail.com>
32394
32395         [BZ #12393]
32396         * elf/dl-load.c (fillin_rpath): Move trusted path check...
32397         (is_trusted_path): ...to here.
32398         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
32399         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
32400         using is_trusted_path_normalize() in setuid scripts.
32401
32402 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
32403
32404         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
32405         __BEGIN/__END_DECLS.
32406
32407 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
32408
32409         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
32410         NSS_STATUS_NOTFOUND if no record was found.
32411
32412 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32413
32414         * sunrpc/Makefile (headers): Add rpc/netdb.h.
32415         (headers-not-in-tirpc): Remove rpc/netdb.h
32416         * resolv/netdb.h: Revert last change.
32417
32418 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
32419
32420         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
32421         circular dependency between libgcc.a and libc.a.
32422
32423 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32424
32425         * resolv/netdb.h: Don't include <rpc/netdb.h>.
32426         * nis/Makefile: Don't install rpcsvc/*.
32427         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
32428         instead of <rpc/types.h>.
32429         (MAXHOSTNAMELEN): Define.
32430
32431 2011-05-03  Andreas Schwab  <schwab@redhat.com>
32432
32433         * elf/ldconfig.c (add_dir): Don't crash on empty path.
32434
32435 2011-04-28  Maciej Babinski  <mbabinski@google.com>
32436
32437         [BZ #12714]
32438         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
32439         gethostbyname4_r when IPv6 results are possible.
32440
32441 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
32442
32443         [BZ #12723]
32444         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
32445         _PC_PIPE_BUF handling.
32446
32447 2011-04-30  Bruno Haible  <bruno@clisp.org>
32448
32449         [BZ #12717]
32450         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
32451         * resolv/netdb.h (getnameinfo): Change type of flags parameter
32452         to 'int'.
32453         * inet/getnameinfo.c (getnameinfo): Likewise.
32454
32455 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
32456
32457         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
32458         to groups setting in database lookup.
32459         * nss/nsswitch.conf: Add initgroups entry.
32460
32461 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
32462
32463         [BZ #12685]
32464         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
32465         mode string.
32466         Patch by Eric Blake <eblake@redhat.com>.
32467
32468 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
32469
32470         * sunrpc/Makefile (need-export-routines): Add svc_run.
32471         (routines): Remove svc_run.
32472         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
32473         * sunrpc/clnt_perr.c (clnt_perrno): Export.
32474         * sunrpc/svc_run.c (svc_run): Likewise.
32475         * sunrpc/svc_udp.c (svcudp_create): Likewise.
32476
32477 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
32478
32479         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
32480         problem in reallocation in last patch.
32481
32482 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
32483
32484         * sunrpc/Makefile: Move inclusion of Rules.
32485
32486 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32487
32488         * nss/nss_files/files-initgroups.c: New file.
32489         * nss/Makefile (libnss_files-routines): Add files-initgroups.
32490         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
32491         _nss_files_initgroups_dyn.
32492
32493 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
32494
32495         * elf/elf.h (R_ARM_IRELATIVE): Define.
32496
32497 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32498
32499         * po/ru.po: Update from translation team.
32500
32501 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32502
32503         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
32504         dependencies.
32505
32506 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
32507
32508         [BZ #12653]
32509         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
32510         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
32511         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32512         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32513         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
32514
32515 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
32516
32517         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
32518         differing bytes.
32519         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
32520         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
32521         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32522
32523 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32524
32525         [BZ #12420]
32526         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
32527         storing it.
32528         * stdlib/bug-getcontext.c: New file.
32529         * stdlib/Makefile: Add rules to build and run bug-getcontext.
32530
32531 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32532
32533         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
32534         instructions into .machine "z9-109".
32535         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
32536         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
32537
32538 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32539
32540         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
32541         between environment variables and auxiliary vector.
32542
32543 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
32544
32545         * Makefile: Add rules to build linkobj/libc.so.
32546         * include/libc-symbols.h: Define libc_hidden_nolink.
32547         * include/rpc/auth.h: Mark functions which are to be hidden.
32548         * include/rpc/auth_des.h: Likewise.
32549         * include/rpc/auth_unix.h: Likewise.
32550         * include/rpc/clnt.h: Likewise.
32551         * include/rpc/des_crypt.h: Likewise.
32552         * include/rpc/key_prot.h: Likewise.
32553         * include/rpc/pmap_clnt.h: Likewise.
32554         * include/rpc/pmap_prot.h: Likewise.
32555         * include/rpc/pmap_rmt.h: Likewise.
32556         * include/rpc/rpc_msg.h: Likewise.
32557         * include/rpc/svc.h: Likewise.
32558         * include/rpc/svc_auth.h: Likewise.
32559         * include/rpc/xdr.h: Likewise.
32560         * nis/Makefile: Link all DSOs against linkobj/libc.so.
32561         * nss/Makefile: Likewise.
32562         * sunrpc/Makefile: Don't install headers.  Build library with normal
32563         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
32564         * sunrpc/auth_des.c: Hide exported symbols by default, export some
32565         for the compat linking library.  Remove use of INTDEF/INTUSE.
32566         * sunrpc/auth_none.c: Likewise.
32567         * sunrpc/auth_unix.c: Likewise.
32568         * sunrpc/authdes_prot.c: Likewise.
32569         * sunrpc/authuxprot.c: Likewise.
32570         * sunrpc/clnt_gen.c: Likewise.
32571         * sunrpc/clnt_perr.c: Likewise.
32572         * sunrpc/clnt_raw.c: Likewise.
32573         * sunrpc/clnt_simp.c: Likewise.
32574         * sunrpc/clnt_tcp.c: Likewise.
32575         * sunrpc/clnt_udp.c: Likewise.
32576         * sunrpc/clnt_unix.c: Likewise.
32577         * sunrpc/des_crypt.c: Likewise.
32578         * sunrpc/des_soft.c: Likewise.
32579         * sunrpc/get_myaddr.c: Likewise.
32580         * sunrpc/key_call.c: Likewise.
32581         * sunrpc/key_prot.c: Likewise.
32582         * sunrpc/netname.c: Likewise.
32583         * sunrpc/pm_getmaps.c: Likewise.
32584         * sunrpc/pm_getport.c: Likewise.
32585         * sunrpc/pmap_clnt.c: Likewise.
32586         * sunrpc/pmap_prot.c: Likewise.
32587         * sunrpc/pmap_prot2.c: Likewise.
32588         * sunrpc/pmap_rmt.c: Likewise.
32589         * sunrpc/publickey.c: Likewise.
32590         * sunrpc/rpc_cmsg.c: Likewise.
32591         * sunrpc/rpc_common.c: Likewise.
32592         * sunrpc/rpc_dtable.c: Likewise.
32593         * sunrpc/rpc_prot.c: Likewise.
32594         * sunrpc/rpc_thread.c: Likewise.
32595         * sunrpc/rtime.c: Likewise.
32596         * sunrpc/svc.c: Likewise.
32597         * sunrpc/svc_auth.c: Likewise.
32598         * sunrpc/svc_authux.c: Likewise.
32599         * sunrpc/svc_raw.c: Likewise.
32600         * sunrpc/svc_run.c: Likewise.
32601         * sunrpc/svc_simple.c: Likewise.
32602         * sunrpc/svc_tcp.c: Likewise.
32603         * sunrpc/svc_udp.c: Likewise.
32604         * sunrpc/svc_unix.c: Likewise.
32605         * sunrpc/svcauth_des.c: Likewise.
32606         * sunrpc/xcrypt.c: Likewise.
32607         * sunrpc/xdr.c: Likewise.
32608         * sunrpc/xdr_array.c: Likewise.
32609         * sunrpc/xdr_float.c: Likewise.
32610         * sunrpc/xdr_intXX_t.c: Likewise.
32611         * sunrpc/xdr_mem.c: Likewise.
32612         * sunrpc/xdr_rec.c: Likewise.
32613         * sunrpc/xdr_ref.c: Likewise.
32614         * sunrpc/xdr_sizeof.c: Likewise.
32615         * sunrpc/xdr_stdio.c: Likewise.
32616
32617 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
32618
32619         [BZ #12650]
32620         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
32621         * sysdeps/ia64/dl-tls.h: Likewise.
32622         * sysdeps/powerpc/dl-tls.h: Likewise.
32623         * sysdeps/s390/dl-tls.h: Likewise.
32624         * sysdeps/sh/dl-tls.h: Likewise.
32625         * sysdeps/sparc/dl-tls.h: Likewise.
32626         * sysdeps/x86_64/dl-tls.h: Likewise.
32627         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
32628
32629 2011-03-14  Andreas Schwab  <schwab@redhat.com>
32630
32631         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
32632         rpath element also skip the following colon.
32633         (expand_dynamic_string_token): Add is_path parameter and pass
32634         down to DL_DST_REQUIRED and _dl_dst_substitute.
32635         (decompose_rpath): Call expand_dynamic_string_token with
32636         non-zero is_path.  Ignore empty rpaths.
32637         (_dl_map_object_from_fd): Call expand_dynamic_string_token
32638         with zero is_path.
32639
32640 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
32641
32642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32643         Make cancelable.
32644
32645 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
32646
32647         [BZ #12655]
32648         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
32649         Patch by Filipe David Manana <fdmanana@apache.org>.
32650
32651 2011-04-07  Andreas Schwab  <schwab@redhat.com>
32652
32653         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
32654         Maintain aligned stack.
32655         (CHECK_RSP): Remove unused macro.
32656
32657 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
32658
32659         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
32660         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32661
32662 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32663
32664         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32665
32666         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32667
32668 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32669
32670         [BZ #12518]
32671         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32672         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32673         * sysdeps/x86_64/memmove.c: New file.
32674         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32675         (memcpy): Renamed to ...
32676         (__new_memcpy): This.
32677         (memcpy): Provide GLIBC_2_14 memcpy.
32678         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32679         (memcpy): Provide GLIBC_2_2_5 memcpy.
32680
32681 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32682
32683         [BZ #12631]
32684         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32685
32686 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32687
32688         * misc/syncfs.c: New file.
32689         * misc/Makefile (routines): Add syncfs.
32690         * posix/unistd.h: Declare syncfs.
32691         * sysdeps/unix/syscalls.list: Add syncfs.
32692
32693 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32694
32695         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32696         open_by_handle_at.
32697         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32698         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32699         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32700         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32701         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32702         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32703         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32704
32705 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32706
32707         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32708         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32709         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32710         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32711         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32712         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32713         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32714
32715         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32716         sync_file_range.c with -fexceptions.
32717         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32718         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32719         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32720         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32721         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32722         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32723         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32724         sync_file_range as cancellation point
32725         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32726         now a wrapper around __call_sync_file_range with cancellation handling.
32727         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32728         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32729         function name to __call_sync_file_range.
32730         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32731         Add call_sync_file_range.
32732
32733 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32734
32735         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32736         bits/timex.h.
32737
32738 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32739
32740         * iconv/iconv.h: Fix typo in comment.
32741         * io/fcntl.h: Likewise.
32742         * libio/stdio.h: Likewise.
32743         * posix/spawn.h: Likewise.
32744         * posix/unistd.h: Likewise.
32745         * stdlib/stdlib.h: Likewise.
32746         * time/time.h: Likewise.
32747         * wcsmbs/wchar.h: Likewise.
32748
32749         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32750         open_by_handle): Add.
32751         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32752         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32753         Augment a few comments.
32754         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32755         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32756         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32757         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32758         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32759         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32760         open_by_handle.
32761
32762         * io/fcntl.h (AT_EMPTY_PATH): Define.
32763
32764 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32765
32766         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32767         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32768         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32769         to...
32770         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32771         * Versions.def: Add GLIBC_2.14.
32772         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32773         Export.
32774
32775 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32776
32777         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32778         round counter.
32779         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32780
32781 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32782
32783         [BZ #12597]
32784         * string/test-strncmp.c (do_page_test): New function.
32785         (check2): Likewise.
32786         (test_main): Call check2.
32787         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32788
32789 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32790
32791         [BZ #12587]
32792         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32793         Handle cache information in CPU leaf 4.
32794         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32795
32796 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32797
32798         [BZ #12583]
32799         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32800         character representation.
32801         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32802
32803 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32804
32805         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32806         END(__isnan) to END(__isnanf) to match function entry point/label
32807         EALIGN(__isnanf,...).
32808
32809 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32810
32811         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32812
32813 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32814
32815         [BZ #12510]
32816         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32817         copy from the symbol referenced in the relocation to initialize the
32818         used variable.
32819         Patch by Piotr Bury <pbury@goahead.com>.
32820         * elf/Makefile: Add rules to build and tst-unique3.
32821         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32822         * elf/tst-unique3.cc: New file.
32823         * elf/tst-unique3.h: New file.
32824         * elf/tst-unique3lib.cc: New file.
32825         * elf/tst-unique3lib2.cc: New file.
32826
32827         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32828
32829 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32830
32831         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32832         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32833         to _start.
32834
32835 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32836
32837         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32838         to-be-loaded object along a path to loader is ld.so.
32839
32840 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32841             Ulrich Drepper  <drepper@gmail.com>
32842
32843         * sysdeps/x86_64/memset.S: After aligning destination, code
32844         branches to different locations depending on the value of
32845         misalignment, when multiarch is enabled. Fix this.
32846
32847 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32848
32849         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32850         Set _x86_64_preferred_memory_instruction for AMD processsors.
32851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32852         Set bit_Prefer_SSE_for_memop for AMD processors.
32853
32854 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32855
32856         * libio/fmemopen.c (fmemopen): Optimize a bit.
32857
32858 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32859
32860         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32861
32862 2011-03-03  Roland McGrath  <roland@redhat.com>
32863
32864         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32865
32866 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32867
32868         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32869         __bzero_ultra1 instead of __memset_ultra1.
32870
32871 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32872             Ulrich Drepper  <drepper@gmail.com>
32873
32874         [BZ #12509]
32875         * include/link.h (struct link_map): Add l_orig_initfini.
32876         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32877         returning unsuccessfully.
32878         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32879         close of a file loaded at startup, restore the original l_initfini
32880         list.
32881         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32882         list, store the pointer.
32883         * elf/Makefile ($(objpfx)noload-mem): New rule.
32884         (noload-ENV): Define.
32885         (tests): Add $(objpfx)noload-mem.
32886         * elf/noload.c: Include <memcheck.h>.
32887         (main): Call mtrace.  Close all opened handles.
32888
32889 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32890
32891         [BZ #12454]
32892         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32893         dependencies are missing.
32894
32895 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32896
32897         Fix __if_freereq crash: Unlike the generic version which uses free,
32898         Hurd needs munmap.
32899         * sysdeps/mach/hurd/ifreq.h: New file.
32900
32901 2011-01-27  Petr Baudis  <pasky@suse.cz>
32902             Ulrich Drepper  <drepper@gmail.com>
32903
32904         [BZ 12445]#
32905         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32906         to extend_alloca().
32907         * stdio-common/bug23.c: New file.
32908         * stdio-common/Makefile (tests): Add bug23.
32909
32910 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32911             Ulrich Drepper  <drepper@gmail.com>
32912
32913         [BZ #12489]
32914         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
32915         before performing relro protection.  At old place add assertion
32916         to make sure nothing changed.
32917
32918 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
32919             Glauber de Oliveira Costa  <glommer@gmail.com>
32920
32921         * elf/elf.h: Add new ARM TLS relocs.
32922
32923 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
32924
32925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
32926         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
32927         cast from r3.
32928         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
32929         'tests' variable.
32930         * sysdeps/wordsize-64/tst-writev.c: New file.
32931
32932 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
32933
32934         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
32935         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
32936         insns in _dl_start to prevent a TOC reference before relocs are
32937         resolved.
32938
32939 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
32940
32941         [BZ #12469]
32942         * Makeconfig: Remove RANLIB definition.
32943         * Makerules: Don't use RANLIB.
32944         * aclocal.m4: Remove ranlib test.
32945         * configure.in: No need to check for ranlib.
32946         * elf/rtld-Rules: Don't use RANLIB.
32947
32948 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32949
32950         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
32951         protection macro.
32952         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
32953         inclusion protection macro.
32954
32955         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
32956         SIGRTMIN and SIGRTMAX and print information in that case only when
32957         SIGRTMIN is defined.
32958
32959 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32960
32961         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
32962         arginfo fn returning -1.
32963
32964         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
32965         and thousands string is zero terminated.
32966
32967 2011-02-03  Andreas Schwab  <schwab@redhat.com>
32968
32969         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
32970         sysdeps/unix/sysv/linux/bits/socket.h.
32971
32972 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32973
32974         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
32975         (__CPU_COUNT): Remove old macros.
32976         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
32977         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
32978         (__CPU_ALLOC, __CPU_FREE): Add macros.
32979         (__sched_cpualloc, __sched_cpufree): Add declarations.
32980
32981 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
32982
32983         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
32984         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
32985         * nscd/aicache.c (addhstaiX): Return timeout of added value.
32986         (readdhstai): Return value of addhstaiX call.
32987         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
32988         (addgrbyX): Return value returned by cache_addgr.
32989         (readdgrbyname): Return value returned by addgrbyX.
32990         (readdgrbygid): Likewise.
32991         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
32992         (addpwbyX): Return value returned by cache_addpw.
32993         (readdpwbyname): Return value returned by addhstbyX.
32994         (readdpwbyuid): Likewise.
32995         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
32996         (addservbyX): Return value returned by cache_addserv.
32997         (readdservbyname): Return value returned by addservbyX:
32998         (readdservbyport): Likewise.
32999         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
33000         (addhstbyX): Return value returned by cache_addhst.
33001         (readdhstbyname): Return value returned by addhstbyX.
33002         (readdhstbyaddr): Likewise.
33003         (readdhstbynamev6): Likewise.
33004         (readdhstbyaddrv6): Likewise.
33005         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
33006         (readdinitgroups): Return value returned by addinitgroupsX.
33007         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
33008         (prune_cache): Keep track of timeout value of re-added entries.
33009         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
33010         * nscd/nscd.h: Adjust prototypes of readd* functions.
33011
33012 2011-02-04  Roland McGrath  <roland@redhat.com>
33013
33014         * nis/nis_server.c (nis_servstate): Use the right name for 0.
33015         (nis_stats): Likewise.
33016         * nis/nis_modify.c (nis_modify): Likewise.
33017         * nis/nis_remove.c (nis_remove): Likewise.
33018         * nis/nis_add.c (nis_add): Likewise.
33019
33020         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
33021
33022         * posix/fnmatch_loop.c: Add some consts.
33023
33024         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
33025
33026 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33027
33028         [BZ #12460]
33029         * config.make.in (config-cflags-novzeroupper): Define.
33030         * configure.in: Substitute libc_cv_cc_novzeroupper.
33031         * elf/Makefile (AVX-CFLAGS): Define.
33032         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
33033         (CFLAGS-tst-auditmod4a.c): Likewise.
33034         (CFLAGS-tst-auditmod4b.c): Likewise.
33035         (CFLAGS-tst-auditmod6b.c): Likewise.
33036         (CFLAGS-tst-auditmod6c.c): Likewise.
33037         (CFLAGS-tst-auditmod7b.c): Likewise.
33038         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
33039
33040 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
33041
33042         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
33043         function to the callback.
33044         Patch partly by Jiri Olsa <jolsa@redhat.com>.
33045
33046 2011-02-02  Andreas Schwab  <schwab@redhat.com>
33047
33048         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
33049         of errno.
33050
33051 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
33052
33053         [BZ #11724]
33054         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
33055         of constructors.
33056         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
33057         of destructors.
33058         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
33059
33060         [BZ #11724]
33061         * elf/Makefile: Add rules to build and run new test.
33062         * elf/tst-initorder.c: New file.
33063         * elf/tst-initorder.exp: New file.
33064         * elf/tst-initordera1.c: New file.
33065         * elf/tst-initordera2.c: New file.
33066         * elf/tst-initordera3.c: New file.
33067         * elf/tst-initordera4.c: New file.
33068         * elf/tst-initorderb1.c: New file.
33069         * elf/tst-initorderb2.c: New file.
33070         * elf/tst-order-a1.c: New file.
33071         * elf/tst-order-a2.c: New file.
33072         * elf/tst-order-a3.c: New file.
33073         * elf/tst-order-a4.c: New file.
33074         * elf/tst-order-b1.c: New file.
33075         * elf/tst-order-b2.c: New file.
33076         * elf/tst-order-main.c: New file.
33077         New test case by George Gensure <werkt0@gmail.com>.
33078
33079 2010-10-01  Andreas Schwab  <schwab@redhat.com>
33080
33081         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33082         decoding ACE if AI_CANONIDN.
33083
33084 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
33085
33086         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
33087
33088 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
33089
33090         * version.h (RELEASE): Bump for 2.13 release.
33091         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
33092
33093         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
33094
33095         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
33096         MADV_NOHUGEPAGE.
33097         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
33098         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
33099         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33100         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33101         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33102         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33103
33104         * posix/getconf.c: Update copyright year.
33105         * catgets/gencat.c: Likewise.
33106         * csu/version.c: Likewise.
33107         * debug/catchsegv.sh: Likewise.
33108         * debug/xtrace.sh: Likewise.
33109         * elf/ldconfig.c: Likewise.
33110         * elf/ldd.bash.in: Likewise.
33111         * elf/sprof.c (print_version): Likewise.
33112         * iconv/iconv_prog.c: Likewise.
33113         * iconv/iconvconfig.c: Likewise.
33114         * locale/programs/locale.c: Likewise.
33115         * locale/programs/localedef.c: Likewise.
33116         * malloc/memusage.sh: Likewise.
33117         * malloc/mtrace.pl: Likewise.
33118         * nscd/nscd.c (print_version): Likewise.
33119         * nss/getent.c: Likewise.
33120
33121         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
33122         PF_CAIF, and PF_ALG.
33123         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33124
33125 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
33126
33127         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
33128         (modules-names): Use them.
33129         (ifunc-test-modules, ifunc-pie-tests): Define.
33130         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
33131         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
33132         (test-extras): Likewise.
33133         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
33134         $(compile-command.c).
33135         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
33136         (all-built-dso): Define.
33137         (check-textrel.out, check-execstack.out): Depend on it.
33138
33139         * configure.in: Don't override --enable-multi-arch.
33140
33141 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
33142
33143         [BZ #6812]
33144         * nscd/hstcache.c (tryagain): Define.
33145         (cache_addhst): Return tryagain not notfound for temporary errors.
33146         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
33147         failed.
33148
33149 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
33150
33151         [BZ #10563]
33152         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
33153         to make the syscall.
33154         * sysdeps/unix/sysv/linux/setgroups.c: New file.
33155
33156         [BZ #12378]
33157         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
33158         and fall back to matching as normal character if the string ends before
33159         the matching ']' is found.  This is what POSIX requires.
33160         * posix/testfnm.c: Adjust test result.
33161         * posix/globtest.sh: Adjust test result.  Add new test.
33162         * posix/tst-fnmatch.input: Likewise.
33163         * posix/tst-fnmatch2.c: Add new test.
33164
33165 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
33166
33167         * elf/Makefile (check-execstack): Revert last change.  Depend on
33168         check-execstack.h.
33169         (check-execstack.h): New target.
33170         (generated): Add check-execstack.h.
33171         * elf/check-execstack.c: Include "check-execstack.h".
33172         (main): Revert last change.
33173         (handle_file): Return zero if GNU_STACK is absent and
33174         DEFAULT_STACK_PERMS doesn't include PF_X.
33175
33176 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
33177
33178         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
33179         in child fails because the descriptor is already closed.
33180         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
33181         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
33182         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
33183
33184         [BZ #12397]
33185         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
33186         syscall.
33187
33188         [BZ #10484]
33189         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
33190         temporary buffer used to handle multi lookups locally.
33191         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
33192
33193 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33194
33195         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
33196         loader is ld.so.
33197
33198 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
33199
33200         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
33201         alignment for SSE2.
33202
33203 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33204
33205         [BZ #12394]
33206         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
33207         characters.  When rounding increased number of integer digits recompute
33208         number of groups.
33209         * stdio-common/tst-grouping.c: New file.
33210         * stdio-common/Makefile: Add rules to build and run tst-grouping.
33211
33212 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
33213
33214         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
33215         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
33216
33217         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
33218         void.
33219         * bits/select.h: Likewise.
33220
33221 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
33222
33223         * po/ja.po: Update from translation team.
33224
33225 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
33226
33227         [BZ #11155]
33228         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
33229         implementation just like for lxstat, fxstatat, et al.
33230
33231 2010-12-27  Jim Meyering  <meyering@redhat.com>
33232
33233         [BZ #12348]
33234         * posix/regexec.c (build_trtable): Return failure indication upon
33235         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
33236
33237 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
33238
33239         [BZ #12201]
33240         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
33241         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
33242         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
33243         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
33244
33245         [BZ #12207]
33246         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
33247
33248         [BZ #12204]
33249         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
33250         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
33251
33252 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
33253
33254         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
33255         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
33256         script has SORT_BY_INIT_PRIORITY.
33257         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
33258         NO_CTORS_DTORS_SECTIONS is defined.
33259         * elf/soinit.c: Likewise.
33260         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
33261         NO_CTORS_DTORS_SECTIONS is defined.
33262         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
33263         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
33264         * sysdeps/sh/init-first.c: Likewise.
33265         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
33266
33267 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
33268
33269         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
33270         always use the slow path.
33271
33272 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
33273
33274         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
33275         similar rule which adds the sysdep directories to the header search in
33276         order to pick up the correct platform stackinfo.h.
33277         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
33278         perform test if it is, otherwise return successfully without testing.
33279         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
33280         DEFAULT_STACK_PERMS define in stackinfo.h.
33281         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
33282         defined in stackinfo.h.
33283         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
33284         DEFAULT_STACK_PERMS defined in stackinfo.h.
33285         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
33286         * sysdeps/ia64/stackinfo.h: Likewise.
33287         * sysdeps/s390/stackinfo.h: Likewise.
33288         * sysdeps/sh/stackinfo.h: Likewise.
33289         * sysdeps/sparc/stackinfo.h: Likewise.
33290         * sysdeps/x86_64/stackinfo.h: Likewise.
33291         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
33292         PF_X for powerpc64.  Retain PF_X for powerpc32.
33293
33294 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
33295
33296         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
33297         accurately.
33298         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
33299         GETDENTS_64BIT_ALIGNED.
33300
33301 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
33302
33303         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
33304
33305 2010-12-10  Andreas Schwab  <schwab@redhat.com>
33306
33307         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
33308         _GNU_SOURCE.
33309
33310         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
33311         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
33312         Remove __restrict.
33313         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
33314         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
33315
33316 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
33317
33318         [BZ #11655]
33319         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
33320         are initialized.
33321
33322 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
33323
33324         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
33325
33326 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
33327
33328         * po/it.po: Update from translation team.
33329
33330 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
33331
33332         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
33333         unused codes.
33334
33335 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
33336
33337         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
33338
33339 2010-11-24  Andreas Schwab  <schwab@redhat.com>
33340
33341         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
33342         specially.
33343         (gaih_getanswer_slice): Likewise.
33344
33345 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
33346
33347         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
33348
33349 2010-05-31  Petr Baudis  <pasky@suse.cz>
33350
33351         [BZ #11149]
33352         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
33353         silently even in the chroot mode.
33354
33355 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
33356
33357         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
33358         last patch a bit.  Pretty printing
33359
33360 2010-05-31  Petr Baudis <pasky@suse.cz>
33361
33362         [BZ #10085]
33363         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
33364         initialization of skip_initgroups_dyn.
33365
33366 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
33367
33368         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
33369         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33370
33371 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
33372
33373         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
33374
33375 2010-11-11  Andreas Schwab  <schwab@redhat.com>
33376
33377         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
33378         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
33379         (tst-fnmatch-ENV): Set MALLOC_TRACE.
33380         ($(objpfx)tst-fnmatch-mem): New rule.
33381         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
33382         * posix/tst-fnmatch.c (main): Call mtrace.
33383
33384 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
33385
33386         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33387         Support Intel processor model 6 and model 0x2c.
33388
33389 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
33390
33391         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
33392           signed comparison.
33393
33394 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
33395
33396         [BZ #12205]
33397         * string/test-strncasecmp.c (check_result): New function.
33398         (do_one_test): Use it.
33399         (check1): New function.
33400         (test_main): Use it.
33401         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
33402         Support strcasecmp and strncasecmp.
33403
33404 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
33405
33406         [BZ #12194]
33407         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
33408         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33409
33410 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
33411
33412         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
33413         IFUNC support.
33414         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33415         memset-x86-64.
33416         * sysdeps/x86_64/multiarch/bzero.S: New file.
33417         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
33418         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
33419         * sysdeps/x86_64/multiarch/memset.S: New file.
33420         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
33421         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33422         Set bit_Prefer_SSE_for_memop for Intel processors.
33423         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
33424         Define.
33425         (index_Prefer_SSE_for_memop): Define.
33426         (HAS_PREFER_SSE_FOR_MEMOP): Define.
33427
33428 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
33429
33430         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
33431         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
33432
33433 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
33434
33435         [BZ #12191]
33436         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33437         (__x86_64_raw_data_cache_size_half): Likewise.
33438         (__x86_64_raw_shared_cache_size): Likewise.
33439         (__x86_64_raw_shared_cache_size_half): Likewise.
33440
33441         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33442         (__x86_64_raw_data_cache_size_half): Likewise.
33443         (__x86_64_raw_shared_cache_size): Likewise.
33444         (__x86_64_raw_shared_cache_size_half): Likewise.
33445         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
33446         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
33447         and __x86_64_raw_shared_cache_size_half.  Round
33448         __x86_64_data_cache_size_half, __x86_64_data_cache_size
33449         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
33450         to multiple of 256 bytes.
33451
33452 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
33453
33454         [BZ #12167]
33455         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
33456         of inacessible symlinks.  Verify result of symlink before returning it.
33457         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
33458         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
33459
33460 2010-10-28  Erich Ritz  <erichritz@gmail.com>
33461
33462         * math/math.h (isinf): Fix typo in comment.
33463
33464 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
33465
33466         * po/da.po: Update from translation team.
33467
33468 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
33469
33470         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
33471         is added to the list.
33472
33473 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33474             Ulrich Drepper  <drepper@gmail.com>
33475
33476         * elf/dl-object.c (_dl_new_object): Don't append the new object to
33477         the global list here.  Move code to...
33478         (_dl_add_to_namespace_list): ...here.  New function.
33479         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
33480         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
33481         * elf/dl-load.c (lose): Don't remove the element from the list.
33482         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
33483         (_dl_map_object): Likewise.
33484
33485 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
33486
33487         [BZ #12159]
33488         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
33489         into all bytes of SSE register.
33490         Patch by Richard Li <richardpku@gmail.com>.
33491
33492 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
33493
33494         [BZ #12140]
33495         * malloc/malloc.c (_int_free): Fill correct number of bytes when
33496         perturbing.
33497
33498 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
33499
33500         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
33501         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
33502         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
33503         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
33504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
33505         submachine.
33506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
33507
33508 2010-10-22  Andreas Schwab  <schwab@redhat.com>
33509
33510         * include/dlfcn.h (__RTLD_SECURE): Define.
33511         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
33512         mode & __RTLD_SECURE instead.
33513         (open_path): Rename preloaded parameter to secure.
33514         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
33515         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
33516         * elf/dl-deps.c (openaux): Likewise.
33517         * elf/rtld.c (struct map_args): Remove is_preloaded.
33518         (map_doit): Don't use it.
33519         (dl_main): Likewise.
33520         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
33521         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
33522
33523 2010-09-09  Andreas Schwab  <schwab@redhat.com>
33524
33525         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
33526         (sysd-rules-targets): Remove duplicates.
33527         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
33528         rtld-%.$o dependency.
33529
33530 2010-10-18  Andreas Schwab  <schwab@redhat.com>
33531
33532         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
33533         _dl_map_object do it.
33534
33535 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
33536
33537         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
33538         fast fma builtins, define the macros in the C99 standard.
33539         (FP_FAST_FMAF): Likewise.
33540         (FP_FAST_FMAL): Likewise.
33541         * sysdeps/x86_64/bits/mathdef.h: Likewise.
33542
33543         * bits/mathdef.h: Update copyright year.
33544         * sysdeps/powerpc/bits/mathdef.h: Likewise.
33545
33546 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33547
33548         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
33549         builtins, define the macros in the C99 standard.
33550         (FP_FAST_FMAF): Likewise.
33551         (FP_FAST_FMAL): Likewise.
33552         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
33553         multiply/add.
33554         (FP_FAST_FMAF): Likewise.
33555
33556 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
33557
33558         [BZ #3268]
33559         * math/libm-test.inc (fma_test): Some new testcases.
33560         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
33561         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
33562         y and infinite z.  Do multiplication by C already in long double.
33563         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
33564         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
33565         y and infinite z.  Do bitwise or of inexact bit into u.d.
33566         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
33567         * sysdeps/i386/fpu/s_fmaf.S: Removed.
33568         * sysdeps/i386/fpu/s_fma.S: Removed.
33569         * sysdeps/i386/fpu/s_fmal.S: Removed.
33570
33571 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
33572
33573         [BZ #3268]
33574         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
33575         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
33576         computation is not scheduled after fetestexcept.  Fix value
33577         of minimum denormal long double.
33578
33579 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
33580
33581         [BZ #3268]
33582         * math/libm-test.inc (fma_test): Add some more tests.
33583         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
33584         correctly.
33585
33586 2010-10-15  Andreas Schwab  <schwab@redhat.com>
33587
33588         * scripts/data/localplt-s390-linux-gnu.data: New file.
33589         * scripts/data/localplt-s390x-linux-gnu.data: New file.
33590
33591 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
33592
33593         [BZ #3268]
33594         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
33595         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
33596         instead of dbl-64.
33597         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
33598         inlines.
33599         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
33600         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
33601         if one of x and y is very large and the other is subnormal.
33602         * sysdeps/s390/fpu/s_fmaf.c: New file.
33603         * sysdeps/s390/fpu/s_fma.c: New file.
33604         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
33605         * sysdeps/powerpc/fpu/s_fma.S: New file.
33606         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
33607         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
33608         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
33609
33610 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33611
33612         [BZ #3268]
33613         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
33614         fma tests.
33615         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
33616         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
33617         * sysdeps/i386/i686/multiarch/s_fma.c: Include
33618         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
33619         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
33620         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
33621         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
33622
33623 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
33624
33625         [BZ #12078]
33626         * posix/regcomp.c (parse_branch): One more memory leak plugged.
33627         * posix/bug-regex31.input: Add test case.
33628
33629 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33630
33631         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
33632         * posix/bug-regex31.input: New file.
33633
33634         [BZ #12078]
33635         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
33636         (parse_sub_exp): Fix last change, use postorder.
33637
33638         * posix/bug-regex31.c: New file.
33639         * posix/Makefile: Add rules to build and run bug-regex31.
33640
33641         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
33642
33643         [BZ #12078]
33644         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
33645
33646         [BZ #12108]
33647         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
33648         to have entries in sys_siglist.
33649
33650         [BZ #12093]
33651         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
33652         be NULL.
33653
33654 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
33655
33656         [BZ #3268]
33657         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
33658         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
33659         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
33660         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33661         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33662         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33663         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33664         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33665         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33666         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33667         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33668         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33669         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33670         * math/ftestexcept.c (fetestexcept): Likewise.
33671         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33672         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33673         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33674         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33675         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33676         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33677         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33678
33679 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33680
33681         [BZ #12107]
33682         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33683         newline.
33684
33685 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33686
33687         * string/bug-strstr1.c: New file.
33688         * string/Makefile: Add rules to build and run bug-strstr1.
33689
33690 2010-10-05  Eric Blake  <eblake@redhat.com>
33691
33692         [BZ #12092]
33693         * string/str-two-way.h (two_way_long_needle): Always clear memory
33694         when skipping input due to the shift table.
33695
33696 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33697
33698         [BZ #12005]
33699         * malloc/mcheck.c: Handle large requests.
33700
33701         [BZ #12077]
33702         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33703         for strncmp and strncasecmp.
33704         * string/stratcliff.c: Add tests for strcmp and strncmp.
33705         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33706
33707 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33708
33709         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33710         __set_fpscr.
33711
33712 2010-09-30  Andreas Jaeger  <aj@suse.de>
33713
33714         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33715         (CGROUP_SUPER_MAGIC): Define.
33716         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33717         Handle btrfs and cgroup file systems.
33718         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33719         Likewise.
33720
33721 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33722
33723         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33724         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33725
33726 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33727
33728         [BZ #12067]
33729         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33730         trying to locate the ELF header.
33731
33732 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33733
33734         [BZ #11611]
33735         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33736         Mask out sign-bit copies when constructing f_fsid.
33737
33738 2010-09-24  Petr Baudis <pasky@suse.cz>
33739
33740         * debug/stack_chk_fail_local.c: Add missing licence exception.
33741         * debug/warning-nop.c: Likewise.
33742
33743 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33744
33745         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33746         implementing getdents64 using getdents syscall, set d_type if
33747         __ASSUME_GETDENTS32_D_TYPE.
33748
33749 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33750
33751         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33752         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33753
33754 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33755
33756         [BZ #12037]
33757         * posix/unistd.h: Undo change of feature selection for ftruncate from
33758         2010-01-11.
33759
33760 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33761
33762         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33763         detection.
33764
33765 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33766
33767         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33768         fanotify_mark.
33769         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33770
33771 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33772
33773         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33774         variables after CHECK_SP call.
33775         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33776
33777 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33778             Ulrich Drepper  <drepper@redhat.com>
33779
33780         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33781         re-relocationg ld.so.
33782         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33783         _dl_init_paths call.
33784         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33785         here anymore.
33786
33787 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33788
33789         * resolv/res_init.c (__res_vinit): Count the default server we added.
33790
33791 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33792             Ulrich Drepper  <drepper@redhat.com>
33793
33794         [BZ #11968]
33795         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33796         (____longjmp_chk): Use %ebx for saving value across system call.
33797         Add unwind info.
33798
33799 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33800
33801         * manual/Makefile: Don't mix pattern rules with normal rules.
33802
33803 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33804
33805         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33806         operation.
33807         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33808         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33809         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33810         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33811         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33812         Likewise.
33813
33814 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33815
33816         [BZ #11979]
33817         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33818         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33819
33820 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33821
33822         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33823         * sysdeps/x86_64/addmul_1.S: Likewise.
33824         * sysdeps/x86_64/lshift.S: Likewise.
33825         * sysdeps/x86_64/mul_1.S: Likewise.
33826         * sysdeps/x86_64/rshift.S: Likewise.
33827         * sysdeps/x86_64/sub_n.S: Likewise.
33828         * sysdeps/x86_64/submul_1.S: Likewise.
33829
33830 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33831
33832         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33833         Define __sched_param instead of SCHED_* and sched_param when
33834         <bits/sched.h> is included with __need_schedparam defined.
33835         * bits/sched.h [__need_schedparam]
33836         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33837         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33838         (__defined_schedparam): Define to 1.
33839         (__sched_param): New structure, identical to sched_param.
33840         (__need_schedparam): Undefine.
33841
33842 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33843
33844         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33845         (epoll_create1): Declare.
33846
33847         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33848
33849 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33850
33851         [BZ #7066]
33852         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33853         shifting retval into place.
33854
33855 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33856
33857         * nis/rpcsvc/nis.h: Update copyright notice.
33858         * nis/rpcsvc/nis.x: Likewise.
33859         * nis/rpcsvc/nis_callback.h: Likewise.
33860         * nis/rpcsvc/nis_callback.x: Likewise.
33861         * nis/rpcsvc/nis_object.x: Likewise.
33862         * nis/rpcsvc/nis_tags.h: Likewise.
33863         * nis/rpcsvc/yp.h: Likewise.
33864         * nis/rpcsvc/yp.x: Likewise.
33865         * nis/rpcsvc/ypupd.h: Likewise.
33866         * nis/yp_xdr.c: Likewise.
33867         * nis/ypupdate_xdr.c: Likewise.
33868
33869         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33870         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33871         (pmap_getport): Use __libc_rpc_getport.
33872         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33873         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33874         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33875
33876 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33877
33878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33879         fanotify_mark.
33880
33881 2010-08-27  Roland McGrath  <roland@redhat.com>
33882
33883         * sysdeps/i386/i686/multiarch/Makefile
33884         (CFLAGS-varshift.c): New variable.
33885
33886 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33887
33888         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33889         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33890
33891         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33892
33893         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33894
33895 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33896
33897         * sysdeps/x86_64/strlen.S: Unroll the loop.
33898         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33899         strlen-sse2 strlen-sse2-bsf.
33900         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33901         __strlen_no_bsf if bit_Slow_BSF is set.
33902         (__strlen_sse42): Removed.
33903         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33904         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33905
33906 2010-08-25  Roland McGrath  <roland@redhat.com>
33907
33908         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33909         * sysdeps/x86_64/multiarch/varshift.c: New file.
33910         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33911         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33912         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33913         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33914
33915 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33916
33917         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33918         strlen-sse2 strlen-sse2-bsf.
33919         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
33920         __strlen_sse2_bsf if bit_Slow_BSF is unset.
33921         (__strlen_sse2): Removed.
33922         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
33923         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
33924         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
33925         bit_Slow_BSF for Atom.
33926         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
33927         (index_Slow_BSF): Define.
33928         (HAS_SLOW_BSF): Define.
33929
33930 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
33931
33932         [BZ #10851]
33933         * resolv/res_init.c (__res_vinit): When no server address at all
33934         is given default to loopback.
33935
33936 2010-08-24  Roland McGrath  <roland@redhat.com>
33937
33938         * configure.in: Remove config-name.h generation.
33939         * configure: Regenerated.
33940         * config-name.in: File removed.
33941         * scripts/config-uname.sh: New file.
33942         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
33943         ($(objdir)config-name.h): New target.
33944
33945         * sunrpc/rpc_parse.h: Avoid nested comment.
33946
33947 2010-08-24  Richard Henderson  <rth@redhat.com>
33948             Ulrich Drepper  <drepper@redhat.com>
33949             H.J. Lu  <hongjiu.lu@intel.com>
33950
33951         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
33952         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
33953         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
33954         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
33955         _mm_alignr_epi8 with _mm_loadu_si128.
33956         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
33957         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
33958         (__m128i_shift_right): Removed.
33959         * sysdeps/i386/i686/multiarch/varshift.h: New file.
33960         * sysdeps/i386/i686/multiarch/varshift.S: New file.
33961         * sysdeps/x86_64/multiarch/varshift.h: New file.
33962         * sysdeps/x86_64/multiarch/varshift.S: New file.
33963
33964 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
33965
33966         * configure.in: Move assembler checks to before sysdep dir checking.
33967
33968 2010-08-20  Petr Baudis  <pasky@suse.cz>
33969
33970         * LICENSES: Sync the sunrpc license.
33971
33972 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
33973
33974         * sunrpc/auth_des.c: Update copyright notice once again.
33975         * sunrpc/auth_none.c: Likewise.
33976         * sunrpc/auth_unix.c: Likewise.
33977         * sunrpc/authdes_prot.c: Likewise.
33978         * sunrpc/authuxprot.c: Likewise.
33979         * sunrpc/bindrsvprt.c: Likewise.
33980         * sunrpc/clnt_gen.c: Likewise.
33981         * sunrpc/clnt_perr.c: Likewise.
33982         * sunrpc/clnt_raw.c: Likewise.
33983         * sunrpc/clnt_simp.c: Likewise.
33984         * sunrpc/clnt_tcp.c: Likewise.
33985         * sunrpc/clnt_udp.c: Likewise.
33986         * sunrpc/clnt_unix.c: Likewise.
33987         * sunrpc/des_crypt.c: Likewise.
33988         * sunrpc/des_soft.c: Likewise.
33989         * sunrpc/get_myaddr.c: Likewise.
33990         * sunrpc/getrpcport.c: Likewise.
33991         * sunrpc/key_call.c: Likewise.
33992         * sunrpc/key_prot.c: Likewise.
33993         * sunrpc/openchild.c: Likewise.
33994         * sunrpc/pm_getmaps.c: Likewise.
33995         * sunrpc/pm_getport.c: Likewise.
33996         * sunrpc/pmap_clnt.c: Likewise.
33997         * sunrpc/pmap_prot.c: Likewise.
33998         * sunrpc/pmap_prot2.c: Likewise.
33999         * sunrpc/pmap_rmt.c: Likewise.
34000         * sunrpc/rpc/auth.h: Likewise.
34001         * sunrpc/rpc/auth_unix.h: Likewise.
34002         * sunrpc/rpc/clnt.h: Likewise.
34003         * sunrpc/rpc/des_crypt.h: Likewise.
34004         * sunrpc/rpc/key_prot.h: Likewise.
34005         * sunrpc/rpc/netdb.h: Likewise.
34006         * sunrpc/rpc/pmap_clnt.h: Likewise.
34007         * sunrpc/rpc/pmap_prot.h: Likewise.
34008         * sunrpc/rpc/pmap_rmt.h: Likewise.
34009         * sunrpc/rpc/rpc.h: Likewise.
34010         * sunrpc/rpc/rpc_des.h: Likewise.
34011         * sunrpc/rpc/rpc_msg.h: Likewise.
34012         * sunrpc/rpc/svc.h: Likewise.
34013         * sunrpc/rpc/svc_auth.h: Likewise.
34014         * sunrpc/rpc/types.h: Likewise.
34015         * sunrpc/rpc/xdr.h: Likewise.
34016         * sunrpc/rpc_clntout.c: Likewise.
34017         * sunrpc/rpc_cmsg.c: Likewise.
34018         * sunrpc/rpc_common.c: Likewise.
34019         * sunrpc/rpc_cout.c: Likewise.
34020         * sunrpc/rpc_dtable.c: Likewise.
34021         * sunrpc/rpc_hout.c: Likewise.
34022         * sunrpc/rpc_main.c: Likewise.
34023         * sunrpc/rpc_parse.c: Likewise.
34024         * sunrpc/rpc_parse.h: Likewise.
34025         * sunrpc/rpc_prot.c: Likewise.
34026         * sunrpc/rpc_sample.c: Likewise.
34027         * sunrpc/rpc_scan.c: Likewise.
34028         * sunrpc/rpc_scan.h: Likewise.
34029         * sunrpc/rpc_svcout.c: Likewise.
34030         * sunrpc/rpc_tblout.c: Likewise.
34031         * sunrpc/rpc_util.c: Likewise.
34032         * sunrpc/rpc_util.h: Likewise.
34033         * sunrpc/rpcinfo.c: Likewise.
34034         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
34035         * sunrpc/rpcsvc/key_prot.x: Likewise.
34036         * sunrpc/rpcsvc/klm_prot.x: Likewise.
34037         * sunrpc/rpcsvc/mount.x: Likewise.
34038         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
34039         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
34040         * sunrpc/rpcsvc/rex.x: Likewise.
34041         * sunrpc/rpcsvc/rstat.x: Likewise.
34042         * sunrpc/rpcsvc/rusers.x: Likewise.
34043         * sunrpc/rpcsvc/sm_inter.x: Likewise.
34044         * sunrpc/rpcsvc/spray.x: Likewise.
34045         * sunrpc/rpcsvc/yppasswd.x: Likewise.
34046         * sunrpc/rtime.c: Likewise.
34047         * sunrpc/svc.c: Likewise.
34048         * sunrpc/svc_auth.c: Likewise.
34049         * sunrpc/svc_authux.c: Likewise.
34050         * sunrpc/svc_raw.c: Likewise.
34051         * sunrpc/svc_run.c: Likewise.
34052         * sunrpc/svc_simple.c: Likewise.
34053         * sunrpc/svc_tcp.c: Likewise.
34054         * sunrpc/svc_udp.c: Likewise.
34055         * sunrpc/svc_unix.c: Likewise.
34056         * sunrpc/svcauth_des.c: Likewise.
34057         * sunrpc/xcrypt.c: Likewise.
34058         * sunrpc/xdr.c: Likewise.
34059         * sunrpc/xdr_array.c: Likewise.
34060         * sunrpc/xdr_float.c: Likewise.
34061         * sunrpc/xdr_mem.c: Likewise.
34062         * sunrpc/xdr_rec.c: Likewise.
34063         * sunrpc/xdr_ref.c: Likewise.
34064         * sunrpc/xdr_sizeof.c: Likewise.
34065         * sunrpc/xdr_stdio.c: Likewise.
34066
34067         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
34068         handling.
34069
34070 2010-08-19  Andreas Schwab  <schwab@redhat.com>
34071
34072         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
34073
34074 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
34075
34076         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
34077         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
34078         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
34079         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
34080         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
34081         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
34082         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
34083         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
34084         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
34085         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
34086         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
34087         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
34088         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
34089         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
34090
34091 2010-07-26  Anton Blanchard  <anton@samba.org>
34092
34093         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
34094         * malloc/arena.c (heap_trim): Likewise.
34095
34096 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
34097
34098         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
34099         here.  Not...
34100         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
34101         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
34102
34103 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
34104
34105         * sysdeps/i386/elf/Makefile: New file.
34106
34107 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34108
34109         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
34110         from fanotify_init.
34111         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
34112         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34113
34114 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
34115
34116         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
34117         of strncasecmp_l.
34118         * sysdeps/multiarch/strcmp.S: Likewise.
34119
34120 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
34121
34122         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34123         strncase_l-nonascii.
34124         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34125         Add strncase_l-ssse3.
34126         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
34127         * sysdeps/x86_64/strcmp.S: Likewise.
34128         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
34129         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
34130         * sysdeps/x86_64/strncase.S: New file.
34131         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
34132         * sysdeps/x86_64/strncase_l.S: New file.
34133         * string/Makefile (strop-tests): Add strncasecmp.
34134         * string/test-strncasecmp.c: New file.
34135
34136         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
34137         warning.
34138
34139         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
34140         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
34141
34142 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34143
34144         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
34145
34146 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
34147
34148         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
34149         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
34150         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
34151
34152 2010-05-01  Alan Modra  <amodra@gmail.com>
34153
34154         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
34155         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
34156         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
34157         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
34158         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
34159         tidying.  Don't tail-call __sigjmp_save for static lib.
34160         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
34161         save location.
34162         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
34163         (CALL_MCOUNT): Add eh info, and nop after bl.
34164         (TAIL_CALL_SYSCALL_ERROR): New macro.
34165         (PSEUDO_RET): Use it.
34166         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
34167         Correct save location of integer regs and cr.
34168         (_dl_profile_resolve): Correct cr save location.  Delete nops
34169         after bl when SHARED.  Reduce cfi size a little by better
34170         placement of cfi directives.
34171         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
34172         make a stack frame.  Instead use parm save area as a temp.
34173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
34174         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
34175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
34176         Don't make a stack frame for parent, use parm save area.
34177         Increase child stack frame to 112 bytes.  Don't save unused reg,
34178         and adjust reg usage.  Set up cfi on error recovery and
34179         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
34180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
34181         (__makecontext): Add dummy nop after jump to exit.
34182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
34183         Use correct parm save area and cr save, reduce stack frame.
34184         Correct cfi for possible PSEUDO_RET frame setup.
34185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
34186         Branch to local label emitted by PSEUDO_RET rather than
34187         __syscall_error.
34188
34189 2010-08-12  Andreas Schwab  <schwab@redhat.com>
34190
34191         [BZ #11904]
34192         * locale/programs/locale.c (print_assignment): New function.
34193         (show_locale_vars): Use it.
34194
34195 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
34196
34197         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
34198         field.
34199         (struct statfs64): Likewise.
34200         (_STATFS_F_FLAGS): Define.
34201         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
34202         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34203         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
34204         (ST_VALID): Define locally.
34205         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
34206         __statvfs_getflags, use the provided value.
34207         * sysdeps/unix/sysv/linux/kernel-features.h: Define
34208         __ASSUME_STATFS_F_FLAGS.
34209
34210         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
34211
34212         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
34213         Add sys/fanotify.h.
34214         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
34215         fanotify_mask for GLIBC_2.13.
34216         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
34217         fanotify_init and fanotify_mark.
34218         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34219         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
34220
34221         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
34222         Add prlimit.
34223         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
34224         prlimit64 for GLIBC_2.13.
34225         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
34226         prlimit64.
34227         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
34228         syscall.
34229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
34230         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
34231         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
34232         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
34233         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
34234         add prlimit alias.
34235         * sysdeps/unix/sysv/linux/prlimit.c: New file.
34236
34237         [BZ #11903]
34238         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
34239         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
34240
34241         * nss/Makefile: Add rules to build and run tst-nss-test1.
34242         * shlib-versions: Add entry for libnss_test1.
34243         * nss/nss_test1.c: New file.
34244         * nss/tst-nss-test1.c: New file.
34245
34246         * nss/nsswitch.c (__nss_database_custom): Define new variable.
34247         (__nss_configure_lookup): Set appropriate entry in
34248         __nss_configure_lookup to true.
34249         * nss/nsswitch.h: Define enum with indeces of databases in
34250         databases and __nss_database_custom arrays.  Declare
34251         __nss_database_custom.
34252         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
34253         to avoid using nscd when custom rules are installed.
34254         * nss/getXXbyYY_r.c: Likewise.
34255         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
34256
34257         * nss/nss_files/files-parse.c: Whitespace fixes.
34258
34259 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
34260
34261         [BZ #11883]
34262         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
34263         * posix/fnmatch_loop.c: Likewise.
34264
34265 2010-07-17  Andi Kleen  <ak@linux.intel.com>
34266
34267         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
34268         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
34269         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
34270         * Versions.def [GLIBC_2.13]: Add.
34271
34272 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
34273
34274         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34275         Also fail if tpwd after pwuid call is NULL.
34276
34277 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34278
34279         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
34280         when converting to ms.
34281
34282 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34283
34284         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
34285         EOPNOTSUPP errors with ENOTTY.
34286         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
34287         EOPNOTSUPP errors with ENOTTY.
34288
34289 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
34290
34291         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34292         Add strcasecmp_l-ssse3.
34293         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
34294         strcasecmp.
34295         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
34296         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
34297         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
34298
34299 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
34300
34301         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
34302
34303         * string/Makefile (strop-tests): Add strcasecmp.
34304         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34305         strcasecmp_l-nonascii.
34306         (gen-as-const-headers): Add locale-defines.sym.
34307         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
34308         * sysdeps/x86_64/strcasecmp.S: New file.
34309         * sysdeps/x86_64/strcasecmp_l.S: New file.
34310         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
34311         * sysdeps/x86_64/locale-defines.sym: New file.
34312         * string/test-strcasecmp.c: New file.
34313
34314         * string/test-strcasestr.c: Test both ends of the range of characters.
34315         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
34316
34317 2010-07-29  Roland McGrath  <roland@redhat.com>
34318
34319         [BZ #11856]
34320         * manual/locale.texi (Yes-or-No Questions): Fix example code.
34321
34322 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
34323
34324         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
34325         for ld.so.
34326
34327 2010-07-27  Andreas Schwab  <schwab@redhat.com>
34328
34329         * manual/memory.texi (Malloc Tunable Parameters): Document
34330         M_PERTURB.
34331
34332 2010-07-26  Roland McGrath  <roland@redhat.com>
34333
34334         [BZ #11840]
34335         * configure.in (-fgnu89-inline check): Set and substitute
34336         gnu89_inline, not libc_cv_gnu89_inline.
34337         * configure: Regenerated.
34338         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
34339
34340 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
34341
34342         * string/test-strnlen.c: New file.
34343         * string/Makefile (strop-tests): Add strnlen.
34344         * string/tester.c (test_strnlen): Add a few more test cases.
34345         * string/tst-strlen.c: Better error reporting.
34346
34347         * sysdeps/x86_64/strnlen.S: New file.
34348
34349 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
34350
34351         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
34352         lower-latency instructions.
34353
34354 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
34355
34356         * string/test-strcasestr.c: New file.
34357         * string/test-strstr.c: New file.
34358         * string/Makefile (strop-tests): Add strstr and strcasestr.
34359         * string/str-two-way.h: Don't undefine MAX.
34360         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
34361
34362 2010-07-21  Andreas Schwab  <schwab@redhat.com>
34363
34364         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34365         strcasestr-nonascii.
34366         (CFLAGS-strcasestr-nonascii.c): Define.
34367         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
34368         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
34369         Remove unused attribute.
34370
34371 2010-07-20  Roland McGrath  <roland@redhat.com>
34372
34373         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
34374         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
34375         ld.so.cache was broken.  With it, there is no way to disable dsocaps
34376         like LD_HWCAP_MASK can disable hwcaps.
34377
34378 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34379
34380         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
34381
34382 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
34383
34384         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
34385         call in strcasestr.
34386         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
34387         __strcasestr_sse42_nonascii.
34388         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
34389         strcasestr-nonascii.c.
34390         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
34391
34392 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
34393
34394         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
34395         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
34396         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
34397         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
34398
34399 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
34400
34401         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
34402         fcntl.
34403
34404 2010-07-06  Andreas Schwab  <schwab@redhat.com>
34405
34406         [BZ #11577]
34407         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
34408         dl_signal_cerror.
34409
34410 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
34411
34412         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
34413         _PC_PIPE_BUF using F_GETPIPE_SZ.
34414
34415 2010-07-05  Roland McGrath  <roland@redhat.com>
34416
34417         * manual/arith.texi (Rounding Functions): Fix rint description
34418         implicit in round description.
34419
34420 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
34421
34422         * elf/Makefile: Fix linking for a few tests to make recent linker
34423         happy.
34424
34425 2010-06-30  Andreas Schwab  <schwab@redhat.com>
34426
34427         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34428         $(common-objpfx)libc_nonshared.a.
34429
34430 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
34431
34432         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
34433         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
34434         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34435         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34436         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
34437         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
34438         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34439         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
34441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
34442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
34443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
34445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
34447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
34448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
34449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
34450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
34452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
34454         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
34455         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
34456         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
34457         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
34458         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
34459         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
34460         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
34461         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
34462         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
34463         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
34464         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
34465         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
34466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
34467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
34468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
34469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
34470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
34471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
34472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
34473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
34474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
34475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
34476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
34477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
34478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
34479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
34480
34481 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
34482
34483         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
34484         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
34485         * string/memmove.c (memmove): Renamed to ...
34486         (MEMMOVE): ...this.  Default to memmove.
34487         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
34488         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
34489         (END_CHK): Define.
34490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34491         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
34492         mempcpy-ssse3-back memmove-ssse3-back.
34493         * sysdeps/x86_64/multiarch/bcopy.S: New file .
34494         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
34495         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
34496         * sysdeps/x86_64/multiarch/memcpy.S: New file.
34497         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
34498         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
34499         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
34500         * sysdeps/x86_64/multiarch/memmove.c: New file.
34501         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
34502         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
34503         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
34504         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
34505         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
34506         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
34507         Define.
34508         (index_Fast_Copy_Backward): Define.
34509         (HAS_ARCH_FEATURE): Define.
34510         (HAS_FAST_REP_STRING): Define.
34511         (HAS_FAST_COPY_BACKWARD): Define.
34512
34513 2010-06-21  Andreas Schwab  <schwab@redhat.com>
34514
34515         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34516         Restore proper fallback handling.
34517
34518 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
34519
34520         [BZ #11701]
34521         * posix/group_member.c (__group_member): Correct checking loop.
34522
34523         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
34524         OOM in getpwuid_r correctly.  Return error number when the caller
34525         should return, otherwise -1.
34526         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
34527         call returning > 0 value.
34528         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
34529
34530 2010-06-07  Andreas Schwab  <schwab@redhat.com>
34531
34532         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
34533         libc_nonshared.a from targets in modules-names.
34534
34535 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
34536
34537         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
34538         requires it.
34539
34540 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
34541
34542         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
34543         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
34544         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
34545         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
34546
34547 2010-06-02  Andreas Schwab  <schwab@redhat.com>
34548
34549         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
34550
34551 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
34552
34553         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
34554         and F_GETPIPE_SZ.
34555         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34556         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34557         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34558         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34559         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34560         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
34561
34562 2010-06-14  Roland McGrath  <roland@redhat.com>
34563
34564         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
34565
34566 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
34567
34568         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
34569         __REDIRECT followed by __THROW.
34570         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
34571         * posix/getopt.h (getopt): Likewise.
34572
34573 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34574
34575         * hurd/lookup-at.c (__file_name_lookup_at): Accept
34576         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
34577         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
34578         in AT_FLAGS.
34579         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
34580         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
34581
34582 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
34583
34584         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
34585
34586 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
34587
34588         [BZ #11640]
34589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34590         Properly check family and model.
34591
34592 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
34593
34594         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
34595
34596 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
34597
34598         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
34599
34600 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
34601
34602         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
34603         symbol reference.
34604
34605 2010-05-19  Andreas Schwab  <schwab@redhat.com>
34606
34607         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
34608         symbol reference.
34609
34610 2010-05-21  Andreas Schwab  <schwab@redhat.com>
34611
34612         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
34613         and internal_recvmmsg.
34614         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
34615         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
34616         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
34617         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
34618
34619         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
34620         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
34621         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
34622
34623 2010-05-20  Andreas Schwab  <schwab@redhat.com>
34624
34625         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
34626
34627 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
34628
34629         POWER7 optimizations.
34630         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
34631         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
34632
34633 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
34634
34635         * version.h: Update for 2.13 development version.
34636
34637 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
34638
34639         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
34640         exceptions.  Return 0.
34641
34642 2010-05-07  Roland McGrath  <roland@redhat.com>
34643
34644         * elf/ldconfig.c (main): Add a const.
34645
34646 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
34647
34648         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
34649         (args_options): Add no-idn option.
34650         (ahosts_keys_int): Add idn_flags to ai_flags.
34651         (parse_option): Handle 'i' option to clear idn_flags.
34652
34653         * malloc/malloc.c (_int_free): Possible race in the most recently
34654         added check.  Only act on the data if no current modification
34655         happened.
34656
34657 See ChangeLog.17 for earlier changes.